/* Tododay showcase — same tokens, type, and line-art language as the app.
   Dark only, like the app itself. */

:root {
  color-scheme: dark;
  --bg: #12141c;
  --surface: #1a1d29;
  --ink: #e8eaf2;
  --muted: #8b90a3;
  --faint: #565b6e;
  --line: #272b3a;
  --accent: #7c8cff;
  --accent-soft: #232849;
  --success: #6cc493;
  --success-soft: #21372b;
  --gold: #f0b35c;
  --danger: #ff8b95;
  --shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.6);
  --serif: 'Palatino Linotype', Palatino, 'Book Antiqua', Cambria, serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

/* The tilted hero phones and the glow bleed outside the viewport by design;
   never let them create horizontal scroll. */
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background:
    radial-gradient(120% 45% at 50% -12%, var(--accent-soft) 0%, transparent 65%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Short pages (404, legal) pin the footer to the bottom — nothing ever
     peeks out beneath it. */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

main > * {
  flex: none;
}

/* height:auto is load-bearing: the <img> tags carry width/height attributes
   for layout stability, and without it the attribute height would win while
   CSS scales the width — visibly stretching every screenshot. */
img {
  max-width: 100%;
  height: auto;
}

/* Faint blueprint grid over the whole page — strongest in the middle,
   dissolving toward every edge. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.3;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 0%, transparent 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.top {
  /* Tinted toward the accent so it actually reads against the page bg. */
  background: linear-gradient(
    to bottom,
    rgba(45, 52, 92, 0.55) 0%,
    rgba(45, 52, 92, 0.22) 55%,
    rgba(45, 52, 92, 0) 100%
  );
}

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 20px 0 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand span {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.top nav {
  display: flex;
  gap: 26px;
}

.top nav a {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s ease;
}

.top nav a:hover {
  color: var(--ink);
}

/* Custom tooltip (used on Contact to reveal the address). */
.tip {
  position: relative;
}

.tip::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out);
}

.tip:hover::after,
.tip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  /* Fill the first viewport so the next section starts below the fold. */
  min-height: calc(100svh - 84px);
  padding: 24px 0 130px;
}

.kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}

/* The headline reads solid ink by default; browsers that support
   text-stroke get the hollow, outline-only treatment instead. */
.hero__outline {
  color: var(--muted);
}

@supports (-webkit-text-stroke: 1px black) or (text-stroke: 1px black) {
  .hero__outline {
    color: transparent;
    -webkit-text-stroke: 2.5px color-mix(in srgb, var(--ink) 65%, transparent);
    text-stroke: 2.5px color-mix(in srgb, var(--ink) 65%, transparent);
  }
}

.hero__copy {
  position: relative;
  text-align: center;
}

/* A single hand-drawn flourish curling around the top-left corner of the
   title — loops in at the top, sweeps down the left side, an arrowhead at
   each end. */
.hero__doodle {
  position: absolute;
  top: -52px;
  left: -34px;
  width: 184px;
  height: 129px;
  color: var(--accent);
  opacity: 0.65;
  pointer-events: none;
}

.hero .btn {
  margin-top: 30px;
}

.hero .lead {
  color: var(--muted);
  font-size: 20.5px;
  line-height: 1.65;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

/* Wide column shared by the hero, the app section, and the Get card. */
.wrap--wide {
  max-width: 1220px;
}

/* Nudge the hero horizon a touch lower than the default scene position. */
.band > .scene {
  bottom: -16px;
}

.btn {
  display: inline-block;
  border-radius: 13px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.12s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  opacity: 0.92;
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 12.5px 56px;
}

.btn--outline:hover {
  background: var(--accent-soft);
}

/* The main CTA: a slow breathing glow, a shine sweeping across every few
   seconds, and a lift on hover. */
.btn--cta {
  position: relative;
  overflow: hidden;
  animation: cta-pulse 3s ease-out infinite;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn--cta::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  animation: cta-shine 3.6s ease-in-out infinite;
}

/* The shine needs more punch against a transparent fill than it does over
   solid accent - otherwise it barely reads. */
.btn--outline.btn--cta::after {
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.btn--cta:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--accent) 65%, transparent);
}

@keyframes cta-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  70% { box-shadow: 0 0 0 13px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes cta-shine {
  0%, 55% { left: -70%; }
  100% { left: 140%; }
}

.hero__note {
  margin-top: 14px;
  color: var(--faint);
  font-size: 13.5px;
}

/* Phone frames */

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__glow {
  position: absolute;
  inset: -8% -18%;
  background: radial-gradient(50% 46% at 50% 42%, var(--accent-soft) 0%, transparent 72%);
  z-index: -1;
}

/* A bezel clearly darker than the app's background, plus a hairline around
   the screen, so the UI reads as a screen inside a device — not as one blob. */
.phone {
  width: min(295px, 76vw);
  background: #07080d;
  border: 1px solid #333952;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  outline: 1px solid rgba(255, 255, 255, 0.08);
}

/* All four screens fanned back-to-front. The item wrapper carries the slow
   bob (staggered per phone); the tilt lives on the phone inside so the two
   transforms never fight. Sized in % of the fan box, so it scales anywhere. */
.fan {
  position: relative;
  /* 96%, not 100%: the tilted outer phones swing their corners past the box,
     so the box itself stays inset from the edges. */
  width: min(760px, 96%);
  aspect-ratio: 64 / 58;
}

.fan__item {
  position: absolute;
  animation: floaty 6s ease-in-out infinite alternate;
  cursor: pointer;
}

.fan__item:focus-visible {
  outline: none;
}

.fan__item:focus-visible .phone {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.fan__item .phone {
  width: 100%;
  border-radius: 38px;
  padding: 9px;
  transform: rotate(var(--tilt, 0deg));
  filter: brightness(var(--dim, 1));
  transition: transform 0.45s var(--spring), filter 0.35s ease,
    box-shadow 0.45s ease;
}

.fan__item .phone img {
  border-radius: 30px;
}

/* Hover a screen to pull it in front of the stack, full brightness. */
.fan__item:hover {
  z-index: 5;
}

.fan__item:hover .phone {
  transform: rotate(var(--tilt, 0deg)) translateY(10px) scale(1.06);
  filter: brightness(1);
  box-shadow: 0 40px 90px -28px rgba(0, 0, 0, 0.8);
}

.fan__item--1 { width: 40%; left: 0; top: 0; --tilt: -7deg; }
.fan__item--2 { width: 38%; left: 22%; top: 6%; animation-delay: 0.8s; --tilt: -1.5deg; --dim: 0.9; }
.fan__item--3 { width: 36.5%; left: 43%; top: 12%; animation-delay: 1.6s; --tilt: 4deg; --dim: 0.8; }
.fan__item--4 { width: 35%; left: 64%; top: 19%; animation-delay: 2.4s; --tilt: 10deg; --dim: 0.68; }

/* Sparkles around the hero phone, twinkling like the app's night art. */

.spark {
  position: absolute;
  color: var(--faint);
  animation: twinkle 2.6s ease-in-out infinite;
}

.spark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.spark--a { width: 22px; height: 22px; top: 4%; right: 8%; }
.spark--b { width: 15px; height: 15px; bottom: 16%; left: 4%; animation-duration: 3.4s; animation-delay: 0.9s; }
.spark--c { width: 12px; height: 12px; top: 18%; left: 12%; animation-duration: 3s; animation-delay: 1.7s; }

/* ---------- lightbox (hero mockup preview) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.lightbox--open {
  visibility: visible;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 14, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox--open .lightbox__backdrop {
  opacity: 1;
}

.lightbox__dialog {
  position: relative;
  width: min(1040px, 94vw, 100svh);
  opacity: 0;
  transform: scale(0.9) translateY(14px);
  transition: opacity 0.32s var(--ease-out), transform 0.38s var(--spring);
}

.lightbox--open .lightbox__dialog {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Coverflow stage: the current screen big in the middle, its neighbours
   peeking from the sides — smaller, dimmed, fading toward the edge. Every
   slide is always mounted; navigation just reassigns roles and each phone
   glides to its new spot. */
.lightbox__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 77;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.lightbox__stage:active {
  cursor: grabbing;
}

.lightbox__phone img {
  -webkit-user-drag: none;
  user-drag: none;
}

.lightbox__track {
  position: absolute;
  inset: 0;
}

.lightbox__track.no-anim .lightbox__phone {
  transition: none;
}

.lightbox__phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  transform: translate(-50%, -50%) translateX(var(--x, 0%)) scale(var(--s, 1));
  opacity: var(--o, 1);
  z-index: var(--z, 1);
  transition: transform 0.55s var(--spring), opacity 0.4s ease;
}

.lightbox__phone.is-center {
  --x: 0%;
  --s: 1;
  --o: 1;
  --z: 3;
}

.lightbox__phone.is-left,
.lightbox__phone.is-right {
  --s: 0.62;
  --o: 0.45;
  --z: 2;
  cursor: pointer;
}

.lightbox__phone.is-left {
  --x: -88%;
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 100%);
  mask-image: linear-gradient(to left, #000 45%, transparent 100%);
}

.lightbox__phone.is-right {
  --x: 88%;
  -webkit-mask-image: linear-gradient(to right, #000 45%, transparent 100%);
  mask-image: linear-gradient(to right, #000 45%, transparent 100%);
}

.lightbox__phone.is-hidden {
  --x: 0%;
  --s: 0.4;
  --o: 0;
  --z: 1;
  pointer-events: none;
}

/* Nav sits just outside the phone frame — near it, but never
   overlapping the screenshot itself. */
.lightbox__nav {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.12s ease,
    opacity 0.25s ease;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox--open .lightbox__nav {
  opacity: 1;
}

.lightbox__nav:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lightbox__nav:active {
  transform: translateY(-50%) scale(0.94);
}

.lightbox__nav svg {
  width: 18px;
  height: 18px;
}

/* The arrows ride over the faded outer edge of the side previews, well
   clear of the big centre screen. */
.lightbox__nav--prev {
  left: -6px;
}

.lightbox__nav--next {
  right: -6px;
}

/* Close sits just outside the top-right corner, same treatment as the
   prev/next controls. */
.lightbox__close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.12s ease,
    opacity 0.25s ease;
  z-index: 5;
}

.lightbox--open .lightbox__close {
  opacity: 1;
}

.lightbox__close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lightbox__close:active {
  transform: scale(0.94);
}

.lightbox__close svg {
  width: 16px;
  height: 16px;
}

.lightbox__dots {
  position: absolute;
  bottom: -34px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.lightbox__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__dot.is-active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Line-art scene strips (same drawings as the app's PageDecor). */

/* Scene strips live in a full-width .band (outside .wrap) so they bleed
   edge to edge. Fixed height + slice keeps them a low horizon line instead
   of a huge drawing, and z-index -1 keeps them behind the phones. */
.band {
  position: relative;
}

.scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  z-index: -1;
  color: var(--ink);
  opacity: 0.05;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 92%);
  mask-image: linear-gradient(to top, #000 30%, transparent 92%);
}

/* Sits mostly above the footer, its ground line standing in for a hard
   border between the page content and the footer row. */
.scene--above {
  bottom: calc(100% - 72px);
}

.scene svg {
  display: block;
  width: 100%;
  height: 100%;
  /* The full-bleed scale-up would turn 1.5-unit strokes into fat marker
     lines; thin them back down to hairlines. */
  stroke-width: 0.6;
}

/* ---------- sections ---------- */

section {
  position: relative;
  padding: 84px 0;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: feat;
  margin-bottom: 32px;
}

/* Icon and heading share the first row; the text runs the full width below,
   so no column of dead space on the right. */
.feat {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 14px;
  align-items: center;
}

/* A large, barely-there number watermark bleeding off the right edge. */
.feat::after {
  counter-increment: feat;
  content: counter(feat);
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 190px;
  line-height: 1;
  color: var(--ink);
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

/* Same hollow-outline treatment as the hero title, just fainter. */
@supports (-webkit-text-stroke: 1px black) or (text-stroke: 1px black) {
  .feat::after {
    color: transparent;
    opacity: 1;
    -webkit-text-stroke: 1.4px color-mix(in srgb, var(--ink) 10%, transparent);
    text-stroke: 1.4px color-mix(in srgb, var(--ink) 10%, transparent);
  }
}

.feat svg {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.feat h3 {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
}

.feat p {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.feat--night svg {
  color: var(--gold);
}

.feat--truth svg {
  color: var(--success);
}

/* Get — pitch, promise checklist, and the welcome screen: three columns. */

.get {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.62fr 1fr;
  gap: 32px;
  align-items: center;
  background-image: radial-gradient(90% 130% at 20% -30%, var(--accent-soft) 0%, transparent 60%);
}

/* An inner frame holding the three columns together, echoing the bordered
   screen look from the app's own mockups. */
.get::before {
  content: '';
  position: absolute;
  inset: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  pointer-events: none;
}

.get h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 42px);
}

.get__text > p {
  font-size: 16.5px;
}

/* Left and middle columns stretch to the phone's height, spreading their
   content so all three columns share the same top and bottom edge. */
.get__text {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
}

.get__list {
  position: relative;
  display: grid;
  gap: 12px;
  align-self: stretch;
  align-content: space-between;
  padding: 8px 22px;
}

.get__card {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s ease, transform 0.2s ease;
  /* Dissolve toward the inner frame instead of stopping at a hard border -
     echoes the fade already used elsewhere on this page. */
  -webkit-mask-image: linear-gradient(to left, black 88%, rgba(0, 0, 0, 0.55) 100%);
  mask-image: linear-gradient(to left, black 88%, rgba(0, 0, 0, 0.55) 100%);
}

.get__card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* The icon panel runs the full height of the card, flush against its edge,
   instead of a small badge floating in the middle. */
.get__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  flex: none;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.get__icon svg {
  width: 20px;
  height: 20px;
  color: color-mix(in srgb, var(--accent) 70%, var(--muted) 30%);
}

.get__icon--gold {
  background: color-mix(in srgb, var(--gold) 9%, transparent);
}

.get__icon--gold svg {
  color: color-mix(in srgb, var(--gold) 70%, var(--muted) 30%);
}

.get__icon--success {
  background: color-mix(in srgb, var(--success) 9%, transparent);
}

.get__icon--success svg {
  color: color-mix(in srgb, var(--success) 70%, var(--muted) 30%);
}

.get__card > div {
  padding: 12px 16px;
}

.get__card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15.5px;
  margin: 0 0 2px;
}

.get__card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.get h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 38px);
  margin: 10px 0;
}

.get__text > p {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 26px;
}

/* The first day, step by step — fills the pitch column with the actual
   flow instead of decoration. */
.get__steps {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.get__steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
}

.get__steps li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

/* A short hairline links each step to the next. */
.get__steps li + li span::before {
  content: '';
  position: absolute;
  left: 15px;
  top: -14px;
  width: 1px;
  height: 12px;
  background: var(--line);
}

.get__phone {
  width: min(190px, 54vw);
  border-radius: 34px;
  padding: 9px;
  justify-self: center;
  transform: rotate(3deg);
}

.get__phone img {
  border-radius: 26px;
}

/* ---------- footer ---------- */

footer {
  position: relative;
  padding: 34px 0 40px;
  margin-top: 40px;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.foot nav {
  display: flex;
  gap: 22px;
}

.foot a {
  color: var(--muted);
}

.foot a:hover {
  color: var(--ink);
}

/* ---------- prose pages (privacy / terms) ---------- */

.prose {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 44px 24px 90px;
}

/* Very dim app screens drifting in the page margins on wide viewports. */
.prose-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.prose-decor img {
  position: absolute;
  width: 300px;
  opacity: 0.06;
  border-radius: 26px;
}

.prose-decor img:first-child {
  left: -70px;
  top: 14%;
  transform: rotate(-10deg);
}

.prose-decor img:last-child {
  right: -70px;
  top: 40%;
  transform: rotate(9deg);
}

@media (max-width: 1320px) {
  .prose-decor {
    display: none;
  }
}

.prose-head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
}

.prose-head__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  line-height: 1;
  margin-bottom: -6px;
}

.prose-head__top .updated {
  margin-bottom: 0;
}

.prose-head__badge {
  flex: none;
  width: 72px;
  min-height: 72px;
  border-radius: 20px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prose-head__badge svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

@media (max-width: 640px) {
  .prose-head__badge {
    display: none;
  }
}

.prose h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.1;
  margin: 0;
}

.prose .updated {
  color: var(--faint);
  font-size: 14px;
  margin-bottom: 18px;
}

.prose .intro {
  color: var(--muted);
  font-size: 17px;
  margin-top: 22px;
  margin-bottom: 36px;
  text-align: justify;
  text-justify: inter-word;
}

/* Each clause is its own card with a numbered chip, like the app's rows. */
.prose section {
  background: var(--surface);
  background-image: radial-gradient(120% 120% at 100% 0%, rgba(124, 140, 255, 0.05), transparent 55%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 30px;
  margin-bottom: 14px;
}

.prose section h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.prose section h2 span {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 15.5px;
}

.prose section p {
  text-align: justify;
  text-justify: inter-word;
}

.prose section p + p {
  margin-top: 10px;
}

.prose ul {
  padding-left: 22px;
  margin-top: 8px;
}

.prose li {
  margin: 6px 0;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 404 ---------- */

.lost {
  flex: 1;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 40px 24px 70px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 64px;
}

.lost__text {
  flex: 1;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lost h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.08;
  margin: 0 0 14px;
}

.lost p {
  color: var(--muted);
  font-size: 17px;
  max-width: 44ch;
}

/* Giant hairline-outline 404. Font-size is set in px by the inline script
   at the bottom of the page to exactly match .lost__text's rendered
   height; the clamp() below is only the pre-JS/no-JS fallback. */
.lost__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lost__num span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(170px, 22vw, 250px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  user-select: none;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .lost {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding-top: 12px;
  }

  .lost__text {
    flex: none;
    max-width: 100%;
  }

  .lost p {
    margin-left: auto;
    margin-right: auto;
  }

  .lost__num {
    order: -1;
    margin: 0 auto;
  }

  .lost__num span {
    font-size: 110px;
  }
}

/* ---------- animation ---------- */

@keyframes floaty {
  from { transform: translateY(0); }
  to { transform: translateY(-9px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* Scroll shortcuts, bottom right. Hidden state stays in the layout so the
   show/hide is a soft fade-and-slide, never a jump. */
.scrollnav {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.scrollnav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out),
    color 0.2s ease, border-color 0.2s ease;
}

.scrollnav button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.scrollnav button svg {
  width: 18px;
  height: 18px;
}

.scrollnav button.hidden {
  opacity: 0;
  transform: translateY(10px) scale(0.85);
  pointer-events: none;
}

/* At the very bottom the down button hides — slide the up button into its
   slot so the corner doesn't hold a button-sized hole. */
.scrollnav:has(#scrollDown.hidden) #scrollUp {
  transform: translateY(54px);
}

.scrollnav:has(#scrollDown.hidden) #scrollUp.hidden {
  transform: translateY(64px) scale(0.85);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.rise {
  animation: rise 0.7s var(--ease-out) both;
}

.rise--1 { animation-delay: 0.05s; }
.rise--2 { animation-delay: 0.14s; }
.rise--3 { animation-delay: 0.23s; }
.rise--4 { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- responsive ---------- */

/* The two-column hero only has room to breathe above ~1320px - the
   decorative bleed (doodle, phone fan, sparkles) is tuned for that much
   slack. Below it, stack to a single centered column rather than letting
   the bleed eat into the phones or crowd the copy against the edge. */
@media (max-width: 1320px) {
  .top__in {
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 36px 0 150px;
    text-align: center;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__doodle {
    display: none;
  }
}

@media (max-width: 920px) {
  .features {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto 40px;
  }

  .get {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 32px;
    text-align: center;
  }

  .get p {
    margin-left: auto;
    margin-right: auto;
  }

  .get__text {
    align-items: center;
    padding: 0;
  }

  .get__steps {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .get__list {
    max-width: 380px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
  }

  .get__phone {
    transform: none;
  }

  .scrollnav {
    right: 14px;
    bottom: 14px;
  }

  .scrollnav button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 560px) {
  .top nav {
    gap: 16px;
  }

  section {
    padding: 64px 0;
  }

  .hero .lead {
    font-size: 17px;
    padding: 0 8px;
  }

  .fan {
    width: min(760px, 80%);
  }

  .foot {
    justify-content: center;
    text-align: center;
  }

  .foot nav {
    justify-content: center;
  }

  .scene--above {
    bottom: calc(100% - 44px);
  }

  /* Small screens: bigger centre phone, mostly filling the stage; side
     previews mostly off-frame - a taller stage lets it show more of the
     portrait screenshot instead of cropping it down to fit a square. */
  .lightbox__stage {
    aspect-ratio: 100 / 150;
  }

  .lightbox__phone {
    width: 62%;
  }

  .lightbox__nav {
    width: 36px;
    height: 36px;
  }

  .lightbox__nav--prev {
    left: 2px;
  }

  .lightbox__nav--next {
    right: 2px;
  }

  .lightbox__close {
    width: 32px;
    height: 32px;
    top: 2px;
    right: 2px;
  }
}
