/* Jeevan AI website.

   Look: ink and paper with one colour. The page is a warm near-black (a cream paper in light), text is ink, depth is
   hairlines. Jeevan green appears only where Jeevan is at work: the main button, the agent's words, progress.
   Coral marks a call that is live right now, and nothing else. Brackets go around the thing worth reading first.

   Type: Anek Latin (with Anek Devanagari and Anek Gujarati for the other scripts) and Fragment Mono for labels.
   Headlines use Anek's wide cut. */

/* ---------- tokens ---------- */
:root {
  --ground: #0d0e0b;
  --sunken: #080907;
  --panel: #141610;
  --panel-2: #1a1d16;
  --line: #24281f;
  --line-2: #3a4033;
  --ink: #f2f2e4;
  --ink-2: #b9bba8;
  --ink-3: #868977;
  --accent: #8edcb6;
  --accent-soft: rgba(142, 220, 182, 0.12);
  --on-accent: #0e1d16;
  --live: #ff7b57;

  --sans: "Anek Latin", "Anek Devanagari", "Anek Gujarati", ui-sans-serif, system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --gap: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ground: #ffffeb;
  --sunken: #f6f6e0;
  --panel: #fffff7;
  --panel-2: #f1f1da;
  --line: #e3e3cc;
  --line-2: #c9c9af;
  --ink: #1b1b17;
  --ink-2: #4d4d42;
  --ink-3: #6b6b5d;
  --accent: #0f5c4a;
  --accent-soft: rgba(15, 92, 74, 0.09);
  --on-accent: #ffffeb;
  --live: #e2562c;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, pre { font-family: var(--mono); font-size: 0.86em; }
svg { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[lang="hi"], [lang="gu"] { line-height: 1.7; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ground); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.br { color: var(--accent); }

.h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  text-wrap: balance;
}
.h3x {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  font-variation-settings: "wdth" 110;
  text-wrap: balance;
}
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: var(--ink-2); max-width: 44em; text-wrap: pretty; }
.lead code, .anytime code, .note code, .rows p code { color: var(--ink); background: var(--panel-2); padding: 0.1em 0.4em; border-radius: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 4px;
  font-weight: 500; font-size: 0.98rem; white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.btn-lg { height: 52px; padding: 0 24px; font-size: 1.05rem; }
.btn-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn-main:hover { transform: translateY(-2px); }
.btn-main .arr { transition: transform 0.3s var(--ease); }
.btn-main:hover .arr { transform: translateX(4px); }
.btn-line:hover { border-color: var(--ink); }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 4px;
  transition: border-color 0.25s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .moon, :root[data-theme="light"] .sun { display: none; }
.text-link { display: inline-flex; gap: 8px; color: var(--accent); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link span { transition: transform 0.3s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* ---------- top bar ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-in { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark rect { fill: var(--ink); }
.brand-mark path { fill: var(--ground); }
.brand-text { display: grid; line-height: 1.1; }
.brand-text b { font-weight: 700; font-size: 1.08rem; font-variation-settings: "wdth" 115; letter-spacing: -0.01em; }
.brand-text small { font-family: var(--mono); font-size: 0.66rem; color: var(--ink-3); letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: 0.98rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: clamp(104px, 15vh, 150px); overflow: hidden; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38%; pointer-events: none; }
.hero-in { position: relative; z-index: 1; }
.hero-title {
  margin-top: 22px;
  font-size: clamp(2.4rem, 6.4vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  font-variation-settings: "wdth" 114;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span { display: block; }
.hero-title em { font-style: normal; color: var(--accent); }
.js .hero-title .line > span { transform: translateY(105%); }
.js .hero.is-in .hero-title .line > span { transform: none; transition: transform 1.1s var(--ease); }
.js .hero.is-in .hero-title .line:nth-child(2) > span { transition-delay: 0.09s; }
.js .hero.is-in .hero-title .line:nth-child(3) > span { transition-delay: 0.18s; }
.hero-lead { margin-top: 28px; max-width: 37em; font-size: clamp(1.1rem, 1.55vw, 1.3rem); color: var(--ink-2); text-wrap: pretty; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }
.hero-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.js .hero .hero-lead, .js .hero .hero-cta, .js .hero .hero-note, .js .hero .label, .js .hero .caption { opacity: 0; transform: translateY(14px); }
.js .hero.is-in .hero-lead, .js .hero.is-in .hero-cta, .js .hero.is-in .hero-note, .js .hero.is-in .label, .js .hero.is-in .caption {
  opacity: 1; transform: none; transition: opacity 0.9s var(--ease) 0.25s, transform 0.9s var(--ease) 0.25s;
}
.js .hero.is-in .hero-cta { transition-delay: 0.35s; }
.js .hero.is-in .hero-note { transition-delay: 0.45s; }
.js .hero.is-in .caption { transition-delay: 0.7s; }

.hero-caption-wrap { position: relative; z-index: 1; margin-top: auto; padding-top: 48px; padding-bottom: clamp(28px, 6vh, 56px); }
.caption {
  display: inline-flex; align-items: center; gap: 16px; max-width: 100%;
  padding: 10px 16px 10px 12px; min-height: 48px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-radius: 4px;
}
.caption-who { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; flex: none; }
.caption-who b { font-weight: 400; color: var(--ink); }
.caption-who small { font-size: inherit; color: var(--ink-3); text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 0.85rem; }
.caption.is-agent .caption-who b { color: var(--accent); }
.caption-text { font-size: 1.08rem; min-width: 1ch; line-height: 1.5; }
.caption-text::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; background: var(--accent); vertical-align: -0.12em; animation: blink 1s steps(2) infinite; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); display: inline-block; flex: none; animation: pulse 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- phrases strip ---------- */
.strip { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--sunken); }
.strip-track { display: flex; gap: 56px; width: max-content; animation: slide 46s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-track span { display: inline-flex; align-items: baseline; gap: 12px; white-space: nowrap; font-size: 1.1rem; color: var(--ink-2); }
.strip-track small { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--ink-3); text-transform: uppercase; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- statement ---------- */
.statement { padding: var(--gap) 0; }
.statement-text {
  font-size: clamp(1.6rem, 3.7vw, 3.05rem);
  line-height: 1.16; letter-spacing: -0.022em; font-weight: 500;
  font-variation-settings: "wdth" 106;
  max-width: 24em; text-wrap: pretty;
}
.statement-text .w { opacity: 0.16; transition: opacity 0.35s; }
.statement-text .w.is-lit { opacity: 1; }
.statement-text mark { background: none; color: var(--accent); }
.statement-foot { margin-top: 40px; display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 0.82rem; color: var(--ink-3); }
.statement-foot .rule { width: 56px; height: 1px; background: var(--line-2); }

/* ---------- the call ---------- */
.call { position: relative; border-block: 1px solid var(--line); background: var(--sunken); }
.call-in { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 96px); align-items: center; min-height: 100svh; padding-block: clamp(96px, 12vh, 132px) clamp(40px, 6vh, 64px); }
.call .h2 { margin-top: 18px; font-size: clamp(1.9rem, 3.5vw, 2.9rem); }
.steps { margin-top: clamp(24px, 4vh, 44px); display: grid; position: relative; }
.steps::before { content: ""; position: absolute; left: 15px; top: 20px; bottom: 20px; width: 1px; background: var(--line-2); }
.step { display: grid; grid-template-columns: 32px 1fr; gap: 18px; padding: 11px 0; opacity: 0.36; transition: opacity 0.45s; position: relative; }
.step.is-on { opacity: 1; }
.step-n {
  width: 31px; height: 31px; display: grid; place-items: center; position: relative; z-index: 1;
  font-family: var(--mono); font-size: 0.7rem;
  background: var(--sunken); border: 1px solid var(--line-2); border-radius: 50%;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.step.is-on .step-n { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.step h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: "wdth" 108; line-height: 1.3; }
.step p { color: var(--ink-2); font-size: 0.98rem; max-width: 30em; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease), margin 0.5s var(--ease); overflow: hidden; }
.step p { display: block; max-height: 0; transition: max-height 0.55s var(--ease), margin 0.55s var(--ease); }
.step.is-on p { max-height: 7em; margin-top: 4px; }

.console { border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.console-top, .console-foot { display: flex; align-items: center; gap: 16px; padding: 12px 16px; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }
.console-top { border-bottom: 1px solid var(--line); }
.console-foot { border-top: 1px solid var(--line); }
.console-live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; flex: none; }
.console-biz { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-time { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.console-body { height: min(54svh, 500px); overflow: hidden; position: relative; }
.console-scroll { padding: 18px 16px; display: grid; gap: 18px; transition: transform 0.7s var(--ease); }
.grp { display: grid; gap: 10px; opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.6s var(--ease); }
.grp.is-on { opacity: 1; transform: none; }
.grp.is-past { opacity: 0.4; }
.say { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: baseline; }
.say > span { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.say p { font-size: 1.06rem; line-height: 1.5; }
.say.agent > span { color: var(--accent); }
.say.agent p { color: var(--accent); }
.say.filler p { font-style: italic; opacity: 0.8; }
.ev { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: 4px; background: var(--ground); }
.ev-tag { font-family: var(--mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-accent); background: var(--accent); padding: 2px 6px; border-radius: 2px; flex: none; }
.ev code { color: var(--ink-2); font-size: 0.76rem; line-height: 1.5; overflow-wrap: anywhere; }
.after { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.after div { background: var(--panel); padding: 10px 12px; display: grid; gap: 2px; }
.after small { font-family: var(--mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.after b { font-weight: 500; font-size: 0.98rem; }
.console-wave { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.console-wave i { width: 2px; height: 100%; background: var(--accent); border-radius: 1px; transform-origin: center; animation: bar 1.1s ease-in-out infinite; }
.console-wave i:nth-child(2) { animation-delay: -0.9s; } .console-wave i:nth-child(3) { animation-delay: -0.3s; }
.console-wave i:nth-child(4) { animation-delay: -0.6s; } .console-wave i:nth-child(5) { animation-delay: -0.15s; }
.console-wave i:nth-child(6) { animation-delay: -0.75s; } .console-wave i:nth-child(7) { animation-delay: -0.45s; }
@keyframes bar { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }

/* ---------- sections ---------- */
.sec { padding: var(--gap) 0; }
.sec-sunken { background: var(--sunken); border-block: 1px solid var(--line); }
.sec-more { margin-top: clamp(28px, 4vw, 44px); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 60rem; }

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- integrations ---------- */
.moments { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding-top: 34px; }
.moments-line { position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--line-2); overflow: hidden; }
.moments-line i { position: absolute; top: 0; left: 0; width: 22%; height: 100%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: travel 5s linear infinite; }
@keyframes travel { from { transform: translateX(-100%); } to { transform: translateX(460%); } }
.moment { position: relative; padding: 4px 28px 8px 0; display: grid; gap: 12px; align-content: start; }
.moment + .moment { padding-left: 28px; border-left: 1px solid var(--line); }
.moment-dot { position: absolute; top: -33px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ground); border: 1px solid var(--accent); }
.moment + .moment .moment-dot { left: 28px; }
.moment-when { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.moment h3 { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; font-variation-settings: "wdth" 110; }
.moment p:not(.moment-when) { color: var(--ink-2); font-size: 1rem; }
.chip-code { justify-self: start; margin-top: 6px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink-2); font-size: 0.74rem; background: var(--panel); overflow-wrap: anywhere; }

.anytime, .note { margin-top: clamp(40px, 5vw, 64px); padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: baseline; }
.anytime p:last-child, .note p:last-child { color: var(--ink-2); font-size: 1.08rem; }
.anytime b, .note b { color: var(--ink); font-weight: 600; }
.dest { margin-top: 36px; display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 0 24px; align-items: baseline; }
.dest-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dest-list li { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.95rem; color: var(--ink-2); transition: color 0.25s, border-color 0.25s; }
.dest-list li:hover { color: var(--ink); border-color: var(--ink); }
.dest-list .dest-own { border-color: var(--accent); color: var(--accent); }

/* ---------- how it works ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-card { display: grid; gap: 10px; align-content: start; }
.how-art { height: 290px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--ground); padding: 18px; display: grid; align-items: center; margin-bottom: 14px; overflow: hidden; }
.how-n { font-family: var(--mono); font-size: 0.74rem; color: var(--accent); letter-spacing: 0.08em; }
.how-card h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; font-variation-settings: "wdth" 110; line-height: 1.15; }
.how-card > p { color: var(--ink-2); }
.mock { display: grid; gap: 10px; }
.mock-label { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.mock-prompt { font-size: 0.95rem; line-height: 1.45; min-height: 5.8em; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel); }
.mock-prompt::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--accent); vertical-align: -0.12em; animation: blink 1s steps(2) infinite; }
.mock-nodes { display: grid; gap: 6px; }
.mock-nodes li, .mock-rows li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 0.86rem; }
.mock-nodes b, .mock-rows b { font-weight: 500; }
.mock-nodes small, .mock-rows small { font-family: var(--mono); font-size: 0.64rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.mock-nodes li { border-left: 2px solid var(--accent); }
.mock-rows { display: grid; gap: 8px; }
.mock-rows li { display: grid; grid-template-columns: 1fr auto; padding: 10px 12px; }
.mock-rows span { grid-column: 1; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }
.mock-rows small { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); border: 1px solid var(--accent); padding: 2px 7px; border-radius: 999px; }
.on-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.mock-test { justify-items: center; text-align: center; gap: 6px; }
.mock-strong { font-size: 1.15rem; font-weight: 600; }
.mock-quiet { font-size: 0.86rem; color: var(--ink-3); }
.rings { position: relative; width: 112px; height: 112px; margin-bottom: 12px; display: grid; place-items: center; }
.rings i { position: absolute; inset: 0; border: 1px solid var(--live); border-radius: 50%; opacity: 0; animation: ring 2.7s ease-out infinite; }
.rings i:nth-child(2) { animation-delay: 0.9s; } .rings i:nth-child(3) { animation-delay: 1.8s; }
.rings b { width: 40px; height: 40px; border-radius: 50%; background: var(--live); }
@keyframes ring { from { transform: scale(0.36); opacity: 0.9; } to { transform: scale(1); opacity: 0; } }

/* ---------- use cases ---------- */
.cases { display: grid; grid-template-columns: 250px 1fr; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.cases-tabs { display: grid; align-content: start; border-right: 1px solid var(--line-2); background: var(--sunken); }
.cases-tabs button { text-align: left; padding: 18px 22px; font-size: 1.08rem; color: var(--ink-3); border-bottom: 1px solid var(--line); position: relative; transition: color 0.25s, background 0.25s; }
.cases-tabs button:last-child { border-bottom: 0; }
.cases-tabs button:hover { color: var(--ink); }
.cases-tabs button[aria-selected="true"] { color: var(--ink); background: var(--ground); font-weight: 600; }
.cases-tabs button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; }
.cases-tabs button[aria-selected="true"]::before { transform: scaleY(1); transition: transform var(--dur, 0.4s) linear; }
.cases-stage { position: relative; display: grid; }
.case { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 48px); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.45s, transform 0.6s var(--ease), visibility 0s 0.45s; }
.case.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.case-text { display: grid; gap: 14px; align-content: start; }
.case-text h3 { font-size: clamp(1.4rem, 2.3vw, 1.95rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; font-variation-settings: "wdth" 110; text-wrap: balance; }
.case-text p { color: var(--ink-2); }
.case-text ul { display: grid; gap: 8px; margin-top: 6px; }
.case-text li { padding-left: 22px; position: relative; font-size: 0.98rem; }
.case-text li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--accent); }
.case-talk { display: grid; gap: 14px; align-content: center; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }

/* ---------- languages ---------- */
.langs { padding: var(--gap) 0; border-top: 1px solid var(--line); overflow: hidden; }
.langs-band { overflow: hidden; margin-bottom: clamp(48px, 7vw, 88px); }
.langs-track { display: flex; align-items: center; gap: 0.35em; width: max-content; font-size: clamp(4rem, 13vw, 11rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.03em; font-variation-settings: "wdth" 118; will-change: transform; }
.langs-track i { font-style: normal; color: var(--accent); }
.langs-track .out { color: var(--line-2); }
.langs-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.langs-grid .h2 { margin-top: 18px; }
.langs-points { display: grid; }
.langs-points li { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line-2); }
.langs-points li:last-child { border-bottom: 1px solid var(--line-2); }
.langs-points b { font-weight: 600; font-size: 1.12rem; }
.langs-points span { color: var(--ink-2); font-size: 1rem; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.cell { grid-column: span 2; background: var(--ground); padding: 28px; display: grid; gap: 10px; align-content: start; transition: background 0.3s; }
.cell:hover { background: var(--panel); }
.cell-a, .cell-b { grid-column: span 3; }
.cell-c { grid-column: span 6; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: center; }
.cell-c h3, .cell-c p { grid-column: 1; }
.cell-c .meter { grid-column: 2; grid-row: 1 / span 2; }
.cell h3 { font-size: 1.28rem; font-weight: 600; letter-spacing: -0.012em; line-height: 1.2; font-variation-settings: "wdth" 108; }
.cell p { color: var(--ink-2); font-size: 0.99rem; }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.files span { font-family: var(--mono); font-size: 0.74rem; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink-2); }
.search { margin-top: 14px; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.search p { padding: 9px 12px; font-size: 0.9rem; color: var(--ink-2); border-top: 1px solid var(--line); display: flex; gap: 14px; }
.search .search-q { border-top: 0; color: var(--ink); font-family: var(--mono); font-size: 0.82rem; background: var(--panel); }
.search small { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-3); flex: none; padding-top: 2px; min-width: 110px; }
.search mark { background: var(--accent-soft); color: var(--accent); padding: 0 3px; border-radius: 2px; }
.meter { display: grid; gap: 10px; }
.meter b { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -0.02em; font-variation-settings: "wdth" 112; line-height: 1; }
.meter-bar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 80%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) 0.3s; }
.is-in .meter-bar i { transform: none; }
.meter small { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- developers ---------- */
.dev { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.dev-text { display: grid; gap: 18px; }
.dev-points { margin-top: 14px; display: grid; }
.dev-points li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line-2); align-items: baseline; }
.dev-points li:last-child { border-bottom: 1px solid var(--line-2); }
.dev-points code { color: var(--accent); font-size: 0.8rem; }
.code { border: 1px solid var(--line-2); border-radius: 6px; background: var(--ground); overflow: hidden; min-width: 0; }
.code-tabs { display: flex; border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.code-tabs button { padding: 13px 18px; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); border-right: 1px solid var(--line); white-space: nowrap; transition: color 0.2s, background 0.2s; }
.code-tabs button[aria-selected="true"] { color: var(--ink); background: var(--panel); box-shadow: inset 0 -2px 0 var(--accent); }
.code-pane { display: none; padding: 22px; overflow-x: auto; font-size: 0.8rem; line-height: 1.7; color: var(--ink-2); min-height: 330px; }
.code-pane.is-on { display: block; }
.code-pane code { font-size: inherit; }
.code-pane .k { color: var(--ink); font-weight: 600; }
.code-pane .s { color: var(--accent); }
.code-pane .c { color: var(--ink-3); }
.code-foot { padding: 12px 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); }

/* ---------- pricing ---------- */
.price { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 20px; align-items: stretch; }
.rate { border: 1px solid var(--line-2); border-radius: 6px; padding: 30px; display: grid; gap: 18px; align-content: space-between; background: var(--sunken); }
.rate-big { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variation-settings: "wdth" 114; white-space: nowrap; }
.rate-big small { display: block; margin-top: 12px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.04em; font-weight: 400; font-variation-settings: normal; }
.rate-eg { color: var(--ink-2); font-size: 0.96rem; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.plan { background: var(--ground); padding: 28px 24px; display: grid; gap: 8px; align-content: start; position: relative; }
.plan-on { background: var(--panel); }
.plan-on::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); }
.plan h3 { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 400; }
.plan-price { font-size: 2.1rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; font-variation-settings: "wdth" 112; }
.plan-price small { font-size: 0.86rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; font-variation-settings: "wdth" 100; }
.plan-blurb { color: var(--ink-2); font-size: 0.96rem; min-height: 3em; }
.plan ul { margin-top: 12px; display: grid; }
.plan li { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.94rem; color: var(--ink-2); }
.plan li b { color: var(--ink); font-weight: 600; }
.price-note { margin-top: 18px; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); }

/* ---------- partners + trust ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.duo-col { display: grid; gap: 18px; align-content: start; justify-items: start; }
.duo-col > p:not(.label) { color: var(--ink-2); font-size: 1.08rem; max-width: 32em; }
.trust { display: grid; width: 100%; }
.trust li { padding: 13px 0 13px 26px; border-top: 1px solid var(--line-2); position: relative; color: var(--ink-2); }
.trust li:last-child { border-bottom: 1px solid var(--line-2); }
.trust li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 9px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg) translateY(-50%); }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { display: grid; gap: 18px; position: sticky; top: 110px; }
.faq-list details { border-top: 1px solid var(--line-2); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-2); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 1.22rem; font-weight: 500; position: relative; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.2rem; color: var(--accent); transition: transform 0.3s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 44px 24px 0; color: var(--ink-2); max-width: 40em; }

/* ---------- closing ---------- */
.closing { background: var(--ink); color: var(--ground); padding: clamp(96px, 14vw, 190px) 0; --line-2: color-mix(in srgb, var(--ground) 30%, transparent); }
.closing-in { display: grid; gap: 22px; justify-items: start; }
.closing-title { font-size: clamp(2.6rem, 8vw, 6.6rem); line-height: 0.98; letter-spacing: -0.04em; font-weight: 600; font-variation-settings: "wdth" 114; text-wrap: balance; }
.closing .lead { color: color-mix(in srgb, var(--ground) 72%, transparent); }
.closing .btn-main { background: var(--ground); border-color: var(--ground); color: var(--ink); }
.closing .btn-line { color: var(--ground); }
.closing .btn-line:hover { border-color: var(--ground); }
.closing-contact { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 0.82rem; color: color-mix(in srgb, var(--ground) 62%, transparent); }
.closing-contact a:hover { color: var(--ground); }

/* ---------- footer ---------- */
.foot { padding: 72px 0 32px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand { display: grid; gap: 16px; align-content: start; justify-items: start; }
.foot-brand p { color: var(--ink-3); max-width: 24em; font-size: 0.96rem; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col .label { margin-bottom: 6px; }
.foot-col a { color: var(--ink-2); font-size: 0.98rem; transition: color 0.2s; }
.foot-col a:hover { color: var(--ink); }
.foot-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }

/* ---------- inner pages: the page top ---------- */
.page-top { padding: clamp(128px, 19vh, 184px) 0 clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-top-in { display: grid; gap: 22px; justify-items: start; }
.page-title { font-size: clamp(2.5rem, 6.4vw, 5.2rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; font-variation-settings: "wdth" 114; text-wrap: balance; max-width: 15em; }
.page-title em { font-style: normal; color: var(--accent); }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }
/* the list of a page's parts, each a link. Example: 01 Build · 02 Answer · 03 Connect */
.jump { margin-top: clamp(20px, 3vw, 40px); width: 100%; display: flex; flex-wrap: wrap; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.jump a { flex: 1 1 148px; display: grid; gap: 4px; padding: 15px 18px; background: var(--ground); transition: background 0.25s; }
.jump a:hover { background: var(--panel); }
.jump small { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--accent); }
.jump b { font-weight: 600; font-size: 1.05rem; }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: 0 6px 0 -4px var(--accent); }

/* ---------- features page: one group of features ---------- */
.fgroup { padding: clamp(64px, 9vw, 124px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 0; }
.fgroup:nth-of-type(even) { background: var(--sunken); }
.fgroup-in { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.fgroup-head { position: sticky; top: 108px; display: grid; gap: 14px; justify-items: start; }
.fgroup-n { font-size: clamp(4.4rem, 9vw, 7.6rem); font-weight: 700; line-height: 0.86; letter-spacing: -0.04em; font-variation-settings: "wdth" 120; color: var(--line-2); }
.fgroup-head .text-link { margin-top: 8px; }
.rows { display: grid; }
.rows > li { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line-2); align-items: baseline; }
.rows > li:last-child { border-bottom: 1px solid var(--line-2); }
.rows h3 { font-size: 1.14rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
.rows p { color: var(--ink-2); font-size: 1rem; }
.rows > li > code { color: var(--accent); font-size: 0.82rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips span { font-family: var(--mono); font-size: 0.72rem; padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink-2); }
.note { border-style: dashed; background: none; }

/* ---------- developers page ---------- */
.how-card.plain { border-top: 1px solid var(--line-2); padding-top: 20px; }
.sub-title { margin: clamp(44px, 6vw, 72px) 0 22px; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; font-variation-settings: "wdth" 110; }
.table-wrap { border: 1px solid var(--line-2); border-radius: 6px; overflow-x: auto; background: var(--ground); }
.api { width: 100%; min-width: 760px; border-collapse: collapse; }
.api th { text-align: left; padding: 13px 18px; background: var(--panel); border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.api td { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.97rem; vertical-align: baseline; }
.api tbody tr:first-child td { border-top: 0; }
.api tbody tr { transition: background 0.2s; }
.api tbody tr:hover { background: var(--panel); }
.api code { font-size: 0.8rem; color: var(--ink); white-space: nowrap; }
.api .scope { color: var(--ink-3); }
.method { display: inline-block; min-width: 58px; text-align: center; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; padding: 3px 6px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--ink); }
.method.post { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.method.patch { border-color: var(--accent); color: var(--accent); }
.method.delete { border-style: dashed; color: var(--ink-3); }
.cell pre { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel); color: var(--ink-2); font-size: 0.76rem; line-height: 1.6; overflow-x: auto; }
.code { position: relative; }
.code-pane.fit { min-height: 0; padding-bottom: 46px; } /* room for the Copy button */
.code-name { padding: 13px 18px; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 0.74rem; color: var(--ink); background: var(--panel); }
.code-copy { position: absolute; right: 8px; bottom: 7px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--ground); font-family: var(--mono); font-size: 0.68rem; color: var(--ink-3); transition: color 0.2s, border-color 0.2s; }
.code-copy:hover { color: var(--ink); border-color: var(--ink); }
.code-foot { padding-right: 96px; }
.stack { display: grid; gap: 16px; min-width: 0; }
.dev-text .rows, .dev-text .chips { margin-top: 8px; }

/* ---------- terms and privacy ---------- */
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(44px, 6vw, 80px) var(--gap); }
.toc { position: sticky; top: 100px; max-height: calc(100svh - 124px); overflow-y: auto; }
.toc summary { list-style: none; cursor: default; padding-bottom: 14px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { display: grid; border-left: 1px solid var(--line-2); }
.toc a { display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 1px solid transparent; color: var(--ink-3); font-size: 0.92rem; line-height: 1.35; transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-on { color: var(--ink); border-left-color: var(--accent); }
.legal { max-width: 46rem; min-width: 0; }
.legal h2 { margin-top: 2.4em; padding-top: 1.3em; border-top: 1px solid var(--line-2); font-size: clamp(1.45rem, 2.3vw, 1.85rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; font-variation-settings: "wdth" 110; scroll-margin-top: 80px; }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { margin-top: 1.8em; font-size: 1.18rem; font-weight: 600; scroll-margin-top: 96px; }
.legal p, .legal ul, .legal-table { margin-top: 1em; }
.legal p, .legal li { color: var(--ink-2); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { display: grid; gap: 0.5em; }
.legal li { padding-left: 22px; position: relative; }
.legal li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 10px; height: 1px; background: var(--accent); }
.legal a { color: var(--accent); border-bottom: 1px solid currentColor; }
.legal code { color: var(--ink); background: var(--panel-2); padding: 0.1em 0.4em; border-radius: 3px; }
.legal-table { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 6px; }
.legal-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.94rem; }
.legal-table th { text-align: left; padding: 12px 14px; background: var(--panel); font-family: var(--mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.legal-table td { padding: 12px 14px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.todo { background: var(--accent-soft); color: var(--accent); padding: 0.05em 0.4em; border-radius: 3px; font-family: var(--mono); font-size: 0.84em; }
.duo-col .facts { display: grid; gap: 4px; color: var(--ink-2); }
.duo-col .facts b { color: var(--ink); font-weight: 600; font-size: 1.15rem; }
.foot-legal { display: flex; gap: 18px; }
.foot-legal a:hover { color: var(--ink); }

/* ---------- smaller screens ---------- */
@media (max-width: 1020px) {
  .fgroup-in, .legal-layout { grid-template-columns: 1fr; }
  .fgroup-head, .toc { position: static; max-height: none; }
  .fgroup-n { font-size: 4rem; }
  .toc { border: 1px solid var(--line-2); border-radius: 6px; padding: 14px 16px; }
  .toc summary { cursor: pointer; padding-bottom: 0; }
  .toc[open] summary { padding-bottom: 14px; }
  .toc summary::after { content: " +"; color: var(--accent); }
  .toc[open] summary::after { content: " −"; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; margin: 0; flex-direction: column; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--line-2); padding: 8px var(--gutter) 20px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; color: var(--ink); }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav-end { margin-left: auto; }
  .menu-btn { display: grid; }
  .nav.is-open { background: var(--ground); }

  .call-in { grid-template-columns: 1fr; min-height: 0; padding-block: var(--gap); }
  .step { opacity: 1; }
  .step p { max-height: none; margin-top: 4px; }
  .step-n { background: var(--sunken); color: inherit; border-color: var(--line-2); }
  .step.is-on .step-n { background: var(--sunken); color: inherit; border-color: var(--line-2); }
  .console-body { height: auto; }
  .console-scroll { transform: none !important; }
  .grp, .grp.is-past { opacity: 1; transform: none; }

  .moments { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .moments-line { display: none; }
  .moment, .moment + .moment { padding: 22px 20px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .moment-dot, .moment + .moment .moment-dot { top: -6px; left: 0; }
  .how { grid-template-columns: 1fr; gap: 44px; }
  .how-art { height: auto; min-height: 240px; }
  .cases { grid-template-columns: 1fr; }
  .cases-tabs { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-2); scrollbar-width: none; }
  .cases-tabs button { white-space: nowrap; border-bottom: 0; border-right: 1px solid var(--line); padding: 14px 18px; font-size: 1rem; }
  .cases-tabs button::before { top: auto; right: 0; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
  .cases-tabs button[aria-selected="true"]::before { transform: scaleX(1); }
  .case { grid-template-columns: 1fr; }
  .langs-grid, .dev, .duo, .faq, .price { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell, .cell-a, .cell-b { grid-column: span 1; }
  .cell-c { grid-column: span 2; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav-cta { display: none; }
  .brand-text small { display: none; }
  .hero { padding-top: 112px; }
  .hero-wave { height: 30%; }
  .hero-caption-wrap { padding-top: 104px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .caption { flex-direction: column; align-items: flex-start; gap: 6px; }
  .say { grid-template-columns: 1fr; gap: 2px; }
  .ev { flex-direction: column; gap: 6px; align-items: flex-start; }
  .moments { grid-template-columns: 1fr; row-gap: 40px; }
  .anytime, .note, .dest { grid-template-columns: 1fr; gap: 10px; }
  .rows > li { grid-template-columns: 1fr; gap: 6px; }
  .jump a { flex-basis: 40%; }
  .foot-base { flex-direction: column; }
  .dest { padding: 0; }
  .bento { grid-template-columns: 1fr; }
  .cell-c { grid-column: span 1; grid-template-columns: 1fr; }
  .cell-c .meter { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .langs-points li { grid-template-columns: 1fr; gap: 6px; }
  .plans { grid-template-columns: 1fr; }
  .plan-blurb { min-height: 0; }
  .console-biz { display: none; }
  .foot-in { grid-template-columns: 1fr; }
  .search p { display: block; }
  .search small { display: block; min-width: 0; }
}

/* ---------- reduced motion: show the finished state at once ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .hero-title .line > span, .js .hero .hero-lead, .js .hero .hero-cta, .js .hero .hero-note, .js .hero .label, .js .hero .caption { opacity: 1; transform: none; }
  .statement-text .w { opacity: 1; }
  .grp { opacity: 1; transform: none; }
  .step { opacity: 1; }
  .step p { max-height: none; }
  .meter-bar i { transform: none; }
}
