/* Home page (/). Tokens, header, footer, buttons and surfaces come from site.css.
 * Light design: a ruled centre column, pale blue trays, dot-pattern art, one blue accent. */
/* Hero */
.hero { margin-top: -64px; padding-top: 64px; }
.hero .col { padding: 64px 32px 36px; text-align: center; overflow: hidden; }
.hero-stat { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; padding: 6px 14px; border: 1px solid var(--h-tray-line); border-radius: 999px; background: #fff; font-size: 14px; color: var(--h-text-2); text-decoration: none; transition: border-color .2s; }
.hero-stat b { color: var(--h-blue); font-weight: 600; }
.hero-stat:hover { border-color: var(--h-blue-soft); }
.hero h1 { position: relative; margin: 0 auto; font-size: clamp(40px, 6.4vw, 84px); line-height: 1; font-weight: 500; letter-spacing: -.04em; max-width: 15ch; }
.hero-lede { position: relative; margin: 28px auto 0; font-size: 20px; color: var(--h-text-2); max-width: 52ch; }
.hero-actions { position: relative; margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-note { position: relative; margin-top: 20px; font-size: 14px; color: var(--h-text-3); }

/* Product: tab list + app demo stage, straight under the hero */
/* No top padding, so a jump to #product stops clear of the floating header. */
.product { scroll-margin-top: 104px; }
.product .col { padding-top: 0; }
.product .tray { margin-top: 0; }
.prod { display: flex; flex-direction: column; background: #fff; border-radius: 12px; }
.prod-tabs { border-radius: 12px 12px 0 0; }
.prod-tabs { position: relative; isolation: isolate; padding: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.prod-tab { position: relative; text-align: left; border: 0; border-radius: 10px; padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; background: transparent; color: var(--h-ink); }
.prod-tab > span:last-child { transition: transform .28s var(--h-ease); }
.prod-tab:hover > span:last-child, .prod-tab:focus-visible > span:last-child { transform: translateY(-2px); }
.prod-tab[aria-selected="true"] { background: var(--h-tray); }
.glass.on ~ .prod-tab[aria-selected="true"] { background: transparent; }
.glass.on ~ .prod-tab[aria-selected="false"] b { color: var(--h-text-2); transition: color .2s; }
.glass.on ~ .prod-tab:hover b { color: var(--h-ink); }
.prod-stage > [role="tabpanel"].enter { animation: panelIn .32s var(--h-ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.prod-tab .num { font: 500 14px/1 var(--h-mono); color: var(--h-blue); margin-top: 4px; }
.prod-tab b { display: block; font-weight: 600; font-size: 16px; }
.prod-tab small { display: block; font-size: 14px; color: #4A5468; margin-top: 2px; }
.prod-stage { min-width: 0; padding: 24px; background-color: var(--h-art); border-top: 1px solid var(--h-card-line); border-radius: 0 0 12px 12px; }
.prod-stage > [hidden] { display: none; }

/* Feature grid */
.feat-head { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: flex-end; }
.feat-head .h2 { max-width: 16ch; }
.feat-head p { margin: 0; color: var(--h-text-2); max-width: 44ch; }
.feat { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.feat h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.feat p { margin: 8px 0 0; font-size: 15px; color: var(--h-text-2); }
.feat p a { color: var(--h-blue); }
.art { margin-top: auto; min-height: 200px; border-radius: 12px; border: 1px solid var(--h-card-line); background: var(--h-art); padding: 18px; display: flex; align-items: center; justify-content: center; }
/* A small light card inside the art, in the look of the app */
.mini { width: 100%; max-width: 420px; padding: 14px 16px; border: 1px solid var(--h-card-line); border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(20, 40, 100, .06); font-size: 13px; }
.mini code { font: 12px var(--h-mono); color: var(--h-ink); }
.mini-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-head b { font-size: 14px; font-weight: 600; }
.mini-head + .mini-list, .mini-head + .matrix-t { margin-top: 8px; }
.mini-list { margin: 0; padding: 0; list-style: none; }
.mini-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--h-card-line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list li > :last-child { margin-left: auto; }
.mini-note { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--h-tray); color: var(--h-text-2); font-size: 12.5px; }
/* Benchmark bars: the baseline in grey, Dev Scenario in blue, widths to scale per app */
.bench .mini-head:not(:first-child) { margin-top: 14px; }
.bench-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 52px; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--h-text-3); }
.bench-row i { display: block; height: 10px; border-radius: 999px; background: #D5DDF0; }
.bench-row.ds { color: var(--h-blue); font-weight: 600; }
.bench-row.ds i { background: var(--h-blue); }
.bench-row em { font: 12px var(--h-mono); text-align: right; }
.bench-row .w100 { width: 100%; } .bench-row .w48 { width: 48.5%; } .bench-row .w42 { width: 42.5%; }
/* Variant matrix: languages by theme */
.matrix-t { display: grid; grid-template-columns: auto 1fr 1fr; gap: 6px 10px; align-items: center; }
.matrix-t .th { font-size: 12px; font-weight: 600; color: var(--h-text-3); text-align: center; }
.matrix-t .rh { font-size: 13px; }
.matrix-t .pill { justify-content: center; }
.feat-grid { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }

/* Under the pains: the roadmap line */
.sign { margin: 28px 0 0; font-size: 18px; max-width: 56ch; }
.sign a { color: var(--h-blue); }

/* Pricing: one line and the way to the pricing page */
.pricing .col { text-align: center; }
.pricing .lede { margin: 16px auto 0; }

/* FAQ */
.faq .col { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.faq-intro { flex: 1 1 280px; }
.faq-intro .lede { margin-top: 16px; }
.faq .tray { flex: 2 1 460px; min-width: 0; margin-top: 0; display: flex; flex-direction: column; gap: 8px; }
.faq details summary { list-style: none; padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 16px; font-weight: 500; cursor: pointer; }
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::after { content: "+"; font: 500 22px/1 var(--h-sans); color: var(--h-blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 18px; font-size: 15px; color: var(--h-text-2); }
.faq details p a { color: var(--h-blue); }

@media (max-width: 900px) {
    .prod-tabs { grid-template-columns: repeat(5, minmax(200px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; }
    .prod-tab { scroll-snap-align: start; }
}
@media (max-width: 640px) {
    .hero .col { padding: 72px 16px 32px; }
    .hero-lede { font-size: 18px; }
    .prod-stage { padding: 12px; }
    .art { padding: 10px; }
    .mini { padding: 12px; }
    .bench-row { grid-template-columns: 78px minmax(0, 1fr) 46px; gap: 8px; }
    /* Phones: the demo comes first so it shows in the first screen; its tabs follow it. */
    .hero .hero-actions .btn-o { display: none; }
    .prod-stage { order: -1; border-top: 0; border-bottom: 1px solid var(--h-card-line); border-radius: 12px 12px 0 0; }
    .prod-tabs { border-radius: 0 0 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .prod-tab > span:last-child { transition: none; }
    .prod-tab:hover > span:last-child, .prod-tab:focus-visible > span:last-child { transform: none; }
    .prod-stage > [role="tabpanel"].enter { animation: none; }
}
