:root{
  /* ---- Light theme (default) ---- */
  --ink:#1d1d1f;          /* Apple near-black */
  --ink-soft:#55555a;     /* secondary gray — darkened for ~4.5:1 contrast over glass */
  --line:rgba(0,0,0,0.08);
  --bg-1:#ffffff;         /* backdrop stops */
  --bg-2:#f5f5f7;
  --bg-3:#ececed;
  --accent:#0071e3;       /* Apple blue */
  --accent-hi:#0077ed;
  /* glass tokens */
  --glass-bg:rgba(255,255,255,0.62);       /* a touch more opaque = firmer text bed */
  --glass-edge:rgba(255,255,255,0.6);      /* the overlay stroke */
  --glass-inset:rgba(255,255,255,0.9);     /* top inner highlight */
  --glass-shadow:0 1px 1px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.10);
  --glass-text-shadow:0 1px 2px rgba(255,255,255,0.5);  /* subtle separation, matches light bg */
  --orb:rgba(0,113,227,0.10);
  --shape-2:rgba(120,90,255,0.16);   /* soft violet */
  --shape-3:rgba(0,200,180,0.14);    /* soft teal */
  --hover-tint:rgba(0,0,0,0.05);
  --radius:22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1); /* smooth Apple-like ease-out */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* snappy overshoot — the "bounce" from the AE video */

  /* ---- Spacing scale: every step divisible by 4 (Refactoring UI rule) ---- */
  --space-1:4px;  --space-2:8px;  --space-3:12px; --space-4:16px;
  --space-5:24px; --space-6:32px; --space-7:48px; --space-8:64px;

  /* ---- Type scale in rem, so it respects the user's browser font size ---- */
  --text-xs:0.75rem;    /* 12 */
  --text-sm:0.8125rem;  /* 13 */
  --text-base:0.9375rem;/* 15 */
  --text-md:1rem;       /* 16 */
  --text-lg:1.375rem;   /* 22 */
  --line-tight:1.05;    /* big headings */
  --line-snug:1.2;
  --line-body:1.55;     /* body copy — looser, inversely proportional to size */
}

/* ---- Dark theme: charcoal glass ---- */
/* Applied automatically by system preference, or manually via [data-theme] */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ink:#f5f5f7;
    --ink-soft:#b0b0b6;    /* lifted for stronger contrast over charcoal glass */
    --line:rgba(255,255,255,0.12);
    --bg-1:#161617;
    --bg-2:#0a0a0b;
    --bg-3:#000000;
    --accent:#2997ff;      /* Apple dark-mode blue */
    --accent-hi:#4aa8ff;
    --glass-bg:rgba(40,40,44,0.6);
    --glass-edge:rgba(255,255,255,0.14);
    --glass-inset:rgba(255,255,255,0.14);
    --glass-shadow:0 1px 1px rgba(0,0,0,0.4), 0 16px 50px rgba(0,0,0,0.55);
    --glass-text-shadow:0 1px 2px rgba(0,0,0,0.5);
    --orb:rgba(41,151,255,0.18);
    --shape-2:rgba(140,110,255,0.22);
    --shape-3:rgba(0,210,190,0.18);
    --hover-tint:rgba(255,255,255,0.08);
  }
}
:root[data-theme="dark"]{
  --ink:#f5f5f7;
  --ink-soft:#b0b0b6;
  --line:rgba(255,255,255,0.12);
  --bg-1:#161617;
  --bg-2:#0a0a0b;
  --bg-3:#000000;
  --accent:#2997ff;
  --accent-hi:#4aa8ff;
  --glass-bg:rgba(40,40,44,0.6);
  --glass-edge:rgba(255,255,255,0.14);
  --glass-inset:rgba(255,255,255,0.14);
  --glass-shadow:0 1px 1px rgba(0,0,0,0.4), 0 16px 50px rgba(0,0,0,0.55);
  --glass-text-shadow:0 1px 2px rgba(0,0,0,0.5);
  --orb:rgba(41,151,255,0.18);
  --shape-2:rgba(140,110,255,0.22);
  --shape-3:rgba(0,210,190,0.18);
  --hover-tint:rgba(255,255,255,0.08);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }

body{
  font-family:var(--font);
  color:var(--ink);
  background:var(--bg-2);
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  transition:background .5s var(--ease), color .5s var(--ease);
}

/* ---- Page transition: fade + lift on arrival, fade out on leave ---- */
.page{ opacity:0; transform:translateY(10px); animation:pageIn .6s var(--ease) forwards; }
@keyframes pageIn{ to{ opacity:1; transform:translateY(0); } }
body.leaving .page{ opacity:0; transform:translateY(-8px); transition:opacity .32s var(--ease), transform .32s var(--ease); animation:none; }

/* Very quiet backdrop: one soft accent orb over a calm gradient */
.backdrop{ position:fixed; inset:0; z-index:-1; transition:background .5s var(--ease); background:
    radial-gradient(1200px 800px at 50% -10%, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%); }
.orb{
  position:fixed; z-index:-1; width:60vw; height:60vw; left:50%; top:38%;
  transform:translate(-50%,-50%); border-radius:50%;
  background:radial-gradient(circle at 50% 50%, var(--orb), rgba(0,0,0,0) 62%);
  filter:blur(20px); pointer-events:none; transition:background .5s var(--ease);
}

/* Depth layer: soft blurred shapes drifting at different depths behind the glass */
.depth{ position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.shape{ position:absolute; border-radius:50%; filter:blur(48px); opacity:0.5;
  transition:background .5s var(--ease); will-change:transform; }
.shape.s1{ width:34vw; height:34vw; left:8%;  top:20%;
  background:radial-gradient(circle at 40% 40%, var(--accent), transparent 66%);
  animation:float1 26s ease-in-out infinite alternate; }
.shape.s2{ width:26vw; height:26vw; right:6%; top:30%;
  background:radial-gradient(circle at 50% 50%, var(--shape-2), transparent 66%);
  animation:float2 32s ease-in-out infinite alternate; }
.shape.s3{ width:22vw; height:22vw; left:22%; bottom:6%;
  background:radial-gradient(circle at 50% 50%, var(--shape-3), transparent 66%);
  animation:float3 29s ease-in-out infinite alternate; }
@keyframes float1{ 0%{transform:translate(0,0)} 100%{transform:translate(3vw,-4vh)} }
@keyframes float2{ 0%{transform:translate(0,0)} 100%{transform:translate(-3vw,3vh)} }
@keyframes float3{ 0%{transform:translate(0,0)} 100%{transform:translate(2vw,2vh)} }

/* ---- The glass surface: frosted body + subtle overlay border ---- */
.glass{
  position:relative;
  background:var(--glass-bg);
  -webkit-backdrop-filter:blur(24px) saturate(160%);
  backdrop-filter:blur(24px) saturate(160%);
  border-radius:var(--radius);
  box-shadow:var(--glass-shadow), inset 0 1px 0 var(--glass-inset);
  transition:background .5s var(--ease), box-shadow .5s var(--ease);
}
/* the "duplicated shape, white stroke, overlay ~30%" border from the video */
.glass::after{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  border:1px solid var(--glass-edge);
  mix-blend-mode:overlay; opacity:0.9;
  box-shadow:inset 0 0 0 0.5px var(--glass-edge);
}
/* Legibility: text sitting on glass gets a subtle shadow to separate from what's behind it. */
.glass h1, .glass h2, .glass h3, .glass p, .glass li, .glass summary, .glass .l, .glass label{
  text-shadow:var(--glass-text-shadow);
}

/* ---- Reduce Transparency (accessibility): swap glass for solid, kill blur ---- */
/* Toggled via [data-contrast="solid"] on <html>. The system-level fix the video calls out. */
:root[data-contrast="solid"] .glass{
  background:var(--bg-1) !important;
  -webkit-backdrop-filter:none !important; backdrop-filter:none !important;
  border:1px solid var(--line);
}
:root[data-contrast="solid"] .glass::after{ display:none; }
:root[data-contrast="solid"] .glass h1,
:root[data-contrast="solid"] .glass h2,
:root[data-contrast="solid"] .glass h3,
:root[data-contrast="solid"] .glass p,
:root[data-contrast="solid"] .glass li,
:root[data-contrast="solid"] .glass summary,
:root[data-contrast="solid"] .glass .l,
:root[data-contrast="solid"] .glass label{ text-shadow:none; }
:root[data-contrast="solid"] .orb,
:root[data-contrast="solid"] .depth{ opacity:0.35; } /* calm the busy backdrop too */
:root[data-contrast="solid"] .glare::before,
:root[data-contrast="solid"] .glow::after{ display:none; }

/* ---- Nav: left-aligned bar at all widths (logo in the corner, links flow from left) ---- */
header.nav{
  position:fixed; top:14px; left:0; right:0; margin:0 auto;
  width:min(1080px, calc(100% - 28px)); z-index:70;
  display:flex; align-items:center; gap:14px;
  padding:10px 12px 10px 20px; border-radius:999px;
}
.brand{ display:flex; align-items:center; gap:9px; font-weight:600; font-size:var(--text-md); letter-spacing:-0.2px; color:var(--ink); text-decoration:none; flex:none; }
.brand .mark{ width:24px; height:24px; flex:none; display:grid; place-items:center; color:var(--accent); }
.brand .mark svg{ width:24px; height:24px; display:block; }
/* Links sit just after the brand, on the left */
nav.links{ display:flex; gap:4px; flex:0 1 auto; min-width:0; }
nav.links a{ text-decoration:none; color:var(--ink); font-size:var(--text-sm); font-weight:500; padding:8px 14px; border-radius:999px; white-space:nowrap; transition:background .3s var(--ease); }
nav.links a:hover{ background:var(--hover-tint); }
nav.links a.active{ background:var(--hover-tint); }
/* Controls pushed to the far right */
.nav-right{ display:flex; align-items:center; gap:6px; flex:none; margin-left:auto; }
.nav-right .contrast-toggle{ margin-right:6px; position:relative; }
.nav-right .contrast-toggle::after{
  content:""; position:absolute; right:-9px; top:50%; transform:translateY(-50%);
  width:1px; height:20px; background:var(--line);
}

/* ---- Mobile bottom navigation bar (Kole Jain: bottom nav, ≤5 links, 44px targets) ---- */
/* Hidden on desktop; shown as a fixed glass bar at the bottom on mobile. Links live IN the
   bar (not a floating button over content), so it never blocks the page. */
.bottom-nav{
  display:none; position:fixed; z-index:75;
  left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom, 0px));
  padding:6px; border-radius:22px;
  align-items:stretch; gap:4px;
  background:var(--glass-bg);
  -webkit-backdrop-filter:blur(24px) saturate(160%); backdrop-filter:blur(24px) saturate(160%);
  box-shadow:var(--glass-shadow), inset 0 1px 0 var(--glass-inset);
}
:root[data-contrast="solid"] .bottom-nav{ background:var(--bg-1); backdrop-filter:none; -webkit-backdrop-filter:none; border:1px solid var(--line); }
.bottom-nav a{
  flex:1 1 0; min-height:44px;           /* 44px tap target */
  display:flex; align-items:center; justify-content:center;
  text-decoration:none; color:var(--ink); font-size:0.8125rem; font-weight:500;
  border-radius:16px; padding:6px 4px; text-align:center; white-space:nowrap;
  transition:background .25s var(--ease);
}
.bottom-nav a:active{ background:var(--hover-tint); }
.bottom-nav a.active{ background:var(--hover-tint); }
.bottom-nav a.b-cta{ background:var(--accent); color:#fff; flex:1.3 1 0; }
.theme-toggle{
  width:38px; height:38px; flex:none; border:none; cursor:pointer; border-radius:999px;
  background:var(--hover-tint); color:var(--ink); font-size:16px; line-height:1;
  display:grid; place-items:center; transition:background .3s var(--ease), transform .3s var(--ease);
}
.theme-toggle:hover{ transform:translateY(-1px); }
.theme-toggle .moon{ display:none; }
:root[data-theme="dark"] .theme-toggle .sun,
.theme-toggle.is-dark .sun{ display:none; }
:root[data-theme="dark"] .theme-toggle .moon,
.theme-toggle.is-dark .moon{ display:inline; }
/* Contrast toggle reuses the round button look; shows filled vs outline glass icon */
.contrast-toggle{
  width:38px; height:38px; flex:none; border:none; cursor:pointer; border-radius:999px;
  background:var(--hover-tint); color:var(--ink); font-size:15px; line-height:1;
  display:grid; place-items:center; transition:background .3s var(--ease), transform .3s var(--ease);
}
.contrast-toggle:hover{ transform:translateY(-1px); }
.contrast-toggle .on{ display:none; }
.contrast-toggle.is-solid .off{ display:none; }
.contrast-toggle.is-solid .on{ display:inline; }
/* Sound toggle reuses the round button look; shows muted vs on */
.sound-toggle{
  width:38px; height:38px; flex:none; border:none; cursor:pointer; border-radius:999px;
  background:var(--hover-tint); color:var(--ink); font-size:15px; line-height:1;
  display:grid; place-items:center; transition:background .3s var(--ease), transform .3s var(--ease);
}
.sound-toggle:hover{ transform:translateY(-1px); }
.sound-toggle .on{ display:none; }
.sound-toggle.is-on .off{ display:none; }
.sound-toggle.is-on .on{ display:inline; color:var(--accent); }
/* Music toggle (single icon) glows accent when playing */
#musicToggle.is-on{ color:var(--accent); background:color-mix(in srgb, var(--accent) 18%, var(--hover-tint)); }
.nav-cta{
  border:none; cursor:pointer; font-weight:500; font-size:var(--text-sm); color:#fff;
  padding:9px 18px; border-radius:999px; background:var(--accent); text-decoration:none; display:inline-block;
  transition:transform .35s var(--spring), background .3s var(--ease);
}
.nav-cta:hover{ background:var(--accent-hi); transform:translateY(-2px); }
.nav-cta:active{ transform:scale(0.95); }

/* ---- Hero ---- */
.hero{ min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:120px 22px 90px; }
.eyebrow{ font-size:14px; font-weight:600; color:var(--accent); letter-spacing:-0.1px; margin-bottom:16px; }
.hero h1{ font-weight:600; font-size:clamp(40px,7vw,80px); line-height:1.05; letter-spacing:-2px; max-width:15ch; }
.hero .sub{ margin:20px auto 46px; max-width:34ch; font-size:clamp(17px,2.4vw,22px); line-height:1.45; color:var(--ink-soft); font-weight:400; }

/* The centered product-style glass panel — pulled up to overlap the headline (negative-margin depth) */
.product{
  margin-top:-14px; width:min(720px,100%); padding:44px 40px 40px; text-align:center; position:relative; z-index:2;
}
.product .badge{ font-size:12px; font-weight:600; letter-spacing:0.4px; text-transform:uppercase; color:var(--ink-soft); }
.product h2{ margin-top:10px; font-size:clamp(26px,4vw,38px); font-weight:600; letter-spacing:-1px; }
.product p{ margin:14px auto 0; max-width:44ch; font-size:var(--text-md); line-height:var(--line-body); color:var(--ink-soft); }
.specs{ display:flex; justify-content:center; gap:0; margin:30px 0 34px; flex-wrap:wrap; }
.spec{ padding:0 26px; }
.spec + .spec{ border-left:1px solid var(--line); }
.spec .n{ font-size:clamp(26px,4vw,34px); font-weight:600; letter-spacing:-1px; }
.spec .l{ font-size:13px; color:var(--ink-soft); margin-top:2px; }
.btns{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.btn-primary{ border:none; cursor:pointer; font-weight:500; font-size:var(--text-md); color:#fff; padding:13px 26px; border-radius:999px;
  text-decoration:none; display:inline-block;
  background:var(--accent); transition:transform .35s var(--spring), background .3s var(--ease); }
.btn-primary:hover{ background:var(--accent-hi); transform:translateY(-2px); }
.btn-primary:active{ transform:translateY(0) scale(0.96); }
.btn-link{ background:none; border:none; cursor:pointer; font-size:var(--text-md); font-weight:500; color:var(--accent); padding:13px 8px; text-decoration:none; }
.btn-link:hover{ text-decoration:underline; }

/* ---- Cards get a springy lift on hover ---- */
.card{ transition:transform .35s var(--spring), box-shadow .35s var(--ease); }
.card:not(.tilt):hover{ transform:translateY(-4px); }

/* ---- Cursor-follow glare on glass + 3D tilt (JS sets --mx/--my/--rx/--ry) ---- */
.tilt{
  transform:perspective(800px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--ty,0px));
  transition:transform .25s var(--ease);
  will-change:transform;
}
/* A specular highlight that tracks the pointer across the glass surface. */
.glare{ position:relative; }
.glare::before{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:3;
  opacity:0; transition:opacity .3s var(--ease);
  background:radial-gradient(220px circle at var(--mx,50%) var(--my,50%),
             rgba(255,255,255,0.35), rgba(255,255,255,0) 60%);
  mix-blend-mode:screen;
}
.glare:hover::before{ opacity:1; }

/* ---- Loading screen: glass logo mark assembles, then fades to reveal the page ---- */
.loader{
  position:fixed; inset:0; z-index:200; display:grid; place-items:center;
  background:var(--bg-2); transition:opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader.done{ opacity:0; visibility:hidden; }
.loader-inner{ display:flex; align-items:center; gap:14px; }
.loader .mark{
  width:48px; height:48px; display:grid; place-items:center; color:var(--accent);
  background:none;
  transform:scale(0.4) rotate(-18deg); opacity:0;
  animation:markIn .7s var(--spring) forwards;
}
.loader .mark::before{
  content:""; width:48px; height:48px;
  background-color:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 L20 19 H4 Z'/%3E%3Cpath d='M3 12 h6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 L20 19 H4 Z'/%3E%3Cpath d='M3 12 h6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.loader .word{
  font-size:1.5rem; font-weight:600; letter-spacing:-0.5px; color:var(--ink);
  overflow:hidden; white-space:nowrap;
  clip-path:inset(0 100% 0 0); animation:wordIn .7s var(--ease) .28s forwards;
}
@keyframes markIn{ to{ transform:scale(1) rotate(0deg); opacity:1; } }
@keyframes wordIn{ to{ clip-path:inset(0 0 0 0); } }
@keyframes markGlow{
  from{ box-shadow:0 0 0 0 rgba(0,113,227,0.0), inset 0 1px 0 rgba(255,255,255,0.4); }
  to{ box-shadow:0 0 26px 2px rgba(0,113,227,0.45), inset 0 1px 0 rgba(255,255,255,0.4); }
}
:root[data-theme="dark"] .loader .mark, .loader.is-dark .mark{ /* glow uses accent blue in both themes */ }

/* ---- Interactive glow: draws the eye to the primary CTA (and optional card glow) ---- */
.glow{ position:relative; }
.glow::after{
  content:""; position:absolute; inset:-2px; border-radius:inherit; z-index:-1;
  background:radial-gradient(120px circle at 50% 50%, var(--accent), transparent 70%);
  opacity:0.55; filter:blur(14px);
  animation:pulseGlow 2.4s var(--ease) infinite alternate;
}
@keyframes pulseGlow{ from{ opacity:0.35; } to{ opacity:0.7; } }
.glow:hover::after{ opacity:0.85; }

/* ---- Visible focus ring for keyboard users (accessibility) ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--accent); outline-offset:3px; border-radius:6px;
}

/* ---- Morphing button → panel (the AE "shape morph" idea, done on the web with FLIP) ---- */
/* The trigger button that will expand. */
.morph-trigger{ position:relative; z-index:1; }

/* Full-screen dim behind the expanded panel. */
.morph-scrim{
  position:fixed; inset:0; z-index:80; background:rgba(0,0,0,0); pointer-events:none;
  transition:background .4s var(--ease); backdrop-filter:blur(0px); -webkit-backdrop-filter:blur(0px);
}
.morph-scrim.open{ background:rgba(0,0,0,0.28); pointer-events:auto; backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px); }

/* The morphing surface. Starts sized/positioned exactly over the button, then springs to the panel size. */
.morph-panel{
  position:fixed; z-index:90; border-radius:999px; overflow:hidden;
  background:var(--accent); color:#fff;
  box-shadow:var(--glass-shadow);
  transition:
    left .5s var(--spring), top .5s var(--spring),
    width .5s var(--spring), height .5s var(--spring),
    border-radius .5s var(--spring), background .45s var(--ease);
  display:grid; /* center the collapsed label */
}
.morph-panel.expanded{
  background:var(--glass-bg);
  -webkit-backdrop-filter:blur(24px) saturate(160%);
  backdrop-filter:blur(24px) saturate(160%);
  border-radius:var(--radius);
}
/* Collapsed label (mirrors the button text) fades out as it opens. */
.morph-label{ place-self:center; font-size:16px; font-weight:500; white-space:nowrap; transition:opacity .18s var(--ease); }
.morph-panel.expanded .morph-label{ opacity:0; pointer-events:none; }
/* Panel content fades/slides in once expanded. */
.morph-content{
  position:absolute; inset:0; padding:34px 34px 30px; color:var(--ink); text-align:left;
  opacity:0; transform:translateY(10px); transition:opacity .3s var(--ease), transform .35s var(--spring);
  overflow:auto;
}
.morph-panel.expanded .morph-content{ opacity:1; transform:translateY(0); transition-delay:.18s; }
.morph-content h3{ font-size:22px; font-weight:600; letter-spacing:-0.5px; margin-bottom:8px; }
.morph-content p{ color:var(--ink-soft); font-size:15px; line-height:1.55; margin-bottom:18px; }
.morph-close{
  position:absolute; top:14px; right:14px; width:32px; height:32px; border:none; cursor:pointer;
  border-radius:999px; background:var(--hover-tint); color:var(--ink); font-size:16px; line-height:1;
  display:grid; place-items:center; transition:transform .3s var(--spring);
}
.morph-close:hover{ transform:rotate(90deg); }

/* ---- Interior page sections ---- */
.section{ max-width:940px; margin:0 auto; padding:150px 22px 40px; }
.section-head{ text-align:center; margin-bottom:44px; }
.section-head .eyebrow{ display:block; }
.section-head h1{ font-weight:600; font-size:clamp(34px,6vw,60px); letter-spacing:-1.5px; line-height:1.05; }
.section-head p{ margin:16px auto 0; max-width:46ch; color:var(--ink-soft); font-size:clamp(16px,2.2vw,19px); line-height:1.5; }

.cards{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:18px; }
.card{ padding:28px 24px; text-align:left; }
.card .ic{ width:44px; height:44px; border-radius:12px; display:grid; place-items:center; margin-bottom:14px;
  background:var(--hover-tint); }
/* Inline-SVG icons: 24px grid, 2px stroke, currentColor so they adapt to theme/accent */
.icon{ width:22px; height:22px; display:block; fill:none; stroke:currentColor; stroke-width:2;
  stroke-linecap:round; stroke-linejoin:round; }
.card .ic .icon{ color:var(--accent); }        /* feature icons carry the accent */
.moment .m-figure .icon{ width:clamp(56px,12vw,110px); height:clamp(56px,12vw,110px); color:var(--accent); margin:0 auto; }
.step-num{ font-size:1rem; font-weight:600; color:var(--accent); }
.card h3{ font-size:1.125rem; font-weight:600; letter-spacing:-0.3px; margin-bottom:7px; }
.card p{ color:var(--ink-soft); font-size:var(--text-base); line-height:var(--line-body); font-weight:450; }

/* Glass form (contact) */
.panel{ max-width:560px; margin:0 auto; padding:36px 34px 34px; text-align:left; }
.panel h2{ font-size:1.625rem; font-weight:600; letter-spacing:-0.6px; margin-bottom:6px; }
.panel > p{ color:var(--ink-soft); font-size:var(--text-base); margin-bottom:24px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:var(--text-sm); font-weight:600; color:var(--ink-soft); margin-bottom:7px; }
.field input, .field textarea{
  width:100%; font-family:inherit; font-size:var(--text-base); color:var(--ink);
  background:var(--hover-tint); border:1px solid var(--line); border-radius:14px;
  padding:13px 15px; outline:none; transition:border-color .25s var(--ease), background .25s var(--ease);
}
.field input:focus, .field textarea:focus{ border-color:var(--accent); }
.field textarea{ resize:vertical; min-height:96px; }

/* ---- Scrollytelling ---- */
.scroll-intro{ min-height:88vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:150px 22px 40px; }
.scroll-intro h1{ font-weight:600; font-size:clamp(36px,6.5vw,72px); letter-spacing:-2px; line-height:1.04; max-width:16ch; }
.scroll-intro p{ margin-top:18px; max-width:40ch; color:var(--ink-soft); font-size:clamp(16px,2.4vw,20px); line-height:1.5; }
.scroll-hint{ margin-top:38px; color:var(--ink-soft); font-size:13px; letter-spacing:0.5px; }
.scroll-hint .arrow{ display:block; margin:10px auto 0; width:20px; height:20px; border-right:2px solid var(--ink-soft); border-bottom:2px solid var(--ink-soft); transform:rotate(45deg); animation:bob 1.8s var(--ease) infinite; }
@keyframes bob{ 0%,100%{ transform:rotate(45deg) translate(0,0); opacity:.6 } 50%{ transform:rotate(45deg) translate(3px,3px); opacity:1 } }

/* Pinned section: sticky visual on the left, scrolling copy on the right */
.pin-wrap{ max-width:1000px; margin:0 auto; padding:0 22px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px; align-items:start; }
.pin-visual{ position:sticky; top:0; height:100vh; display:flex; align-items:center; justify-content:center; }
.pin-card{ width:min(380px,100%); aspect-ratio:4/5; padding:0; display:grid; place-items:center; position:relative; }
.pin-card .glyph{ font-size:clamp(70px,12vw,120px); line-height:1; transition:transform .35s var(--spring), opacity .25s var(--ease); color:var(--accent); }
.pin-card .glyph .icon{ width:clamp(72px,12vw,120px); height:clamp(72px,12vw,120px); }
.pin-steps{ padding:14vh 0; }
.pin-step{ min-height:78vh; display:flex; flex-direction:column; justify-content:center; }
.pin-step .num{ font-size:13px; font-weight:700; letter-spacing:1px; color:var(--accent); text-transform:uppercase; }
.pin-step h2{ font-size:clamp(26px,4vw,40px); font-weight:600; letter-spacing:-1px; margin:10px 0 12px; }
.pin-step p{ color:var(--ink-soft); font-size:clamp(16px,2.2vw,18px); line-height:1.55; max-width:42ch; }

/* Reveal-on-scroll base state (GSAP toggles .is-in) */
.sr{ opacity:0; transform:translateY(34px); transition:opacity .7s var(--ease), transform .7s var(--spring); will-change:opacity,transform; }
.sr.is-in{ opacity:1; transform:translateY(0); }

/* Data-viz bars that grow on scroll */
.stat-row{ max-width:720px; margin:0 auto; padding:12vh 22px; display:flex; flex-direction:column; gap:22px; }
.bar{ }
.bar .bar-top{ display:flex; justify-content:space-between; font-size:14px; font-weight:600; margin-bottom:8px; }
.bar .bar-top .v{ color:var(--accent); }
.bar .track{ height:12px; border-radius:999px; background:var(--hover-tint); overflow:hidden; }
.bar .fill{ height:100%; width:0; border-radius:999px; background:linear-gradient(90deg,var(--accent),var(--accent-hi)); transition:width 1.1s var(--ease); }

@media (max-width:720px){
  .pin-wrap{ grid-template-columns:1fr; gap:0; }
  .pin-visual{ height:60vh; top:70px; }
  .pin-step{ min-height:60vh; }
}

/* ---- Real-site sections (Prism example) ---- */
/* Alternating feature rows: text + a hand-built CSS mockup */
.feature-row{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:56px; align-items:center; margin:0 auto 20px; max-width:960px; padding:72px 22px; }
.feature-row.flip .feature-text{ order:2; }
.feature-text .eyebrow{ display:block; margin-bottom:10px; }
.feature-text h2{ font-size:clamp(26px,4vw,40px); font-weight:600; letter-spacing:-1px; line-height:1.08; }
.feature-text p{ margin-top:14px; color:var(--ink-soft); font-size:var(--text-md); line-height:var(--line-body); max-width:44ch; }
.feature-visual{ display:flex; align-items:center; justify-content:center; }

/* A simple phone mockup rendered in glass */
.phone{ width:230px; height:470px; border-radius:38px; padding:12px; position:relative;
  background:linear-gradient(160deg, rgba(255,255,255,0.5), rgba(255,255,255,0.15)); }
/* "Example" tag so the preview reads as a mockup — sits at the phone's bottom-right, clear of the CTA above */
.phone .phone-tag{
  position:absolute; z-index:5; bottom:16px; right:16px;
  font-size:10px; font-weight:700; letter-spacing:0.8px; text-transform:uppercase;
  color:#fff; background:var(--accent); padding:4px 12px; border-radius:999px;
  box-shadow:0 4px 12px rgba(0,0,0,0.2);
}
.phone .screen{ width:100%; height:100%; border-radius:28px; overflow:hidden; position:relative;
  background:linear-gradient(180deg, var(--bg-1), var(--bg-3)); display:flex; flex-direction:column; }
.phone .notch{ position:absolute; top:10px; left:50%; transform:translateX(-50%); width:82px; height:20px; border-radius:12px; background:rgba(0,0,0,0.25); z-index:3; }

/* App preview inside the phone — a clean glimpse of the real Today page */
.phone .app-preview{ padding:44px 20px 22px; display:flex; flex-direction:column; gap:16px; height:100%; text-align:left; }
.phone .ap-date{ font-size:12px; font-weight:600; color:var(--accent); letter-spacing:0.3px; }
.phone .ap-intent{ display:flex; flex-direction:column; gap:4px; }
.phone .ap-intent .ap-label{ font-size:10px; font-weight:600; letter-spacing:0.6px; text-transform:uppercase; color:var(--ink-soft); }
.phone .ap-intent .ap-text{ font-size:16px; font-weight:600; letter-spacing:-0.3px; line-height:1.25; color:var(--ink); }
.phone .ap-habits{ list-style:none; display:flex; flex-direction:column; gap:9px; margin-top:2px; }
.phone .ap-habits li{ display:flex; align-items:center; gap:9px; font-size:12.5px; color:var(--ink-soft); }
.phone .ap-check{ width:16px; height:16px; flex:none; border-radius:999px; border:2px solid var(--ink-soft); position:relative; }
.phone .ap-done{ color:var(--ink); }
.phone .ap-done .ap-check{ background:var(--accent); border-color:var(--accent); }
.phone .ap-done .ap-check::after{ content:""; position:absolute; left:4px; top:1px; width:4px; height:8px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.phone .ap-done{ text-decoration:line-through; text-decoration-color:var(--ink-soft); }

/* Pricing */
.pricing{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; max-width:960px; margin:0 auto; padding:0 22px; }
.price-card{ padding:32px 26px; display:flex; flex-direction:column; text-align:left; }
.price-card.feat{ transform:scale(1.03); }
.price-card .tier{ font-size:var(--text-sm); font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--ink-soft); }
.price-card .amt{ font-size:44px; font-weight:600; letter-spacing:-1.5px; margin:12px 0 2px; }
.price-card .amt span{ font-size:15px; color:var(--ink-soft); font-weight:400; }
.price-card ul{ list-style:none; margin:20px 0 24px; display:flex; flex-direction:column; gap:11px; }
.price-card li{ font-size:var(--text-base); color:var(--ink-soft); display:flex; gap:9px; align-items:flex-start; }
.price-card li::before{ content:"✓"; color:var(--accent); font-weight:700; }
.price-card .badge{ align-self:flex-start; font-size:11px; font-weight:700; letter-spacing:0.6px; text-transform:uppercase;
  padding:4px 11px; border-radius:999px; background:var(--accent); color:#fff; margin-bottom:12px; }
.price-card .btn-primary, .price-card .nav-cta{ margin-top:auto; text-align:center; }

/* FAQ (native details/summary) */
.faq{ max-width:720px; margin:0 auto; padding:0 22px; display:flex; flex-direction:column; gap:12px; }
.faq details{ padding:20px 22px; cursor:pointer; }
.faq summary{ list-style:none; font-weight:600; font-size:var(--text-md); display:flex; justify-content:space-between; align-items:center; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; color:var(--accent); font-size:22px; font-weight:400; transition:transform .3s var(--spring); }
.faq details[open] summary::after{ transform:rotate(45deg); }
.faq details p{ color:var(--ink-soft); font-size:var(--text-base); line-height:var(--line-body); margin-top:12px; }

@media (max-width:900px){
  .feature-row{ grid-template-columns:1fr; gap:28px; padding:56px 22px; }
  .feature-row.flip .feature-text{ order:0; }
  .feature-text p{ max-width:52ch; }        /* text is full-width now, let it breathe wider */
  .pricing{ grid-template-columns:1fr; max-width:440px; }
  .price-card.feat{ transform:none; }
}

/* ---- Marketing moment: one big idea, one full screen (Apple-style) ---- */
.moment{
  min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:12vh 24px; position:relative;
}
.moment .m-kicker{ font-size:var(--text-sm); font-weight:600; letter-spacing:1px; text-transform:uppercase; color:var(--accent); margin-bottom:18px; }
.moment h2{ font-weight:600; font-size:clamp(40px,8vw,92px); line-height:1.0; letter-spacing:-2.5px; max-width:14ch; }
.moment p{ margin-top:24px; max-width:38ch; color:var(--ink-soft); font-size:clamp(18px,2.6vw,24px); line-height:1.4; }
.moment .m-figure{ margin-top:48px; font-size:clamp(64px,14vw,140px); line-height:1; filter:saturate(1.1); }
@media (max-width:640px){
  .moment{ min-height:86vh; padding:14vh 20px; }
}

/* ---- Daily tool (intention + habits) ---- */
.tool{ max-width:720px; margin:0 auto; padding:130px 22px 40px; }
.tool-head{ text-align:center; margin-bottom:34px; }
.tool-head .today{ font-size:var(--text-sm); font-weight:600; letter-spacing:0.5px; text-transform:uppercase; color:var(--accent); }
.tool-head h1{ font-weight:600; font-size:clamp(30px,5vw,46px); letter-spacing:-1.2px; line-height:1.08; margin-top:8px; }

.tool-panel{ padding:28px 26px; margin-bottom:20px; }
.tool-panel h2{ font-size:1.125rem; font-weight:600; letter-spacing:-0.3px; margin-bottom:4px; display:flex; align-items:center; gap:10px; }
.tool-panel .hint{ color:var(--ink-soft); font-size:var(--text-base); margin-bottom:18px; }

/* Intention input */
.intention-field{ display:flex; gap:10px; }
.intention-field input{
  flex:1; font-family:inherit; font-size:var(--text-md); color:var(--ink);
  background:var(--hover-tint); border:1px solid var(--line); border-radius:14px; padding:14px 16px; outline:none;
  transition:border-color .25s var(--ease);
}
.intention-field input:focus{ border-color:var(--accent); }
.intention-saved{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.intention-saved .txt{ font-size:1.25rem; font-weight:500; letter-spacing:-0.3px; line-height:1.35; }
.intention-saved .edit{ flex:none; background:var(--hover-tint); border:none; cursor:pointer; color:var(--ink-soft); font-size:var(--text-sm); font-weight:600; padding:8px 14px; border-radius:999px; transition:background .25s var(--ease); }
.intention-saved .edit:hover{ background:var(--line); color:var(--ink); }

/* Habits */
.habit-list{ display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
.habit{
  display:flex; align-items:center; gap:14px; padding:14px 16px; border-radius:16px;
  background:var(--hover-tint); border:1px solid transparent; transition:border-color .25s var(--ease), background .25s var(--ease);
}
.habit.done{ border-color:color-mix(in srgb, var(--accent) 40%, transparent); }
.habit .check{
  width:26px; height:26px; flex:none; border-radius:999px; border:2px solid var(--ink-soft);
  display:grid; place-items:center; cursor:pointer; color:#fff; background:transparent;
  transition:background .25s var(--spring), border-color .25s var(--ease), transform .2s var(--spring);
}
.habit.done .check{ background:var(--accent); border-color:var(--accent); }
.habit .check svg{ width:14px; height:14px; opacity:0; transition:opacity .2s var(--ease); }
.habit.done .check svg{ opacity:1; }
.habit .check:active{ transform:scale(0.9); }
.habit .name{ flex:1; font-size:var(--text-md); font-weight:500; }
.habit.done .name{ color:var(--ink-soft); text-decoration:line-through; text-decoration-color:var(--ink-soft); }
.habit .del{ flex:none; background:none; border:none; cursor:pointer; color:var(--ink-soft); opacity:0; font-size:18px; line-height:1; padding:4px 8px; border-radius:8px; transition:opacity .2s var(--ease), background .2s var(--ease); }
.habit:hover .del{ opacity:1; }
.habit .del:hover{ background:var(--line); }
.add-habit{ display:flex; gap:10px; }
.add-habit input{
  flex:1; font-family:inherit; font-size:var(--text-base); color:var(--ink);
  background:transparent; border:1px dashed var(--line); border-radius:14px; padding:12px 14px; outline:none;
  transition:border-color .25s var(--ease);
}
.add-habit input:focus{ border-color:var(--accent); border-style:solid; }
.add-habit button{ flex:none; background:var(--accent); color:#fff; border:none; cursor:pointer; font-weight:600; font-size:var(--text-base); padding:0 20px; border-radius:14px; transition:background .25s var(--ease); }
.add-habit button:hover{ background:var(--accent-hi); }
.empty-habits{ color:var(--ink-soft); font-size:var(--text-base); text-align:center; padding:12px 0 18px; }

/* Week view */
.week{ display:flex; justify-content:space-between; gap:8px; }
.week .day{ flex:1; text-align:center; }
.week .day .dot{
  width:100%; aspect-ratio:1; max-width:44px; margin:0 auto 8px; border-radius:14px;
  background:var(--hover-tint); display:grid; place-items:center; font-size:var(--text-sm); font-weight:600; color:var(--ink-soft);
  transition:background .3s var(--ease), color .3s var(--ease);
}
.week .day.filled .dot{ color:#fff; }
.week .day .lbl{ font-size:11px; color:var(--ink-soft); font-weight:600; letter-spacing:0.3px; }
.week .day.today .lbl{ color:var(--accent); }
.week-summary{ text-align:center; color:var(--ink-soft); font-size:var(--text-base); margin-top:18px; }
.week-summary b{ color:var(--ink); font-weight:600; }

/* ---- News digest (calm reader) ---- */
.news-tabs{ display:flex; gap:6px; margin-bottom:18px; }
.news-tab{ border:none; cursor:pointer; font-family:inherit; font-size:var(--text-sm); font-weight:600;
  color:var(--ink-soft); background:var(--hover-tint); padding:9px 16px; border-radius:999px; transition:background .25s var(--ease), color .25s var(--ease); }
.news-tab.active{ background:var(--accent); color:#fff; }
.news-list{ display:flex; flex-direction:column; gap:14px; }
.story{ display:block; text-decoration:none; color:inherit; padding:18px 18px; border-radius:16px;
  background:var(--hover-tint); border:1px solid transparent; transition:border-color .25s var(--ease), transform .25s var(--spring); }
.story:hover{ border-color:color-mix(in srgb, var(--accent) 35%, transparent); transform:translateY(-2px); }
.story .meta{ display:flex; align-items:center; gap:8px; font-size:var(--text-xs); color:var(--ink-soft); margin-bottom:8px; }
.story .tag{ font-weight:700; letter-spacing:0.4px; text-transform:uppercase; color:var(--accent); }
.story .dot-sep{ opacity:0.5; }
.story h3{ font-size:1.0625rem; font-weight:600; letter-spacing:-0.3px; line-height:1.3; margin-bottom:6px; }
.story .tldr{ font-size:var(--text-base); color:var(--ink-soft); line-height:var(--line-body); }
.news-note{ text-align:center; color:var(--ink-soft); font-size:var(--text-sm); margin-top:16px; }

footer{ text-align:center; padding:40px 22px 80px; color:var(--ink-soft); font-size:13px; }footer .row{ display:flex; gap:20px; justify-content:center; margin-bottom:14px; flex-wrap:wrap; }
footer a{ color:var(--ink-soft); text-decoration:none; }
footer a:hover{ color:var(--ink); }

/* ---- Subtle, quick, smooth entrance motion (position slides + fades) ---- */
.reveal{ opacity:0; transform:translateY(22px); animation:rise .9s var(--ease) forwards; }
.d1{ animation-delay:.05s; } .d2{ animation-delay:.15s; } .d3{ animation-delay:.28s; } .d4{ animation-delay:.42s; }
.d5{ animation-delay:.54s; } .d6{ animation-delay:.66s; }
@keyframes rise{ to{ opacity:1; transform:translateY(0); } }

/* Masked text reveal for headlines */
.mask{ display:inline-block; overflow:hidden; padding-bottom:0.08em; }
.mask > span{ display:inline-block; transform:translateY(110%); animation:slideUp 1s var(--ease) forwards; }
.mask.m2 > span{ animation-delay:.12s; }
@keyframes slideUp{ to{ transform:translateY(0); } }

@media (max-width:900px){
  /* Slim, edge-to-edge top bar: brand pinned left, toggles right (no centered pill overflow) */
  header.nav{
    left:12px; right:12px; transform:none; width:auto;
    top:12px; padding:8px 10px 8px 16px; border-radius:18px; gap:10px;
  }
  .brand{ font-size:0.95rem; margin-right:auto; }  /* logo anchored top-left */

  /* Nav: desktop links → a fixed bottom bar; toggles stay in the top bar */
  nav.links{ display:none; }
  header.nav .nav-right .nav-cta{ display:none; } /* CTA lives in the bottom bar instead */
  .nav-right .contrast-toggle{ margin-right:0; }
  .nav-right .contrast-toggle::after{ display:none; } /* hide the divider on mobile */
  .bottom-nav{ display:flex; }
  /* clear space so the fixed bottom bar never covers page content */
  .page{ padding-bottom:96px; }
  footer{ padding-bottom:120px; }

  .spec + .spec{ border-left:none; }
  .specs{ gap:22px; }
  .cards{ grid-template-columns:repeat(2, minmax(0,1fr)); }  /* 2-up on tablet */

  /* Generous, poster-like spacing on small screens (Flux: whitespace = premium) */
  .hero{ padding:120px 20px 40px; }
  .section{ padding:96px 20px 30px; }
  /* keep the hero preview clear of the "how it works" link / bottom bar */
  .hero .feature-visual{ margin-top:32px; }

  /* Touch-friendly: full-width, well-spaced CTAs */
  .btns{ width:100%; }
  .btns .btn-primary, .btns .nav-cta{ width:100%; text-align:center; padding:15px 24px; }
  .price-card{ padding:28px 22px; }

  /* Tighten oversized headings a touch so they don't overflow */
  .hero h1{ letter-spacing:-1px; }
}

/* Phones: single column everywhere, extra-tight rhythm */
@media (max-width:560px){
  .cards{ grid-template-columns:1fr; }
  .feature-row{ padding:40px 20px; gap:22px; }
  .section{ padding:88px 18px 26px; }
  .hero{ padding:110px 18px 36px; }
}

/* ---- Touch devices: drop pointer-only effects (Flux 5:31) ---- */
@media (hover:none), (pointer:coarse){
  .tilt{ transform:none !important; }
  .glare::before{ display:none !important; }
  .card:not(.tilt):hover{ transform:none; }
}

@media (prefers-reduced-motion:reduce){
  .reveal,.mask>span,.page{ animation:none; opacity:1; transform:none; }
  .shape{ animation:none; }
  body.leaving .page{ transition:none; }
  .morph-panel,.morph-content,.morph-scrim{ transition:none; }
  .tilt{ transform:none !important; }
  .glare::before{ display:none; }
  .loader .mark{ animation:none; opacity:1; transform:none; }
  .loader .word{ animation:none; clip-path:none; }
  .glow::after{ animation:none; }
}

@media print{
  header.nav,.orb,.depth{ display:none; }
  .glass{ backdrop-filter:none; -webkit-backdrop-filter:none; background:var(--bg-1); border:1px solid var(--line); }
}
