/* cortexdesks.com homepage only. Pricing, legal pages and 404 use home.css.
 *
 * Palette is the shipped app's (lib/theme.tsx): true black, white, and green
 * as the one accent. Everything that moves on scroll animates transform and
 * opacity only, so the hero-to-card zoom stays on the compositor.
 *
 * Two layouts for the top of the page:
 *   pinned  (768px and up, motion allowed) the hero is sticky for one extra
 *           screen while its background shrinks into the demo card.
 *   static  (phones, or prefers-reduced-motion) hero text, then the card. */

:root {
  --black: #000;
  --ink-1: #0A0B0A;
  --ink-2: #111311;
  --ink-3: #1A1D1A;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #FFFFFF;
  --muted: #A3A3A3;
  --dim: #8E8E8E;
  /* The grey lead-in of a two-tone headline; its <span> is the white payoff. */
  --quiet: rgba(255, 255, 255, 0.5);
  --green: #0F6B3E;
  --neon: #2ECC71;
  --neon-soft: rgba(46, 204, 113, 0.14);
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* The app is SF Pro + Inter Tight: Apple devices get SF Pro here, everyone else Inter. */
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --track: -0.01em;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --card-w: min(70vw, calc((100vh - 230px) * 16 / 9));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: var(--track); line-height: 1.04; }
::selection { background: var(--neon); color: var(--black); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
  font: 600 15px/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.3s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-accent { background: var(--neon); color: var(--black); }
.btn-accent:hover { background: #45D985; box-shadow: 0 10px 40px -10px rgba(46, 204, 113, 0.65); }
.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }

/* -------------------------------- nav -------------------------------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; max-width: calc(100% - 24px);
  padding: 5px; border-radius: 999px;
  background: rgba(12, 13, 12, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
/* Pinned layout: the nav waits until the hero has become the demo card. */
.is-pinned .nav:not(.is-shown) { opacity: 0; transform: translate(-50%, -12px); pointer-events: none; }
.nav-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-right: 2px; }
.nav-icon img { border-radius: 8px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--display); letter-spacing: -0.02em; }
.nav-brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav-links a.is-current { color: var(--text); }
.nav .btn { margin-left: 4px; }

/* ---------------------------- hero + demo ---------------------------- */
.intro { position: relative; height: 230vh; }
.anchor { position: absolute; top: 105vh; left: 0; }
.intro-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }

.card {
  position: absolute; inset: 60px 0 0; margin: auto;
  width: var(--card-w); height: calc(var(--card-w) * 9 / 16);
  border-radius: 20px; overflow: hidden; isolation: isolate;
  background: var(--black);
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px -40px rgba(46, 204, 113, 0.35);
  transform-origin: 50% 50%; will-change: transform;
}
.card-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 70% at 50% 118%, rgba(46, 204, 113, 0.55), rgba(15, 107, 62, 0.35) 40%, transparent 72%),
    radial-gradient(60% 40% at 50% 100%, rgba(46, 204, 113, 0.25), transparent 70%),
    linear-gradient(#000 0%, #020403 55%, #04120a 100%);
}

.poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center; opacity: 0; pointer-events: none; }
.poster.is-live { pointer-events: auto; }
.poster-title { font: 700 clamp(26px, 3.4vw, 46px)/1.08 var(--display); letter-spacing: var(--track); }
.poster-play {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; font: 600 16px/1 var(--sans);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.poster-play svg { width: 20px; height: 20px; fill: currentColor; }
.poster-play:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.03); }
.poster-play:active { transform: scale(0.97); }

.hero {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 20px; text-align: center; will-change: transform, opacity;
}
.hero-title { font-size: clamp(44px, 6.6vw, 96px); line-height: 1; }
.hero-title { font-weight: 600; color: var(--quiet); }
.hero-title > span:not(.kern) { font-weight: 700; color: var(--text); }
.kern { letter-spacing: 0.03em; }
.hero-sub { max-width: 520px; margin-top: 24px; font: 400 19px/1.5 var(--sans); letter-spacing: var(--track); color: var(--muted); text-wrap: balance; }
.hero-sub b { display: block; font-weight: 500; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }

/* Language switch: small and grey so it never competes with the hero. */
.lang {
  position: absolute; z-index: 3; top: 22px; right: 24px;
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 500 13px/1 var(--sans); color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.lang:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.lang:active { transform: scale(0.97); }
.lang:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.78);
}
.scroll-cue svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(5px); } }

/* The demo player, inside the card once Play is pressed. */
.player { position: absolute; inset: 0; background: #000; }
.player[hidden] { display: none; }
.player-view { position: absolute; inset: 0; overflow: hidden; }
.player-view iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; }
.controls {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px;
  background: rgba(10, 10, 10, 0.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s var(--ease);
}
.player:hover .controls, .player:focus-within .controls, .player.is-paused .controls, .player.is-ended .controls { opacity: 1; transform: none; }
@media (hover: none) { .controls { opacity: 1; transform: none; } }
.ctl { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background-color 0.2s; }
.ctl:hover { background: rgba(255, 255, 255, 0.12); }
.ctl-rate { width: auto; min-width: 44px; padding: 0 10px; border-radius: 999px; font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.ctl svg { width: 18px; height: 18px; fill: currentColor; }
.ctl svg .w { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctl .i-play, .ctl .i-muted { display: none; }
.is-paused #ctlPlay .i-play, .is-ended #ctlPlay .i-play { display: block; }
.is-paused #ctlPlay .i-pause, .is-ended #ctlPlay .i-pause { display: none; }
.is-muted #ctlMute .i-muted { display: block; }
.is-muted #ctlMute .i-sound { display: none; }
.bar { flex: 1; height: 4px; margin: 0 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--neon); transform: scaleX(0); transform-origin: 0 50%; }
.card:fullscreen { border-radius: 0; }

/* ------------------------------ sections ----------------------------- */
.section { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 150px 0; }
.section-head { max-width: 720px; }
.label { margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neon); }
/* Two-tone headlines: a grey lead-in, then the white payoff in its <span>. */
.h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 600; color: var(--quiet); text-wrap: balance; }
.h2 > span:not(.kern) { font-weight: 700; color: var(--text); }
.h3 { font-size: clamp(28px, 3.4vw, 40px); }
.lead { max-width: 560px; margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* a) Say it once */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.trio { list-style: none; margin: 120px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.trio-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--ink-3); color: var(--neon); }
.trio-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trio b { display: block; font: 600 19px/1.3 var(--display); letter-spacing: var(--track); }
.trio p { margin-top: 8px; max-width: 300px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.ib { padding: 18px 18px 8px; border-radius: 20px; background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); }
.ib-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ib-title { display: flex; align-items: center; gap: 8px; font: 700 17px/1 var(--display); letter-spacing: -0.02em; }
.ib-count { padding: 2px 8px; border-radius: 999px; background: var(--text); color: var(--black); font: 700 11px/1.4 var(--sans); font-variant-numeric: tabular-nums; }
.ib-date { font-size: 12px; color: var(--dim); }
.ib-bar { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px 0 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s; }
.ib-bar.is-live { box-shadow: inset 0 0 0 1px var(--line-2); }
.ib-mic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: var(--black); }
.ib-mic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ib-wave { display: none; align-items: center; gap: 2px; height: 14px; }
.ib-wave i { width: 2.5px; height: 100%; border-radius: 2px; background: currentColor; transform: scaleY(0.25); animation: ib-eq 0.45s ease-in-out infinite alternate; }
.ib-wave i:nth-child(2) { animation-delay: 0.12s; } .ib-wave i:nth-child(3) { animation-delay: 0.24s; }
.ib-wave i:nth-child(4) { animation-delay: 0.06s; } .ib-wave i:nth-child(5) { animation-delay: 0.18s; }
@keyframes ib-eq { to { transform: scaleY(1); } }
.ib-bar.is-live .ib-mic svg { display: none; }
.ib-bar.is-live .ib-wave { display: inline-flex; }
.ib-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.ib-text:empty::before { content: "Say or type anything"; color: var(--dim); }
.ib-time { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
/* Fixed to three rows by homepage.js, so filing a row never changes the page
   height: the new row pushes the oldest one out of the bottom instead. */
.ib-rows { margin: 8px -10px 0; padding: 0 10px; overflow: hidden; }
.ib-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 10px; margin: 0 -10px; border-radius: 10px; }
.ib-row + .ib-row, .ib-grow.is-open + .ib-row { box-shadow: 0 -1px 0 var(--line); }
.ib-row-title { font-size: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ib-row-sub { margin-top: 1px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ib-tags { display: flex; gap: 4px; }
.ib-tag { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.ib-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ib-tag.is-task, .ib-dot.is-task { --c: #FF9F43; }
.ib-tag.is-idea, .ib-dot.is-idea { --c: #6BAEEA; }
.ib-tag.is-note, .ib-dot.is-note { --c: #BFA0D6; }
.ib-tag.is-urgent { --c: #FF6B61; }
/* The filed row opens its own space, then lands with a brief highlight. */
.ib-grow { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.ib-grow.is-open { grid-template-rows: 1fr; }
.ib-grow > div { overflow: hidden; }
.js .ib-grow.is-open .ib-row { animation: ib-in 0.8s var(--ease) both; }
@keyframes ib-in { from { opacity: 0; transform: translateY(-8px); background: rgba(255, 255, 255, 0.06); } 60% { background: rgba(255, 255, 255, 0.06); } to { opacity: 1; transform: none; background: transparent; } }

/* Say it once: the onboarding capture beat. Default is the filed state;
   .is-live is listening, .is-lit lights the words that matter. */
.sd { display: flex; flex-direction: column; min-height: 340px; padding: 22px 24px 18px; border-radius: 20px; background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); }
.sd svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sd-head, .sd-stage, .sd-cap { transition: opacity 0.3s var(--ease); }
.sd.is-out .sd-head, .sd.is-out .sd-stage, .sd.is-out .sd-cap { opacity: 0; }
.sd-head { position: relative; height: 22px; }
.sd-rec, .sd-done { position: absolute; inset: 0 auto 0 0; display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--muted); transition: opacity 0.3s; }
.sd-done { color: var(--neon); }
.sd-done svg { width: 17px; height: 17px; }
.sd-rec { opacity: 0; }
.sd.is-live .sd-rec { opacity: 1; }
.sd.is-live .sd-done { opacity: 0; }
.sd-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--neon); }
.sd-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--neon); animation: sd-ring 1.4s var(--ease) infinite; }
@keyframes sd-ring { from { transform: scale(1); opacity: 0.55; } to { transform: scale(2.8); opacity: 0; } }
.sd-clock { font-variant-numeric: tabular-nums; font-weight: 500; }
.sd-stage { position: relative; flex: 1; min-height: 210px; margin-top: 18px; }
.sd-words { position: absolute; inset: 0 0 auto; display: flex; flex-wrap: wrap; gap: 4px 9px; padding-top: 6px; font: 600 clamp(22px, 2.2vw, 27px)/1.3 var(--display); letter-spacing: -0.02em; opacity: 0; transform: translateY(-18px); transition: opacity 0.32s var(--ease), transform 0.4s var(--ease); }
.sd.is-live .sd-words { opacity: 1; transform: none; }
.sd-words span { opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.25s var(--ease), color 0.36s; }
.sd-words span.is-said { opacity: 1; transform: none; }
.sd.is-lit .sd-words span.is-said:not(.is-key) { opacity: 0.3; }
.sd.is-lit .sd-words span.is-key { color: var(--neon); }
.sd-card { position: absolute; left: 0; right: 0; top: 50%; display: grid; gap: 8px; padding: 18px; border-radius: 16px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); transform: translateY(-50%); transition: opacity 0.38s var(--ease) 0.12s, transform 0.45s var(--ease) 0.12s; }
.sd.is-live .sd-card { opacity: 0; transform: translateY(calc(-50% + 12px)); transition-delay: 0s; }
.sd-kind { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #6BAEEA; }
.sd-kind span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sd-kind em { margin-left: auto; font-style: normal; font-weight: 500; color: var(--dim); }
.sd-title { font: 700 18px/1.3 var(--display); letter-spacing: -0.01em; }
.sd-quote { margin-top: 2px; padding-left: 12px; border-left: 2px solid var(--line-2); font-size: 14px; line-height: 1.5; color: var(--muted); }
.sd-cap { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sd-cap svg { width: 14px; height: 14px; color: var(--neon); }
.sd.is-live .sd-cap { opacity: 0; }

/* b) What's inside: feature blocks, Superwhisper style. */
.features {
  --card: #141514; --wash: rgba(255, 255, 255, 0.06);
  --c-task: #FF9F43; --c-idea: #6BAEEA; --c-note: #BFA0D6; --c-urgent: #FF6B61; --c-habit: #F28C1B;
  width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 150px 0 40px;
}
.features svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.features-head { text-align: center; }
/* Same face as the .fb-title headings under it: solid white bold, no grey half. */
.features-head .h2, .features-head .h2 > span { font-weight: 700; color: var(--text); }
.fb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 88px; align-items: center; margin-top: 150px; }
.fb-flip .fb-visual { order: 2; }
.fb-center { grid-template-columns: 1fr; justify-items: center; gap: 48px; text-align: center; }
.fb-center .fb-text { margin-left: auto; margin-right: auto; }
.fb-visual { justify-self: center; width: 100%; max-width: 480px; }
.fb-center .fb-visual { max-width: 640px; }
.fb .label { margin-bottom: 14px; }
.fb-title { font-size: clamp(32px, 3.6vw, 48px); }
.fb-text { max-width: 460px; margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.fb-points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 24px; }
.fb-points li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; }
.fb-icon { color: var(--neon); }
.fb-icon svg { width: 22px; height: 22px; margin-top: 1px; stroke-width: 1.8; }
.fb-points b { display: block; font: 600 17px/1.35 var(--display); letter-spacing: var(--track); }
.fb-points p { margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--muted); }

.sv-note, .sv-new, .sv-sync { transition: opacity 0.45s var(--ease), transform 0.55s var(--ease); }
.js .sv-note:not(.is-in), .js .sv-new:not(.is-in), .js .sv-sync:not(.is-in) { opacity: 0; transform: translateY(-8px); }

/* Calendar: the Cortex month (dashboard .month-grid) beside the same event
   in Apple Calendar. */
.fb[data-scene="week"] .fb-visual { max-width: 980px; }
.sv-cal { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: stretch; text-align: left; }
.sv-panel { display: flex; flex-direction: column; padding: 18px; border-radius: 20px; background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); }
.sv-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sv-panel-title { font: 700 17px/1 var(--display); letter-spacing: -0.02em; }
.sv-panel-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--dim); }
.sv-panel-tag img { border-radius: 5px; }
.sv-mdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 6px; font-size: 11px; font-weight: 500; color: var(--dim); }
.sv-mdays span { padding-left: 6px; }
.sv-mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(62px, 1fr); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.sv-mcell { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sv-mcell:nth-child(7n) { border-right: 0; }
.sv-mcell:nth-last-child(-n+7) { border-bottom: 0; }
.sv-mcell.is-out .sv-mnum { opacity: 0.4; }
.sv-mnum { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sv-mcell.is-today .sv-mnum { background: var(--text); color: var(--black); }
.sv-mev { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 10.5px; font-weight: 500; line-height: 1.2; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-mev::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.sv-mev.is-task { --c: var(--c-task); }
.sv-mev.is-idea { --c: var(--c-idea); }
.sv-mev.is-urgent { --c: var(--c-urgent); color: var(--text); font-weight: 600; }
.sv-hours { position: relative; flex: 1; display: grid; grid-auto-rows: 1fr; min-height: 260px; }
.sv-hour { border-top: 1px solid var(--line); font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.sv-hour span { display: block; width: 44px; margin-top: -8px; padding-right: 6px; background: var(--ink-1); }
.sv-aev { position: absolute; left: 52px; right: 0; top: calc(40% + 3px); height: calc(20% - 6px); display: flex; flex-direction: column; justify-content: center; padding: 0 10px; border-radius: 8px; background: color-mix(in srgb, var(--c-urgent) 18%, transparent); box-shadow: inset 3px 0 0 var(--c-urgent); }
.sv-aev b { font-size: 13px; font-weight: 600; }
.sv-aev small { margin-top: 2px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sv-apple .sv-sync { margin-top: 14px; }
.sv-sync { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sv-sync svg { width: 15px; height: 15px; stroke-width: 2.4; color: var(--neon); }
.sv-remind { display: flex; flex-direction: column; gap: 10px; }
.sv-focus { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sv-focus svg { width: 15px; height: 15px; color: #A78BFA; fill: currentColor; stroke: none; }
.sv-note { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.sv-note img { border-radius: 9px; }
.sv-note-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; }
.sv-note-head b { font-weight: 600; }
.sv-note-head span { font-size: 12px; color: var(--dim); }
.sv-note-kind { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); }
.sv-note-body { margin-top: 2px; font-size: 14px; line-height: 1.45; }

/* Reminders */
.sv-remind { display: flex; flex-direction: column; gap: 10px; }

/* c) Habits */
.habits { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: center; }
/* The dark Habits page sits straight on the black page; only a soft green glow marks it. */
.habits-shot { position: relative; margin: 0; justify-self: center; width: min(100%, 380px); }
.habits-shot::before { content: ""; position: absolute; inset: 10% -20%; z-index: -1; background: radial-gradient(closest-side, rgba(46, 204, 113, 0.22), transparent); }
.habits-shot img { width: 100%; height: auto; }
.rows { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 8px; }
.rows li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.row-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink-3); color: var(--neon); }
.row-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rows b { display: block; font: 600 18px/1.35 var(--display); letter-spacing: var(--track); }
.rows p { margin-top: 4px; font-size: 15px; color: var(--muted); }

/* d) Wake up ready */
.ready .section-head { margin: 0 auto; text-align: center; }
.ready .lead { margin-left: auto; margin-right: auto; text-wrap: balance; }
.shot { margin-top: 64px; }
.shot img {
  width: 100%; max-width: 1100px; height: auto; margin: 0 auto; border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 60px 140px -50px rgba(46, 204, 113, 0.5);
}

/* e) Pricing and the closing band */
.pricing { padding-top: 40px; padding-bottom: 40px; }
.price-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 40px; border-radius: 26px; background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); }
.price-line { margin-top: 12px; font-size: 18px; color: var(--muted); }
.price-line b { color: var(--text); font-weight: 600; }
.cta { padding: 200px 20px 170px; text-align: center; background: linear-gradient(180deg, var(--black) 0%, #04140B 32%, #0A3A22 72%, #0F5532 100%); }
.cta-title { max-width: 1100px; margin: 0 auto 44px; font-size: clamp(40px, 6.4vw, 80px); font-weight: 600; color: var(--quiet); text-wrap: balance; }
@media (min-width: 640px) { .cta-title { white-space: nowrap; } }
.cta-title span { font-weight: 700; color: var(--text); }

/* f) Footer */
/* Edge to edge: the brand sits bottom left, the links bottom right. */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 32px clamp(20px, 4vw, 56px) 40px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; color: rgba(255, 255, 255, 0.7); background: #0F5532; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer nav a:hover { color: var(--text); }

/* ------------------------------ arrival ------------------------------ */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.9s var(--ease) var(--d, 0ms); }
/* Feature text also leaves when it scrolls out, so it arrives again next time. */
.js [data-reveal="both"] { transform: translateY(20px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }

/* ----------------------------- responsive ---------------------------- */
@media (max-width: 1000px) {
  .fb { grid-template-columns: 1fr; gap: 40px; margin-top: 110px; }
  .fb-visual, .fb-flip .fb-visual { order: 2; justify-self: stretch; }
  .split, .habits { grid-template-columns: 1fr; gap: 48px; }
  .habits-shot { order: 2; }
  .trio { grid-template-columns: 1fr; gap: 36px; margin-top: 80px; }
  .trio li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; }
  .trio-icon { grid-row: span 2; margin-bottom: 0; }
  .trio p { margin-top: 4px; max-width: none; }
}

/* Static layout: no pinning, hero text then the demo card. */
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .intro { height: auto; padding: 132px 16px 24px; }
  .anchor { top: auto; bottom: 0; }
  .intro-pin { position: static; height: auto; overflow: visible; display: flex; flex-direction: column; gap: 48px; }
  .hero { position: static; order: -1; padding: 0; }
  .card { position: relative; inset: auto; width: min(100%, 1100px); height: auto; aspect-ratio: 16 / 9; margin: 0 auto; transform: none !important; }
  .poster { opacity: 1 !important; pointer-events: auto; }
  .scroll-cue { display: none; }
}
/* Phones: one rhythm. 128px between sections, 88px between feature blocks,
   40px from a heading to its visual. Mid-page copy is left aligned; only
   the hero and the closing band are centred. */
@media (max-width: 767px) {
  .nav-links a:not([data-home]) { display: none; }
  .lang { top: 72px; right: 16px; }
  .intro { padding: 124px 16px 0; }
  .intro-pin { gap: 40px; }
  .hero-title { font-size: clamp(40px, 11.5vw, 52px); }
  .hero-actions { width: 100%; max-width: 420px; margin-top: 28px; }
  .hero-actions .btn { flex: 1 1 140px; padding: 0 16px; }
  .hero-sub { margin-top: 28px; }
  .section { padding: 64px 0; }
  .section.pricing { padding: 64px 0 0; }
  .features { padding: 64px 0; }
  .features-head, .fb-center, .ready .section-head { text-align: left; }
  .fb-center { justify-items: stretch; gap: 40px; }
  .fb-center .fb-text, .ready .lead { margin-left: 0; margin-right: 0; }
  .fb { margin-top: 88px; }
  .fb:first-of-type { margin-top: 64px; }
  .split, .habits { gap: 40px; }
  .trio { margin-top: 64px; gap: 28px; }
  .shot { margin-top: 40px; }
  .cta { padding: 112px 20px 96px; }
  .cta-title { margin-bottom: 36px; }
  .sv-cal { grid-template-columns: 1fr; }
  .sv-mgrid { grid-auto-rows: minmax(48px, 1fr); }
  .sv-mev { font-size: 0; gap: 0; }
  .sv-hours { min-height: 200px; }
  .hero-actions .btn { flex: 1 1 160px; }
  .card { border-radius: 16px; }
  .poster { gap: 14px; }
  .poster-play { height: 48px; font-size: 15px; }
  .controls { left: 8px; right: 8px; bottom: 8px; padding: 4px 6px; }
  .ctl { width: 32px; height: 32px; }
  .price-card { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .scroll-cue svg { animation: none; }
  .ib-grow, .ib-grow.is-open .ib-row { transition: none; animation: none; }
  .sd-dot::after { animation: none; }
  .js [data-reveal="both"] { transition: none; }
}
