/* The landing page (templates: ecommerce/landing.html). One benefit per section, sections
   alternating dark and light whatever the system theme, big centred headlines, one visual per
   section and a lot of air. Shared basics (fonts, reset, .wrap, the notify form, the footer)
   come from site.css; the header from site-header.css. */

body.landing { background: #0b0c0d; color: #f5f5f3; }
body.landing .site-header {
  --sh-bg: #0b0c0d; --sh-bg-alt: #1b1c1e; --sh-ink: #ecebe8; --sh-brand-ink: #ecebe8; --sh-line: #26282b;
}
body.landing .site-footer { background: #f5f5f3; color: #5f6368; border-top-color: #dcdad3; }
body.landing .footer-brand { color: #1d1d1f; }

/* Each section carries its own palette, so the shared components (forms, buttons) follow it. */
.s-dark, .s-light { padding: 96px 0; }
@media (min-width: 900px) { .s-dark, .s-light { padding: 128px 0; } }
.s-dark {
  --bg: #0b0c0d; --bg-alt: #131415; --surface: #161718; --ink: #f5f5f3; --ink-soft: #a1a5aa;
  --line: #26282b; --green: #16b457; --green-text: #3fd07c; --green-hover: #1fc865; --on-green: #06140b;
  --panel: #161718; --panel-ink: #f5f5f3; --panel-soft: #8b9096; --error: #ff8a80;
  background: var(--bg); color: var(--ink); color-scheme: dark;
}
.s-light {
  --bg: #f5f5f3; --bg-alt: #ecebe6; --surface: #ffffff; --ink: #1d1d1f; --ink-soft: #5f6368;
  --line: #dcdad3; --green: #0aa74b; --green-text: #067a36; --green-hover: #08913f; --on-green: #ffffff;
  --panel: #1d1d1f; --panel-ink: #f5f5f3; --panel-soft: #9aa0a6; --error: #b42318;
  background: var(--bg); color: var(--ink); color-scheme: light;
}

/* Type */
.landing h1, .landing h2, .landing h3 { margin: 0; }
.kicker { font-size: 1.0625rem; font-weight: 500; color: var(--ink-soft); margin: 0 0 16px; }
.headline {
  font-weight: 600; font-size: clamp(2.75rem, 6.5vw, 5rem); line-height: 1.02; letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-title {
  font-weight: 600; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em;
  text-wrap: balance; max-width: 14em;
}
.intro {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.45; color: var(--ink-soft);
  max-width: 34em; margin: 20px 0 0;
}
.intro strong { color: var(--ink); font-weight: 500; }
.centered { text-align: center; }
.centered .section-title, .centered .intro, .centered .kicker { margin-left: auto; margin-right: auto; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 12px; font-weight: 500; font-size: 1.0625rem; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-hover); }
.link { color: var(--green-text); font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 32px; }
.centered .actions { justify-content: center; }
.actions .link + .link { margin-left: 0; }

/* Hero: the product, big, under the one line that says what it does */
.hero { padding: 56px 0 0; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 72px 0 0; } }
.hero .headline { max-width: 11em; margin: 0 auto; }
.hero .intro { margin: 24px auto 0; }
.hero-visual { max-width: 960px; margin: 40px auto 0; padding: 0 16px; }
@media (min-width: 900px) { .hero-visual { margin-top: 48px; } }
.hero-visual img { display: block; width: 100%; height: auto; margin-bottom: -4%; }

/* Figures: one big number, a short line under it */
.stats { display: grid; gap: 40px 32px; margin-top: 64px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 80px; } }
.stat strong {
  display: block; font-weight: 600; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat strong small { font-size: 0.5em; font-weight: 500; letter-spacing: 0; margin-left: 0.15em; }
.stat span { display: block; margin: 12px auto 0; color: var(--ink-soft); font-size: 1.0625rem; max-width: 18em; }

/* Tiles: a pair or a 2 by 2 of short features */
.tiles { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 720px) { .tiles { grid-template-columns: 1fr 1fr; margin-top: 72px; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; text-align: left; }
.tile h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 12px; }
.tile p { color: var(--ink-soft); font-size: 1.0625rem; margin: 0; }
.tile .tile-link { margin-top: 16px; }

/* Two headlines side by side */
.pair { display: grid; gap: 56px; margin-top: 0; }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; gap: 64px; } }
.pair .section-title { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
.pair .intro { font-size: 1.1875rem; }

/* I/O diagram, the one true picture of what the Core does */
.io { margin: 56px auto 0; max-width: 760px; background: var(--panel); color: var(--panel-ink); border-radius: 24px; padding: 28px 24px 20px; }
@media (min-width: 900px) { .io { margin-top: 72px; padding: 36px 32px 24px; } }
.io svg { display: block; width: 100%; height: auto; }
.io figcaption { color: var(--panel-soft); font-size: 1rem; text-align: center; margin-top: 12px; }
.io-lines path { stroke: var(--panel-soft); stroke-width: 3; stroke-linecap: round; fill: none; }
.io-lines .io-out { stroke: var(--green); stroke-width: 5; }
.io-lines .io-dash { stroke-dasharray: 4 6; }
.io-labels text { fill: var(--panel-ink); font: 500 15px "Barlow", sans-serif; letter-spacing: 0.02em; }
.io-labels .io-sub { fill: var(--panel-soft); font-weight: 400; font-size: 13px; }
.io-core { fill: color-mix(in srgb, var(--panel-ink) 8%, var(--panel)); stroke: color-mix(in srgb, var(--panel-ink) 22%, transparent); stroke-width: 1.5; }
.io-bang { fill: var(--green); }
.io-name { fill: var(--panel-ink); font: 600 19px "Barlow", sans-serif; letter-spacing: 0.08em; }

/* The app, drawn in code: a phone showing one of the dashboards the copy promises */
.phone {
  width: min(340px, 84vw); margin: 56px auto 0; background: #0b0c0d; border: 8px solid #2a2c2f; border-radius: 48px;
  padding: 28px 22px 32px; color: #f5f5f3; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  font-variant-numeric: tabular-nums; text-align: left;
}
@media (min-width: 900px) { .phone { margin-top: 72px; } }
.ph-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: #a1a5aa; }
.ph-row b { color: #f5f5f3; font-weight: 500; }
.ph-speed { display: flex; align-items: baseline; gap: 8px; margin: 28px 0 24px; }
.ph-speed strong { font-size: 112px; font-weight: 600; line-height: 0.85; letter-spacing: -0.04em; }
.ph-speed span { font-size: 20px; color: #a1a5aa; }
.ph-rpm { height: 10px; border-radius: 5px; background: #26282b; overflow: hidden; }
.ph-rpm-row { margin-top: 8px; }
.ph-rpm i { display: block; height: 100%; width: 46%; border-radius: 5px; background: #16b457; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.ph-grid div { background: #161718; border-radius: 16px; padding: 14px 16px; }
.ph-grid span { display: block; font-size: 13px; color: #a1a5aa; }
.ph-grid strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin-top: 4px; }

/* Specs */
.specs { display: grid; gap: 48px; margin-top: 64px; text-align: left; }
@media (min-width: 900px) { .specs { grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 80px; } }
.specs h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--ink); }
.specs dl { margin: 0; font-variant-numeric: tabular-nums; }
.specs dl > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 500; }
.specs dd { margin: 0; color: var(--ink-soft); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }

/* Closing call */
.cta .notify { margin: 32px auto 0; }
.cta .buy { margin: 32px auto 0; text-align: left; }

/* Entrances: one short fade and rise as a section scrolls in, nothing more */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
