/* Porchlight landing page. Brand colours on Arc UI's foundation tokens (spacing, radius, shadow,
   motion, keyboard-only focus) and Arc's button / badge / card anatomy, like the app and the docs.
   Dark is the night porch. Light is the same layout on cream. */

@property --accent { syntax: '<color>'; inherits: true; initial-value: #f5a524; }
@property --accent-hi { syntax: '<color>'; inherits: true; initial-value: #ffd88a; }
@property --accent2 { syntax: '<color>'; inherits: true; initial-value: #ff8a3d; }

:root {
  color-scheme: dark;
  /* Brand */
  --amber: #f5a524; --amber-hi: #ffd88a; --amber-deep: #c77d0a;
  --night: #141b2d; --dusk: #2b3550; --cream: #fff8ec;
  --sky: #5b8ff0; --sky-hi: #b4ccff; --moss: #6cc79e; --ash: #8b93a5;
  /* Roles */
  --bg: #0b1020; --bg-raised: #10172a; --card: #131b30; --card-hi: #182240;
  --fg: #f6efe2; --muted: #a3acbd; --faint: #6f7890;
  --border: #222c46; --border-strong: #33405f; --hover-border: #45547a;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  /* Arc foundation */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --radius-control: 1.125rem; --radius-panel: 1.625rem; --radius-surface: 2.125rem; --radius-pill: 9999px;
  --control-height-md: 2.75rem; --control-height-lg: 3.25rem;
  --shadow-raised: 0 8px 22px rgb(0 0 0 / .35);
  --shadow-floating: 0 24px 60px rgb(0 0 0 / .45), 0 3px 10px rgb(0 0 0 / .25);
  --ease-standard: cubic-bezier(.22,1,.36,1); --ease-enter: cubic-bezier(.16,1,.3,1);
  --duration-fast: 160ms; --duration-standard: 240ms;
  --gutter: clamp(1rem, 4.5vw, 4.5rem);
  /* figures */
  --rw-base: var(--bg); --rw-tint: #5d77b5;
  --accent: var(--amber); --accent-hi: var(--amber-hi); --accent2: #ff8a3d;
}

/* Same page, cream canvas. Figure shading was tuned for a night base, where a small
   mix of --rw-tint is enough to lift a face. On cream that mix vanishes, so daylight
   figures use a dusk slate base and a paper-light tint. Tops stay lighter than walls. */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #fff8ec; --bg-raised: #fffdf8; --card: #ffffff; --card-hi: #fff6e6;
  --fg: #141b2d; --muted: #4c566c; --faint: #6d7588;
  --border: #eadfce; --border-strong: #d8cbb6; --hover-border: #c4b397;
  --shadow-raised: 0 8px 22px rgb(20 27 45 / .06);
  --shadow-floating: 0 24px 50px rgb(20 27 45 / .08), 0 2px 8px rgb(20 27 45 / .04);
  --rw-base: #6e7d98; --rw-tint: #f4efe6;
}
html[data-theme="light"] .hero .figure { --rw-tint: #f4efe6; }
html[data-theme="light"] #fig-porch .p-siding,
html[data-theme="light"] #fig-porch .p-mull,
html[data-theme="light"] #fig-porch .p-panel { stroke: #2c384e; }
html[data-theme="light"] #fig-porch .p-dim { fill: #2a3548; }
html[data-theme="light"] #fig-porch .p-dimwall { fill: #3a4862; }
html[data-theme="light"] #fig-porch .rw-paper,
html[data-theme="light"] #fig-guidebook .rw-paper,
html[data-theme="light"] #fig-guidebook .b-page,
html[data-theme="light"] #fig-bell .d-card.rw-top { fill: #fffdf8; }
html[data-theme="light"] #fig-guidebook .b-cover { fill: #3d4c68; }
html[data-theme="light"] #fig-guidebook .b-txt,
html[data-theme="light"] #fig-bell .d-txt { stroke: #2c384e; }
html[data-theme="light"] #fig-bell .d-card .rw-edge { fill: #6e7d98; }
html[data-theme="light"] .iso-stage .rw-shadow { opacity: .38; }
html[data-theme="light"] .code { border-color: #222c46; }
html[data-theme="light"] .code-head { border-bottom-color: #222c46; color: #8b93a5; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
html.lenis { scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  transition: background-color 240ms var(--ease-standard), color 240ms var(--ease-standard);
  font: 17px/1.6 Outfit, system-ui, sans-serif; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
::selection { background: color-mix(in srgb, var(--amber) 40%, transparent); }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Sora, Outfit, sans-serif; letter-spacing: -.035em; line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: var(--space-4); top: -4rem; z-index: 50; padding: var(--space-2) var(--space-4); background: var(--amber); color: var(--night); border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--space-4); }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Arc controls ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--control-height-md); padding: 0 var(--space-5); border-radius: var(--radius-control);
  font: 600 .97rem/1 Outfit, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-standard) var(--ease-standard);
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: var(--control-height-lg); padding: 0 var(--space-6); font-size: 1.04rem; }
.btn-primary { background: var(--amber); color: var(--night); box-shadow: 0 0 0 0 rgb(245 165 36 / 0), inset 0 1px 0 rgb(255 255 255 / .35); }
.btn-primary:hover { background: #ffb43d; box-shadow: 0 10px 34px -6px rgb(245 165 36 / .55), inset 0 1px 0 rgb(255 255 255 / .35); }
.btn-secondary { background: color-mix(in srgb, var(--fg) 6%, transparent); border-color: var(--border-strong); color: var(--fg); }
.btn-secondary:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); border-color: var(--hover-border); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.btn .i { width: 1.05rem; height: 1.05rem; transition: transform var(--duration-standard) var(--ease-standard); }
.btn:hover .i-go { transform: translateX(3px); }

.badge {
  display: inline-flex; align-items: center; gap: var(--space-2); height: 2rem; padding: 0 var(--space-3) 0 var(--space-2);
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--muted); font-size: .86rem; font-weight: 500;
}
.badge b { color: var(--fg); font-weight: 600; }
.badge .sep { opacity: .55; }
.badge .glow-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); margin-left: var(--space-1); }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: var(--space-6);
  height: 4.25rem; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent; transition: border-color var(--duration-standard);
}
.topbar.scrolled { border-bottom-color: var(--border); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font: 700 1.3rem/1 Sora, sans-serif; letter-spacing: -.04em; }
.brand svg { width: 2rem; height: 2rem; }
.topnav { display: flex; gap: var(--space-1); margin-right: auto; }
.topnav a { padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill); color: var(--muted); text-decoration: none; font-weight: 500; font-size: .96rem; transition: color var(--duration-fast), background var(--duration-fast); }
.topnav a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.topbar .actions { display: flex; align-items: center; gap: var(--space-2); }
.theme-btn {
  width: 2.75rem; height: 2.75rem; padding: 0; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--fg) 6%, transparent);
  color: var(--fg); display: inline-grid; place-items: center; cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.theme-btn:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); border-color: var(--hover-border); }
.theme-btn .i { width: 1.15rem; height: 1.15rem; }
html[data-theme="dark"] .theme-moon, html[data-theme="light"] .theme-sun { display: none; }

/* ---------- Sections ---------- */

section { padding: clamp(4rem, 9vw, 8rem) var(--gutter); position: relative; }
.section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.22rem); max-width: 62ch; }
.amber { color: var(--amber); }
.sky { color: var(--sky); }

/* ---------- Hero ---------- */

.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(2rem, 4vw, 4rem);
  padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); min-height: calc(100svh - 4.25rem);
}
.hero::before {
  content: ''; position: absolute; inset: -4.25rem 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 72% 46%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  transition: --accent .6s var(--ease-standard);
}
.hero-copy { display: grid; gap: var(--space-6); justify-items: start; }
.hero h1 { font-size: clamp(3.2rem, 6.4vw, 7.4rem); font-weight: 800; letter-spacing: -.055em; line-height: .92; }
.hero h1 .lamp { color: var(--accent); text-shadow: 0 0 42px color-mix(in srgb, var(--accent) 55%, transparent); transition: color .6s var(--ease-standard), text-shadow .6s; }
.hero .lede { font-size: clamp(1.1rem, 1.5vw, 1.32rem); color: var(--muted); max-width: 46ch; }
.hero .lede strong { color: var(--fg); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); padding: 0; margin: 0; list-style: none; color: var(--faint); font-size: .92rem; }
.facts li { display: inline-flex; align-items: center; gap: var(--space-2); }
.facts .i { color: var(--moss); width: 1rem; height: 1rem; }

.stage-card {
  position: relative; display: grid; gap: var(--space-4);
  padding: clamp(.75rem, 1.6vw, 1.25rem); border-radius: var(--radius-surface);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 70%, transparent), color-mix(in srgb, var(--bg) 60%, transparent));
  border: 1px solid var(--border); box-shadow: var(--shadow-floating);
}
.figure { position: relative; --accent: var(--amber); --accent-hi: var(--amber-hi); --accent2: #ff8a3d;
  transition: --accent .6s var(--ease-standard), --accent-hi .6s var(--ease-standard), --accent2 .6s var(--ease-standard); }
.figure[data-state="lamplit"] { --accent: var(--sky); --accent-hi: var(--sky-hi); --accent2: #8b7bff; }
.figure[data-state="dark"] { --accent: #8f7a55; --accent-hi: #c9b48a; --accent2: #6f6250; }
.figure .iso-stage { width: 100%; height: auto; aspect-ratio: 4 / 3; user-select: none; -webkit-user-select: none; }
.hero .figure { --rw-tint: #5d77b5; }
.hero:has(.figure[data-state="lamplit"]) { --accent: var(--sky); }
.hero:has(.figure[data-state="dark"]) { --accent: #b9a37a; }

.stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 0 var(--space-2) var(--space-1); }

/* Arc segmented control */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--border); }
.seg button {
  display: inline-flex; align-items: center; gap: var(--space-2); height: 2.25rem; padding: 0 var(--space-4);
  border: 0; border-radius: var(--radius-pill); background: none; color: var(--muted); cursor: pointer;
  font: 600 .92rem/1 Outfit, sans-serif; transition: background var(--duration-fast), color var(--duration-fast);
}
.seg button:hover { color: var(--fg); }
.seg button[aria-checked="true"] { background: var(--card-hi); color: var(--fg); box-shadow: inset 0 0 0 1px var(--border-strong); }
.seg .ring { width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid currentColor; }
.seg [data-state="lit"] .ring { color: var(--amber); }
.seg [data-state="lamplit"] .ring { color: var(--sky); }
.seg [data-state="dark"] .ring { color: var(--ash); }
.seg button[aria-checked="true"][data-state="lit"] .ring { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.seg button[aria-checked="true"][data-state="lamplit"] .ring { background: var(--sky); box-shadow: 0 0 10px var(--sky); }

/* the widget's own words for each state */
.say { display: flex; align-items: center; gap: var(--space-3); min-width: 0; color: var(--muted); font-size: .96rem; }
.say .avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--card-hi); border: 2px solid var(--accent); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: border-color .6s, box-shadow .6s; }
.say .avatar svg { width: 1.1rem; height: 1.1rem; color: var(--accent-hi); }
.say q { quotes: none; color: var(--fg); font-weight: 500; }
.say-text { display: grid; line-height: 1.35; }
.say-text small { color: var(--faint); font-size: .8rem; }
.figure-hint { margin: 0; text-align: center; font: 500 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* ---------- Three lights ---------- */

.lights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.light {
  position: relative; display: grid; gap: var(--space-4); align-content: start; text-align: left;
  padding: var(--space-8); border-radius: var(--radius-panel); background: var(--card); border: 1px solid var(--border);
  color: inherit; font: inherit; cursor: pointer; overflow: hidden;
  transition: border-color var(--duration-standard) var(--ease-standard), transform var(--duration-standard) var(--ease-standard), background var(--duration-standard);
}
.light::after { content: ''; position: absolute; inset: auto -20% -60% -20%; height: 80%; background: radial-gradient(50% 50% at 50% 50%, var(--c), transparent 70%); opacity: 0; transition: opacity .5s var(--ease-standard); pointer-events: none; }
.light:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.light[aria-pressed="true"] { border-color: color-mix(in srgb, var(--c) 60%, var(--border)); background: var(--card-hi); }
.light[aria-pressed="true"]::after { opacity: .16; }
.light[data-state="lit"] { --c: var(--amber); }
.light[data-state="lamplit"] { --c: var(--sky); }
.light[data-state="dark"] { --c: var(--ash); }
.lamp-ring { width: 3rem; height: 3rem; border-radius: 50%; border: 3px solid var(--c); display: grid; place-items: center; }
.light[data-state="lit"] .lamp-ring { box-shadow: 0 0 24px color-mix(in srgb, var(--c) 60%, transparent), inset 0 0 12px color-mix(in srgb, var(--c) 40%, transparent); }
.light[data-state="lamplit"] .lamp-ring { box-shadow: 0 0 24px color-mix(in srgb, var(--c) 55%, transparent); }
.light[data-state="dark"] .lamp-ring { background: color-mix(in srgb, var(--cream) 8%, transparent); }
.lamp-ring svg { width: 1.3rem; height: 1.3rem; color: var(--c); }
.light h3 { font-size: 1.7rem; font-weight: 700; }
.light h3 small { display: block; margin-top: var(--space-2); font: 500 .95rem/1.4 Outfit, sans-serif; letter-spacing: 0; color: var(--muted); }
.light blockquote { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-control) var(--radius-control) var(--radius-control) .35rem; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--border); color: var(--fg); font-size: .98rem; }
.light p { color: var(--muted); font-size: .98rem; }

/* ---------- Feature splits ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.flip .split-figure { order: 2; }
.split-figure { position: relative; border-radius: var(--radius-surface); background: radial-gradient(60% 60% at 50% 55%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 72%); }
.split-figure .hint { position: absolute; left: 50%; bottom: var(--space-3); transform: translateX(-50%); font: 500 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.split-copy { display: grid; gap: var(--space-6); }
.split-copy h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); font-weight: 800; }
.split-copy > p { color: var(--muted); font-size: clamp(1.05rem, 1.35vw, 1.18rem); max-width: 54ch; }
.ticks { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; }
.ticks .tick { width: 2.1rem; height: 2.1rem; border-radius: .8rem; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); color: var(--accent-hi); }
.ticks .tick .i { width: 1.05rem; height: 1.05rem; }
.ticks b { display: block; font-weight: 600; color: var(--fg); }
.ticks span { color: var(--muted); font-size: .97rem; }
.ai-tone { --accent: var(--sky); --accent-hi: var(--sky-hi); --accent2: #8b7bff; }

/* ---------- The house: twelve rooms, each with its own isometric figure ---------- */

.kicker { margin: 0; font: 600 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
html[data-theme="light"] .kicker { color: #8f5a08; }
.mods {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr)); gap: var(--space-4);
}
.mod {
  --c: var(--amber);
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--card);
  transition: border-color var(--duration-standard) var(--ease-standard), transform var(--duration-standard) var(--ease-standard), box-shadow var(--duration-standard) var(--ease-standard);
}
.mod[data-tone="sky"] { --c: var(--sky); }
.mod[data-tone="sky"] .figure { --accent: var(--sky); --accent-hi: var(--sky-hi); --accent2: #8b7bff; }
.mod:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); transform: translateY(-3px); box-shadow: 0 22px 50px -24px color-mix(in srgb, var(--c) 45%, transparent); }
.mod-stage {
  position: relative; padding: var(--space-2) var(--space-2) 0;
  background: radial-gradient(70% 70% at 50% 58%, color-mix(in srgb, var(--c) 13%, transparent), transparent 72%), var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.mod-stage .figure { cursor: pointer; }
.mod-wing {
  position: absolute; left: var(--space-4); top: var(--space-4); z-index: 1;
  font: 600 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.mod-body { display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; align-content: start; padding: var(--space-5) var(--space-5) var(--space-6); }
.mod-no { grid-row: span 2; padding-top: .3rem; font: 500 .78rem/1 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; transition: color var(--duration-fast); }
.mod:hover .mod-no { color: var(--c); }
.mod h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .55rem; }
.mod h3 small { font: 500 .75rem/1 var(--mono); letter-spacing: 0; color: var(--faint); }
.mod p { color: var(--muted); font-size: .95rem; line-height: 1.45; }
html[data-theme="light"] .mod:hover .mod-no { color: #8f5a08; }
html[data-theme="light"] .mod[data-tone="sky"]:hover .mod-no { color: #2f5cb8; }

/* ---------- Install ---------- */

.install { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.code {
  position: relative; border-radius: var(--radius-panel); background: #070b17; border: 1px solid var(--border);
  box-shadow: var(--shadow-raised); overflow: hidden;
}
.code-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5); border-bottom: 1px solid var(--border); color: var(--faint); font: 500 .8rem/1 var(--mono); }
.code pre { margin: 0; padding: var(--space-6) var(--space-5); overflow-x: auto; font: 500 clamp(.82rem, 1.2vw, .98rem)/1.7 var(--mono); color: #d8deeb; }
.code .t { color: #8fb2f5; } .code .a { color: var(--amber-hi); } .code .s { color: #9ee2bd; }
.copy { height: 2.25rem; padding: 0 var(--space-3); font-size: .86rem; border-radius: .9rem; }
/* the code panel is dark in both themes, so its button keeps light-on-dark colours */
.code .copy { color: #d8deeb; background: rgb(255 255 255 / .06); border-color: #2c3854; }
.code .copy:hover { color: #fff; background: rgb(255 255 255 / .12); border-color: #45547a; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-4); }
.stat { padding: var(--space-5); border-radius: var(--radius-panel); background: var(--card); border: 1px solid var(--border); }
.stat b { display: block; font: 800 clamp(1.6rem, 2.6vw, 2.2rem)/1 Sora, sans-serif; letter-spacing: -.04em; color: var(--fg); margin-bottom: var(--space-2); }
.stat span { color: var(--muted); font-size: .92rem; }
.also { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.chip { display: inline-flex; align-items: center; height: 2rem; padding: 0 var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--border-strong); color: var(--muted); font-size: .88rem; font-weight: 500; }

/* ---------- Privacy ---------- */

.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.promise div { padding: var(--space-6); border-top: 2px solid var(--border-strong); }
.promise div:hover { border-top-color: var(--amber); }
.promise .i { color: var(--amber); width: 1.4rem; height: 1.4rem; margin-bottom: var(--space-4); }
.promise b { display: block; font: 700 1.15rem/1.3 Sora, sans-serif; letter-spacing: -.02em; margin-bottom: var(--space-2); }
.promise span { color: var(--muted); font-size: .97rem; }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; }
.plan { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: var(--space-5); padding: var(--space-8); border-radius: var(--radius-surface); background: var(--card); border: 1px solid var(--border); }
.plan.pick { background: linear-gradient(180deg, color-mix(in srgb, var(--amber) 9%, var(--card)), var(--card) 55%); border-color: color-mix(in srgb, var(--amber) 55%, var(--border)); box-shadow: 0 30px 80px -30px rgb(245 165 36 / .35); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.plan h3 { font-size: 1.5rem; font-weight: 700; }
.plan .tag { height: 1.75rem; font-size: .8rem; background: var(--amber); color: var(--night); border: 0; padding: 0 var(--space-3); font-weight: 700; }
.price { display: flex; align-items: baseline; gap: var(--space-2); }
.price b { font: 800 3.4rem/1 Sora, sans-serif; letter-spacing: -.05em; }
.price span { color: var(--muted); }
.plan > p { color: var(--muted); font-size: .97rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); align-content: start; }
.plan li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); font-size: .97rem; }
.plan li .i { color: var(--moss); width: 1.05rem; height: 1.05rem; margin-top: .22rem; }
.plan .btn { width: 100%; }
.fineprint { margin-top: var(--space-6); color: var(--faint); font-size: .92rem; }

/* ---------- Closing ---------- */

.closing { text-align: center; display: grid; justify-items: center; gap: var(--space-6); padding-top: clamp(5rem, 10vw, 9rem); padding-bottom: clamp(5rem, 10vw, 9rem); overflow: hidden; }
.closing::before { content: ''; position: absolute; left: 50%; top: 0; width: min(70rem, 120vw); height: 100%; transform: translateX(-50%); background: radial-gradient(45% 55% at 50% 45%, rgb(245 165 36 / .2), transparent 72%); pointer-events: none; }
.closing h2 { font-size: clamp(2.8rem, 7.5vw, 7rem); font-weight: 800; letter-spacing: -.055em; position: relative; }
.closing p { color: var(--muted); font-size: 1.15rem; max-width: 48ch; position: relative; }
.closing .cta-row { justify-content: center; position: relative; }

/* ---------- Footer ---------- */

footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-8); padding: var(--space-8) var(--gutter); border-top: 1px solid var(--border); color: var(--faint); font-size: .92rem; }
footer nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }
.made-with { color: var(--faint); }
.made-with a { text-decoration: underline; text-underline-offset: .18em; }

/* Reveals start hidden once JS is running. GSAP owns the motion. No JS means the page stays visible. */
html.js .reveal, html.js .hero-copy > *, html.js .stage-card { opacity: 0; }

/* ---------- Narrow screens ---------- */

@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .split, .install { grid-template-columns: minmax(0, 1fr); }
  .split.flip .split-figure { order: 0; }
  .lights, .plans { grid-template-columns: 1fr; }
  .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .topnav { display: none; }
  .topbar .actions .btn-ghost { display: none; }
  .topbar { justify-content: space-between; }
}
@media (max-width: 560px) {
  .promise, .stats { grid-template-columns: 1fr; }
  .stage-bar { justify-content: center; }
  .seg { width: 100%; }
  .seg button { flex: 1; justify-content: center; padding: 0 var(--space-2); }
  .light, .plan { padding: var(--space-6); }
  .topbar .actions .btn { padding: 0 var(--space-4); }
}
@media (max-width: 380px) {
  .topbar { gap: var(--space-3); }
  .brand { font-size: 1.12rem; gap: .45rem; }
  .brand svg { width: 1.75rem; height: 1.75rem; }
  .topbar .actions .btn { height: 2.5rem; padding: 0 .85rem; font-size: .9rem; }
  .theme-btn { width: 2.5rem; height: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
  html.js .reveal, html.js .hero-copy > *, html.js .stage-card { opacity: 1; }
  .figure, .hero::before { transition: none; }
}
