/* StayOn eSIM — translator.css
   The "Free AI translator in every plan" showcase (homepage + plans page) and the translator line on plan cards.
   Builds on the tokens in styles.css. */

.translate-show { background: linear-gradient(180deg, var(--paper) 0%, var(--tint) 100%); overflow: hidden; }
.ts-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.ts-copy .sub { color: var(--ink-soft); font-size: 1.15rem; margin-top: 1.25rem; max-width: 33rem; }
.ts-free { display: inline-flex; align-items: center; gap: .5rem; background: var(--on); color: #fff; font: 700 .9rem var(--font-body); padding: .4rem .85rem .4rem .45rem; border-radius: 99px; margin-bottom: 1.1rem; }
.ts-free b { background: #fff; color: var(--on); font: 600 .7rem var(--font-mono); letter-spacing: .08em; padding: .2rem .5rem; border-radius: 99px; }

.ts-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.ts-points li { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: start; }
.ts-points svg { grid-row: span 2; width: 2.7rem; height: 2.7rem; padding: .65rem; border-radius: 14px; background: var(--white); color: var(--signal); box-shadow: 0 1px 2px rgba(10, 18, 36, .06); }
.ts-points strong { font: 700 1.1rem var(--font-display); letter-spacing: -.01em; line-height: 1.3; }
.ts-points span { color: var(--ink-soft); font-size: .98rem; }

.ts-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: 2.25rem; }
.ts-try { display: grid; gap: .1rem; }
.ts-try small { color: var(--ink-soft); font-size: .85rem; }

/* Phone mock-up of the real app */
.ts-visual { position: relative; display: grid; justify-items: center; padding-block: 3.5rem; }
.ts-visual::before { content: ""; position: absolute; width: min(30rem, 110%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(35, 56, 240, .18), rgba(35, 56, 240, 0) 68%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ts-phone { position: relative; width: min(19.5rem, 100%); background: var(--ink); border-radius: 2.6rem; padding: .7rem; box-shadow: 0 30px 60px -24px rgba(10, 18, 36, .55); }
.ts-screen { background: #f5f7fc; border-radius: 2rem; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); font-size: .82rem; }
.ts-screen > * { min-width: 0; }
.ts-bar { display: flex; align-items: center; gap: .45rem; padding: 1.1rem 1rem .6rem; font: 700 .95rem var(--font-display); }
.ts-bar .mark { width: 1.35rem; height: 1.35rem; border-radius: .4rem; background: var(--signal); position: relative; }
.ts-bar .mark::after { content: ""; position: absolute; inset: .38rem .2rem; border-radius: 99px; background: #fff; box-shadow: inset -.32rem 0 0 -.08rem var(--signal); }
.ts-bar small { font: 500 .72rem var(--font-mono); color: var(--ink-soft); }
.ts-bar .pill { margin-left: auto; font: 600 .62rem var(--font-body); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: .2rem .5rem; color: var(--ink-soft); white-space: nowrap; }
.ts-bar .pill::before { content: ""; display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; background: var(--on); margin-right: .3rem; vertical-align: .05rem; }
.ts-langs { display: grid; grid-template-columns: 1fr auto 1fr; gap: .4rem; padding: 0 1rem .7rem; align-items: center; }
.ts-langs span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: .6rem; padding: .4rem .5rem; font-weight: 600; text-align: center; }
.ts-langs i { font-style: normal; color: var(--ink-soft); }
.ts-chat { display: grid; gap: .55rem; padding: .2rem .8rem .9rem; }
.ts-msg { max-width: 86%; border-radius: 1rem; padding: .55rem .75rem; display: grid; gap: .15rem; }
.ts-msg .who { font: 700 .6rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.ts-msg .out { font-size: .98rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.ts-msg .src { color: var(--ink-soft); font-size: .76rem; line-height: 1.3; }
.ts-msg.you { justify-self: end; background: #e7ebff; border-bottom-right-radius: .3rem; }
.ts-msg.you .who { color: var(--signal); }
.ts-msg.them { justify-self: start; background: #ffece5; border-bottom-left-radius: .3rem; }
.ts-msg.them .who { color: #c8461f; }
.ts-wave { display: inline-flex; gap: 2px; align-items: center; height: .8rem; margin-left: .3rem; vertical-align: -.1rem; }
.ts-wave i { width: 2px; border-radius: 2px; background: currentColor; animation: ts-wave 1s ease-in-out infinite; }
.ts-wave i:nth-child(1) { height: 40%; } .ts-wave i:nth-child(2) { height: 90%; animation-delay: .15s; } .ts-wave i:nth-child(3) { height: 60%; animation-delay: .3s; } .ts-wave i:nth-child(4) { height: 80%; animation-delay: .45s; }
@keyframes ts-wave { 50% { transform: scaleY(.35); } }
.ts-dock { background: #fff; border-top: 1px solid var(--line); padding: .7rem .8rem .9rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ts-dock span { border-radius: .8rem; padding: .6rem .3rem; color: #fff; text-align: center; font: 700 .8rem var(--font-display); line-height: 1.15; }
.ts-dock span small { display: block; font: 500 .66rem var(--font-body); opacity: .85; }
.ts-dock .you { background: var(--signal); }
.ts-dock .them { background: #c8461f; }

.ts-sticker { position: absolute; background: #fff; border-radius: 1rem; padding: .6rem .85rem; box-shadow: var(--shadow); font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.ts-sticker svg { width: 1.4rem; height: 1.4rem; color: var(--signal); flex: none; }
.ts-sticker.one { top: .5rem; left: 4%; }
.ts-sticker.two { bottom: .5rem; right: 4%; }
.ts-sticker .dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--on); box-shadow: 0 0 0 5px rgba(18, 184, 116, .2); }

@media (prefers-reduced-motion: reduce) { .ts-wave i { animation: none; } }
@media (max-width: 960px) {
  .ts-grid { grid-template-columns: 1fr; }
  .ts-visual { order: -1; }
}
@media (max-width: 420px) {
  .ts-sticker { font-size: .8rem; padding: .5rem .7rem; }
  .ts-sticker.one { left: 0; } .ts-sticker.two { right: 0; }
  .ts-actions .button { width: 100%; }
}

/* Plan cards: the translator line */
.tier-translate { display: grid; grid-template-columns: auto 1fr; gap: .1rem .65rem; align-items: center; background: var(--tint); border-radius: var(--radius-sm); padding: .7rem .8rem; }
.tier-translate svg { grid-row: span 2; width: 1.9rem; height: 1.9rem; padding: .4rem; border-radius: 10px; background: var(--signal); color: #fff; }
.tier-translate strong { font-size: .95rem; line-height: 1.25; }
.tier-translate span { font-size: .82rem; color: var(--ink-soft); line-height: 1.3; }
.hero-chips li.chip-translate { background: var(--tint); border-color: transparent; color: var(--signal-deep); }
.hero-chips li.chip-translate svg { color: var(--signal); }
.tier-card .tier-list { flex: 1; }

/* Hero banner: free translator teaser (homepage) */
.hero-promo { margin-top: 2.25rem; max-width: 36rem; display: grid; grid-template-columns: auto 1fr; gap: .9rem 1rem; align-items: center; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: 0 18px 40px -18px rgba(5, 10, 40, .55); position: relative; }
.hero-promo { border-left: 5px solid var(--on); }
.hp-icon { width: 3rem; height: 3rem; border-radius: 14px; background: var(--signal); color: #fff; display: grid; place-items: center; }
.hp-icon svg { width: 1.6rem; height: 1.6rem; }
.hp-copy { display: grid; gap: .1rem; min-width: 0; }
.hp-tag { justify-self: start; background: var(--on); color: #fff; font: 600 .66rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 99px; margin-bottom: .2rem; }
.hp-copy strong { font: 700 1.12rem/1.25 var(--font-display); letter-spacing: -.01em; }
.hp-copy span:last-child { color: var(--ink-soft); font-size: .95rem; line-height: 1.4; }
.hp-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; padding-top: .2rem; }
.hp-try { font-weight: 700; color: var(--signal-deep); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.hp-try small { font: 500 .72rem var(--font-mono); color: var(--ink-soft); background: var(--paper); border-radius: 99px; padding: .1rem .45rem; margin-left: .3rem; border: 0; }
.hp-try:hover { color: var(--signal); }
.hp-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: #fff; background: var(--ink); text-decoration: none; border-radius: 99px; padding: .55rem 1.05rem; font-size: .95rem; }
.hp-more:hover { background: var(--signal-deep); }

/* Trust signals near the buy buttons */
.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; margin-top: 1.5rem; padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; }
.trust-row > span { display: inline-flex; align-items: center; gap: .5rem; }
.trust-row svg, .trust-mini svg { width: 1.15rem; height: 1.15rem; color: var(--on); flex: none; }
.trust-row .cards { margin-left: auto; gap: .35rem; }
.trust-row .cards b { font: 700 .7rem var(--font-body); letter-spacing: .04em; border: 1px solid var(--line); border-radius: 6px; padding: .25rem .45rem; color: var(--ink-soft); background: var(--paper); }
.trust-mini { margin-top: .9rem; font-size: .85rem; color: var(--ink-soft); text-align: center; line-height: 1.5; }
.trust-mini svg { display: inline-block; vertical-align: -.2em; margin-right: .35rem; }
@media (max-width: 640px) { .trust-row .cards { margin-left: 0; } }
