.landing-layout *, .landing-layout *::before, .landing-layout *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #05060a;
  --ink: #07080d;
  --panel: #0b0d14;
  --panel-2: #0f1119;
  --line: rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.14);
  --white: #fff;
  --t-1: rgba(255,255,255,0.94);
  /* Four steps, with the floor above WCAG AA on this background: t-4 was
     0.34, which computes to 2.95:1 — under the 3:1 large-text floor. */
  --t-2: rgba(255,255,255,0.72);
  --t-3: rgba(255,255,255,0.56);
  --t-4: rgba(255,255,255,0.47);
  /* The accent is a calm blue. --violet / --iris keep their old names. */
  --violet: #6b8cff;
  --iris: #8fa8ff;
  --sky: #4d9fff;     /* the bright end of the blue: data, and time you still have */
  --amber: #f5b971;
  --green: #22c55e;   /* a positive state: done, kept, on pace. The app's own green. */
  --red:   #f4635a;   /* a negative or urgent one: missed, gone, wrong */
  --shell: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body.landing-layout {
  /* The reset above only reaches the body's descendants, so the body kept the browser's
     8px margin and the app's stylesheets's pure-black html showed through as a frame. */
  margin: 0;
  background: var(--black);
  color: var(--t-1);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  font-feature-settings: "cv02","cv03","cv04","ss01";
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Page-wide ambient field */
body.landing-layout::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* One restrained wash instead of three tinted ones. Stacked violet, cyan
     and rose put a colour cast on every surface; the page reads harder with
     a neutral ground and colour spent only where it means something. */
  background:
    radial-gradient(1000px 620px at 50% -14%, rgba(107,140,255,0.13), transparent 64%);
}
/* Fine grain so the gradients never band */
body.landing-layout::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.26;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.landing-layout > * { position: relative; z-index: 2; }

.landing-layout a { color: inherit; text-decoration: none; }
.landing-layout a.btn-primary, .landing-layout a.nav-cta { color: #07080d; }
.landing-layout :focus-visible {
  outline: 2px solid rgba(143,168,255,0.9);
  outline-offset: 3px;
  border-radius: 4px;
}
.landing-layout ::selection { background: rgba(107,140,255,0.35); color: #fff; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* Three tracks with equal outer columns, so the section links sit on the
     true centre of the page rather than wherever the wider right-hand
     group happens to leave them. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 40px;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.landing-nav.is-stuck {
  padding: 12px 40px;
  background: rgba(5,6,10,0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  color: var(--white);
  transition: opacity 0.2s var(--ease);
}
.nav-logo:hover { opacity: 0.75; }

/* Drawn mark + lowercase letters. The mark shares the cap line and baseline
   with them, so the whole lockup scales from one font-size, and its cap
   height rising over the x-height is what makes the lockup read as a mark
   rather than a word. Weight 500 matches Inter's stems to the mark's own
   stroke; the tracking is near zero because the wide letter-spacing that
   set the capitals apart only makes lowercase look sprung. */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--white);
}
.wordmark svg {
  display: inline-block;
  /* A whole em, not the 0.72em that matches Inter's cap height: the mark's
     feet are drawn past the baseline and sheared off by the viewBox edge,
     so when the box height lands on a fractional pixel (0.72 x 20px = 14.4)
     that shear falls mid-pixel and the foot bar renders a hair short of the
     ground. A whole em keeps the edge on a pixel boundary. */
  height: 1em;
  width: auto;
}
/* The mark is a whole em tall (see above), and the letters are deliberately
   NOT scaled to match its height: at 1.15em the mark stands clear above their
   cap line, which is what makes the lockup read as a mark with a word beside
   it rather than a five-letter word whose first letter is odd. */
.wordmark svg.wordmark-letters {
  /* "pex" drawn from Outfit's outlines (LandingHelper::PEX_PATH): 1.15em type,
     its box from the bowl tops to the p's descender. A flex item's baseline is
     its bottom edge, so the box sits on the baseline and is then dropped by the
     descender's depth to put the letters' own baseline there. */
  height: 0.7866em;
  margin-left: 0.0575em;
  position: relative;
  top: 0.2289em;
}

.nav-middle { display: flex; align-items: center; gap: 4px; justify-self: center; }
.nav-item {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--t-2);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-item:hover { color: var(--white); background: rgba(255,255,255,0.05); }

.nav-links { display: flex; align-items: center; gap: 6px; justify-self: end; }
.nav-link {
  font-size: 13.5px;
  color: var(--t-2);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  font-weight: 400;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.05); }

.nav-cta {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #07080d;
  background: linear-gradient(180deg, #ffffff, #dde3fb);
  padding: 9px 18px;
  border-radius: 9px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 22px rgba(107,140,255,0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 12px 28px rgba(107,140,255,0.42); }

/* ---------- Buttons ---------- */
.btn-primary {
  position: relative;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #07080d;
  background: linear-gradient(180deg, #ffffff 0%, #e1e6fb 100%);
  border: none;
  padding: 14px 30px;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.75) inset, 0 12px 34px rgba(107,140,255,0.30);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.85), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.85) inset, 0 18px 44px rgba(107,140,255,0.46); }
.btn-primary:hover::after { left: 130%; }
.btn-primary-lg { font-size: 16px; padding: 17px 38px; border-radius: 13px; }

.btn-ghost {
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--t-1);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  padding: 16px 28px;
  border-radius: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 124px 0 0;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10% -20% auto;
  height: 900px;
  pointer-events: none;
  /* A single violet source behind the headline. The cyan and amber lobes
     that used to sit beside it tinted the whole hero. */
  background:
    radial-gradient(closest-side, rgba(107,140,255,0.26), transparent 70%) 50% 6% / 960px 640px no-repeat;
  filter: blur(10px);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-1.5%, 0, 0) scale(1); }
  to   { transform: translate3d(2.5%, 2%, 0) scale(1.08); }
}
/* Perspective grid floor behind the hero */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 68% 55% at 50% 30%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 68% 55% at 50% 30%, #000 10%, transparent 78%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 450;
  color: var(--t-2);
  padding: 7px 8px 7px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.hero-badge:hover { border-color: rgba(255,255,255,0.3); color: var(--white); transform: translateY(-1px); }
.hero-badge .pill {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0a0b11;
  background: linear-gradient(135deg, #c3d0ff, #6b8cff);
  padding: 3px 9px;
  border-radius: 999px;
}
.hero-badge .pill { white-space: nowrap; }
.hero-badge .badge-short { display: none; }
.hero-badge .arrow { color: var(--t-3); transition: transform 0.25s var(--ease); }
.hero-badge:hover .arrow { transform: translateX(3px); }

.hero-title {
  /* Capped by height as well as width, so on a short laptop screen the form
     still lands above the fold. */
  font-size: clamp(46px, min(7.6vw, 11.5vh), 92px);
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--white);
  margin: 0 auto 26px;
  max-width: 15ch;
}
.hero-title, .section-title, .cta-title { text-wrap: balance; }

/* Emphasised words switch to Chakra Petch italic: the same forward lean as a
   script, but squared-off and technical, so a heading reads as a sentence with
   one phrase leaned on. */
.hero-title em, .section-title em, .cta-title em, .weeks-count em {
  font-family: 'Chakra Petch', 'Inter', sans-serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #b4c4ff;
  /* One soft glow on every leaned-on phrase, so the headings read as one voice. */
  text-shadow: 0 0 22px rgba(107,140,255,0.38);
}
/* The hero's is the brightest of them: white letters with the colour in the glow,
   true blue rather than the accent's periwinkle, which reads purple at strength.
   The padding keeps the italic's overhang inside the glow. */
.hero-title em {
  color: var(--white);
  text-shadow: 0 0 6px rgba(132,186,255,0.55), 0 0 28px rgba(56,140,255,0.45);
  padding-right: 0.06em;
}

.hero-subtitle {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 400;
  color: var(--t-2);
  max-width: 620px;
  line-height: 1.6;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta {
  margin-top: 22px;
  font-size: 13px;
  color: var(--t-2);
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta i { font-size: 12px; color: var(--iris); }

/* ---------- App preview ---------- */
.preview-wrap {
  margin-top: 56px;
  padding: 0 32px 40px;
  perspective: 2000px;
  position: relative;
}
/* Light spilling from the "screen" onto the surface below it, so the
   preview sits on the page rather than flat against it. */
.preview-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: min(1100px, 92%);
  height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(107,140,255,0.20), transparent 100%);
  filter: blur(30px);
  pointer-events: none;
}
.preview {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow:
    0 -1px 0 rgba(255,255,255,0.12) inset,
    0 60px 140px -40px rgba(0,0,0,0.9),
    0 0 120px -30px rgba(107,140,255,0.45);
  overflow: hidden;
  transform: rotateX(9deg) scale(0.985);
  transform-origin: top center;
  animation: settle 1.4s var(--ease) 0.15s both;
}
@keyframes settle {
  from { opacity: 0; transform: rotateX(18deg) translateY(40px) scale(0.94); }
  to   { opacity: 1; transform: rotateX(9deg) translateY(0) scale(0.985); }
}
.preview::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 110px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
}
.preview-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.preview-url {
  flex: 1;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
  font-size: 11.5px;
  color: var(--t-4);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 12px;
}

/* The app's own home page: its black sidebar, the ring and area cards, and the day. */
.preview-body { display: grid; grid-template-columns: 172px minmax(0,1fr); text-align: left; background: #000; }
.preview-side { display: flex; flex-direction: column; gap: 1px; border-right: 1px solid var(--line); padding: 16px 12px 18px; background: #000; }
.side-logo { color: #fff; font-size: 22px; padding: 2px 10px 12px; line-height: 0; }
.side-logo svg { width: 22px; height: auto; }
.side-row {
  display: flex; align-items: center; gap: 11px;
  font-size: 13px; color: #e7e9ea;
  padding: 7px 10px; border-radius: 99px;
}
.side-row .ic { width: 16px; font-size: 14px; color: #e7e9ea; }
.side-divider { height: 1px; margin: 6px 10px; background: var(--line-strong); }
.side-new {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 12px; padding: 9px 0; border-radius: 99px;
  font-size: 13px; font-weight: 700; color: #06130a; background: var(--green);
}
.side-new .ic { font-size: 11px; }

.preview-main { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 26px; padding: 22px 26px; align-items: start; }
.pm-left, .pm-right { display: grid; gap: 12px; min-width: 0; }
.pm-left { position: relative; }
/* The ring's settings button, top right of the column as in the app. */
.pm-tune {
  position: absolute; top: -6px; right: 0; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px; font-size: 12px; color: var(--t-2);
  background: #111114; border: 1px solid #26262b;
}

/* Equal arcs, each in its area's score colour, blending at the seams as the app's
   ring does. Work at 12 o'clock, then clockwise Mind, Body, World. */
.pm-ring { position: relative; width: 168px; aspect-ratio: 1; margin: 0 auto 6px; }
.pm-ring-band {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(0,0,0,0.5) 57%, rgba(0,0,0,0.05) 69%, rgba(255,255,255,0.12) 82%, rgba(0,0,0,0.05) 94%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02) 45%, rgba(0,0,0,0.18)),
    conic-gradient(var(--c-work), var(--c-mind), var(--c-body), var(--c-world), var(--c-work));
  -webkit-mask: radial-gradient(closest-side, transparent 56.5%, #000 57.5%);
          mask: radial-gradient(closest-side, transparent 56.5%, #000 57.5%);
}
.pm-ring::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(var(--c-work), var(--c-mind), var(--c-body), var(--c-world), var(--c-work));
  -webkit-mask: radial-gradient(closest-side, transparent 55%, #000 75%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 55%, #000 75%, transparent 100%);
  filter: blur(10px); opacity: 0.35;
}
/* The ring draws itself from 12 o'clock once the preview has settled: a cover the
   colour of the panel behind it, cut to the band, whose transparent wedge grows
   clockwise. Where @property isn't supported the angle can't interpolate, so the
   cover simply lifts at the end. */
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.pm-ring-sweep {
  position: absolute; inset: -3px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(transparent var(--sweep, 360deg), #000 0);
  -webkit-mask: radial-gradient(closest-side, transparent 52%, #000 53%);
          mask: radial-gradient(closest-side, transparent 52%, #000 53%);
  /* A steadier curve than the page's ease, which front-loads the motion so the
     sweep was over in its first third. */
  animation: ring-sweep 1.4s cubic-bezier(0.45, 0, 0.25, 1) 0.9s both;
}
@keyframes ring-sweep { from { --sweep: 0deg; } to { --sweep: 360deg; } }
.pm-ring-icon { position: absolute; font-size: 13px; color: #000; transform: translate(-50%,-50%); line-height: 0; }
/* On the middle of the band, which runs from 0.57 to 1 of the radius: 0.785 out. */
.pm-ring-icon.at-0 { left: 50%; top: 10.75%; }
.pm-ring-icon.at-1 { left: 89.25%; top: 50%; }
.pm-ring-icon.at-2 { left: 50%; top: 89.25%; }
.pm-ring-icon.at-3 { left: 10.75%; top: 50%; }
.pm-ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.pm-ring-center b { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--c-ring, #fff); line-height: 1.1; }
.pm-ring-center span { font-size: 8.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-3); }

.pm-area {
  border-radius: 12px; padding: 11px 12px 8px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
}
.pm-area-h { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #f0f0f2; margin-bottom: 6px; }
.pm-area-h .ic { font-size: 12px; }
.pm-area-h .pm-area-add { color: var(--t-3); font-size: 10px; margin-left: 2px; }
.pm-area-row { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #e0e0e0; padding: 5px 2px; }
.pm-area-title { flex: 1; min-width: 0; }
.preview .pm-row-tool { font-size: 10px; color: rgba(255,255,255,0.2); line-height: 0; }

.preview .tick {
  display: grid; place-items: center;
  width: 16px; height: 16px; border-radius: 5px; flex: none;
  border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.03);
}
.preview .tick .ic { font-size: 9px; line-height: 0; color: #06130a; opacity: 0; transition: opacity 0.25s var(--ease); }

.pm-month {
  justify-self: center; width: 100%; max-width: 220px; border: 1px solid #1f1f23; border-radius: 12px; padding: 10px 11px 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.016) 42%, rgba(255,255,255,0.027)), rgba(6,6,8,0.72);
  box-shadow: 0 1px 0 rgba(255,255,255,0.075) inset;
}
.pm-month-h { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: #ededf0; margin-bottom: 6px; }
.pm-month-h b { font-weight: 600; }
.pm-month-h .ic { font-size: 7px; color: #6b6b76; line-height: 0; }
.pm-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 3px 0; text-align: center; font-size: 9.5px; color: var(--t-1); }
.pm-month-grid b { font-weight: 600; color: #a1a1aa; }
.pm-month-grid span { display: grid; place-items: center; height: 18px; margin: 0 2px; border-radius: 5px; }
.pm-month-grid .out { color: var(--t-4); opacity: 0.6; }
/* Today the way the app's calendar marks it: the same green, the same dark numeral. */
.pm-month-grid .today { background: var(--green); color: #06130a; font-weight: 600; }

.pm-day {
  border: 1px solid #1f1f23; border-radius: 14px; padding: 6px 11px 10px;
  background: linear-gradient(rgba(255,255,255,0.016), rgba(255,255,255,0.004)), rgba(6,6,8,0.72);
  box-shadow: 0 1px 0 rgba(255,255,255,0.075) inset;
}
.pm-day-h { display: flex; align-items: center; gap: 10px; margin: 6px 4px 10px; font-size: 12.5px; font-weight: 600; color: #f0f0f2; }
.pm-day-h::before, .pm-day-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pm-task {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: #e0e0e0;
  padding: 7px 8px;
  background: var(--base);
  box-shadow: 0 -1px 0 #040406 inset;
}
.pm-task:last-of-type { box-shadow: none; }
.pm-task-area { width: 14px; text-align: center; font-size: 11px; line-height: 0; color: #e0e0e0; }
.pm-task .pm-row-tool { font-size: 10px; color: rgba(255,255,255,0.22); }
.pm-one-off { font-size: 8px; margin-left: 5px; color: rgba(255,255,255,0.35); vertical-align: 0; }
.pm-task-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-task .tick, .pm-task-title { transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease); }
.pm-task[role="checkbox"] { cursor: pointer; user-select: none; }
.pm-task[role="checkbox"]:hover { filter: brightness(1.18); }
.pm-task[role="checkbox"]:hover .tick { border-color: rgba(255,255,255,0.45); }
.pm-task[role="checkbox"]:focus-visible { outline: 2px solid rgba(107,140,255,0.7); outline-offset: -2px; }
.pm-task.done .tick { background: var(--green); border-color: transparent; box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset; }
.pm-task.done .tick .ic { opacity: 1; }
.pm-task.done .pm-task-title { text-decoration: line-through; }
.pm-day-foot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #1f1f23;
  font-size: 11.5px; color: #a1a1aa;
}
.pm-day-foot b { font-weight: 600; }
.pm-dial {
  width: 20px; height: 20px; border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), #26262c 0);
  -webkit-mask: radial-gradient(closest-side, transparent 66%, #000 68%, #000 97%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 66%, #000 68%, #000 97%, transparent 100%);
  transition: background 0.4s var(--ease);
}

/* ---------- Section framing ---------- */
section { position: relative; }
.sec { padding: 76px 0; }
/* A barely lifted band with hairlines, to break up the long run of
   identical dark between Features and the FAQ. Neutral, not tinted. */
.band {
  background: linear-gradient(180deg, rgba(255,255,255,0.014), rgba(255,255,255,0.026) 50%, rgba(255,255,255,0.014));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* the app's stylesheets has an in-app .sec-head (a flex row with a rule under it); undo it here. */
.landing-layout .sec-head { display: block; text-align: center; max-width: 720px; margin: 0 auto 48px; padding-bottom: 0; border-bottom: none; }
.landing-layout .sec-head.left { text-align: left; margin-left: 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 550; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--iris);
  margin-bottom: 18px;
}
.section-label::before { content: ''; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--iris)); }
.section-title {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 550;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 18px;
}
.section-sub { font-size: 16px; font-weight: 400; color: var(--t-2); line-height: 1.7; }

.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* ---------- Feature rows ---------- */
/* The three core features get a row each, text on one side and a large
   visual on the other, alternating, so the page isn't one long card grid. */
.frows { display: grid; gap: 72px; margin-bottom: 72px; }
.frow { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,6fr); gap: 48px; align-items: center; }
.frow.flip { grid-template-columns: minmax(0,6fr) minmax(0,5fr); }
.frow.flip .frow-text { order: 2; }
.frow-text .feature-title { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 14px; }
.frow-text .feature-desc { font-size: 15.5px; max-width: 440px; }
.frow-points { list-style: none; display: grid; gap: 9px; margin-top: 22px; }
.frow-points li { display: flex; gap: 10px; font-size: 14px; color: var(--t-2); }
.frow-points li .ic { color: var(--green); font-size: 12px; margin-top: 5px; flex: none; }
.frow-visual {
  position: relative;
  border: 1px solid var(--edge, rgba(107,140,255,0.30));
  border-radius: 20px;
  padding: 22px;
  background:
    radial-gradient(480px 260px at 25% 0%, var(--glow, rgba(107,140,255,0.26)), transparent 70%),
    radial-gradient(360px 200px at 100% 100%, var(--glow, rgba(107,140,255,0.26)), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  box-shadow: 0 40px 90px -50px var(--glow, rgba(107,140,255,0.26)), 0 40px 90px -50px rgba(0,0,0,0.9);
}
/* All three rows share the page's one blue wash; per-row green and cyan read
   as a patchwork against a blue-accent page. The frame is kept thin and the
   UI inside scaled up, so the visual is mostly product, not padding. */
.frow-visual .mini { margin-top: 0; padding: 24px; }
.frow-visual .mini-row { font-size: 15.5px; padding: 14px 4px; gap: 12px; }
.frow-visual .mini-row .tick { width: 16px; height: 16px; }
.frow-visual .mini-row .when,
.frow-visual .mini-row .meta { font-size: 12.5px; }
.frow-visual .mini-days { gap: 5px; margin-bottom: 10px; }
.frow-visual .mini-days b { font-size: 10.5px; }
.frow-visual .mini-cal { gap: 5px; }
.frow-visual .mini-cal i { border-radius: 4px; }
.frow-visual .mini-legend { font-size: 12px; margin-top: 16px; }
.frow-visual .ms-spark-h { font-size: 13px; margin-bottom: 10px; }
.frow-visual .ms-spark-h b { font-size: 20px; }
.frow-visual .ms-spark-h em { font-size: 12.5px; }
.frow-visual .ms-spark svg { height: 96px; }
.frow-visual .ms-goal { font-size: 14px; margin-top: 18px; gap: 8px 10px; }
.frow-visual .ms-goal em { font-size: 12.5px; }
.frow-visual .ms-bar { height: 6px; }

/* ---------- Bento features ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 16px;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  padding: 30px 28px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  background: radial-gradient(520px 220px at var(--mx, 50%) var(--my, 0%), rgba(107,140,255,0.18), transparent 70%);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); }
.card:hover::before { opacity: 1; }
.card.span-3 { grid-column: span 3; }
.card.span-2 { grid-column: span 2; }
.card.span-6 { grid-column: span 6; }

.feature-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 19px;
  color: #fff;
  margin-bottom: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 22px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.14);
}
/* Every feature icon takes the one accent. Colour inside the mockups (areas,
   done ticks, the journal's amber date) still carries meaning; the icons
   don't need a colour each on top. */
.i-violet .feature-icon, .i-cyan .feature-icon, .i-amber .feature-icon, .i-green .feature-icon {
  color: #b4c4ff; box-shadow: 0 8px 26px rgba(107,140,255,0.32), inset 0 1px 0 rgba(255,255,255,0.16);
}

.feature-title { font-size: 18px; font-weight: 550; letter-spacing: -0.022em; color: var(--white); margin-bottom: 10px; }
.feature-desc { font-size: 15px; font-weight: 400; color: var(--t-2); line-height: 1.68; }

/* mini visuals inside big cards */
.mini { margin-top: 24px; border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: rgba(0,0,0,0.28); }
.mini-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--t-2); padding: 8px 4px; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.mini-row:last-child { border-bottom: none; }
.mini-row .tick { width: 14px; height: 14px; border-radius: 5px; border: 1.5px solid rgba(255,255,255,0.22); flex: none; }
.mini-row.done .tick { background: var(--green); border-color: transparent; }
.mini-row.done span { color: var(--t-4); text-decoration: line-through; }
.mini-row .when { margin-left: auto; font-size: 11px; color: var(--t-4); }
/* Tasks & Focus: a row's priority or repeat, which stays legible when it's done. */
.mini-row .meta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--t-4); text-decoration: none !important; white-space: nowrap; }
.mini-row .meta .ic { font-size: 11px; }
.mini-row.is-priority .meta { color: #b4c4ff; }
.mini-row.is-priority .meta svg { fill: currentColor; }
.mini-row.is-priority .tick { border-color: rgba(143,168,255,0.7); }
.mini-someday { margin: 10px 4px 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-4); }
.mini-row:has(+ .mini-someday) { border-bottom: none; }
.mini-row.is-someday span { color: var(--t-4); }
.mini-row.is-someday .tick { border-style: dashed; }

.mini-days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin-bottom: 8px; }
.mini-days b { font-size: 8.5px; font-weight: 500; letter-spacing: 0.06em; color: var(--t-4); text-align: center; }
.mini-cal { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.mini-cal i {
  display: block; aspect-ratio: 1; border-radius: 3px;
  background: rgba(255,255,255,0.05);
}
.mini-legend { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 10.5px; color: var(--t-4); }
.mini-legend u { text-decoration: none; width: 10px; height: 10px; border-radius: 3px; display: block; }
.mini-cal i.l1 { background: rgba(107,140,255,0.28); }
.mini-cal i.l2 { background: rgba(107,140,255,0.52); }
.mini-cal i.l3 { background: linear-gradient(140deg, #6b8cff, var(--sky)); box-shadow: 0 0 14px rgba(107,140,255,0.5); }

.card { display: flex; flex-direction: column; }
/* Every mockup on the page wears the same blue-tinted frame as the feature rows'
   (.frow-visual), so the grid's and the rows' visuals read as one set. The
   text keeps the flat panel. */
.card .mini {
  margin-top: auto;
  border-color: rgba(107,140,255,0.30);
  border-radius: 16px;
  padding: 18px;
  background:
    radial-gradient(360px 180px at 20% 0%, rgba(107,140,255,0.18), transparent 70%),
    radial-gradient(280px 160px at 100% 100%, rgba(107,140,255,0.14), transparent 70%),
    rgba(0,0,0,0.30);
  box-shadow: 0 30px 70px -45px rgba(107,140,255,0.30), 0 30px 70px -45px rgba(0,0,0,0.9);
}
.card .feature-desc { margin-bottom: 24px; }
/* A full-width card: words on one side, its mockup on the other, so the bento
   alternates wide and two-up rather than running as one even grid. */
.card.wide { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,6fr); gap: 44px; align-items: center; padding: 36px; }
.card.wide.flip .card-text { order: 2; }
.card.wide .mini { margin-top: 0; }
.card.wide .feature-desc { margin-bottom: 0; max-width: 440px; }
.card.wide .feature-title { font-size: 22px; }
.card.wide .mini-journal .mj-text { font-size: 21px; }
.card.wide .mini-areas { padding: 20px; }
.card.wide .ma-bar { height: 16px; }

.mini-journal .mj-date { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--iris); margin-bottom: 8px; }
.mini-journal .mj-text { font-family: 'Instrument Serif', Georgia, serif; font-size: 19.5px; line-height: 1.45; letter-spacing: 0.005em; color: rgba(255,255,255,0.86); }
.mini-journal .mj-text + .mj-date,
.mini-quote span + p { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,0.07); }
.mj-caret { display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--iris); animation: mj-blink 1.1s steps(1) infinite; }
@keyframes mj-blink { 50% { opacity: 0; } }

.mini-rules { display: grid; gap: 7px; padding: 10px; }
.mr-rule { font-size: 13.5px; color: var(--t-2); padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.035); border-left: 2px solid rgba(107,140,255,0.6); }
.mr-rule b { font-size: 10.5px; font-weight: 600; color: var(--t-4); margin-right: 6px; }

.mini-quote p { font-family: 'Instrument Serif', Georgia, serif; font-size: 21px; line-height: 1.35; letter-spacing: 0.005em; color: rgba(255,255,255,0.9); }
.mini-quote span { display: block; margin-top: 8px; font-size: 11px; color: var(--t-4); }
.mini-quote span::before { content: '— '; }

.ms-spark-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; color: var(--t-3); margin-bottom: 6px; }
.ms-spark-h b { font-size: 15px; font-weight: 550; color: #fff; }
.ms-spark-h em { font-style: normal; font-size: 11px; color: var(--green); margin-left: 4px; }
.ms-spark svg { display: block; width: 100%; height: 48px; }
.ms-goal { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 12px; color: var(--t-2); margin-top: 12px; }
.ms-goal em { font-style: normal; color: var(--t-3); font-size: 11px; }
.ms-bar { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: rgba(255,255,255,0.06); overflow: hidden; }
.ms-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6b8cff, var(--sky)); }

.ma-head { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--t-3); margin-bottom: 10px; }
.ma-bar { display: flex; gap: 3px; height: 12px; border-radius: 99px; overflow: hidden; }
.ma-bar i { display: block; opacity: 0.85; }
.ma-legend { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 14px; margin-top: 14px; font-size: 13px; color: var(--t-2); }
.ma-legend span { display: flex; align-items: center; gap: 8px; }
.ma-legend u { text-decoration: none; width: 8px; height: 8px; border-radius: 50%; flex: none; }

.mini-row .who { margin-left: auto; font-size: 10.5px; padding: 2px 8px; border-radius: 99px; color: var(--t-2); background: rgba(255,255,255,0.08); text-decoration: none !important; }
.mini-row .who.you { color: #b4c4ff; background: rgba(107,140,255,0.14); }

.mini-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.md-side b { display: block; font-size: 13px; font-weight: 550; color: #fff; }
.md-side span { display: block; font-size: 11.5px; color: var(--t-3); margin: 3px 0 6px; }
.md-side em { font-style: normal; font-size: 11px; color: var(--green); }
.md-vs { font-family: 'Chakra Petch', sans-serif; font-size: 15px; font-weight: 600; font-style: italic; text-transform: uppercase; letter-spacing: 0.04em; color: var(--t-4); }

.mini-badges { display: flex; justify-content: space-between; gap: 6px; }
.mb { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; color: var(--t-4); border: 1px dashed rgba(255,255,255,0.14); }
.mb.got { color: #b4c4ff; border: 1px solid rgba(107,140,255,0.45); background: radial-gradient(circle at 30% 25%, rgba(107,140,255,0.30), rgba(107,140,255,0.06)); box-shadow: 0 6px 18px rgba(107,140,255,0.18); }

/* Gold stays Premium's alone: this lock, and the Premium plan's card. */
.premium-lock { display: inline-flex; vertical-align: 1px; margin-left: 6px; font-size: 0.72em; color: #f7d4a5; opacity: 0.85; cursor: help; }

/* ---------- Together (the last card of the grid) ---------- */
.together-card { padding: 0; scroll-margin-top: 90px; }
.together-head { display: flex; align-items: flex-start; gap: 20px; padding: 34px 36px 28px; }
.together-head .feature-icon { margin: 2px 0 0; flex: none; }
.together-head .feature-title { font-size: 22px; letter-spacing: -0.03em; }
.card .together-head .feature-desc { margin-bottom: 0; max-width: 640px; }
.together-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); }
.together-col { display: flex; flex-direction: column; padding: 26px 28px 28px; }
.together-col + .together-col { border-left: 1px solid var(--line); }
.together-col h4 { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 550; letter-spacing: -0.015em; color: var(--white); margin-bottom: 8px; }
.together-col h4 .ic { color: #b4c4ff; font-size: 15px; }
.together-col p { font-size: 14px; color: var(--t-2); line-height: 1.65; margin-bottom: 20px; }
.together-col .mini { margin-top: auto; }
.md-stake { grid-column: 1 / -1; margin-top: 10px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,0.07); font-size: 11.5px; color: var(--t-3); }

/* ---------- Pricing ---------- */
/* The cards share a height with their buttons pinned to the bottom. Premium lists its
   features by name, two to a row, so its card no longer runs far past Free's. */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; max-width: 880px; margin: 0 auto; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 20px; padding: 34px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
}
.plan-premium {
  /* Gold is Premium's colour, here and on the lock glyphs: the one place on the
     page it appears, so it reads as "paid" and nothing else. */
  border-color: rgba(245,185,113,0.34);
  background: linear-gradient(180deg, rgba(245,185,113,0.09), rgba(245,185,113,0.015));
  box-shadow: 0 30px 80px -30px rgba(245,185,113,0.30);
  position: relative;
  overflow: hidden;
}
/* A lit top edge marks the featured plan. */
.plan-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247,212,165,0.95), transparent);
}
.plan-premium::after {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  width: 420px; height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(245,185,113,0.16), transparent);
  pointer-events: none;
}
.plan-premium > * { position: relative; z-index: 1; }
.plan-premium .plan-name { color: #f7d4a5; }
.plan-premium .plan-list li .ic { color: var(--amber); }
.plan-name { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--iris); }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 24px; }
.plan-price b { font-size: 44px; font-weight: 550; letter-spacing: -0.04em; color: #fff; line-height: 1; }
.plan-price span { font-size: 13px; color: var(--t-3); }
.plan-price + .plan-save { margin-top: -12px; }
.plan-save {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  margin-bottom: 24px;
  font-size: 12px; font-weight: 550; color: #f7d4a5;
  padding: 4px 11px; border-radius: 99px;
  background: rgba(245,185,113,0.10); border: 1px solid rgba(245,185,113,0.28);
}
.plan-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--t-3); }
.plan-save .ic { font-size: 11px; }
.plan-list { list-style: none; display: grid; gap: 11px; margin: 0 0 30px; padding: 0; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--t-2); line-height: 1.5; }
/* On the first line's centre, not the item's: a feature with a blurb runs to two lines. */
.plan-list li .ic { color: var(--green); font-size: 13px; margin-top: 4px; flex: none; }
.plan-list li b { font-weight: 450; color: var(--t-1); }
.plan-list:has(+ .plan-features) { margin-bottom: 11px; }
.plan-features { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 14px; }
.plan-features li { cursor: default; }
.plan-list:last-of-type { margin-bottom: 20px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 4px;
  font-size: 16px;
  font-weight: 450;
  letter-spacing: -0.015em;
  color: var(--t-1);
  position: relative;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary::after {
  content: '+';
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--t-3);
  transition: transform 0.3s var(--ease), color 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--iris); }
.faq p { padding: 0 44px 24px 4px; font-size: 15.5px; font-weight: 400; color: var(--t-2); line-height: 1.75; }

/* ---------- Final CTA ---------- */
.cta-section { padding: 24px 0 100px; }
.cta-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  padding: 84px 40px 64px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(700px 340px at 50% -20%, rgba(107,140,255,0.30), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
  box-shadow: 0 30px 90px -55px rgba(107,140,255,0.5);
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-title {
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 550;
  letter-spacing: -0.045em;
  color: var(--white);
  margin-bottom: 18px;
  line-height: 1.03;
}
.cta-sub { font-size: 16.5px; font-weight: 400; color: var(--t-2); margin-bottom: 38px; }
.cta-login { margin-top: 22px; font-size: 13px; }

/* ---------- Footer ---------- */
.landing-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 44px;
}
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 46px; min-width: 0; }
/* Flex, not inline-flex: inline, the body's 1.6 line-height put half a line of
   leading above the wordmark, which set it a few pixels below the column headings. */
.footer-brand .nav-logo { display: flex; line-height: 1; margin-bottom: 14px; }
.footer-tag { font-size: 13.5px; font-weight: 400; color: var(--t-3); max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-4); margin-bottom: 16px; font-weight: 550; }
.footer-col a { display: block; font-size: 13.5px; color: var(--t-2); padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; border-top: 1px solid var(--line); }
.footer-note { font-size: 12.5px; color: var(--t-4); }
.footer-note a { color: var(--t-3); }
.footer-note a:hover { color: var(--t-1); }

/* ---------- Inline email capture ---------- */
.capture {
  display: flex;
  gap: 10px;
  max-width: 470px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.capture:focus-within { border-color: rgba(107,140,255,0.55); box-shadow: 0 0 0 4px rgba(107,140,255,0.16); }
.capture input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 14px;
  -webkit-appearance: none;
}
.capture input::placeholder { color: rgba(255,255,255,0.3); }
.capture button { white-space: nowrap; padding: 13px 24px; border-radius: 11px; font-size: 14.5px; }

/* Email and Google side by side at the same height, so signing up with
   Google reads as an equal way in rather than a footnote. */
.hero-cta { display: flex; justify-content: center; align-items: stretch; gap: 10px; }
.hero-cta .capture { flex: 0 1 440px; margin: 0; }
.hero-alt { display: flex; }
.google-inline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 14.5px; font-weight: 500; color: var(--t-1);
  white-space: nowrap;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 15px; padding: 0 22px; cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.google-inline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.26); transform: translateY(-1px); }

/* ---------- Urgency: the clock is running ---------- */
.clock { padding: 40px 0 80px; }
.clock-panel {
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 52px 48px;
  background:
    radial-gradient(760px 300px at 50% -30%, rgba(107,140,255,0.12), transparent 70%),
    radial-gradient(900px 380px at 50% 112%, rgba(77,159,255,0.10), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  overflow: hidden;
}

.year-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.year-line b { font-size: 15px; font-weight: 550; color: var(--t-1); letter-spacing: -0.01em; }
.year-line span { font-size: 13px; color: var(--t-3); }
.year-bar { height: 8px; border-radius: 5px; background: rgba(255,255,255,0.07); overflow: hidden; }
.year-bar > i {
  display: block; height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #6b8cff, #f4635a);
  width: 0;
  transition: width 1.6s var(--ease);
}
.year-note { margin-top: 14px; font-size: 13.5px; font-weight: 400; color: var(--t-3); }

.weeks-head { margin-top: 46px; padding-top: 40px; border-top: 1px solid var(--line); }
.weeks-ask {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 16px; color: var(--t-2); margin-bottom: 26px;
}
.weeks-ask label { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.age-value {
  display: inline-block; min-width: 2ch; text-align: center;
  font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: #fff;
  font-variant-numeric: tabular-nums;
}
.age-range {
  flex: 1; min-width: 180px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: transparent; height: 22px;
}
.age-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(107,140,255,0.85), rgba(255,255,255,0.12));
}
.age-range::-moz-range-track {
  height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(107,140,255,0.85), rgba(255,255,255,0.12));
}
.age-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%; margin-top: -6px;
  background: linear-gradient(180deg, #fff, #dde3fb);
  border: none;
  box-shadow: 0 2px 8px rgba(107,140,255,0.55);
}
.age-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; border: none;
  background: linear-gradient(180deg, #fff, #dde3fb);
  box-shadow: 0 2px 8px rgba(107,140,255,0.55);
}

.weeks-count {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 500; letter-spacing: -0.04em; line-height: 1.1;
  color: #fff; margin-bottom: 8px;
}
.weeks-sub { font-size: 14.5px; font-weight: 400; color: var(--t-2); margin-bottom: 26px; max-width: 640px; }

/* Capped and centred: at the panel's full width the squares were 9px and the grid
   ~600px tall, the biggest thing on the page. The canvas lays out by its own width,
   so the cap is all it takes. */
.weeks-canvas-wrap { position: relative; border-radius: 14px; overflow: hidden; max-width: 760px; margin: 0 auto; }
#weeks-canvas { display: block; width: 100%; height: auto; }
.weeks-legend { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 18px; font-size: 12px; color: var(--t-3); }
.weeks-legend span { display: inline-flex; align-items: center; gap: 8px; }
.weeks-legend u { text-decoration: none; width: 10px; height: 10px; border-radius: 3px; display: block; }

.weeks-tip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 8px));
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
  color: #fff;
  background: rgba(16,17,26,0.96);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  pointer-events: none;
}
/* Near the top of the grid there's no room above the square, so it drops below. */
.weeks-tip.below { transform: translate(-50%, 18px); }
.weeks-tip[hidden] { display: none; }

/* Phones only (the media rule below): the grid waits behind this. */
.weeks-show {
  display: none;
  align-items: center; justify-content: center; gap: 9px;
  width: 100%;
  font-family: inherit; font-size: 14.5px; font-weight: 500; color: var(--t-1);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 13px; padding: 14px 20px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.weeks-show:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.26); }
.weeks-show .ic { color: #b4c4ff; font-size: 14px; }
.weeks-show[aria-expanded="true"] { display: none; }


/* ---------- Sticky CTA bar ----------
   Phones only. On a wider screen the stuck nav already carries Start free, and a second
   bar along the bottom only repeated it. On a phone it's the other way round: the bar is
   in thumb reach, so the nav drops its button (.nav-cta-wide) and keeps the menu. */
@media (min-width: 721px) { .sticky-cta { display: none; } }
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  transform: translateY(120%);
  transition: transform 0.45s var(--ease);
  background: rgba(9,10,16,0.86);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -20px 60px -30px rgba(0,0,0,0.9);
}
.sticky-cta.is-up { transform: none; }
.sticky-inner {
  max-width: var(--shell); margin: 0 auto;
  padding: 13px 32px;
  display: flex; align-items: center; gap: 18px;
}
.sticky-copy { flex: 1; min-width: 0; }
.sticky-copy b { display: block; font-size: 14.5px; font-weight: 550; letter-spacing: -0.015em; color: #fff; }
.sticky-copy span { font-size: 12.5px; color: var(--t-3); }
.sticky-cta .btn-primary { padding: 12px 26px; font-size: 14px; }
.sticky-close {
  background: none; border: none; color: var(--t-4); font-size: 15px;
  cursor: pointer; padding: 8px 10px; border-radius: 8px; line-height: 1;
  transition: color 0.2s, background 0.2s;
}
.sticky-close:hover { color: #fff; background: rgba(255,255,255,0.07); }

/* ---------- Reveal on scroll ---------- */
.reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }
.reveal.d4 { transition-delay: 0.28s; }
.reveal.d5 { transition-delay: 0.35s; }

/* ---------- Auth modals ---------- */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.auth-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0s;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,4,8,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: linear-gradient(180deg, #12141d, #0a0b11);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 40px 110px -30px rgba(0,0,0,0.9), 0 0 60px -40px rgba(107,140,255,0.4);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.4s var(--ease), box-shadow 0.6s var(--ease);
}
/* The blue glow comes up as the card settles, rather than arriving already lit. */
.auth-modal.is-open .auth-modal-card { transform: none; box-shadow: 0 40px 110px -30px rgba(0,0,0,0.9), 0 0 110px -36px rgba(107,140,255,0.8); }

.auth-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  color: var(--t-3);
  font-size: 15px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}
.auth-modal-close:hover { color: #fff; background: rgba(255,255,255,0.07); }

.auth-heading { font-size: 25px; font-weight: 550; letter-spacing: -0.03em; color: #fff; margin-bottom: 6px; }
.auth-subheading { font-size: 13.5px; font-weight: 400; color: var(--t-3); margin-bottom: 28px; }
.auth-field { margin-bottom: 16px; }
.auth-label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-3);
  margin-bottom: 8px;
}
.auth-input {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.auth-input:focus { border-color: rgba(107,140,255,0.6); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 3px rgba(107,140,255,0.18); }
.auth-input::placeholder { color: rgba(255,255,255,0.45); }
.auth-hint { font-size: 11px; color: var(--t-4); margin-top: 6px; }
.auth-remember { display: flex; align-items: center; gap: 8px; margin: 4px 0 24px; }
.auth-remember input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--violet); cursor: pointer; }
.auth-remember label { font-size: 13px; font-weight: 400; color: var(--t-3); cursor: pointer; }
.auth-submit {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #07080d;
  background: linear-gradient(180deg, #ffffff, #dde3fb);
  border: none;
  border-radius: 10px;
  padding: 13px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 10px 26px rgba(107,140,255,0.28);
  margin-top: 8px;
  margin-bottom: 24px;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(107,140,255,0.42); }
.auth-divider { border: none; border-top: 1px solid var(--line); margin-bottom: 20px; }
.auth-links { display: flex; align-items: center; justify-content: space-between; }
.auth-link { font-size: 12.5px; color: var(--t-3); transition: color 0.2s; }
.auth-link:hover { color: #fff; }
.auth-link-primary { font-size: 12.5px; font-weight: 400; color: var(--t-2); transition: color 0.2s; }
.auth-link-primary:hover { color: #fff; }
.auth-link-primary strong { font-weight: 550; color: var(--iris); }
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 450;
  color: var(--t-1);
  /* An outline, so the white submit below stays the one primary action. */
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  margin-bottom: 20px;
}
.auth-google-btn:hover { color: #fff; background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.24); }
.auth-google-btn svg { flex-shrink: 0; }

.auth-or {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  color: var(--t-4);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.auth-error-box {
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #f87171;
}

/* ---------- Modal refinements ----------
   Scoped to .auth-modal: the Devise pages share these class names and this
   stylesheet, with their own styles on top. */

/* Fields carry their own focus treatment (border + soft ring); the page-wide
   :focus-visible outline was drawing a second ring outside it. */
.landing-layout .auth-input:focus-visible,
.landing-layout .capture input:focus-visible { outline: none; }

/* A lit top edge and the mark, so the card reads as Apex rather than a form. */
.auth-modal .auth-modal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195,208,255,0.9), transparent);
}
/* Mark and heading share a line; the subheading sits under both. */
.auth-head { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; padding-right: 30px; }
.auth-head .auth-heading { margin-bottom: 0; }
/* The same leaned-on word as the page's headings. */
.auth-modal .auth-heading em {
  font-family: 'Chakra Petch', 'Inter', sans-serif;
  font-style: italic; font-weight: 600;
  letter-spacing: -0.02em;
  color: #b4c4ff;
}
/* The hero's glow behind the heading: a broad wash, and a brighter true-blue core
   under the lit top edge, fading out before the fields. */
.auth-modal .auth-modal-card {
  background:
    radial-gradient(240px 110px at 50% -30px, rgba(77,140,255,0.30), transparent 72%),
    radial-gradient(560px 240px at 50% -70px, rgba(107,140,255,0.22), transparent 72%),
    linear-gradient(180deg, #12141d, #0a0b11);
}
/* The Apex mark, large and cropped into the top-right corner behind the
   heading, fading out before the first field so it never sits behind input. */
.auth-bg-mark {
  position: absolute; inset: 0;
  overflow: hidden; border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.auth-bg-mark svg {
  position: absolute; top: -70px; right: -60px;
  height: 340px; width: auto; display: block;
  color: #b4c4ff; opacity: 0.07;
  -webkit-mask-image: linear-gradient(200deg, #000 25%, transparent 72%);
  mask-image: linear-gradient(200deg, #000 25%, transparent 72%);
}
.auth-modal .auth-modal-card > :not(.auth-bg-mark):not(.auth-modal-close) { position: relative; z-index: 1; }
.auth-modal .auth-modal-card > .auth-modal-close { z-index: 2; }
.auth-mark-sent { color: var(--iris); font-size: 17px; }
.auth-sent-to { color: #fff; font-weight: 550; word-break: break-all; }
.auth-mark {
  position: relative;
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(107,140,255,0.35), inset 0 1px 0 rgba(255,255,255,0.16);
}
.auth-mark svg { height: 16px; width: auto; display: block; }

.auth-modal .auth-modal-close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; font-size: 16px; }

/* 2. "Forgot password?" on the Password label's line, where someone stuck looks. */
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-modal .auth-label-row .auth-label { margin-bottom: 7px; }
.auth-label-row .auth-link { font-size: 12.5px; }

/* 6. A field the server turned down, until it's edited (see the landing page's script). */
.auth-input.is-invalid { border-color: rgba(244,99,90,0.55); }
.auth-input.is-invalid:focus { border-color: rgba(244,99,90,0.75); box-shadow: 0 0 0 3px rgba(244,99,90,0.16); }

/* 7. Under "Back to log in" on the sent view: send the same link again. */
.auth-resend { margin-top: -6px; font-size: 12.5px; color: var(--t-3); text-align: center; }
.auth-resend-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: none; background: none; cursor: pointer;
  font: inherit; font-weight: 550; color: var(--iris);
  transition: color 0.2s;
}
.auth-resend-btn:hover { color: #fff; }
.auth-resend-btn .auth-spinner { width: 11px; height: 11px; border-width: 1.5px; }

.auth-modal .auth-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--t-2);
  margin-bottom: 7px;
}

/* Password field with the show / hide toggle inside it */
.auth-password { position: relative; }
.auth-password .auth-input { padding-right: 46px; }
.auth-reveal {
  position: absolute; top: 50%; right: 6px;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-size: 16px; color: var(--t-3);
  background: none; border: none; border-radius: 8px; cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.auth-reveal:hover { color: #fff; background: rgba(255,255,255,0.06); }
.auth-reveal .when-shown,
.auth-reveal[aria-pressed="true"] .when-hidden { display: none; }
.auth-reveal[aria-pressed="true"] .when-shown { display: inline-flex; }

.auth-modal .auth-hint { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 8px; }
.auth-modal .auth-hint[hidden] { display: none; }
.auth-modal .auth-hint .ic { font-size: 12px; }
/* Blue like the info notes, not amber: gold on this page means Premium. */
.auth-caps { color: #b4c4ff; }
.auth-caps .ic { color: var(--iris); }
.auth-length { transition: color 0.2s; }
.auth-length .ic { opacity: 0.45; transition: opacity 0.2s; }
.auth-length.is-met { color: var(--green); }
.auth-length.is-met .ic { opacity: 1; }

.auth-modal .auth-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 22px;
}
.auth-modal .auth-submit .ic { font-size: 13px; }
.auth-modal .auth-submit[aria-busy="true"],
.auth-modal .auth-google-btn[aria-busy="true"] { cursor: progress; opacity: 0.8; transform: none; }
.auth-spinner {
  width: 14px; height: 14px; flex: none;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: auth-spin 0.7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-terms { margin: -10px 0 22px; font-size: 12px; line-height: 1.55; color: var(--t-3); text-align: center; }
.auth-terms a { color: var(--t-2); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.25); text-underline-offset: 2px; }
.auth-terms a:hover { color: #fff; }

.auth-links-center { justify-content: center; }

.auth-modal .auth-link-primary { display: inline-flex; align-items: center; gap: 5px; }
.auth-modal .auth-link-primary strong { display: inline-flex; align-items: center; gap: 5px; }
.auth-modal .auth-link-primary .ic { font-size: 12px; transition: transform 0.2s var(--ease); }
.auth-modal .auth-link-primary:hover .ic { transform: translateX(2px); }

/* A tighter rhythm, so signup fits a laptop screen without scrolling. */
.auth-modal .auth-modal-card { padding: 38px 38px 32px; }
.auth-modal .auth-subheading { margin-bottom: 22px; }
.auth-modal .auth-google-btn { margin-bottom: 16px; }
.auth-modal .auth-or { margin-bottom: 16px; }
.auth-modal .auth-field { margin-bottom: 14px; }
.auth-modal .auth-submit { margin-top: 18px; margin-bottom: 18px; }
.auth-modal .auth-terms { margin: -6px 0 16px; }

/* Google and the submit are two equal ways in, as the hero shows them: the same
   height and corners, a fill bright enough to read as a button, and the submit's
   glow eased so it doesn't outrank Google. */
.auth-modal .auth-google-btn {
  padding: 13px;
  font-size: 14.5px; font-weight: 550; color: #fff;
  background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.26);
}
.auth-modal .auth-google-btn:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.38); transform: translateY(-1px); }
.auth-modal .auth-submit { box-shadow: 0 8px 20px rgba(107,140,255,0.20); }
.auth-modal .auth-submit:hover { box-shadow: 0 12px 26px rgba(107,140,255,0.32); }
/* The divider between them is a hairline, no word: "or" made Google read as the
   alternative. */
.auth-modal .auth-or { height: 1px; background: var(--line); gap: 0; }
.auth-modal .auth-or::before, .auth-modal .auth-or::after { display: none; }

/* The first field is focused the moment the card opens, so its ring was the
   first thing seen. The ring waits for a keyboard (landing_page.js sets
   .is-keyboard on Tab) or for typing; a pointer gets a brighter edge only. */
.auth-modal .auth-input:focus { box-shadow: none; }
.auth-modal .auth-input:focus:not(:placeholder-shown),
.is-keyboard .auth-modal .auth-input:focus { box-shadow: 0 0 0 3px rgba(107,140,255,0.18); }
.auth-modal .auth-input.is-invalid:focus:not(:placeholder-shown),
.is-keyboard .auth-modal .auth-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(244,99,90,0.16); }

/* An error sits under its field, in the same slot and rhythm as the hints, so the
   card keeps its shape and the message is next to the red outline. */
.auth-modal .auth-field .auth-error { margin: 8px 0 0; padding: 9px 11px; font-size: 12.5px; }
.auth-modal .auth-field .auth-error .ic { font-size: 13px; margin-top: 1px; }
.auth-modal .auth-field .auth-error .auth-error-link { margin-top: 2px; }

/* Going back from the sent card is a ghost; the inbox is the point. */
.auth-modal .auth-submit-ghost {
  color: var(--t-1);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.auth-modal .auth-submit-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.3); box-shadow: none; }
.auth-modal .auth-sent-to { color: #b4c4ff; font-weight: 550; }

/* Reset and sent are short cards; a little more room top and bottom so they
   feel composed rather than clipped. */
#modal-reset .auth-modal-card { padding-top: 46px; padding-bottom: 40px; }

/* The terms links in the accent, no underline, like the link under the form. */
.auth-modal .auth-terms a { color: var(--iris); text-decoration: none; }
.auth-modal .auth-terms a:hover { color: #fff; }

/* Closing reverses the entrance, faster: the fade and the card's drop end together. */
.auth-modal:not(.is-open) { transition: opacity 0.2s var(--ease), visibility 0s linear 0.2s; }
.auth-modal:not(.is-open) .auth-modal-card { transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }

/* Secondary to the field it sits over. */
.auth-modal .auth-label-row .auth-link { font-size: 12px; color: var(--t-4); }
.auth-modal .auth-label-row .auth-link:hover { color: var(--iris); }

/* Turned down by the server: one short shake as the card opens. Reduced motion
   shortens it to nothing (the page-wide rule below). */
.auth-modal.is-open .auth-modal-card.is-rejected { animation: auth-shake 0.45s var(--ease) 0.2s; }
@keyframes auth-shake {
  0%, 100% { translate: 0; }
  20% { translate: -8px; }
  40% { translate: 7px; }
  60% { translate: -5px; }
  80% { translate: 3px; }
}

/* Phones: a bottom sheet, with everything inside thumb reach. */
@media (max-width: 720px) {
  .auth-modal { align-items: flex-end; padding: 0; }
  .auth-modal .auth-modal-card {
    max-width: none;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
    border-bottom: none;
    padding: 30px 22px calc(26px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.38s var(--ease);
  }
  .auth-modal.is-open .auth-modal-card { transform: none; }
  .auth-modal:not(.is-open) .auth-modal-card { transition: transform 0.28s var(--ease); }
  /* The handle and the backdrop both dismiss the sheet, so the close button only
     crowded the heading. */
  .auth-modal .auth-modal-close { display: none; }
  .auth-modal .auth-modal-card { padding-top: 26px; }
  .auth-modal .auth-head { padding-right: 0; }
  #modal-reset .auth-modal-card { padding-top: 30px; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  /* Grab handle */
  .auth-modal .auth-modal-card::after {
    content: '';
    position: absolute;
    top: 9px; left: 50%;
    width: 38px; height: 4px;
    transform: translateX(-50%);
    border-radius: 99px;
    background: rgba(255,255,255,0.16);
  }
  /* Smaller on the sheet, clear of the grab handle and close button. */
  .auth-bg-mark svg { top: -40px; right: -46px; height: 250px; }
  .auth-mark { width: 34px; height: 34px; }
  .auth-mark svg { height: 14px; }
  .auth-modal .auth-heading { font-size: 22px; }
  .auth-modal .auth-subheading { margin-bottom: 22px; }
  /* iOS Safari zooms the page into any input under 16px when it's focused. */
  .auth-input, .capture input { font-size: 16px; }
}

/* ---------- Inline icons ---------- */
.ic { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.ic svg { width: 1em; height: 1em; display: block; overflow: visible; }

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--t-1);
  cursor: pointer;
  padding: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

.nav-panel {
  position: fixed;
  top: 64px; left: 12px; right: 12px;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(9,10,16,0.94);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.nav-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.nav-panel a {
  font-size: 15px;
  color: var(--t-1);
  padding: 13px 14px;
  border-radius: 10px;
}
.nav-panel a:hover, .nav-panel a:focus-visible { background: rgba(255,255,255,0.06); }
.nav-panel .nav-panel-sep { height: 1px; background: var(--line); margin: 8px 4px; }
.nav-panel .nav-panel-cta {
  margin-top: 2px;
  text-align: center;
  font-weight: 600;
  color: #07080d;
  background: linear-gradient(180deg, #ffffff, #dde3fb);
}
.nav-panel .nav-panel-cta:hover { background: linear-gradient(180deg, #ffffff, #cdd5f0); }

/* ---------- Modal error banner ---------- */
.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
  color: #f7a49d;
  background: rgba(244,99,90,0.10);
  border: 1px solid rgba(244,99,90,0.32);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 18px;
}
.auth-error .ic { font-size: 14px; margin-top: 2px; color: rgba(244,99,90,0.9); }
/* The next step under an error, e.g. "Reset your password" after a failed login. */
.auth-error .auth-error-link {
  display: block; width: fit-content; margin-top: 3px;
  font-weight: 550; color: #fff;
  text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 3px;
}
.auth-error .auth-error-link:hover { text-decoration-color: #fff; }
/* A note rather than an error: the same box in the page's iris. */
.auth-error.auth-info { color: #d3dcff; background: rgba(107,140,255,0.10); border-color: rgba(107,140,255,0.32); }
.auth-error.auth-info .ic { color: var(--iris); }

/* ---------- Founder note ---------- */
.note-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 44px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(107,140,255,0.07), rgba(255,255,255,0.015));
}
.note-card p { font-size: 16.5px; line-height: 1.75; font-weight: 400; color: var(--t-1); margin-bottom: 18px; }
.note-card p:last-of-type { margin-bottom: 0; }
.note-sign { display: flex; align-items: center; gap: 13px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.note-avatar {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700; color: #0a0b11;
  background: linear-gradient(145deg, #ffffff 0%, #c3d0ff 55%, #6b8cff 100%);
}
.note-who b { display: block; font-size: 14px; font-weight: 550; color: var(--t-1); }
.note-who span { display: block; font-size: 13px; color: var(--t-3); }
/* The Dillard line at the head of the note, in the serif the mockups' writing uses. */
.note-epigraph { margin: 0 0 28px; padding: 0 0 26px; border-bottom: 1px solid var(--line); }
.note-card .note-epigraph p {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: rgba(255,255,255,0.92);
  margin-bottom: 10px;
}
.note-epigraph em { font-style: italic; color: var(--iris); }
.note-epigraph footer { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-4); }

/* ---------- Legal pages ---------- */
.legal { padding: 150px 0 100px; }
.legal-inner { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: clamp(34px, 5vw, 46px); font-weight: 400; letter-spacing: -0.03em; color: var(--white); margin-bottom: 12px; }
.legal .legal-updated { font-size: 13px; color: var(--t-4); margin-bottom: 44px; }
.legal h2 { font-size: 19px; font-weight: 550; color: var(--t-1); margin: 40px 0 14px; letter-spacing: -0.01em; }
.legal p, .legal li { font-size: 15px; line-height: 1.8; font-weight: 400; color: var(--t-2); }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--iris); }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--t-1); font-weight: 550; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-middle { display: none; }
  .landing-nav { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-flex; }
  .nav-panel { display: flex; }
  .nav-links .nav-link { display: none; }
  .nav-links .nav-link-always { display: inline-flex; }
  .card.span-3, .card.span-2 { grid-column: span 6; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-side { display: none; }
  .frows { gap: 64px; margin-bottom: 64px; }
  .frow { grid-template-columns: 1fr; gap: 28px; }
  .frow.flip { grid-template-columns: 1fr; }
  .frow.flip .frow-text { order: 0; }
  .together-cols { grid-template-columns: 1fr; }
  .together-col + .together-col { border-left: none; border-top: 1px solid var(--line); }
  .together-head { padding: 30px 28px 24px; }
  .preview-main { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .card.wide { grid-template-columns: 1fr; gap: 24px; padding: 30px 28px; }
  .card.wide.flip .card-text { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .clock-panel { padding: 40px 30px; }
}
@media (max-width: 720px) {
  .shell { padding: 0 20px; }
  .landing-nav, .landing-nav.is-stuck { padding: 14px 20px; }
  .hero { padding-top: 132px; }
  .sec { padding: 64px 0; }
  .principles { padding: 92px 0; }
  .preview-wrap { margin-top: 52px; padding: 0 16px 20px; perspective: none; }
  .preview { transform: none; animation: none; }
  .cta-card { padding: 60px 24px; border-radius: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-badge .badge-long { display: none; }
  .hero-badge .badge-short { display: inline; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 28px 24px; }
  .together-col { padding: 24px 22px; }
  .together-head { padding: 26px 22px 22px; gap: 14px; flex-direction: column; }
  .card.wide { padding: 26px 22px; }
  .card .mini { padding: 14px; }
  .clock { padding: 56px 0; }
  .clock-panel { padding: 34px 22px; border-radius: 18px; }
  /* Stacked, the field, Start free and Google are three equal rows with one gap,
     rather than two of them boxed together and the third outside the box. */
  .capture { flex-direction: column; gap: 8px; padding: 0; border: none; background: none; backdrop-filter: none; }
  .capture:focus-within { box-shadow: none; }
  .capture input {
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: rgba(255,255,255,0.04);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  }
  .capture input:focus { border-color: rgba(107,140,255,0.55); box-shadow: 0 0 0 4px rgba(107,140,255,0.16); }
  .capture button { width: 100%; justify-content: center; padding: 14px 24px; border-radius: 13px; }
  .hero-cta { flex-direction: column; align-items: stretch; max-width: 470px; margin: 0 auto; gap: 8px; }
  .hero-cta .capture { flex: none; }
  .google-inline { width: 100%; padding: 14px 22px; border-radius: 13px; }
  /* The grid waits behind its button (see .weeks-show). */
  .weeks-show { display: inline-flex; }
  .weeks-grid:not(.is-open) { display: none; }
  /* The ring and the day are enough to read the preview on a phone. */
  .preview-main { grid-template-columns: 1fr; gap: 14px; }
  .pm-area, .pm-month { display: none; }
  .frow-visual .mini { padding: 14px; }
  .frow-visual .mini-row { font-size: 14px; padding: 11px 2px; }
  .frow-visual { padding: 18px; border-radius: 18px; }
  .frow-text .feature-title { font-size: 22px; }
  .nav-links .nav-cta-wide { display: none; }
  .sticky-inner { padding: 11px 16px; gap: 12px; }
  .sticky-copy span { display: none; }
  .sticky-cta .btn-primary { padding: 11px 18px; font-size: 13.5px; }
  .weeks-ask { font-size: 15px; }
  .weeks-legend { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 14px; }
  /* Flowed rather than two fixed columns, so "Relationships 21%" never breaks. */
  .ma-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; }
  .ma-legend span { white-space: nowrap; }
  .footer-brand { grid-column: span 2; }
  .auth-modal-card { padding: 36px 24px; }
  .preview-main { padding: 16px 14px; }
  .note-card { padding: 30px 24px; border-radius: 18px; }
  .note-card p { font-size: 15.5px; }
  .legal { padding: 118px 0 76px; }
  .nav-panel { top: 60px; }
  .preview-chrome { padding: 10px 12px; }
  .mini-days b { font-size: 7px; }
  .hero-title { max-width: 100%; }
  .hero-meta { gap: 8px 14px; font-size: 12px; }
}

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

/* The legal pages' nav has no centre links, so its buttons keep to the right-hand track
   rather than falling into the middle one. */
.landing-nav > .nav-links:last-child { grid-column: 3; }

/* The legal pages' sections, listed up top to jump to. */
.legal .legal-toc { margin: -20px 0 40px; padding: 14px 18px; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; background: rgba(255,255,255,0.02); }
.legal .legal-toc ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.legal .legal-toc li { margin: 0; font-size: 13.5px; line-height: 1.6; }
.legal .legal-toc a { color: var(--t-3); }
.legal .legal-toc a:hover { color: var(--t-1); text-decoration: none; }
.legal h2[id] { scroll-margin-top: 90px; }

/* Each section heading's # link, shown on hover, to copy a link to that section. */
.legal h2 .legal-anchor { margin-left: 10px; color: var(--t-4); font-weight: 400; opacity: 0; text-decoration: none; transition: opacity 0.15s, color 0.15s; }
.legal h2:hover .legal-anchor, .legal h2 .legal-anchor:focus-visible { opacity: 1; }
.legal h2 .legal-anchor:hover { color: var(--iris); text-decoration: none; }
.legal .legal-toc a.is-current { color: var(--t-1); }

/* A wide screen: the contents become a column on the right that stays in view as you
   read, lighting the section you're in (pages/_legal_nav). */
@media (min-width: 1180px) {
  .legal-inner { max-width: 960px; display: grid; grid-template-columns: minmax(0, 720px) 200px; column-gap: 40px; }
  .legal-inner > * { grid-column: 1; }
  .legal .legal-toc {
    grid-column: 2; grid-row: 1 / span 400; align-self: start; position: sticky; top: 104px;
    margin: 8px 0 0; padding: 0 0 0 16px; border: 0; border-left: 1px solid rgba(255,255,255,0.08); border-radius: 0; background: none;
  }
  .legal .legal-toc::before { content: "On this page"; display: block; margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-4); }
  .legal .legal-toc ul { flex-direction: column; flex-wrap: nowrap; gap: 7px; }
  .legal .legal-toc li { font-size: 13px; line-height: 1.4; }
  .legal .legal-toc a.is-current { color: var(--t-1); }
  .legal .legal-toc a.is-current::before { content: ""; position: absolute; left: -17px; width: 2px; height: 1.2em; background: var(--iris); transform: translateY(1px); }
  .legal .legal-toc li { position: relative; }
  .legal .legal-toc a.is-current { position: static; }
}
