/* macnova — black, white, grey. SF Pro on Apple devices via the system font stack. */
:root {
  --bg: #000;
  --surface: #0b0b0c;
  --raised: #161618;
  --line: rgba(var(--glow), 0.1);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --green: #30d158;
  --on-text: #000;          /* text on solid --text buttons */
  --glow: 255, 255, 255;    /* rgb of glows and soft fills */
  --nav-bg: rgba(0, 0, 0, 0.7);
  --soft: #d1d1d6;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
svg.star { width: 30px; height: 22px; color: var(--text); flex: none; }
[data-lucide] { width: 1em; height: 1em; stroke-width: 2; vertical-align: -0.125em; }

/* Light theme: white page, colored icons (the app's light theme does the same). Set on <html> by the head script. */
:root[data-theme="light"] {
  --bg: #fff;
  --surface: #f5f5f7;
  --raised: #ececf0;
  --line: rgba(0, 0, 0, 0.1);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --green: #28a745;
  --on-text: #fff;
  --glow: 0, 0, 0;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --soft: #3a3a3c;
  color-scheme: light;
}
:root[data-theme="light"] .hero-glow { background: radial-gradient(40% 50% at 50% 30%, rgba(0, 113, 227, 0.10), transparent 70%); }
:root[data-theme="light"] .hero-star { filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.18)); animation: star-in 1.6s var(--ease) both; }
:root[data-theme="light"] .btn:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
:root[data-theme="light"] .ico { color: var(--c); }

/* Tool icons: white in dark; in light, each tool's own color as a plain glyph (no filled tiles), like the app */
.ico { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; transition: color 0.3s; }
.three .ico { width: 34px; height: 34px; font-size: 28px; justify-content: start; }

/* Light / dark compare: dark on the left, light revealed to the right of the handle */
.compare { --x: 50%; position: relative; max-width: 1080px; margin: 0 auto; aspect-ratio: 1560 / 750; border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(var(--glow), 0.08); user-select: none; touch-action: pan-y; cursor: ew-resize; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-light { clip-path: inset(0 0 0 var(--x)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); outline: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(255, 255, 255, 0.92); color: #1d1d1f; font-size: 20px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3); backdrop-filter: blur(8px); transition: transform 0.3s var(--ease); }
.compare:hover .compare-handle span, .compare-handle:focus-visible span { transform: translate(-50%, -50%) scale(1.1); }
.compare-handle:focus-visible span { outline: 3px solid var(--text); outline-offset: 2px; }
.compare-tag { position: absolute; bottom: 16px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; backdrop-filter: blur(12px); pointer-events: none; }
.compare-tag[data-side="dark"] { left: 16px; background: rgba(0, 0, 0, 0.55); color: #fff; }
.compare-tag[data-side="light"] { right: 16px; background: rgba(255, 255, 255, 0.75); color: #1d1d1f; }
.compare-note { text-align: center; margin-top: 16px; opacity: 1; }

/* Theme switch: the new theme grows out of the button (View Transitions, where supported) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* Theme switch */
.nav-end { display: flex; align-items: center; gap: 10px; }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(var(--glow), 0.08); color: var(--text); font-size: 17px; cursor: pointer; transition: background 0.2s, transform 0.3s var(--ease); }
.theme-toggle:hover { background: rgba(var(--glow), 0.16); transform: rotate(-20deg); }
.theme-toggle .sun, :root[data-theme="light"] .theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: inline; }

/* Nav — larger brand mark and name */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 max(16px, calc((100vw - 1180px) / 2)); background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.nav nav { display: flex; gap: 30px; font-size: 14px; color: var(--muted); }
.nav nav a { transition: color 0.2s; }
.nav nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; background: var(--text); color: var(--on-text); font: 600 16px var(--font); border: 0; cursor: pointer; transition: transform 0.25s var(--ease), opacity 0.2s, box-shadow 0.3s; }
.btn:hover { transform: scale(1.04); box-shadow: 0 0 40px rgba(var(--glow), 0.25); }
.btn:active { transform: scale(0.98); opacity: 0.85; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(var(--glow), 0.35); }
.btn-wide { width: 100%; justify-content: center; padding: 16px; font-size: 17px; }
.btn:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(var(--glow), 0.5); outline-offset: 3px; }

/* Hero — big star and wordmark */
.hero { position: relative; text-align: center; padding: 96px 16px 64px; }
.hero-glow { position: absolute; inset: -10% 0 auto; height: 620px; background: radial-gradient(40% 50% at 50% 30%, rgba(var(--glow), 0.12), transparent 70%); pointer-events: none; }
.hero-star { position: relative; width: 168px; height: 122px; color: var(--text); filter: drop-shadow(0 0 40px rgba(var(--glow), 0.5)); animation: star-in 1.6s var(--ease) both, twinkle 5s ease-in-out 1.6s infinite; }
@keyframes star-in { from { opacity: 0; transform: scale(0.4) rotate(-45deg); filter: blur(12px); } }
@keyframes twinkle { 50% { transform: scale(1.05) rotate(3deg); filter: drop-shadow(0 0 60px rgba(var(--glow), 0.7)); } }
.hero-name { margin: 26px 0 4px; font-weight: 700; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; }
h1 { margin: 0; font-size: clamp(48px, 9vw, 120px); line-height: 1; letter-spacing: -0.045em; font-weight: 800; background: linear-gradient(180deg, var(--text) 30%, var(--muted)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { margin: 0; font-size: clamp(36px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
h3 { margin: 14px 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.eyebrow { margin: 0 0 10px; font-weight: 600; font-size: 19px; color: var(--muted); letter-spacing: -0.01em; }
.lede { max-width: 640px; margin: 22px auto 0; font-size: clamp(19px, 2.2vw, 24px); color: var(--muted); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.fineprint { color: var(--faint); font-size: 13px; margin-top: 16px; }

/* Scroll stage: MacBook rises, flattens and scales while the real recording plays */
.stage { position: relative; height: 240vh; --p: 0; }
.stage-inner { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 0 16px; overflow: hidden; }
.stage-kicker { margin: 0; font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; text-align: center; opacity: calc(1 - var(--p) * 1.6); transform: translateY(calc(var(--p) * -40px)); }
.laptop { width: min(1080px, 94vw); transform: perspective(1800px) rotateX(calc((1 - var(--p)) * 28deg)) scale(calc(0.74 + var(--p) * 0.26)); transform-origin: 50% 100%; opacity: calc(0.35 + var(--p) * 0.65); will-change: transform; }
.laptop-lid { padding: 1.4% 1.4% 2%; border-radius: 22px 22px 8px 8px; background: #0b0b0c; box-shadow: 0 0 0 1px #2c2c2e, 0 50px 140px rgba(var(--glow), calc(var(--p) * 0.09)); }
.laptop-screen { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #111; }
.laptop-screen video { width: 100%; height: 100%; object-fit: cover; }
.laptop-base { height: 14px; margin: 0 -6%; border-radius: 0 0 18px 18px; background: linear-gradient(#3a3a3c, #1c1c1e 70%, #0e0e0f); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8); }
.chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; opacity: calc((var(--p) - 0.55) * 3); }
.chapters button { padding: 7px 14px; border-radius: 999px; border: 0; background: rgba(var(--glow), 0.08); color: var(--muted); font: 500 13px var(--font); cursor: pointer; transition: background 0.25s, color 0.25s, transform 0.25s var(--ease); }
.chapters button:hover { color: var(--text); transform: translateY(-1px); }
.chapters button.on { background: var(--text); color: var(--on-text); }
.real-note { margin: 0; color: var(--faint); font-size: 12px; opacity: calc((var(--p) - 0.55) * 3); }

/* Word-by-word statement */
.statement { height: 220vh; --p: 0; }
.words { position: sticky; top: 22vh; max-width: 980px; margin: 0 auto; padding: 0 20px; font-size: clamp(34px, 5.2vw, 64px); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; }
.words span { opacity: 0.14; transition: opacity 0.25s linear; }

/* Counters */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1180px; margin: 0 auto; padding: 40px 16px 0; text-align: center; }
.counters b { display: block; font-size: clamp(56px, 7vw, 96px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.counters span { color: var(--muted); font-size: 17px; }

/* Sticky tour */
.tour { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; padding: 140px max(16px, calc((100vw - 1180px) / 2)) 0; }
.tour-sticky { position: sticky; top: calc(50vh - 220px); height: 440px; align-self: start; }
.tour-frame { position: relative; width: 100%; aspect-ratio: 1560 / 750; border-radius: 22px; overflow: hidden; background: #0b0b0c; box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(var(--glow), 0.06); }
.tour-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); }
.tour-frame img.on { opacity: 1; transform: none; }
.tour-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(var(--glow), 0.2); transition: background 0.3s, width 0.3s var(--ease); }
.tour-dots i.on { background: var(--text); width: 22px; border-radius: 4px; }
.tour-steps article { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.22; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.tour-steps article.on { opacity: 1; transform: none; }
.tour-steps h2 { font-size: clamp(32px, 3.6vw, 48px); }
.tour-steps p:not(.eyebrow) { color: var(--muted); font-size: 19px; margin: 16px 0 0; }

/* Sections */
.section { padding: 150px max(16px, calc((100vw - 1180px) / 2)) 0; }
.head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.head p:not(.eyebrow) { color: var(--muted); font-size: 21px; margin: 16px 0 0; }

/* Real notch states dropping out of the notch */
.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.states figure { margin: 0; text-align: center; }
.states img { width: 100%; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.states figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; }
.drop-in img { clip-path: inset(0 0 100% 0); transform: translateY(-12px); transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease); }
.drop-in.in img { clip-path: inset(0 0 0 0); transform: none; }
.drop-in:nth-child(2) img { transition-delay: 0.1s; } .drop-in:nth-child(3) img { transition-delay: 0.2s; }
.drop-in:nth-child(4) img { transition-delay: 0.05s; } .drop-in:nth-child(5) img { transition-delay: 0.15s; } .drop-in:nth-child(6) img { transition-delay: 0.25s; }

/* Agents Awake split with lid animation over the real screen */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding: 150px max(16px, calc((100vw - 1180px) / 2)) 0; }
.copy p:not(.eyebrow) { color: var(--muted); font-size: 20px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; text-align: left; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--soft); font-size: 17px; }
.checks [data-lucide] { color: var(--green); flex: none; margin-top: 4px; }
.lid { position: relative; height: 430px; perspective: 1500px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 70px; }
.lid-screen { width: 92%; aspect-ratio: 1560 / 750; border-radius: 14px 14px 4px 4px; overflow: hidden; background: #0b0b0c; box-shadow: 0 0 0 1px #2c2c2e; transform-origin: bottom; animation: lid 8s var(--ease) infinite; }
.lid-screen img { width: 100%; height: 100%; object-fit: cover; }
.lid-base { width: 104%; height: 14px; border-radius: 4px 4px 14px 14px; background: linear-gradient(#3a3a3c, #1c1c1e); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8); }
.lid-badge { position: absolute; bottom: 0; width: 62%; opacity: 0; animation: badge 8s var(--ease) infinite; }
.lid-badge img { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
@keyframes lid { 0%, 25% { transform: rotateX(0); filter: brightness(1); } 45%, 80% { transform: rotateX(-86deg); filter: brightness(0.25); } 100% { transform: rotateX(0); filter: brightness(1); } }
@keyframes badge { 0%, 42% { opacity: 0; transform: translateY(10px); } 50%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }

/* All tools grid with real screenshots */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform 0.5s var(--ease), background 0.3s; }
.card:hover { transform: translateY(-6px); background: var(--raised); }
.card .shot { overflow: hidden; aspect-ratio: 1560 / 750; border-bottom: 1px solid var(--line); }
.card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .shot img { transform: scale(1.06); }
.card .txt { padding: 18px 22px 24px; }
.card h3 { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* Film */
.film { border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(var(--glow), 0.05); }
.film video { width: 100%; height: auto; background: #000; }

/* Privacy */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.three > div { padding: 30px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.three p { color: var(--muted); margin: 0; }

/* Pricing */
.price-card { max-width: 460px; margin: 0 auto; padding: 48px 38px 34px; border-radius: 34px; text-align: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 30px 140px rgba(var(--glow), 0.07); }
.price-card svg.star { width: 60px; height: 44px; }
.plan { margin: 14px 0 0; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.amount { margin: 8px 0 0; font-size: 72px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.once { margin: 8px 0 0; color: var(--muted); }
.regional { display: inline-block; margin: 14px 0 0; padding: 5px 12px; border-radius: 999px; background: rgba(48, 209, 88, 0.14); color: var(--green); font-size: 13px; font-weight: 600; }
.price-card .checks { margin: 28px 0; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 22px 4px; }
summary { cursor: pointer; font-size: 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 26px; line-height: 1; transition: transform 0.35s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; font-size: 17px; }

footer { text-align: center; padding: 120px 16px 60px; margin-top: 150px; border-top: 1px solid var(--line); }
footer svg.star { width: 64px; height: 46px; }
.brandline { font-weight: 700; font-size: 34px; letter-spacing: -0.03em; margin: 12px 0 0; }
.tag { color: var(--muted); margin: 6px 0 26px; font-size: 17px; }
.links { color: var(--muted); font-size: 14px; }
.links a:hover { color: var(--text); }
.legal { color: var(--faint); font-size: 12px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 160%); padding: 12px 20px; border-radius: 999px; background: var(--raised); box-shadow: 0 0 0 1px var(--line), 0 10px 40px rgba(0, 0, 0, 0.6); font-size: 14px; transition: transform 0.5s var(--ease); z-index: 100; }
.toast.show { transform: translate(-50%, 0); }

/* Reveal variants */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); filter: blur(6px); }
.reveal[data-anim="left"] { transform: translateX(-48px); }
.reveal[data-anim="right"] { transform: translateX(48px); }
.reveal[data-anim="scale"] { transform: scale(0.92); }
.reveal.in { opacity: 1; transform: none; filter: none; }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .tour { grid-template-columns: 1fr; gap: 0; padding-top: 100px; }
  .tour-sticky { top: 64px; height: auto; z-index: 2; padding: 14px 0 20px; background: linear-gradient(var(--bg) 88%, transparent); }
  .tour-steps article { min-height: 60vh; }
  .split, .grid, .three, .states { grid-template-columns: 1fr; }
  .counters { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .lid { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .stage { height: auto; } .stage-inner { position: static; height: auto; padding: 40px 16px; }
  .stage, .statement { --p: 1 !important; } .statement { height: auto; } .words { position: static; } .words span { opacity: 1; }
  .drop-in img { clip-path: none; transform: none; }
}
