/* Landing page styles. Colors come from tokens.css, shared with the app. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; } /* links to a section stop below the sticky header */
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.55 var(--font-sans); /* Switzer, set up in tokens.css; the hero uses it too */
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sub { color: var(--ink-2); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font: inherit; font-weight: 650; font-size: 15px;
  text-decoration: none; border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer;
}
.btn:hover { border-color: var(--axis); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { opacity: 0.9; }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* ---------- Header ----------
   Frosted glass with a soft shadow. At the very top of the home page (landing.js adds .at-top) it has no background,
   so it's part of the sky until you scroll. */
.nav {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--page) 72%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.5);
  transition: background-color .35s ease, box-shadow .35s ease, -webkit-backdrop-filter .35s ease, backdrop-filter .35s ease;
}
.nav.at-top { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.nav .wrap.nav-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } /* links on the left, logo in the middle, log in on the right */
.nav-left { justify-self: start; }
.nav-right { justify-self: end; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
/* The mark sits in a small circle of night sky with a soft starlight glow; on hover the compass needle turns a little */
.logo {
  position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--ink) 14%, var(--surface)), var(--page) 75%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent), 0 0 18px color-mix(in srgb, var(--ink) 14%, transparent);
  transition: box-shadow .4s ease;
}
.logo svg { transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.brand:hover .logo { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 40%, transparent), 0 0 26px color-mix(in srgb, var(--ink) 28%, transparent); }
.brand:hover .logo svg { transform: rotate(-14deg); }
.brand-name { font-weight: 650; font-size: 18px; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.nav-links a { position: relative; text-decoration: none; color: var(--ink-2); transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
/* text links: a thin line draws in under the word on hover, with a small star at its centre */
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 5px; pointer-events: none;
  background: radial-gradient(circle, var(--ink) 0 1.4px, transparent 2px) 50% 50% / 5px 5px no-repeat,
    linear-gradient(to right, transparent, color-mix(in srgb, var(--ink) 55%, transparent), transparent) 0 50% / 100% 1px no-repeat;
  transform: scaleX(0); opacity: 0; transition: transform .3s cubic-bezier(.3, .8, .3, 1), opacity .3s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn):focus-visible::after { transform: scaleX(1); opacity: 1; }
.nav-links .btn { color: var(--accent-ink); white-space: nowrap; border-radius: 999px; padding: 9px 18px; transition: box-shadow .3s ease, opacity .2s ease; }
.nav-links .btn:hover { opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 30%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .nav { animation: nav-in .7s ease-out both; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- The night sky behind the whole page ----------
   landing.js scatters faint stars in a fixed layer behind everything; a few of them twinkle.
   Plain sections are see-through, so the sky shows between the cards all the way down. */
.starfield { position: fixed; inset: 0; z-index: -1; pointer-events: none; color: var(--ink-2); opacity: 0.45; }
:root[data-mode="dark"] .starfield { color: var(--ink); opacity: 0.62; }
@media (prefers-color-scheme: dark) { :root:not([data-mode]) .starfield { color: var(--ink); opacity: 0.62; } }
.starfield svg { width: 100%; height: 100%; display: block; }
/* Depth on scroll (landing.js): Pyxis stays in the sky behind the page and drifts slowly, the stars a little less.
   The star layer is a bit taller than the screen so its drift never shows an empty edge. */
.sky-drift .starfield svg { height: calc(100% + 120px); will-change: transform; }
.sky-drift .hero-bg { position: fixed; z-index: -1; will-change: transform; }
.starfield circle { fill: currentColor; }
/* A second, closer layer of stars (landing.js): a repeating tile that moves faster than the far stars as you scroll,
   so the sky has depth. Drawn with a mask so it takes the theme's ink colour. Twice a tile taller than the screen,
   so it can slide by up to one tile and loop without an edge. */
.stars-near { position: fixed; left: 0; right: 0; top: 0; height: calc(100% + 640px); z-index: -1; pointer-events: none;
  background: var(--ink-2); opacity: .5; -webkit-mask-size: 640px 640px; mask-size: 640px 640px; will-change: transform; }
:root[data-mode="dark"] .stars-near { background: var(--ink); opacity: .55; }
@media (prefers-color-scheme: dark) { :root:not([data-mode]) .stars-near { background: var(--ink); opacity: .55; } }
@media (prefers-reduced-motion: no-preference) {
  .starfield .tw { animation: twinkle var(--t, 4s) ease-in-out var(--w, 0s) infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
body { background: var(--page); }
main, footer { position: relative; }

/* Section labels: a small star before each one */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.hero .eyebrow { gap: 9px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; }
.hero .btn { font-weight: 600; letter-spacing: -0.005em; }
/* Hero: the "Start free" button, in green with a soft glow so the free plan stands out first thing */
.btn.btn-free { background: var(--good-ink); color: var(--page); border-color: transparent;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--good-ink) 16%, transparent), 0 8px 26px color-mix(in srgb, var(--good-ink) 32%, transparent);
  transition: box-shadow .25s ease, transform .25s ease; }
.btn.btn-free:hover { transform: translateY(-1px); box-shadow: 0 0 0 5px color-mix(in srgb, var(--good-ink) 22%, transparent), 0 10px 32px color-mix(in srgb, var(--good-ink) 42%, transparent); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent), 0 0 10px currentColor; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 0; overflow: hidden; }
.hero-center { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 650; color: var(--ink); max-width: 940px; text-wrap: balance; }
.hero h1 .h1-a, .hero h1 .hl { display: block; }
.hl { color: var(--ink); }
.hero .lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-top: 18px; max-width: 600px; text-wrap: pretty; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .cta-row { justify-content: center; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.trust { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13.5px; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--good-ink); font-weight: 800; margin-right: 7px; }

/* The sky: a band across the top of the hero, above the headline */
.hero { --sky-h: clamp(140px, 21vh, 214px); --sky-top: 52px; } /* the sky band follows the screen height, so the chart shows on the first screen; it starts below the top bar so Pyxis stays in view while it drifts */
.hero-bg { position: absolute; top: var(--sky-top); left: 0; width: 100%; height: var(--sky-h); color: var(--ink-2); pointer-events: none; }
.final-band { position: absolute; top: 28px; left: 0; width: 100%; height: var(--sky-h); color: var(--ink-2); pointer-events: none; }
/* the bottom sky waits until you scroll to it, then draws in the same way as the top */
.js-reveal .final:not(.lit) .final-band * { animation-play-state: paused; }
.sky path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.sky circle { fill: currentColor; }
.sky .main-const { color: var(--ink); }
.sky .main-const { opacity: .82; }
.sky .main-const path { stroke-width: 1.7; }
.sky .main-const .ring { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: 0.5; }
.sky .main-const .beacon { opacity: 0; }
.sky .halo { opacity: .45; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.sky text { fill: currentColor; font: 600 12px var(--font-sans); letter-spacing: 3.5px; opacity: 0.6; }
/* On load each constellation joins up star by star, one after another; Pyxis comes in last and glows.
   (--d is each constellation's start time, set on its group in the page.) */
.sky .main-const circle:not(.ring) { filter: drop-shadow(0 0 4px color-mix(in srgb, currentColor 55%, transparent)); }
.sky .main-const .alpha { filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 70%, transparent)); }
@media (prefers-reduced-motion: no-preference) {
  .sky circle { opacity: 0; animation: sky-star .35s ease-out var(--d, 0s) forwards; transform-box: fill-box; transform-origin: center; }
  .sky path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sky-line .55s ease-in-out calc(var(--d, 0s) + .12s) forwards; }
  .sky .main-const circle:not(.ring) { animation: sky-star-bright .6s cubic-bezier(.3, 1.4, .5, 1) var(--d, 0s) forwards; }
  .sky .main-const path { animation-duration: .5s; animation-delay: calc(var(--d, 0s) + .2s); }
  .sky .main-const .ring { animation: sky-ring .9s ease-out calc(var(--d, 0s) + .45s) both; }
  .sky .main-const text { animation: sky-fade .5s ease-out calc(var(--d, 1.15s) + .6s) both; }
  /* after it draws in: the halo rises, a ring pulses out from the main star every few seconds, and the star gently brightens */
  .sky .halo { animation: halo-in 1.6s ease-out calc(var(--d, 0s) + .3s) both; }
  .sky .main-const .beacon { animation: beacon 6s ease-out calc(var(--d, 0s) + 1.6s) infinite; }
  .sky .main-const .alpha { animation: sky-star-bright .6s cubic-bezier(.3, 1.4, .5, 1) var(--d, 0s) forwards, star-glow 4s ease-in-out calc(var(--d, 0s) + 1.6s) infinite; }
}
@keyframes sky-star { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes sky-star-bright { 0% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.35); } 100% { opacity: 1; transform: scale(1); } }
@keyframes sky-line { to { stroke-dashoffset: 0; } }
@keyframes sky-ring { 0% { opacity: 0; transform: scale(.6); } 50% { opacity: .9; } 100% { opacity: .5; transform: scale(1); } }
@keyframes sky-fade { from { opacity: 0; } to { opacity: .6; } }
@keyframes halo-in { from { opacity: 0; transform: scale(.6); } to { opacity: .45; transform: none; } }
@keyframes beacon { 0% { opacity: .25; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2); } }
@keyframes star-glow { 0%, 100% { opacity: 1; } 50% { opacity: .85; } }
/* The top of the page: Pyxis stands out (bigger glow, brighter label, a stronger beacon). The bottom one stays quiet. */
.hero-bg .main-const { opacity: 1; }
.hero-bg .main-const path { stroke-width: 2.2; }
.hero-bg .halo { opacity: .9; }
.hero-bg .main-const circle:not(.ring) { filter: drop-shadow(0 0 7px color-mix(in srgb, currentColor 75%, transparent)); }
.hero-bg .main-const .alpha { filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 0 22px color-mix(in srgb, currentColor 55%, transparent)); }
.hero-bg text { font-size: 13px; letter-spacing: 4px; opacity: .85; }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg .halo { animation-name: halo-in-strong; }
  .hero-bg .main-const .beacon { animation: beacon-strong 4s ease-out calc(var(--d, 0s) + 1.6s) infinite; }
  .hero-bg .main-const text { animation-name: sky-fade-strong; }
  .hero-bg .main-const .alpha { animation: sky-star-bright .6s cubic-bezier(.3, 1.4, .5, 1) var(--d, 0s) forwards, star-glow-strong 4s ease-in-out calc(var(--d, 0s) + 1.6s) infinite; }
}
@keyframes halo-in-strong { from { opacity: 0; transform: scale(.6); } to { opacity: .9; transform: none; } }
@keyframes beacon-strong { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes sky-fade-strong { from { opacity: 0; } to { opacity: .85; } }
@keyframes star-glow-strong { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
@media (min-width: 901px) { .hero { padding-top: calc(var(--sky-h) + var(--sky-top) + 2px); } }

/* ---------- The Overview window rising from the bottom of the first screen ----------
   It leans back slightly and straightens as you scroll to it (landing.js sets --tilt);
   its lower edge fades out, so it reads as "there's more below". */
.peek-wrap { position: relative; margin-top: 34px; perspective: 1600px; }
.peek-wrap::before { /* a soft glow behind the window, like light from the sky */
  content: ""; position: absolute; left: 10%; right: 10%; top: -40px; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ig) 22%, transparent), transparent 75%); filter: blur(30px);
}
.peek {
  max-width: 1000px; margin: 0 auto; border-radius: 18px; overflow: hidden; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px color-mix(in srgb, var(--ink) 4%, transparent);
  transform: rotateX(var(--tilt, 0deg)); transform-origin: 50% 0; will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%); mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
}
.peek-bar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 12.5px; color: var(--muted); }
.peek-dots { display: flex; gap: 6px; }
.peek-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--axis); }
.peek-sample { margin-left: auto; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px dashed var(--axis); }
.peek-body { padding: 16px 20px 26px; display: grid; gap: 14px; }
.peek-tabs { display: flex; gap: 2px; margin: 0 auto; font-size: 12.5px; color: var(--ink-2); } /* the tabs sit in the top bar */
.peek-tabs span { padding: 4px 12px; border-radius: 7px; }
.peek-tabs .on { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: inset 0 0 0 1px var(--border); }
.peek-focus { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--good-bg); }
.peek-focus strong { display: block; font-size: 15px; }
.peek-focus span { font-size: 13px; color: var(--ink-2); }
.peek-node { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--good-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good-ink) 22%, transparent), 0 0 14px var(--good-ink); }
.peek-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.peek-kpi { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.peek-kpi span { font-size: 12.5px; color: var(--muted); }
.peek-kpi b { font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; }
.peek-kpi small { font-size: 12px; color: var(--ink-2); }
.peek-kpi em, .up { font-style: normal; color: var(--good-ink); font-weight: 650; }
.peek-chart { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 12px; }
.peek-chart-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.peek-chart-head strong { font-size: 14px; color: var(--ink); }
.peek-plot { position: relative; padding-left: 36px; }
.peek-plot svg { display: block; width: 100%; height: 210px; overflow: visible; }
.peek-y { position: absolute; left: 0; transform: translateY(-50%); font-size: 11px; color: var(--muted); }
.peek-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; padding-left: 36px; font-size: 13px; color: var(--ink-2); }
.peek-legend span { display: inline-flex; align-items: center; gap: 7px; }
.peek-legend b { color: var(--ink); }
.peek-changes, .ex-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.peek-changes li, .ex-changes li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.peek-changes .ic, .ex-changes .ic { color: var(--good-ink); font-size: 11px; line-height: 1.9; }
/* "See how it works": sits over the fading bottom of the window */
.peek-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--border); backdrop-filter: blur(6px); }
.peek-cue:hover { color: var(--ink); border-color: var(--axis); }

@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes peek-rise { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes col-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes cue-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 4px); } }
/* Charts reveal left to right. (A clip, not a stroke dash: these charts stretch to fit, which breaks dash-based drawing and left gaps.) */
@keyframes wipe-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero .lead, .hero .cta-row, .hero .trust { animation: hero-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 { animation-delay: .06s; }
  .hero .lead { animation-delay: .12s; }
  .hero .cta-row { animation-delay: .18s; }
  .hero .trust { animation-delay: .24s; }
  .peek-wrap { animation: peek-rise 1s cubic-bezier(.2, .7, .2, 1) .3s both; }
  .peek-plot svg { animation: wipe-in 1.4s cubic-bezier(.3, .6, .3, 1) .9s both; }
  .peek-cue { animation: cue-bob 2.4s ease-in-out 2s infinite; }
}

/* ---------- Example cards (pictures of the product with the sample account's numbers) ---------- */
.example, .ex-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); }
.example-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.example-head strong { color: var(--ink); font-size: 15px; }
.ex-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--grid); }
.example-head + .ex-row { border-top: 0; }
.ex-name { display: flex; align-items: center; gap: 8px; font-weight: 650; flex-wrap: wrap; }
.ex-score { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; text-align: right; line-height: 1; }
.ex-score small { font-size: 12px; font-weight: 500; color: var(--muted); }
.ex-bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--bar-track); overflow: hidden; }
.ex-bar i { display: block; height: 100%; border-radius: 4px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.badge-double { background: var(--good-bg); color: var(--good-ink); }
.badge-maintain { background: var(--neutral-bg); color: var(--ink-2); }
.ex-move { margin-top: 6px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); font-size: 14.5px; }
.ex-move strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px; }
.ex-forecast { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--grid); }
.ex-forecast svg { display: block; width: 100%; height: 96px; overflow: visible; }
.ex-forecast-nums { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8px; font-size: 12px; color: var(--muted); }
.ex-forecast-nums span:nth-child(2) { text-align: center; }
.ex-forecast-nums span:nth-child(3) { text-align: right; }
.ex-forecast-nums b { display: block; font-size: 17px; color: var(--ink); letter-spacing: -0.02em; }
.ex-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 120px; align-items: end; }
.ex-days div { height: 100%; display: grid; grid-template-rows: 1fr auto; align-items: end; gap: 6px; text-align: center; font-size: 11.5px; color: var(--muted); }
.ex-days i { display: block; border-radius: 5px 5px 2px 2px; background: var(--axis); transform-origin: bottom; }
.ex-days .best i { background: var(--ig); }
.ex-days .best span { color: var(--ink); font-weight: 650; }
.ex-note { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.mini-check.ex-check { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--grid); }
.ex-sub { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.ex-lead { margin: 4px 0 12px; font-size: 15px; color: var(--ink-2); }
.ex-lead strong { color: var(--ink); }
.ex-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ex-rank li { display: grid; grid-template-columns: 104px 1fr 96px; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.ex-rank li span { display: inline-flex; align-items: center; gap: 7px; }
.ex-rank em { display: block; height: 8px; border-radius: 4px; background: var(--bar-track); overflow: hidden; }
.ex-rank em i { display: block; height: 100%; border-radius: 4px; background: var(--bar); }
.ex-rank li.best em i { background: var(--good-ink); }
.ex-visits li.best em i { background: var(--ig); }
.ex-rank b { text-align: right; color: var(--ink); font-size: 13.5px; }
.ex-rank li.best span { color: var(--ink); font-weight: 650; }
.ex-qr { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink); }
.ex-qr svg { flex: none; padding: 4px; border-radius: 6px; background: var(--surface); }
.ex-qr strong { display: block; font-size: 14px; }
.ex-qr span { font-size: 13px; color: var(--ink-2); }

/* ---------- Sections ---------- */
section.block { padding: 84px 0; }
section.alt { background: color-mix(in srgb, var(--surface) 72%, transparent); border-block: 1px solid var(--border); } /* see-through, so the stars carry on */
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 720; }
.sec-head p { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
section.alt .card { background: var(--page); }
.card h3 { font-size: 18px; letter-spacing: -0.01em; margin: 10px 0 6px; }
.card p { color: var(--ink-2); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--neutral-bg); color: var(--ink-2); }
.mini-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.mini-check li { display: flex; align-items: center; gap: 9px; }
.cb { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--axis); font-size: 11px; font-weight: 800; line-height: 1; flex: none; }
.cb.on { background: var(--good-ink); border-color: var(--good-ink); color: var(--page); }

/* How it works: the three steps are stars on one constellation line */
.cards.steps { position: relative; }
.step-num { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent); }
.cards.steps .card { position: relative; }
/* how long each step takes: a small pill under the step title */
.step-time { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--good-ink); background: color-mix(in srgb, var(--good-ink) 11%, transparent); }
/* the "why it's easy" line under the steps, same ticks as the hero's */
.ease { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 15px; color: var(--ink-2); }
.ease li::before { content: "✓"; color: var(--good-ink); font-weight: 800; margin-right: 8px; }
.step-cta { justify-content: center; margin-top: 30px; }
.step-cta-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* Why Pyxis: life without it next to life with it */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare h3 { margin-top: 0; }
.compare ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 11px; font-size: 15px; }
.compare li { display: flex; gap: 10px; align-items: baseline; }
.compare-before li { color: var(--muted); }
.compare-before li::before { content: "✕"; flex: none; color: var(--muted); font-weight: 700; }
.compare-after { border-color: color-mix(in srgb, var(--good-ink) 45%, var(--border)); }
.compare-after li { color: var(--ink); }
.compare-after li::before { content: "✓"; flex: none; color: var(--good-ink); font-weight: 800; }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }
@media (min-width: 901px) {
  /* the line between one step's star and the next */
  .cards.steps .card:not(:last-child)::after { content: ""; position: absolute; top: 41px; left: 58px; right: -44px; height: 1px; z-index: 1; pointer-events: none;
    background: linear-gradient(to right, color-mix(in srgb, var(--ink) 45%, transparent), color-mix(in srgb, var(--ink) 20%, transparent)); transform-origin: left; }
  .js-reveal .cards.steps .card.reveal:not(:last-child)::after { transform: scaleX(0); transition: transform .8s cubic-bezier(.3, .6, .3, 1) .35s; }
  .js-reveal .cards.steps .card.reveal.in:not(:last-child)::after { transform: scaleX(1); }
}

/* ---------- What you get: features along a constellation line, each with its example beside it ---------- */
.journey { position: relative; display: grid; gap: 72px; padding: 12px 0; }
.spine { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.spine i { position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 55%, transparent), color-mix(in srgb, var(--ink) 30%, transparent));
  transform-origin: top; transform: scaleY(var(--p, 1)); } /* landing.js draws the line down as you scroll */
.feat { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); align-items: center; }
.feat-text { grid-column: 1; max-width: 440px; justify-self: end; }
.feat .node { grid-column: 2; justify-self: center; }
.feat-ex { grid-column: 3; }
.feat.flip .feat-text { grid-column: 3; justify-self: start; }
.feat.flip .feat-ex { grid-column: 1; }
.feat .feat-text, .feat .feat-ex, .feat .node { grid-row: 1; }
.feat h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1.15; margin: 12px 0 10px; }
.feat-text > p { color: var(--ink-2); font-size: 16.5px; }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.ticks li::before { content: "✓"; color: var(--good-ink); font-weight: 800; }
.node { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--axis);
  box-shadow: 0 0 0 6px var(--page); transition: background .5s ease, box-shadow .6s ease, transform .6s cubic-bezier(.3, 1.4, .5, 1); }
section.alt .node { box-shadow: 0 0 0 6px color-mix(in srgb, var(--surface) 72%, var(--page)); }
.feat.in .node, html:not(.js-reveal) .feat .node { background: var(--ink); transform: scale(1.15);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--surface) 72%, var(--page)), 0 0 0 11px color-mix(in srgb, var(--ink) 12%, transparent), 0 0 24px color-mix(in srgb, var(--ink) 55%, transparent); }
.js-reveal .feat.reveal:not(.in) .node { transform: scale(.6); }
/* the example slides in from its own side */
.js-reveal .feat.reveal .feat-ex { transition: opacity .7s ease .12s, transform .8s cubic-bezier(.2, .7, .2, 1) .12s; }
.js-reveal .feat.reveal:not(.in) .feat-ex { opacity: 0; transform: translateX(28px); }
.js-reveal .feat.flip.reveal:not(.in) .feat-ex { transform: translateX(-28px); }
.js-reveal .feat.reveal { transform: none !important; } /* the row itself stays put; its parts move */
.js-reveal .feat.reveal:not(.in) { opacity: 1; }
.js-reveal .feat.reveal:not(.in) .feat-text { opacity: 0; transform: translateY(14px); }
.js-reveal .feat.reveal .feat-text { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .feat.in .ex-bar i, .js-reveal .feat.in .ex-rank em i { transform-origin: left; animation: bar-grow .9s cubic-bezier(.2, .7, .2, 1) .45s both; }
.js-reveal .feat.in .ex-days i { animation: col-grow .8s cubic-bezier(.2, .7, .2, 1) .45s both; }
.js-reveal .feat.in .ex-forecast svg { animation: wipe-in 1.2s cubic-bezier(.3, .6, .3, 1) .5s both; }

/* Sections ease in as you scroll to them (landing.js adds .js-reveal, .reveal and .in) */
.js-reveal .reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal:not(.in) { opacity: 0; transform: translateY(16px); }

/* Business / creator */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split .card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.split .card li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.split .card li::before { content: "✓"; color: var(--good-ink); font-weight: 800; }

/* Free plan band: mid-page, so the $0 option can't be missed */
section.free-band { padding: 64px 0; }
.free-box { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 44px 48px; border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--good-ink) 22%, var(--border));
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--good-ink) 6%, transparent), transparent 60%), color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: 0 14px 44px color-mix(in srgb, var(--good-ink) 7%, transparent); overflow: hidden; }
.free-copy .eyebrow { color: var(--good-ink); }
.free-copy h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 760; margin: 8px 0 14px; }
.free-copy h2 span { color: var(--good-ink); white-space: nowrap; }
.free-copy > p { color: var(--ink-2); font-size: 17px; max-width: 480px; }
.free-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.link-arrow { color: var(--ink); font-weight: 650; font-size: 15px; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.free-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.free-card { position: relative; padding: 26px 28px; border-radius: 16px; background: var(--page); border: 1px solid var(--border); }
.free-price { display: flex; align-items: baseline; gap: 8px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--grid); }
.free-price b { font-size: 56px; font-weight: 760; letter-spacing: -0.04em; line-height: 1; }
.free-price small { font-size: 15px; color: var(--muted); }
/* a small star beside the price, in the page's constellation style */
.free-star { align-self: center; width: 12px; height: 12px; margin-right: 4px; border-radius: 50%; background: var(--good-ink);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--good-ink) 16%, transparent), 0 0 20px color-mix(in srgb, var(--good-ink) 60%, transparent); }
.free-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.free-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; }
.free-list li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 800;
  background: color-mix(in srgb, var(--good-ink) 14%, transparent); color: var(--good-ink); }
@media (max-width: 900px) {
  .free-box { grid-template-columns: 1fr; gap: 28px; padding: 30px 24px; }
}
@media (max-width: 480px) {
  section.free-band { padding: 44px 0; }
  .free-box { padding: 26px 18px; }
  .free-card { padding: 20px; }
  .free-price b { font-size: 46px; }
}

/* Pricing teaser */
/* Business / Influencer switch above the plans */
.plan-switch { display: flex; width: max-content; margin: 0 auto 26px; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.plan-switch button { font: inherit; font-size: 14.5px; font-weight: 600; padding: 8px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.plan-switch button:hover { color: var(--ink); }
.plan-switch button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.plan-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* The dark pill is one piece that slides between the two buttons (landing.js) */
.plan-switch { position: relative; isolation: isolate; }
.plan-switch .switch-thumb { position: absolute; top: 4px; bottom: 4px; left: 0; z-index: -1; border-radius: 999px; background: var(--ink); transition: transform .26s cubic-bezier(.3, .7, .3, 1), width .26s cubic-bezier(.3, .7, .3, 1); }
.plan-switch .switch-thumb.snap { transition: none; }
.plan-switch.has-thumb button { position: relative; }
.plan-switch.has-thumb button[aria-pressed="true"] { background: transparent; }
@media (prefers-reduced-motion: reduce) { .plan-switch .switch-thumb { transition: none; } }
.price-strip[hidden] { display: none; }
.price-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.price-strip .amt { font-size: 38px; font-weight: 720; letter-spacing: -0.03em; margin: 8px 0 4px; }
.price-strip .amt small { font-size: 15px; font-weight: 500; color: var(--muted); }
/* Most popular plan: outlined and lit in the same green as the Start free button, so it stands out from the rest */
.price-strip .card.featured { position: relative; border: 2px solid var(--good-ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--good-ink) 12%, var(--surface)), var(--surface) 70%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--good-ink) 14%, transparent), 0 14px 44px color-mix(in srgb, var(--good-ink) 24%, transparent); }
.price-strip .card.featured .tag { background: var(--good-ink); color: var(--page); }
.price-strip .card.featured .amt { color: var(--good-ink); }
.center { text-align: center; margin-top: 28px; }

/* The plan cards as the app's Pricing tab draws them (landing.js builds them from pricing.js; the simple cards above
   are what shows without scripts). Same pieces, same order: tags, name, price, tabs it opens, features, button. */
.billing { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: -12px auto 26px; }
.billing[hidden] { display: none; }
.billing .seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.billing .seg button { font: inherit; font-size: 13.5px; border: 0; background: transparent; padding: 6px 14px; border-radius: 7px; color: var(--ink-2); cursor: pointer; }
.billing .seg button:hover { color: var(--ink); }
.billing .seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.billing .seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.billing .save { font-size: 11px; font-weight: 700; color: var(--good-ink); margin-left: 4px; }
.billing .early-note { font-size: 13px; color: var(--muted); text-align: center; }
.price-strip.rich { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.price-strip.rich .price-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.price-strip.rich .price-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 20px; }
.price-strip.rich .price-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--neutral-bg); color: var(--ink-2); }
.price-strip.rich .price-tag.pop { background: var(--good-ink); color: var(--page); }
.price-strip.rich h3 { margin: 0; font-size: 17px; }
.price-strip.rich .tagline { margin-top: 2px; min-height: calc(2lh); font-size: 14.5px; font-weight: 550; color: var(--ink); }
.price-strip.rich .price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-strip.rich .price .from { font-size: 13px; color: var(--muted); }
.price-strip.rich .price .amt { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.1; }
.price-strip.rich .price .per { color: var(--muted); font-size: 14px; }
.price-strip.rich .price-note { font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.price-strip.rich .tab-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.price-strip.rich .tab-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; padding: 3px 8px; border-radius: 999px; cursor: default; }
.price-strip.rich .tab-chip.on { background: var(--good-bg); color: var(--good-ink); }
.price-strip.rich .tab-chip.off { color: var(--muted); border: 1px dashed var(--border); opacity: .75; }
.price-strip.rich .tab-chip svg { width: 9px; height: 9px; }
.price-strip.rich .plan-feat { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.price-strip.rich .plan-feat li { display: grid; grid-template-columns: 16px 1fr; gap: 6px; }
.price-strip.rich .plan-feat li::before { content: "✓"; color: var(--good-ink); font-weight: 800; }
.price-strip.rich .price-card .btn { margin-top: auto; width: 100%; padding: 9px 14px; font-size: 14px; }
.price-strip.rich .card.popular { border: 2px solid var(--good-ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--good-ink) 10%, var(--surface)), var(--surface) 65%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--good-ink) 14%, transparent), 0 14px 40px color-mix(in srgb, var(--good-ink) 20%, transparent); }
.price-strip.rich .card.popular .amt { color: var(--good-ink); }
@media (max-width: 1060px) { .price-strip.rich { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* two by two, never three and a lonely fourth */
@media (max-width: 560px) { /* phones: one column, each card only as tall as it needs */
  .price-strip.rich { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .price-strip.rich .tagline { min-height: 0; }
  .price-strip.rich .price-tags:empty { display: none; }
}

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

/* Final call to action: Pyxis again, larger, behind the headline */
section.final { --sky-h: clamp(140px, 21vh, 214px); position: relative; text-align: center; padding: calc(var(--sky-h) + 64px) 0 104px; overflow: hidden; }
.final .wrap { position: relative; }
.final h2 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.03em; font-weight: 740; max-width: 640px; margin: 0 auto; line-height: 1.1; }
.final p { color: var(--ink-2); margin: 14px auto 0; max-width: 520px; font-size: 17px; }
.final .cta-row { justify-content: center; }
footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--muted); background: color-mix(in srgb, var(--page) 80%, transparent); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer .brand-name { font-size: 16px; color: var(--ink); }
footer .brand { gap: 8px; }
footer .logo { width: 28px; height: 28px; border-radius: 50%; }
footer .foot-links a { color: var(--muted); text-decoration: none; }
footer .foot-links a:hover { color: var(--ink); text-decoration: underline; }
.legal-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.legal-note a { color: var(--ink-2); }

/* Privacy policy and terms pages */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 24px 72px; }
.legal h1 { font-size: 32px; line-height: 1.2; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal h3 { font-size: 16px; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--ink); }
.legal .summary { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 8px; }
.legal .summary p, .legal .summary li { color: var(--ink); }
.legal .summary ul { margin-bottom: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { color: var(--ink); font-weight: 650; }
.legal td { color: var(--ink-2); }
@media (max-width: 560px) { .legal { padding-top: 28px; } .legal table { font-size: 13.5px; } }

@media (max-width: 900px) {
  .hero { padding-top: 188px; --sky-top: 68px; } /* on phones the top bar is taller, so the sky band starts lower */
  .hero-bg { width: 560px; left: 50%; margin-left: -280px; height: 113px; } /* phones: a smaller sky strip, centred on Pyxis */
  .final-band { width: 560px; left: 50%; margin-left: -280px; height: 113px; top: 36px; }
  section.final.block { padding-top: 176px; }
  .sky .main-const path { stroke-width: 3; }
  .hero-bg .main-const path { stroke-width: 3.6; }
  .hero-bg text { font-size: 20px; letter-spacing: 6px; }
  .sky .main-const .ring { stroke-width: 2.4; }
  .sky text { font-size: 20px; letter-spacing: 6px; }
  .hero .lead { font-size: 17px; }
  .split { grid-template-columns: 1fr; }
  .cards, .price-strip { grid-template-columns: 1fr; }
  .nav .wrap.nav-grid { grid-template-columns: auto minmax(0, 1fr); } /* phones: logo on the left, Log in and the demo on the right */
  .nav-left { display: none; }
  .nav-right { gap: 12px; } /* "Log in" stays: returning users need it */
  .nav-right a:not(.btn) { font-size: 14px; white-space: nowrap; }
  section.block { padding: 60px 0; }
  /* the window: smaller type, fewer words */
  .peek-wrap { margin-top: 36px; }
  .peek-body { padding: 14px 14px 22px; gap: 12px; }
  .peek-focus span, .peek-kpi small { display: none; }
  .peek-tabs { font-size: 11px; }
  .peek-tabs span { padding: 3px 6px; }
  .peek-dots { display: none; }
  .peek-kpis { gap: 8px; }
  .peek-kpi { padding: 10px; }
  .peek-kpi b { font-size: 19px; }
  .peek-kpi span { font-size: 11px; }
  .peek-plot { padding-left: 30px; }
  .peek-plot svg { height: 140px; }
  .peek-legend { padding-left: 0; font-size: 12px; gap: 4px 12px; }
  /* features: the line runs down the left, everything else stacks beside it */
  .journey { gap: 56px; }
  .spine { left: 7px; transform: none; }
  .feat { grid-template-columns: 14px minmax(0, 1fr); column-gap: 18px; row-gap: 22px; align-items: start; }
  .feat .node, .feat.flip .node { grid-column: 1; grid-row: 1; margin-top: 6px; }
  .feat .feat-text, .feat.flip .feat-text { grid-column: 2; grid-row: 1; max-width: none; justify-self: stretch; }
  .feat .feat-ex, .feat.flip .feat-ex { grid-column: 2; grid-row: 2; }
  .js-reveal .feat.reveal:not(.in) .feat-ex, .js-reveal .feat.flip.reveal:not(.in) .feat-ex { transform: translateY(18px); }
  .ex-rank li { grid-template-columns: 88px 1fr 78px; font-size: 13px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .cta-row .btn { width: 100%; }
  .hero .cta-row { width: 100%; }
  .example, .ex-card { padding: 18px 16px; }
  .ex-rank li { grid-template-columns: 76px 1fr 68px; gap: 8px; }
}

/* Shorter laptop screens (768-860px tall): a tighter hero, so the chart's lines still show on the first screen */
@media (min-width: 901px) and (max-height: 860px) {
  .hero { --sky-h: clamp(120px, 18vh, 160px); }
  .hero h1 { font-size: clamp(36px, 4.2vw, 50px); }
  .hero .eyebrow { margin-bottom: 10px; }
  .hero .lead { font-size: 17px; max-width: 700px; margin-top: 14px; }
  .hero .cta-row { margin-top: 20px; }
  .hero .trust { display: none; }
  .peek-wrap { margin-top: 26px; }
}

/* Phones: the two hero buttons sit side by side and the intro is a touch smaller, so the chart's lines show on the first screen */
@media (max-width: 480px) {
  .hero { padding-top: 176px; }
  .hero .lead { font-size: 16px; margin-top: 14px; }
  .hero .cta-row { flex-wrap: nowrap; margin-top: 20px; }
  .hero .cta-row .btn { width: auto; flex: 1; padding: 11px 10px; }
  .hero .trust { margin-top: 12px; font-size: 12.5px; gap: 6px 14px; }
  .peek-wrap { margin-top: 24px; }
}

/* Plan switch: the newly shown plans fade up quickly, one after another */
@keyframes price-swap { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .price-strip.swap-in > .card { animation: price-swap .26s cubic-bezier(.2, .7, .3, 1) backwards; }
  .price-strip.swap-in > .card:nth-child(2) { animation-delay: .035s; }
  .price-strip.swap-in > .card:nth-child(3) { animation-delay: .07s; }
  .price-strip.swap-in > .card:nth-child(4) { animation-delay: .105s; }
}

/* ---------- Examples: three real screens from the demo, one line each ---------- */
.center-head { margin-inline: auto; text-align: center; }
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; align-items: start; }
.ex-item { margin: 0; display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 14px; align-items: start; } /* captions share one row, so the cards start level */
.ex-item figcaption { order: -1; color: var(--ink-2); font-size: 15px; line-height: 1.5; padding: 0 4px; } /* above the card, so the three line up */
.ex-item figcaption strong { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 2px; }
.ex-cta { justify-content: center; margin-top: 40px; }
@media (max-width: 960px) { .examples { grid-template-columns: minmax(0, 520px); justify-content: center; row-gap: 14px; } .ex-item + .ex-item { margin-top: 22px; } }

/* Example: Focus Scores as mini gauges (same zones as the app's gauge) */
.ex-gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 0 4px; }
.ex-g { display: grid; justify-items: center; gap: 4px; text-align: center; }
.ex-g svg { width: 100%; height: auto; }
.ex-g .g-zone, .ex-g .g-value { fill: none; stroke-width: 16; }
.ex-g .g-bad { stroke: var(--bad-bg); }
.ex-g .g-neutral { stroke: var(--neutral-bg); }
.ex-g .g-good { stroke: var(--good-bg); }
.ex-g .g-value { stroke-linecap: round; stroke: var(--ink-2); }
.ex-g.g-good .g-value { stroke: var(--good-ink); }
.ex-g .g-num { font-size: 44px; font-weight: 750; letter-spacing: -0.03em; fill: var(--ink); }
.ex-g-name { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; }
.ex-g-say { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ex-g-say.good { color: var(--good-ink); }

/* Page-to-page moves (home, sign-up, setup) fade instead of flashing; the dashboard opts in too (styles.css) */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

/* ---------- Pyxis as the centrepiece of the first screen ----------
   The sky is framed tightly on the constellation (see the viewBox in index.html), so it draws large and centred,
   a little lower on the screen, with "The social media compass" under it. Later rules here win over the ones above. */
.hero { --sky-h: clamp(240px, 33vh, 320px); --sky-top: 78px; }
@media (min-width: 901px) { .hero { padding-top: calc(var(--sky-h) + var(--sky-top) - 4px); } }
.hero-bg .main-const path { stroke-width: 2.4; }
.hero-bg .pyx-name { font-size: 12.5px; letter-spacing: 4.5px; }
.hero-bg .pyx-tag { font-size: 12.5px; letter-spacing: 4.5px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg .main-const .pyx-tag { animation-delay: calc(var(--d, 0s) + 1.05s); }
}
@media (min-width: 901px) and (max-height: 860px) {
  .hero { --sky-h: clamp(200px, 27vh, 232px); --sky-top: 70px; }
  .hero-bg .pyx-name { font-size: 14px; }
  .hero-bg .pyx-tag { font-size: 14px; letter-spacing: 4px; }
}
@media (max-width: 900px) {
  .hero { --sky-top: 72px; padding-top: calc(72px + 210px); }
  .hero-bg { width: 100%; left: 0; margin-left: 0; height: 210px; }
  .hero-bg .main-const path { stroke-width: 2.8; }
  .hero-bg .pyx-name { font-size: 14px; letter-spacing: 5px; }
  .hero-bg .pyx-tag { font-size: 13px; letter-spacing: 4px; }
}
@media (max-width: 480px) {
  .hero { padding-top: calc(72px + 196px); }
  .hero-bg { height: 196px; }
}

/* Hero: one big "Start free" pill (the demo lives in the top bar) */
.hero .cta-row .btn-hero { font-size: 17.5px; padding: 15px 40px; border-radius: 999px; min-width: 220px; justify-content: center; }
@media (max-width: 480px) { .hero .cta-row .btn-hero { flex: 0 1 auto; width: auto; min-width: 230px; padding: 14px 36px; } }

/* ---------- Phone menu (under 720px): a menu button in the top bar opens a panel with every link ---------- */
.nav-menu-btn { display: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--border); border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink); cursor: pointer; }
.nav-menu-btn:hover { border-color: var(--axis); }
.nav-menu-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nav-menu-btn svg { grid-area: 1 / 1; }
.nav-menu-btn .i-close { display: none; }
.nav-menu-btn[aria-expanded="true"] .i-open, .nav:has(.mobile-menu:popover-open) .nav-menu-btn .i-open { display: none; }
.nav-menu-btn[aria-expanded="true"] .i-close, .nav:has(.mobile-menu:popover-open) .nav-menu-btn .i-close { display: block; }
.mobile-menu { position: fixed; inset: 72px 12px auto 12px; width: auto; height: auto; max-height: calc(100vh - 88px); overflow: auto; margin: 0;
  padding: 8px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.mobile-menu::backdrop { background: rgba(0, 0, 0, 0.4); }
.mobile-menu nav { display: grid; gap: 2px; }
.mobile-menu a { display: block; padding: 13px 14px; border-radius: 12px; font-size: 16px; font-weight: 550; color: var(--ink); text-decoration: none; }
.mobile-menu a:not(.btn):hover { background: var(--surface-2); }
.mobile-menu a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.mobile-menu .btn { margin-top: 8px; text-align: center; border-radius: 999px; padding: 13px; color: var(--accent-ink); }
.mobile-menu .btn:focus-visible { outline-offset: 2px; }
@media (max-width: 720px) {
  .nav-right > a { display: none; }
  .nav-menu-btn { display: inline-grid; }
}
@media (min-width: 721px) { .mobile-menu { display: none; } } /* never shows on bigger screens, even if left open while resizing */
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu { opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: 50% 0;
    transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), overlay .25s allow-discrete, display .25s allow-discrete; }
  .mobile-menu:popover-open { opacity: 1; transform: none; }
  @starting-style { .mobile-menu:popover-open { opacity: 0; transform: translateY(-8px) scale(.98); } }
  .mobile-menu::backdrop { transition: background-color .25s ease, overlay .25s allow-discrete, display .25s allow-discrete; }
  @starting-style { .mobile-menu:popover-open::backdrop { background-color: transparent; } }
}

/* ---------- Phones (under 720px): every tap target at least 44px tall, using padding only (font sizes unchanged) ---------- */
@media (max-width: 720px) {
  .nav .brand { padding-block: 3px; }                        /* 38px logo → 44 */
  .nav-menu-btn { width: auto; height: auto; padding: 12px; } /* 20px icon + border → 45.6 */
  .peek-cue { padding-block: 11px; }                          /* was 8px → 44.5 */
  .plan-switch button { padding-block: 11px; }                /* Business / Influencer: was 8px → 44.5 */
  .billing .seg button { padding-block: 12px; }               /* Monthly / Yearly: was 6px → 44.9 */
  .price-card .btn, .price-strip.rich .price-card .btn { padding-block: 11px; } /* was 9px → 45.3 */
  .faq summary { padding-block: 10px; }                       /* one-line questions: 24.8 → 44.8 */
  .faq a { padding-block: 12px; }                             /* links inside answers stay inline, so the text flows the same */
  footer .brand { padding-block: 8px; }                       /* 28 → 44 */
  footer .foot-links a { padding-block: 13px; }               /* inline, so the footer line doesn't move */
}

/* ---------- Plan cards on phones: the first five features, then "See everything included" (landing.js) ---------- */
.feat-toggle { display: none; }
@media (max-width: 720px) {
  .price-strip.rich .price-card:not(.feats-open) .plan-feat li.extra { display: none; }
  .feat-toggle { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: -4px 0 6px; padding: 12px 2px; /* 44px tall */
    border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 650; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .feat-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
  .feat-more { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--neutral-bg); color: var(--ink-2); text-decoration: none; }
}

/* ---------- Desktop first screen: a smaller sky and tighter spacing, so the top of the Overview window shows
   without scrolling (at 1440x900 its top third is in view). Copy and stars unchanged. ---------- */
@media (min-width: 901px) {
  .hero { --sky-h: clamp(190px, 22vh, 230px); --sky-top: 70px; padding-top: calc(var(--sky-h) + var(--sky-top) - 44px); }
  .hero-bg .pyx-name { font-size: 14px; }                /* the sky draws smaller, so its labels get a touch bigger to stay readable */
  .hero-bg .pyx-tag { font-size: 15px; letter-spacing: 4.5px; }
  .hero .eyebrow { margin-bottom: 10px; }
  .hero .lead { margin-top: 14px; }
  .hero .cta-row { margin-top: 20px; }
  .hero .trust { margin-top: 12px; }
  .peek-wrap { margin-top: 22px; }
}

/* ---------- Opening animation (home page, once per browser session) ----------
   intro.js adds "intro" and "intro-played" to <html> before the first paint: the page is hidden and an overlay
   (#intro) shows Pyxis as three small stars in the middle of the screen. intro-play.js then adds "intro-go", and:
     0.0s   the page's own night sky (the starfield landing.js builds) stands still around them
     0.25s  the view zooms in on the three stars: the sky rushes past and fades, the stars grow
     0.95s  a line joins them, and the compass from the Pyxis mark draws itself around them in white, its needle
            lying along the constellation
     1.5s   "intro-glide": the constellation glides to its place in the hero while the compass fades to grey
     1.8s   "intro-reveal": the night sky and the page fade back in around it; the compass fades out
     2.5s   every class but "intro-played" comes off, the overlay is removed and the hero's own constellation takes over
   "intro-played" stays on, so the hero doesn't draw itself a second time.
   Without scripts, with reduced motion, or on a later visit, none of these classes is set and nothing here applies. */
#intro { display: none; } /* by id: <html> itself carries the class "intro" while it plays */
html.intro #intro { display: block; position: fixed; inset: 0; z-index: 100; overflow: hidden; pointer-events: none; }
html.intro-reveal #intro { z-index: -1; } /* once the page starts to appear it sits in the sky, where the hero's constellation lives: the page fades in over it */

/* The page waits behind it: see-through rather than removed, so nothing moves when it appears */
html.intro .nav, html.intro main, html.intro footer { pointer-events: none; }
html.intro:not(.intro-reveal) .nav, html.intro:not(.intro-reveal) main, html.intro:not(.intro-reveal) footer { opacity: 0; animation: intro-show .3s ease 4.5s forwards; }
html.intro .hero-bg { visibility: hidden; animation: intro-unhide .01s linear 4.5s forwards; } /* the big one stands in for it until the swap */
/* no scrolling while it plays; the scrollbar's space is kept, so the page is the same width before and after */
@supports (scrollbar-gutter: stable) { html.intro { overflow: hidden; scrollbar-gutter: stable; } }
/* Failsafe: if scripts stall, the page shows itself after 4.5s anyway (intro.js also ends it with a timer at 3.5s) */
html.intro #intro { animation: intro-gone .3s ease 4.5s forwards; }
@keyframes intro-show { to { opacity: 1; pointer-events: auto; } }
@keyframes intro-unhide { to { visibility: visible; } }
@keyframes intro-gone { to { opacity: 0; visibility: hidden; } }

/* The zoom, part 1: the page's real night sky. Both star layers grow about the middle of the screen and fade as the
   view moves in, stay away while the constellation is drawn, and come back with the page. */
html.intro-go .starfield, html.intro-go .stars-near { animation: intro-sky-rush .75s cubic-bezier(.6, 0, .2, 1) .25s both; }
html.intro-go .stars-near { transform-origin: 50% calc(50% - 320px); } /* this layer is 640px taller than the screen */
html.intro-reveal .starfield, html.intro-reveal .stars-near { animation: intro-sky-back .5s ease both; }
@keyframes intro-sky-rush { 70% { opacity: 0; } 100% { opacity: 0; transform: scale(7.7); } }
@keyframes intro-sky-back { from { opacity: 0; } }

/* The zoom, part 2: the constellation, in a square in the middle of the screen. It starts at 0.13 of its size, which makes
   its stars as small as the sky's own (7.7 x 0.13 = 1: both layers zoom by the same amount), and grows to full size.
   It has the shared .sky look; the lines below repeat what .hero-bg adds on top (the same numbers, in the drawing's
   own units), so once it has shrunk onto the hero the two are identical and the swap can't be seen. If the hero's line
   width, glow or label sizes change, change them here too. */
.intro-sky { --s: min(46vh, 86vw); position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); overflow: visible; color: var(--ink-2); transform-origin: 50% 50%; will-change: transform; }
html.intro:not(.intro-go) .intro-sky { transform: scale(.13); } /* the still first frame, before intro-play.js starts the clock */
html.intro-go .intro-sky { animation: intro-zoom .75s cubic-bezier(.6, 0, .2, 1) .25s backwards; }
@keyframes intro-zoom { from { transform: scale(.13); } }
.intro-sky .main-const { opacity: 1; }
.intro-sky .main-const path { stroke-width: 2.4; }
.intro-sky .halo { opacity: .9; }
.intro-sky .main-const circle:not(.ring) { filter: drop-shadow(0 0 7px color-mix(in srgb, currentColor 75%, transparent)); }
.intro-sky text { font-size: 13px; letter-spacing: 4px; opacity: .85; }
.intro-sky .pyx-name { font-size: 14px; letter-spacing: 4.5px; }
.intro-sky .pyx-tag { font-size: 15px; letter-spacing: 4.5px; font-weight: 600; }
@media (max-width: 900px) {
  .intro-sky .main-const path { stroke-width: 2.8; }
  .intro-sky .pyx-name { letter-spacing: 5px; }
  .intro-sky .pyx-tag { font-size: 13px; letter-spacing: 4px; }
}
/* Until the glide: only the three stars, drawn at 0.6 of their size in the hero. The halo, the small ring and the words
   wait; the line and the compass are undrawn (the shared .sky rules start every line undrawn). */
.intro-sky .main-const circle:not(.ring) { opacity: 1; animation: none; transform: scale(.6); }
.intro-sky .main-const path, .intro-sky .compass path { animation: none; }
html:not(.intro-glide) .intro-sky .halo, html:not(.intro-glide) .intro-sky .main-const .ring, html:not(.intro-glide) .intro-sky .main-const text { opacity: 0; animation: none; }
/* The compass: thin white outlines (the width is in the mark's own small units; the group is drawn about 4x up) */
.intro-sky .compass { color: var(--ink); }
.intro-sky .compass path { stroke-width: .42; stroke-linecap: butt; stroke-dasharray: 1.05 1; stroke-dashoffset: 1.05; } /* flat ends: a round end would show as a dot where an undrawn line starts. The dash is a touch longer than the line, so a closed shape closes fully */

/* The drawing: the line through the stars, the compass ring, then the two halves of the needle */
html.intro-go .intro-sky .main-const path { animation: sky-line .45s ease-in-out .95s forwards; }
html.intro-go .intro-sky .compass path { animation: sky-line .5s ease-in-out .95s forwards; }
html.intro-go .intro-sky .compass path + path { animation-duration: .42s; animation-delay: 1s; }
html.intro-go .intro-sky .compass .cue { animation-delay: 1.08s; } /* the last line to finish, at 1.5s: intro-play.js starts the glide when it ends */

/* The glide (intro-play.js sets the transform). On the way the stars grow to their size in the hero, the halo, the
   small ring and the words arrive, and the compass goes from white to grey, then away. */
html.intro-glide .intro-sky { transition: transform .6s cubic-bezier(.6, 0, .2, 1); }
html.intro-glide .intro-sky .main-const circle:not(.ring) { animation: intro-grow .6s cubic-bezier(.6, 0, .2, 1) both; }
html.intro-glide .intro-sky .halo { animation: halo-in-strong .55s ease-out .05s both; }
html.intro-glide .intro-sky .main-const .ring { animation: sky-ring .5s ease-out .1s both; }
html.intro-glide .intro-sky .main-const .beacon { animation: none; }
html.intro-glide .intro-sky .main-const text { animation: sky-fade-strong .35s ease-out .6s both; }
html.intro-glide .intro-sky .compass { animation: intro-compass-out 1s linear both; }
@keyframes intro-grow { from { transform: scale(.6); } to { transform: scale(1); } }
@keyframes intro-compass-out { 0% { opacity: 1; } 50%, 65% { opacity: .3; } 95%, 100% { opacity: 0; } }

/* The page comes in around the constellation, one part after another: top bar, headline, text and button, then the
   Overview window. These are the page's usual entrances, held until "intro-reveal" and a little quicker. */
html.intro-played main, html.intro-played footer { transition: opacity .4s ease; }
html.intro-played .nav { animation: nav-in .4s ease-out both; }
html.intro-played .hero .eyebrow, html.intro-played .hero h1, html.intro-played .hero .lead, html.intro-played .hero .cta-row, html.intro-played .hero .trust { animation: hero-rise .4s cubic-bezier(.2, .7, .2, 1) .06s both; }
html.intro-played .hero h1 { animation-delay: .09s; }
html.intro-played .hero .lead { animation-delay: .12s; }
html.intro-played .hero .cta-row { animation-delay: .15s; }
html.intro-played .hero .trust { animation-delay: .17s; }
html.intro-played .peek-wrap { animation: peek-rise .45s cubic-bezier(.2, .7, .2, 1) .12s both; }
html.intro-played .peek-plot svg { animation: wipe-in .4s cubic-bezier(.3, .6, .3, 1) .17s both; }
html.intro:not(.intro-reveal) .hero .eyebrow, html.intro:not(.intro-reveal) .hero h1, html.intro:not(.intro-reveal) .hero .lead, html.intro:not(.intro-reveal) .hero .cta-row,
html.intro:not(.intro-reveal) .hero .trust, html.intro:not(.intro-reveal) .peek-wrap, html.intro:not(.intro-reveal) .peek-plot svg { animation: none; }

/* The hero's own constellation is already drawn when the overlay lands on it: its draw-in is skipped (no animation,
   no delay) and each part rests where the draw-in would have left it. The beacon starts pulsing once the intro is over. */
html.intro-played .hero-bg .main-const circle:not(.ring) { opacity: 1; animation: none; }
html.intro-played .hero-bg .main-const path { stroke-dashoffset: 0; animation: none; }
html.intro-played .hero-bg .main-const .ring, html.intro-played .hero-bg .halo, html.intro-played .hero-bg .main-const text { animation: none; }
html.intro-played .hero-bg .main-const .beacon { animation: beacon-strong 4s ease-out .9s infinite; }
html.intro .hero-bg .main-const .beacon { animation: none; }
