/* trAIslator.com landing page; tokens and shared pieces (buttons, segment cards, stats) come from style.css. */
body.lp { height: auto; font-size: 16px; line-height: 1.6; }
.lp-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
.brand.lg { font-size: 20px; }
.btn.xl { height: 52px; padding: 0 24px; border-radius: 12px; font-size: 17px; }
.btn.mint { background: #5cc8bc; border-color: #5cc8bc; color: #0d0f12; font-weight: 700; }
.btn.mint:hover { background: #8fdcd3; border-color: #8fdcd3; color: #0d0f12; }
.btn.on-teal { background: #fff; border-color: #fff; color: var(--text); }
.btn.on-teal:hover { background: #e1f0ee; border-color: #e1f0ee; color: var(--text); }
.btn.on-teal-ghost { background: none; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn.on-teal-ghost:hover { border-color: #fff; color: #fff; }

/* nav */
.lp-nav { border-bottom: 1px solid var(--line); }
.lp-nav .lp-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 14px; }
.lp-links { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 500; }
.lp-links a { position: relative; padding: 10px 0; color: var(--text-3); text-decoration: none; }
.lp-links a:hover { color: var(--text); }
/* underline grows from the inline-start side (--dir from style.css: 1 in LTR, -1 in RTL) */
.lp-links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 6px; height: 2px; border-radius: 1px; background: var(--accent);
  scale: 0 1; transform-origin: calc(50% - 50% * var(--dir, 1)) 50%; transition: scale var(--dur-2) var(--ease-out-3);
}
.lp-links a:hover::after, .lp-links a:focus-visible::after { scale: 1 1; }
.lp-nav-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 72px 56px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 14px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 14px; font-weight: 600; line-height: 1.4;
}
.eyebrow-pill::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(38px, 5vw, 60px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.hero-lead { margin: 0; max-width: 560px; font-size: 19px; line-height: 1.65; color: var(--text-3); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 16px 36px; }
.hero-facts dt { width: fit-content; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-facts dt { background: linear-gradient(120deg, var(--accent-2), var(--accent) 45%, #14897e); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.hero-facts dd { margin: 0; font-size: 14px; color: var(--muted); }
.hero-demo { position: relative; flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.stage { overflow: hidden; border-radius: 20px; background: #0d0f12; color: #f3f4f6; box-shadow: 0 30px 60px rgba(21, 24, 29, 0.22); }
.stage-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 22px; border-bottom: 1px solid #222730; }
.stage-title { flex: 1 1 200px; min-width: 0; font-size: 14px; font-weight: 500; color: #c7cdd6; }
.stage-body { min-height: 300px; padding: 28px 28px 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }
.demo-older { margin: 0; font-size: 19px; line-height: 1.45; font-weight: 500; color: #9aa3b0; }
.demo-src { margin: 0 0 8px; font-size: 14px; color: #8b93a1; text-align: start; }
.src-code { margin-inline-end: 8px; font-family: var(--mono); font-size: 11px; }
.demo-current { margin: 0; font-size: 30px; line-height: 1.3; font-weight: 700; color: #f7f8fa; }
.stage-langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px 20px; border-top: 1px solid #222730; }
.stage-langs button {
  height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #2e343d; background: #1a1e24;
  color: #d5dae1; font-size: 14px; font-weight: 500; cursor: pointer;
}
.stage-langs button[aria-pressed=true] { border-color: #5cc8bc; background: rgba(92, 200, 188, 0.16); color: #8fdcd3; font-weight: 600; }
.mini-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.mini-card { flex: 1 1 240px; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; line-height: 1.5; }
.mini-card svg { margin-top: 2px; }
.mini-card strong { display: block; font-weight: 600; }
.mini-card span { color: var(--muted); }

/* use cases */
.band { background: var(--panel); border-block: 1px solid var(--line); }
.band .lp-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 26px; }
.band-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.band-items { flex: 1 1 600px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 17px; font-weight: 600; color: var(--text-2); }

/* sections */
.section { display: flex; flex-direction: column; gap: 40px; padding-block: 96px 40px; }
.section-head { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.section-head h2, .product-copy h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
.section-head p { margin: 0; font-size: 18px; color: var(--text-3); }

.feature-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.feature { position: relative; isolation: isolate; flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.feature h3 { margin: 0; font-size: 18px; font-weight: 600; }
.feature p { margin: 0; font-size: 15px; color: var(--text-3); }
.f-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.f-icon.blue { background: var(--revise-soft); color: var(--revise); }

.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 16px; }
.steps li { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.step-n { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--accent); }
.steps h3 { margin: 0; font-size: 22px; font-weight: 700; }
.steps p { margin: 0; color: var(--text-3); }
.flow { margin: 0; display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.flow-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.flow-node { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 12px; background: var(--bg); }
.flow-node span { font-size: 13px; color: var(--muted); }
.flow-node strong { font-size: 16px; font-weight: 600; }
.flow-node.teal { background: var(--accent-soft); }
.flow-node.teal span { color: var(--accent-2); }
.flow-node.dark { background: var(--text); color: #f3f4f6; }
.flow-node.dark span { color: #a3abb8; }
.flow-arrow { display: grid; place-items: center; width: 28px; color: #8a919c; }
.flow figcaption { font-size: 14px; color: var(--muted); }

.product { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 24px 96px; }
.product-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--text-2); }
.checks li { display: flex; gap: 10px; }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checks.light li::before { background: #5cc8bc; }
.checks li[hidden] { display: none; }
.product-shot { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; background: #e8e9e5; }
.shot-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--panel); font-size: 14px; }
.shot-bar strong { flex: 1 1 200px; font-weight: 600; }
.shot-bar .btn { pointer-events: none; }
.product-shot .seg { padding: 14px 16px; }
.product-shot .seg-row.source .text { font-size: 15px; }
.product-shot .seg-row .text { font-size: 14px; }
.shot-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.shot-stats .stat { flex: 1 1 100px; background: var(--panel); }
.shot-stats .stat .n { font-size: 18px; }

.langs-section { background: var(--panel); border-block: 1px solid var(--line); }
.langs-section .section { padding-block: 88px; gap: 32px; }
.lang-group { display: flex; flex-direction: column; gap: 14px; }
.lang-group h3 { margin: 0; font-size: 16px; font-weight: 600; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-chip { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 15px; font-weight: 600; }
.lang-chip.outline { background: none; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 500; }

.dark-section { background: radial-gradient(70% 50% at 50% 0%, rgb(92 200 188 / 0.1), transparent 70%), #0d0f12; color: #f3f4f6; }
.dark-section .eyebrow { color: #5cc8bc; }
.dark-section .section-head p { color: #c7cdd6; }
.dark-section .section { padding-block: 96px; }
.sec-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.sec-card { position: relative; isolation: isolate; flex: 1 1 250px; display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid #2a2f38; border-radius: 16px; background: #14171c; }
.sec-card svg { color: #5cc8bc; }
.sec-card h3 { margin: 0; font-size: 18px; font-weight: 600; }
.sec-card p { margin: 0; font-size: 15px; color: #a3abb8; }

.plans { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; }
.plan { flex: 1 1 300px; display: flex; flex-direction: column; gap: 18px; padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.plan h3 { margin: 0; font-size: 20px; font-weight: 700; }
.plan-for { margin: 0; font-size: 15px; color: var(--muted); }
.price-line { margin: 0; }
.price { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.per { color: var(--muted); }
.plan .checks { font-size: 15px; }
.plan .btn { margin-top: auto; }
/* Featured plan: a 1.5px rim of light around a dark panel. The rim is a big pre-painted conic
   gradient (::before) seen through the gap around the inner panel (::after); on reveal it turns
   twice and rests (border beam, a Magic UI pattern; our CSS). No border, padding +1 = same box. */
.plan.featured { position: relative; isolation: isolate; overflow: hidden; padding: 31px; border: 0; background: var(--text); color: #f3f4f6; }
.plan.featured::before {
  content: ""; position: absolute; z-index: -2; left: -75%; top: 50%; width: 250%; aspect-ratio: 1; margin-top: -125%; pointer-events: none;
  background: conic-gradient(rgb(255 255 255 / 0.12) 0 58%, #5cc8bc 80%, #e1f7f4 83%, rgb(255 255 255 / 0.12) 84%);
}
.plan.featured::after { content: ""; position: absolute; z-index: -1; inset: 1.5px; border-radius: 16.5px; background: var(--text); pointer-events: none; }
.plan.featured .plan-for, .plan.featured .per { color: #a3abb8; }
.plan.featured .checks { color: #e4e7ec; }

.faq { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-block: 24px 96px; }
.faq-head { flex: 1 1 300px; }
.faq-list { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.faq details { padding: 20px 0; border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
/* The glyph is decorative (empty alt text after the "/"), so the question's accessible name does
   not end in "plus"; <details> already says whether it is open. The plain "+" is the fallback
   for browsers without alt text in content. */
.faq summary::after { content: "+"; content: "+" / ""; flex: none; display: grid; place-items: center; width: 24px; height: 27px; font-size: 24px; font-weight: 400; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { rotate: 45deg; } /* "+" turns into "×" */
.faq details p { margin: 12px 0 0; color: var(--text-3); }

.cta { padding: 0 32px 96px; }
.cta-box { position: relative; isolation: isolate; overflow: hidden; max-width: 1200px; margin: 0 auto; padding: 56px; border-radius: 24px; background: var(--accent); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.cta-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta-copy h2 { margin: 0; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
.cta-copy p { margin: 0; font-size: 18px; color: #d6efeb; }
.cta-actions { flex: 1 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-actions .row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-contact { margin: 0; font-size: 15px; color: #d6efeb; }
.cta-contact a { color: #fff; }

.lp-foot { background: var(--panel); border-top: 1px solid var(--line); }
.lp-foot .lp-wrap { display: flex; flex-direction: column; gap: 36px; padding-block: 48px 32px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.foot-brand { flex: 2 1 300px; display: flex; flex-direction: column; gap: 12px; }
.foot-brand p { margin: 0; max-width: 320px; font-size: 15px; color: var(--muted); }
.foot-col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.foot-col strong { font-size: 14px; font-weight: 600; color: var(--muted); }
.foot-col a, .foot-col span { padding: 4px 0; color: var(--text-2); text-decoration: none; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  .lp-wrap { padding-inline: 18px; }
  .hero { padding-block: 40px; gap: 32px; }
  .section { padding-block: 64px 24px; }
  .stage-body { padding: 20px; min-height: 240px; }
  .demo-current { font-size: 24px; }
  .cta { padding: 0 18px 64px; }
  .cta-box { padding: 32px 24px; }
  .flow-arrow { transform: rotate(90deg); width: 100%; }
}

/* ==== Motion and effects ====
   Tokens (--ease-*, --dur-*, --dir) and @keyframes pop come from style.css. Only transform,
   translate, scale, rotate and opacity animate. Loops are finite or pause off screen (.is-off,
   set by landing.js). Nothing is hidden without JS, under reduced motion or in print: the hiding
   rule needs html.reveal-ready, which landing.js adds only when motion is allowed. Border beam,
   sheen, spotlight, dot grid and drifting glow follow Magic UI / Aceternity patterns; our CSS. */
@keyframes lp-rise { from { opacity: 0; translate: 0 16px; } }
@keyframes lp-fade { from { opacity: 0; } }
@keyframes lp-chip { from { opacity: 0; scale: 0.9; } }
@keyframes lp-drift { to { transform: translate(4%, 3%) rotate(5deg) scale(1.06); } }
@keyframes lp-beam { to { rotate: 1turn; } }
@keyframes lp-shade { to { opacity: 1; } }
/* the same sweep under two names, so hovering can restart it */
@keyframes lp-sheen-a { to { translate: calc(120% * var(--dir, 1)) 0; } }
@keyframes lp-sheen-b { to { translate: calc(120% * var(--dir, 1)) 0; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* nav: sticky on wide screens, and only while it fits on one row (landing.js sets html.nav-one-row;
   Vietnamese and Spanish wrap it to two rows even at full width). Opaque, no backdrop-filter.
   A soft shadow fades in over the first 96px of scroll where scroll-driven animations exist.
   scroll-padding keeps both anchor jumps and keyboard focus clear of the sticky nav
   (WCAG 2.4.11 Focus Not Obscured). */
@media screen and (min-width: 1024px) {
  html.nav-one-row { scroll-padding-top: 80px; }
  .nav-one-row .lp-nav { position: sticky; top: 0; z-index: 10; background: var(--bg); }
  .nav-one-row .lp-nav::after {
    content: ""; position: absolute; inset-inline: 0; top: 100%; height: 14px; pointer-events: none;
    background: linear-gradient(rgb(21 24 29 / 0.08), transparent); opacity: 0;
  }
  @supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
      .nav-one-row .lp-nav::after { animation: lp-shade linear both; animation-timeline: scroll(root); animation-range: 0px 96px; }
    }
  }
}

/* hero band: a soft teal/mint/blue glow drifts 4 x 22s and comes to rest where it started.
   One composited layer, paused off screen; no blur filter and no background-position animation. */
.hero-band { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.hero-band::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(36% 44% at 16% 30%, rgb(11 110 102 / 0.12), transparent 70%),
    radial-gradient(32% 40% at 84% 18%, rgb(92 200 188 / 0.14), transparent 70%),
    radial-gradient(40% 42% at 62% 88%, rgb(41 82 163 / 0.08), transparent 70%);
}
/* a faint dot grid behind the demo, fading out radially */
.hero-demo::before {
  content: ""; position: absolute; inset: -56px -64px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgb(21 24 29 / 0.22) 1.1px, transparent 1.6px) 0 0 / 20px 20px;
  -webkit-mask: radial-gradient(closest-side, #000 60%, transparent);
  mask: radial-gradient(closest-side, #000 60%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-band::before { animation: lp-drift 22s var(--ease-in-out-3) 4 alternate; }
  /* entrance: all but the h1 (the LCP element) rise 16px, 60ms apart */
  .hero .eyebrow-pill, .hero-lead, .hero-ctas, .hero-facts, .hero-demo { animation: lp-rise var(--dur-4) var(--ease-out-4) backwards; }
  .hero-lead { animation-delay: 60ms; }
  .hero-ctas { animation-delay: 120ms; }
  .hero-facts { animation-delay: 180ms; }
  .hero-demo { animation-delay: 240ms; }
  /* the demo's live dot keeps pulsing while the hero is on screen */
  .hero-band .stage .status-dot.live { animation-iteration-count: infinite; }
  /* caption words appear one by one; opacity only, since inline spans cannot be transformed */
  .demo-current .w { animation: lp-fade 360ms var(--ease-out-3) backwards; animation-delay: calc(min(var(--i, 0), 24) * 45ms); }
  .demo-current.intro .w { animation-delay: calc(700ms + min(var(--i, 0), 24) * 45ms); }
}
.hero-band.is-off::before, .hero-band.is-off .status-dot.live, .product-shot.is-off .dots span { animation-play-state: paused; }

/* scroll reveals: landing.js adds .in and --i (the block's place in the batch that entered together) */
.flow-row > :nth-child(2) { --n: 1; }
.flow-row > :nth-child(3) { --n: 2; }
.flow-row > :nth-child(4) { --n: 3; }
.flow-row > :nth-child(5) { --n: 4; }
.flow-row > :nth-child(6) { --n: 5; }
.flow-row > :nth-child(7) { --n: 6; }
@media screen and (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal]:not(.in, :focus-within) { opacity: 0; }
  .reveal-ready [data-reveal].in { --d: calc(min(var(--i, 0), 6) * 80ms); animation: lp-rise var(--dur-4) var(--ease-out-4) var(--d) backwards; }
  /* how it works: the pipeline lights up in order; arrows only fade (they flip in RTL and turn on phones) */
  .flow.in .flow-node { animation: lp-rise var(--dur-4) var(--ease-out-4) backwards; }
  .flow.in .flow-arrow { animation: lp-fade var(--dur-3) var(--ease-out-3) backwards; }
  .flow.in .flow-row > * { animation-delay: calc(var(--d, 0ms) + 200ms + var(--n, 0) * 90ms); }
  /* product shot: plays like a live session; card 1, card 2, stats, then the "revised" tag pops */
  .product-shot.in .seg, .product-shot.in .shot-stats { animation: lp-rise var(--dur-4) var(--ease-out-4) backwards; }
  .product-shot.in .seg:nth-of-type(1) { animation-delay: calc(var(--d, 0ms) + 150ms); }
  .product-shot.in .seg:nth-of-type(2) { animation-delay: calc(var(--d, 0ms) + 450ms); }
  .product-shot.in .shot-stats { animation-delay: calc(var(--d, 0ms) + 650ms); }
  .product-shot.in .tag.revised { animation: pop 0.35s var(--ease-spring-2) calc(var(--d, 0ms) + 900ms) backwards; }
  /* language chips pop in, 18ms apart (renderLangChips sets each chip's --i) */
  .lang-group.in .lang-chip { animation: lp-chip var(--dur-3) var(--ease-spring-2) backwards; animation-delay: calc(var(--d, 0ms) + 120ms + min(var(--i, 0), 20) * 18ms); }
  /* the featured plan's rim light travels around twice, then rests */
  .plan.featured.in::before { animation: lp-beam 5s linear calc(var(--d, 0ms) + 500ms) 2; }
  /* one sheen sweep on the primary CTAs (the hero's on load, the CTA box's on reveal) */
  .hero .btn.sheen::after { animation: lp-sheen-a 1s var(--ease-in-out-3) 900ms; }
  .cta-box.in .btn.sheen::after { animation: lp-sheen-a 1s var(--ease-in-out-3) calc(var(--d, 0ms) + 600ms); }
  .lp .btn.sheen.swept::after { animation: none; } /* landing.js marks it after the first sweep, or when a hover sweep starts */
}

/* cards: lift on hover; on a mouse a soft light follows the cursor (landing.js sets --mx/--my) */
.feature { --spot: rgb(11 110 102 / 0.09); }
.sec-card { --spot: rgb(92 200 188 / 0.12); }
@media (hover: hover) {
  .feature, .sec-card, .plan { transition: border-color var(--dur-2), box-shadow var(--dur-2) var(--ease-out-3), translate var(--dur-2) var(--ease-out-3); }
  .feature:hover { border-color: rgb(11 110 102 / 0.4); }
  .sec-card:hover { border-color: rgb(92 200 188 / 0.45); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature:hover, .sec-card:hover, .plan:hover { translate: 0 -3px; }
  .feature:hover, .plan:hover { box-shadow: 0 14px 30px rgb(21 24 29 / 0.08); }
  .sec-card:hover { box-shadow: 0 14px 30px rgb(0 0 0 / 0.35); }
  /* after the reveal rules above, so hovering restarts the sweep */
  .lp .btn.sheen:hover::after { animation: lp-sheen-b 1s var(--ease-in-out-3); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .feature::before, .sec-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 70%);
    transition: opacity var(--dur-3);
  }
  .feature:hover::before, .sec-card:hover::before { opacity: 1; }
}

/* FAQ: the "+" turns to "x"; answers slide open where height can animate to auto (Chromium) */
@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: rotate var(--dur-3) var(--ease-out-3); }
}
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq details { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size var(--dur-3) var(--ease-out-3), content-visibility var(--dur-3) allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
}

/* CTA box: static grid lines and a white corner light (alpha <= .12 keeps the white text >= 4.5:1),
   mirrored in RTL. The sheen travels toward the inline end. */
.cta-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 75% at 100% 0%, rgb(255 255 255 / 0.12), transparent 70%),
    linear-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgb(255 255 255 / 0.07) 1px, transparent 1px) 0 0 / 32px 32px;
  -webkit-mask: radial-gradient(85% 110% at 100% 0%, #000, transparent 75%);
  mask: radial-gradient(85% 110% at 100% 0%, #000, transparent 75%);
}
[dir=rtl] .cta-box::before { scale: -1 1; }
.btn.sheen { position: relative; isolation: isolate; overflow: hidden; }
/* The band lies behind the label: on the teal primary button its white peak stays at .12 so the
   white text keeps >= 4.5:1 (4.75:1 at the peak); the white on-teal button gets a teal band. */
.btn.sheen::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 25%, rgb(255 255 255 / 0.12) 50%, transparent 75%);
  translate: calc(-120% * var(--dir, 1)) 0;
}
.btn.on-teal.sheen::after { background: linear-gradient(105deg, transparent 25%, rgb(11 110 102 / 0.14) 50%, transparent 75%); }

@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; }
}
