
/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --card: #f5f5f7;
  --card-2: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --text: #1d1d1f;
  --muted: #86868b;
  --soft: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-text: #ffffff;
  --ghost: rgba(0, 0, 0, 0.05);
  --purple: #a855f7;
  --btn-ink: #000;
  --ghost-hover: rgba(0, 0, 0, 0.09);
  --ph-bg: #fff4c2;
  --ph-text: #7a5a00;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.35);
  /* Notch panel corners, in px (the app's points): inward curve at the top where it meets the screen edge, rounded corners at the bottom */
  --notch-radius-top: 14px;
  --notch-radius-bottom: 24px;
  --notch-radius-bottom-closed: 10px;   /* when tucked into the notch (or half the notch height if smaller) */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-2: #0d0d0f; --card: #161618; --card-2: #1f1f22;
    --line: rgba(255, 255, 255, 0.1); --text: #f5f5f7; --muted: #8e8e93; --soft: #a1a1a6;
    --accent: #0a84ff; --accent-hover: #409cff; --ghost: rgba(255, 255, 255, 0.08);
    --btn-ink: #fff; --ghost-hover: rgba(255, 255, 255, 0.14); --ph-bg: #3d3210; --ph-text: #ffd966; --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --btn-ink: #fff; --ghost-hover: rgba(255, 255, 255, 0.14); --bg: #000000; --bg-2: #0d0d0f; --card: #161618; --card-2: #1f1f22;
  --line: rgba(255, 255, 255, 0.1); --text: #f5f5f7; --muted: #8e8e93; --soft: #a1a1a6;
  --accent: #0a84ff; --accent-hover: #409cff; --ghost: rgba(255, 255, 255, 0.08);
  --ph-bg: #3d3210; --ph-text: #ffd966; --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-tap-highlight-color: transparent; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 48px; height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
mark.ph, .ph-inline {
  background: var(--ph-bg); color: var(--ph-text); border-radius: 6px; padding: 1px 6px;
  font-size: .85em; font-weight: 500; white-space: nowrap;
}
.btn .ph-inline { font-size: 11px; margin-left: 4px; }

/* ---------- Menu bar (a macOS-style bar at the top of the page, 32 px like the real one) ---------- */
.menubar-site {
  position: sticky; top: 0; z-index: 70; height: 32px; padding: 0 6px;
  display: flex; align-items: center; justify-content: space-between; background: #000; color: #f5f5f7;
  font-size: 13px; font-weight: 500; box-shadow: 3px 0 0 #000, -3px 0 0 #000;
  --text: #f5f5f7; --ghost: rgba(255, 255, 255, .12);
}
.menubar-site .btn-primary { background: #fff; color: #000; }
.menubar-site .btn-primary:hover { background: #e5e5ea; }
.mbs-cam { position: absolute; left: 50%; top: 0; height: 32px; width: 0; pointer-events: none; z-index: 2; }
/* MacBook camera lens, centred in the strip */
.mbs-cam img { position: absolute; left: -10px; top: 6px; width: 20px; height: 20px; border-radius: 50%; display: block; }
.mbs-left, .mbs-right { display: flex; align-items: center; gap: 16px; }
.mbs-right { gap: 10px; }
.mbs-brand { display: inline-flex; align-items: center; gap: 8px; height: 24px; font-size: 13px; }
.mbs-brand { display: inline-flex; align-items: center; gap: 8px; }
.mbs-logo { width: 18px; height: 18px; display: block; flex: none; }
.mbs-name { font-weight: 700; white-space: nowrap; }
.mbs-brand img { border-radius: 22%; display: block; }
.menubar-site a:not(.btn) { padding: 0; height: 24px; display: inline-flex; align-items: center; color: var(--text); }   /* no inner padding, no hover state */
.mbs-clock { color: var(--text); font-weight: 500; white-space: nowrap; margin: 0 2px; }
.menubar-site .btn { height: 24px; padding: 0 12px; font-size: 12px; }
.icon-btn {
  position: relative; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: var(--ghost); display: grid; place-items: center; cursor: pointer; color: var(--soft);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.icon-btn:hover { color: var(--text); }
.icon-btn:active { transform: scale(.88) rotate(-12deg); }
.icon-btn svg { width: 15px; height: 15px; position: absolute; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .3s; }
.i-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
.i-moon { opacity: 1; transform: none; }
:root[data-theme="dark"] .i-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .i-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .i-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
}
/* Theme changes apply instantly: suspend all other transitions for the switch */
.theming *, .theming *::before, .theming *::after { transition: none !important; }
.theming .icon-btn, .theming .icon-btn svg { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .3s !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 0; cursor: pointer; white-space: nowrap; transition: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { background: #2a2a2d; }
:root[data-theme="dark"] .btn-primary { background: #fff; color: #000; }
:root[data-theme="dark"] .btn-primary:hover { background: #e5e5ea; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { background: #fff; color: #000; }
  :root:not([data-theme="light"]) .btn-primary:hover { background: #e5e5ea; }
}
.btn-ghost { background: var(--ghost); color: var(--btn-ink); border-color: transparent; }
.btn-ghost:hover { background: var(--ghost-hover); }
.btn .apple { flex: none; position: relative; top: -0.3px; margin-right: -3px; overflow: visible; }
.btn-sm .apple { top: 0.2px; }
.btn-sm { height: 34px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Type ---------- */
.display, .h2, .h3 { font-family: var(--display); letter-spacing: -.035em; font-weight: 600; }
.display { font-weight: 700; }
.display span, .h2 span, .h3 span { display: block; }
.display span, .lede { text-wrap: balance; }
.display { font-size: clamp(30px, min(7.2vw, 9.5vh), 76px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -.025em; }
.center { text-align: center; }

/* ---------- Hero ---------- */
.hero { max-width: 1100px; margin: 0 auto; padding: 24px 20px; text-align: center; }
.lede { max-width: 640px; margin: 24px auto 0; font-weight: 500; font-size: clamp(17px, 2vw, 20px); color: var(--soft); line-height: 1.45; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.fineprint { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* The panel (the app's own geometry): 340 x 192 body, 14 pt concave shoulders, 24 pt bottom corners. */
/* The panel is drawn at 640 x 400 (the app's own size) inside a stage that is scaled to fit the screen.
   The outer box is exactly the screen wide and clips the stage, so the page can never scroll sideways. */
.island-fx { --gc: 107,102,255; --ge: 84,71,245; --gw: 144,140,255; --gh: 196,194,255; position: absolute; top: 31px; left: 0; right: 0; height: calc(var(--panel-h, 132px) - 31px); overflow: clip; opacity: 0; z-index: 60; pointer-events: none; font-family: var(--sans); }
.island-stage { position: absolute; top: 1px; left: 50%; width: 640px; height: 400px; margin-left: -320px; transform-origin: 50% 0; transform: scale(var(--ps, 1)); }
.island { touch-action: none; position: absolute; inset: 0; background: #000; clip-path: path("M0 0"); pointer-events: auto; }
.reader { position: absolute; top: 0; overflow: hidden; }
.np-clip { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 14px, #000 42px); mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 14px, #000 42px); }   /* lines fade out as they reach the top edge */
.np-text { position: absolute; will-change: transform; transition: opacity .4s ease; }
.np-text div { height: var(--lh, 33px); font: 500 var(--fs, 22px)/var(--lh, 33px) var(--mono); color: var(--np-tc, #fff); text-align: center; white-space: nowrap; }
.np-count { position: absolute; left: 0; right: 0; top: 32px; height: 160px; display: grid; place-items: center; font: 800 54px/1 var(--mono); color: #fff; opacity: 0; transition: opacity .2s; }
.np-count.on { opacity: 1; }
/* Voice glow: three layers centred on the panel's bottom edge (only the upper half shows), driven by JS each frame. No transitions. */
.np-glow { position: absolute; inset: 0; pointer-events: none; }
.np-glow i { position: absolute; display: block; left: 50%; bottom: 0; transform-origin: center; opacity: 0; will-change: transform, opacity; }
.np-glow .haze { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(var(--gc),.66) 0%, rgba(var(--ge),.46) 40%, rgba(var(--ge),.22) 70%, rgba(var(--ge),.07) 88%, rgba(var(--ge),0) 100%); }
.np-glow .bloom { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(var(--gw),1) 0%, rgba(var(--gc),.62) 35%, rgba(var(--ge),.2) 70%, rgba(var(--ge),0) 100%); }
.np-glow .beam { background: linear-gradient(to right, rgba(var(--gc),0) 0%, rgba(var(--gc),.7) 30%, rgba(var(--gh),1) 50%, rgba(var(--gc),.7) 70%, rgba(var(--gc),0) 100%); }
.np-ctrls { position: absolute; inset: 0; opacity: 0; transform: scale(.94); transform-origin: top center; transition: opacity .08s ease-in, transform .08s ease-in; pointer-events: none; }
.np-ctrls.on { opacity: 1; transform: none; transition: opacity .32s cubic-bezier(.3,1.4,.6,1) .03s, transform .32s cubic-bezier(.3,1.4,.6,1) .03s; }
.np-btn { position: absolute; top: 6px; width: 26px; height: 26px; border: 0; padding: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: rgba(255,255,255,.9); display: grid; place-items: center; cursor: pointer; pointer-events: auto; }
.np-left { left: 58px; } .np-right { left: 348px; }
.np-btn:hover { background: rgba(255,255,255,.24); }
.np-left .i-play { display: none; }
.np-left.paused .i-pause { display: none; } .np-left.paused .i-play { display: block; }

main { position: relative; }

/* ---------- Sections & cards ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 96px 20px 0; }
.section-head { margin-bottom: 48px; }
.card {
  background: var(--card); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
}
.card p { color: var(--soft); margin-top: 14px; font-size: 16px; }
.card.big { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.card-copy p { max-width: 420px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.grid-2 .card { display: flex; flex-direction: column; }
.card-art {
  margin-top: 28px; flex: 1; min-height: 220px; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background:
    radial-gradient(80% 90% at 0% 100%, #fb923c 0%, transparent 60%),
    radial-gradient(90% 90% at 100% 100%, #8b5cf6 0%, transparent 60%),
    linear-gradient(160deg, #3b82f6, #6366f1);
}

/* Segmented control */
.seg { display: inline-flex; margin-top: 28px; padding: 3px; border-radius: 999px; background: var(--ghost); }
.seg-btn { border: 0; background: transparent; padding: 7px 22px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--soft); }
.seg-btn.active { background: var(--card-2); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.hint { font-size: 13px !important; color: var(--muted) !important; }

/* Demo panel */
.dark-visual {
  border-radius: var(--radius-lg); min-height: 360px; position: relative; overflow: hidden;
  background:
    radial-gradient(70% 80% at 10% 100%, #f97316 0%, transparent 60%),
    radial-gradient(80% 80% at 100% 90%, #7c3aed 0%, transparent 60%),
    linear-gradient(170deg, #1d4ed8, #312e81);
}
/* The same notch as the hero, hanging from the top edge of the wallpaper */
.demo-notch { position: absolute; top: 0; left: 50%; width: 368px; height: 100px; margin-left: -184px; transform-origin: 50% 0; transform: scale(var(--ds, 1)); outline: none; font-family: var(--sans); }
.demo-island { position: absolute; inset: 0; background: #000; clip-path: path("M0 0"); }
.demo-notch .reader { left: 14px; width: 340px; height: 100px; }
.dark-visual .hint-spacer { display: none; }
.demo-play {
  width: 28px; height: 28px; margin-right: 8px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.demo-play .p-pause { display: none; }
.demo-play.playing .p-pause { display: block; }
.demo-play.playing .p-play { display: none; }
.keys { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: rgba(255, 255, 255, .9); }
.keys[hidden] { display: none; }
.keys span { margin-left: 8px; }
kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; margin: 0 2px;
  border-radius: 7px; font: 500 13px/1 var(--sans); color: var(--text);
  background: var(--card-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.keys kbd { background: rgba(255, 255, 255, .18); color: #fff; }

/* Float art */
.mini-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #000; border-radius: 0 0 12px 12px; }
.float-win {
  position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%) rotate(-3deg);
  width: 230px; padding: 20px 18px 14px; border-radius: 22px; background: #000;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .6); animation: drift 6s ease-in-out infinite;
}
.float-lines i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .85); margin: 0 auto 9px; width: 85%; }
.float-lines i:nth-child(2) { background: rgba(255, 255, 255, .55); width: 75%; }
.float-lines i:nth-child(3) { background: rgba(255, 255, 255, .3); }
.float-ctrls { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.fc { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
@keyframes drift { 0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); } 50% { transform: translate(-46%, -55%) rotate(-1deg); } }

/* Share art */
.art-share { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.share-col { flex: 1; max-width: 190px; text-align: center; }
.share-col span { display: block; margin-top: 10px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.share-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; background: #0c0c10; border: 4px solid #000; overflow: hidden; }
.ss-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26%; height: 9%; background: #000; border-radius: 0 0 5px 5px; z-index: 2; }
.ss-panel { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 50%; height: 34%; background: #000; border-radius: 0 0 8px 8px; z-index: 1; padding: 13% 8% 0;  }
.ss-panel i { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .8); margin: 0 auto 3px; width: 90%; }
.ss-slide { position: absolute; left: 10%; right: 10%; bottom: 12%; top: 40%; border-radius: 4px; background: linear-gradient(135deg, #fde68a, #f472b6); }
.rec { position: absolute; top: 6%; right: 6%; font: 700 8px/1 var(--sans); color: #ef4444; letter-spacing: .05em; }

/* Glow art */
.art-glow { background: linear-gradient(170deg, #111114, #000); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.glow-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; }
.glow-inner {
  position: absolute; left: 0; right: 0; bottom: -45%; height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(168, 85, 247, .9), rgba(124, 58, 237, .35) 45%, transparent 72%);
  filter: blur(8px); transform-origin: bottom center; animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scaleY(.55); opacity: .55; } 20% { transform: scaleY(1); opacity: 1; } 45% { transform: scaleY(.7); opacity: .75; } 65% { transform: scaleY(.95); opacity: .95; } }
.meter { position: relative; display: flex; gap: 5px; align-items: flex-end; height: 70px; margin-bottom: 40px; }
.meter i { width: 6px; border-radius: 3px; background: rgba(255, 255, 255, .85); animation: bar 1.1s ease-in-out infinite; }
.meter i:nth-child(odd) { animation-duration: .9s; }
.meter i:nth-child(3n) { animation-duration: 1.3s; }
.meter i:nth-child(1) { animation-delay: -.2s } .meter i:nth-child(2) { animation-delay: -.5s } .meter i:nth-child(3) { animation-delay: -.1s }
.meter i:nth-child(4) { animation-delay: -.7s } .meter i:nth-child(5) { animation-delay: -.3s } .meter i:nth-child(6) { animation-delay: -.9s }
.meter i:nth-child(7) { animation-delay: -.4s } .meter i:nth-child(8) { animation-delay: -.6s } .meter i:nth-child(9) { animation-delay: -.15s }
.meter i:nth-child(10) { animation-delay: -.8s } .meter i:nth-child(11) { animation-delay: -.35s } .meter i:nth-child(12) { animation-delay: -.55s }
@keyframes bar { 0%, 100% { height: 14px; } 50% { height: 64px; } }

/* Spring art */
.art-spring { display: flex; justify-content: center; }
.spring-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 24px; background: #000; border-radius: 0 0 14px 14px; overflow: hidden;
  animation: spring 4.2s cubic-bezier(.34, 1.56, .64, 1) infinite;
}
.spring-panel { padding: 40px 22px 0; }
.spring-panel i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .8); margin: 0 auto 9px; }
.spring-panel i:nth-child(2) { width: 80%; background: rgba(255, 255, 255, .55); }
.spring-panel i:nth-child(3) { width: 60%; background: rgba(255, 255, 255, .3); }
@keyframes spring {
  0%, 8% { width: 120px; height: 24px; border-radius: 0 0 14px 14px; }
  30%, 72% { width: 260px; height: 150px; border-radius: 0 0 28px 28px; }
  92%, 100% { width: 120px; height: 24px; border-radius: 0 0 14px 14px; }
}

/* Mini features */
.mini-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; padding: 0 8px; }
.mf { display: flex; gap: 12px; align-items: flex-start; }
.mf svg { flex: none; margin-top: 2px; color: var(--text); }
.mf b { font-size: 15px; font-weight: 600; }
.mf p { font-size: 14px; color: var(--soft); margin-top: 3px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border-radius: var(--radius-lg); padding: 28px; }
.step-n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px;
}
.step h3 { margin-top: 18px; font-size: 19px; letter-spacing: -.015em; }
.step p { margin-top: 8px; color: var(--soft); font-size: 15px; }
.shortcuts { margin-top: 20px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; }
.kb-list { margin: 0; display: grid; gap: 4px; }
.kb-list div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.kb-list dt { white-space: nowrap; }
.kb-list dd { margin: 0; color: var(--soft); font-size: 15px; text-align: right; }

/* Price */
.sub { margin-top: 20px; font-size: clamp(17px, 2vw, 20px); font-weight: 500; color: var(--soft); line-height: 1.5; }
.price-card { width: 100%; max-width: 464px; margin: 0 auto; background: var(--card); border-radius: var(--radius-xl); padding: 36px; }
.price-label { font-weight: 500; font-size: 18px; }
.price-row { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; }
.price { font: 600 64px/1 var(--display); letter-spacing: -.045em; }
.price-old { font-size: 24px; font-weight: 500; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 8px; font-size: 14px; font-weight: 400; color: var(--soft); }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks li::before {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%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'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.price-note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.price-note .underlined { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }
.price-note .underlined:hover { color: var(--text); }
.price-card .btn { height: 56px; font-size: 17px; }
.center-note { text-align: center; margin-top: 32px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-more { text-align: center; margin-top: 28px; }
details { background: var(--card); border-radius: var(--radius-lg); padding: 0 28px; }
summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font-size: 17px; font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--text), var(--text)) center / 14px 1.8px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.8px 14px no-repeat;
  transition: transform .25s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--soft); padding: 0 40px 24px 0; font-size: 15px; }
.link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 15px; }

/* One-screen layout: the hero sits in the space under the notch panel; the legal line is at the bottom */
main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: var(--panel-h, 132px); }
.page-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 0 24px 20px; font-size: 12px; color: var(--muted); }
.page-foot nav { display: flex; gap: 20px; }
.page-foot a:hover { color: var(--text); }
@media (max-width: 599px) { .page-foot { justify-content: center; text-align: center; } }

/* FAQ modal */
.faq-modal { width: min(640px, calc(100vw - 32px)); max-height: min(760px, calc(100svh - 48px)); margin: auto; padding: 40px 36px 36px; border: 0; border-radius: var(--radius-xl); background: var(--bg); color: var(--text); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .45); overflow: auto; animation: faq-in .22s cubic-bezier(.2, .8, .2, 1); }
.faq-modal::backdrop { background: rgba(0, 0, 0, .35); animation: faq-fade .22s ease; }
.faq-modal.closing { animation: faq-out .14s ease forwards; }
.faq-modal.closing::backdrop { animation: faq-fade-out .14s ease forwards; }
.faq-title { font: 600 clamp(30px, 5vw, 40px)/1.05 var(--display); letter-spacing: -.035em; }
.faq-title span { display: block; }
.faq-modal .checks { margin: 24px 0 28px; }
.faq-modal .faq-list { max-width: none; }
.faq-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--ghost); color: var(--soft); display: grid; place-items: center; cursor: pointer; }
.faq-close:hover { background: var(--ghost-hover); color: var(--text); }
@keyframes faq-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes faq-out { to { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes faq-fade { from { opacity: 0; } }
@keyframes faq-fade-out { to { opacity: 0; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card.big, .shortcuts, .faq { grid-template-columns: 1fr; }
  .steps, .mini-feats { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding-top: 72px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


/* Text colour dots (the app's own six colours) */
.swatches { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.sw { position: relative; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; }
.sw i { display: block; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .22); }
.sw.on { box-shadow: inset 0 0 0 2px var(--text); }

/* Legal pages (Terms, Privacy) */
.legal-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; }
.legal-back { font-size: 14px; color: var(--soft); }
.legal-back:hover { color: var(--text); }
.legal { width: min(720px, 100% - 40px); margin: 24px auto 72px; flex: 1; }
.legal h1 { font: 600 clamp(34px, 5vw, 48px)/1.05 var(--display); letter-spacing: -.035em; }
.legal-date { margin-top: 12px; font-size: 14px; color: var(--muted); }
.legal > p { margin-top: 20px; color: var(--soft); }
.legal section { margin-top: 36px; }
.legal h2 { font: 600 20px/1.3 var(--display); letter-spacing: -.02em; }
.legal section p, .legal section li { margin-top: 10px; color: var(--soft); font-size: 16px; }
.legal ul { margin: 6px 0 0; padding-left: 22px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .ph { background: var(--ph-bg, #fff3c4); color: var(--ph-text, #6b5200); padding: 1px 5px; border-radius: 5px; }
.legal-top .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }

.legal a.inline { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }


/* Very subtle background grid that fades out towards the edges */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at 50% 38%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 65% 70% at 50% 38%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
}

.sw::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; }   /* a bigger tap area for fingers */
.page-foot { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Phones ---------- */
button, .btn, .sw { touch-action: manipulation; }
@media (max-width: 599px) {
  main { padding-bottom: 5vh; }
  .hero { padding: 16px 16px; }
  .display { font-size: clamp(30px, 11.6vw, 56px); }
  .lede { font-size: clamp(16px, 4.6vw, 19px); margin-top: clamp(14px, 2.4vh, 24px); }
  .cta-row { margin-top: clamp(20px, 3.6vh, 34px); gap: 10px; }
  .btn { height: 50px; font-size: 16px; }
  .fineprint { max-width: 300px; margin-left: auto; margin-right: auto; text-wrap: balance; }
  .swatches { margin-top: clamp(12px, 2vh, 20px); gap: 10px; }
  .page-foot { gap: 6px 18px; padding-left: 16px; padding-right: 16px; }
  .faq-modal { padding: 52px 18px 22px; max-height: calc(100svh - 24px); width: calc(100vw - 24px); border-radius: 24px; }
  .faq-modal details { padding: 0 18px; }
  .legal { width: calc(100% - 32px); margin-top: 8px; }
}

/* Short phones (iPhone SE and similar): tighten so everything stays on one screen */
@media (max-height: 700px) and (max-width: 599px) {
  .hero { padding-top: 4px; padding-bottom: 4px; }
  .lede { font-size: 15px; margin-top: 12px; }
  .cta-row { margin-top: 16px; }
  .btn { height: 44px; }
  .fineprint { margin-top: 10px; font-size: 12px; }
  .swatches { margin-top: 8px; }
  .page-foot { font-size: 11px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* Phones on their side (very short screens): compact, and the page is allowed to scroll a little if it must */
@media (max-height: 500px) {
  main { padding-bottom: 0; }
  .hero { padding-top: 6px; padding-bottom: 6px; }
  .display { font-size: clamp(28px, 9vh, 40px); }
  .lede { font-size: 14px; margin-top: 8px; }
  .cta-row { margin-top: 12px; }
  .btn { height: 40px; font-size: 14px; }
  .fineprint { margin-top: 8px; font-size: 12px; }
  .swatches { margin-top: 6px; }
  .page-foot { padding-bottom: 8px; font-size: 11px; }
  .page-foot nav { gap: 14px; }
}
@media (max-height: 420px) { .fineprint { display: none; } }
