/* Trabit marketing site — shared design system.
   Tokens are the app's own lib/theme.ts values, so a visitor recognizes the
   app in the site: a cool-grey page with warm stone-grey cards and the
   Trabit blue accent. Light only, like the app's default appearance; the
   near-black palette is kept under data-theme="dark" but nothing sets it.

   Shapes follow the app too: one family (Schibsted Grotesk, loaded via a
   Google Fonts <link> in each page's <head>), a floating pill nav like the
   app's tab bar, a connected pill switcher like Today/Stats/Calendar, and
   big soft-cornered stone cards like the grouped category cards on Today.
   Labels on the blue are navy, not white — white on this blue is only
   ~2.7:1. */

:root {
  --bg: #edf0f4;
  --surface: #dedcd7;
  --surface-2: #e6e4df;
  --ink: #1c2530;
  --ink-soft: #5a6676;
  --ink-faint: #8792a0;
  --accent: #20adc5;
  --accent-text: #137f92;
  --accent-ink: #1c2530;
  --accent-soft: rgba(32, 173, 197, 0.12);
  --border: #dde2e8;
  --border-strong: #cbd2da;

  --amber: #a8540c;
  --amber-fill: #e57b1b;
  --amber-soft: rgba(229, 123, 27, 0.12);
  --coral: #b0564e;
  --coral-fill: #e0685c;
  --coral-soft: rgba(176, 86, 78, 0.11);
  --indigo: #6650d0;
  --indigo-fill: #9b85fa;
  --indigo-soft: rgba(155, 133, 250, 0.12);

  /* The Social panel is always the app's dark instrument palette. */
  --night: #0b0d10;
  --night-surface: #14171b;
  --night-ink: #f2f3f5;
  --night-soft: #8b909a;
  --night-border: #1e2126;

  --glow: rgba(32, 173, 197, 0.32);
  --phone-shadow:
    0 1px 1px rgba(16, 20, 26, 0.18),
    0 0.9rem 1.6rem -0.8rem rgba(16, 20, 26, 0.35),
    0 2.6rem 5rem -2rem rgba(16, 20, 26, 0.55);

  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 999px;

  --max-width: 1120px;
  --font-body: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;

  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #0b0d10;
  --surface: #14171b;
  --surface-2: #1b1f24;
  --ink: #f2f3f5;
  --ink-soft: #8b909a;
  --ink-faint: #656a73;
  --accent-text: #20adc5;
  --accent-ink: #0b0d10;
  --accent-soft: rgba(32, 173, 197, 0.16);
  --border: #1e2126;
  --border-strong: #33373d;

  --amber: #e57b1b;
  --amber-soft: rgba(229, 123, 27, 0.16);
  --coral: #e0685c;
  --coral-soft: rgba(224, 104, 92, 0.14);
  --indigo: #9b85fa;
  --indigo-soft: rgba(155, 133, 250, 0.16);

  --night: #14171b;
  --night-border: #262a30;

  --glow: rgba(32, 173, 197, 0.3);
  --phone-shadow: 0 2.4rem 4.5rem -2rem rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

em {
  font-style: normal;
  color: var(--accent);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Nav ---------- */

/* A floating frosted pill, like the app's own tab bar. */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 0.9rem;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max-width) - 3rem);
  margin: 0 auto;
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 7%, transparent), 0 0.6rem 1.6rem -1rem rgba(28, 37, 48, 0.35);
}

/* .wrap's gutter becomes the gap between the pill and the viewport edge. */
.nav .wrap.nav-row {
  width: calc(100% - 2rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.93rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
}

.nav-links a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.nav-cta {
  margin-left: 0.4rem;
  background: var(--accent);
  color: var(--accent-ink) !important;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

/* Pill buttons, like the app's own primary actions ("Add 4 habits",
   "Continue") — navy label on the blue. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.7rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.04);
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
}

/* ---------- Waitlist ---------- */

.waitlist-dialog {
  width: min(26rem, calc(100vw - 2.5rem));
  padding: 2rem;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--ink);
}

.waitlist-dialog::backdrop {
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  backdrop-filter: blur(4px);
}

.waitlist-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.waitlist-dialog-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.6rem;
  margin: 0;
}

.waitlist-dialog-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: none;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.waitlist-dialog-close:hover {
  color: var(--ink);
}

.waitlist-dialog-body {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.waitlist-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.waitlist-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.waitlist-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}

.waitlist-input::placeholder {
  color: var(--ink-faint);
}

.waitlist-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.waitlist-form .btn {
  margin-top: 0.3rem;
  width: 100%;
}

.waitlist-status {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  color: var(--coral);
  min-height: 1.2em;
}

.waitlist-success {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-text);
}

.waitlist-legal {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- Phone ---------- */

/* An iPhone 17 Pro drawn in CSS around a full-resolution capture: a
   graphite titanium band with polished edges, a black glass bezel, the
   Action button and volume keys on the left, the side button and Camera
   Control on the right, and a soft reflection across the glass. Radii are
   the device's own corner curves as a share of its width and height, so
   each layer sits concentric with the capture's rounded screen. */
.phone {
  position: relative;
  padding: 1.25%;
  border-radius: 16.6% / 7.7%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 3.5%, rgba(255, 255, 255, 0) 96.5%, rgba(255, 255, 255, 0.4) 100%),
    linear-gradient(160deg, #a3a8b0 0%, #4a4f57 14%, #24282e 45%, #2f343b 75%, #8d929b 100%);
  box-shadow: var(--phone-shadow);
}

/* Action button, volume up, volume down. */
.phone::before,
.phone::after {
  content: '';
  position: absolute;
  width: 1.1%;
  border-radius: 3px 0 0 3px;
}

.phone::before {
  left: -0.85%;
  top: 17%;
  height: 25%;
  background:
    linear-gradient(90deg, #2b2f35, #8a8f98 55%, #3b4047) 0 0 / 100% 14% no-repeat,
    linear-gradient(90deg, #2b2f35, #8a8f98 55%, #3b4047) 0 48% / 100% 27% no-repeat,
    linear-gradient(90deg, #2b2f35, #8a8f98 55%, #3b4047) 0 100% / 100% 27% no-repeat;
}

/* Side button, and Camera Control lower down. */
.phone::after {
  right: -0.85%;
  top: 23%;
  height: 33%;
  border-radius: 0 3px 3px 0;
  background:
    linear-gradient(270deg, #2b2f35, #8a8f98 55%, #3b4047) 0 0 / 100% 30% no-repeat,
    linear-gradient(270deg, #15181c, #3c4148 55%, #1d2025) 0 100% / 100% 22% no-repeat;
}

.screen {
  position: relative;
  padding: 2.3%;
  border-radius: 15.4% / 7.1%;
  background: #030405;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

/* Light catching the cover glass. */
.screen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 36%, rgba(255, 255, 255, 0) 36.4%);
  pointer-events: none;
}

.screen img {
  width: 100%;
  border-radius: 13.6% / 6.3%;
  background: var(--bg);
}

.screen img[hidden] {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: 4.5rem 0 2rem;
  text-align: center;
}

.hero-copy {
  max-width: 50rem;
  margin: 0 auto;
}

/* The app's typography.eyebrow, with the same leading dot as Today's
   "IN SEASON" telemetry strip, set in a pill. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 auto 1.4rem;
  max-width: 14ch;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 auto 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Today front and centre, with Stats and Calendar fanned out behind it. */
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 4rem;
  padding-bottom: 1rem;
}

.hero-stage::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 18%;
  width: min(900px, 120%);
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 65%);
  filter: blur(2rem);
  z-index: 0;
}

.phone-main {
  z-index: 2;
  width: clamp(240px, 30vw, 340px);
}

.phone-side {
  z-index: 1;
  width: clamp(200px, 25vw, 286px);
  margin-top: 3.5rem;
}

/* Turned in toward the centre phone in real perspective, the way a
   product shot fans devices, rather than flat-rotated. */
.phone-left {
  margin-right: -3.5rem;
  transform: perspective(1500px) rotateY(26deg) rotateZ(-1.5deg);
  transform-origin: right center;
}

.phone-right {
  margin-left: -3.5rem;
  transform: perspective(1500px) rotateY(-26deg) rotateZ(1.5deg);
  transform-origin: left center;
}

/* ---------- Sections ---------- */

section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 44ch;
  margin-bottom: 2.8rem;
}

.section-head.center {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.7rem;
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}

.section-body {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 0;
}

/* ---------- Status panel ---------- */

/* The Stats tab's breakdown card, blown up: one segmented bar, four
   outcomes beneath it. */
.status-section {
  padding-top: 2.5rem;
}

.status-panel {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(1.6rem, 4vw, 3rem);
}

.status-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 3rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.status-title {
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}

.status-intro p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42ch;
}

.status-bar {
  display: flex;
  gap: 4px;
  height: 14px;
  margin-bottom: 1.8rem;
}

.status-bar span {
  width: var(--w);
  background: var(--c);
  border-radius: var(--radius-full);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0;
}

.status-grid dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.status-grid dt::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--dot);
}

.status-grid dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- Switcher ---------- */

.switcher {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The app's connected pill bar: equal sections on stone, with the selected
   one filled in the accent. */
.segmented {
  --i: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(26rem, 100%);
  padding: 4px;
  border-radius: var(--radius-full);
  background: var(--surface);
  margin-bottom: 3.5rem;
}

.segmented::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: var(--radius-full);
  background: var(--accent);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.segmented button {
  position: relative;
  z-index: 1;
  padding: 0.75rem 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: color 0.2s ease;
}

.segmented button[aria-selected='true'] {
  color: var(--accent-ink);
}

.segmented button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.switcher-body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5rem;
  width: 100%;
  max-width: 62rem;
}

.switcher-media {
  position: relative;
  width: clamp(250px, 30vw, 330px);
}

.switcher-media::before {
  content: '';
  position: absolute;
  inset: 10% -20%;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 65%);
  filter: blur(1.5rem);
}

.switcher-panel {
  animation: fade-up 0.35s ease both;
}

.switcher-media img:not([hidden]) {
  animation: fade 0.3s ease both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .switcher-panel,
  .switcher-media img:not([hidden]) {
    animation: none;
  }
  .segmented::before {
    transition: none;
  }
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.feature-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--dot, var(--accent));
}

.feature-title {
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}

.feature-body {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 44ch;
  margin: 0;
}

.feature-points {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-points li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
}

.feature-points li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background:
    no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%231c2530' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    var(--accent);
}

/* ---------- Tiles ---------- */

/* Stone cards with copy on top and a phone rising out of the bottom edge. */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.tile-copy {
  padding: 2rem 2rem 1.6rem;
}

.tile-title {
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}

.tile-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.tile-media {
  margin-top: auto;
  height: 23rem;
  overflow: hidden;
  padding: 0 12%;
}

/* ---------- Social (dark panel) ---------- */

.dark-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.6rem, 6vw, 5rem) 0;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 60% 70% at 85% 65%, rgba(32, 173, 197, 0.28), transparent 70%),
    var(--night);
  box-shadow: inset 0 0 0 1px var(--night-border);
  color: var(--night-ink);
  overflow: hidden;
}

.dark-copy {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.dark-panel .section-eyebrow {
  color: var(--accent);
}

.dark-panel .section-body {
  color: var(--night-soft);
  max-width: 42ch;
}

.rating-readout {
  display: inline-grid;
  margin: 2rem 0 1.6rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--night-surface);
  box-shadow: inset 0 0 0 1px var(--night-border);
}

.rating-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--night-soft);
}

.rating-value {
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0.3rem 0 0.4rem;
}

.rating-meta {
  font-size: 0.92rem;
  color: var(--night-soft);
}

.rating-meta b {
  color: var(--accent);
}

.dark-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--night-soft);
  max-width: 40ch;
}

.dark-media {
  width: clamp(240px, 28vw, 320px);
  align-self: end;
  height: 34rem;
  padding: 0 4px;
  overflow: hidden;
}

.dark-media .phone {
  box-shadow: 0 0 4rem -0.5rem rgba(32, 173, 197, 0.35);
}

/* ---------- Widgets ---------- */

.widgets-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4.5rem;
}

/* A slice of Home Screen wallpaper with light and dark widgets on it. */
.widget-wall {
  width: clamp(280px, 38vw, 420px);
  padding: 1.6rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 15% 15%, rgba(155, 133, 250, 0.55), transparent 55%),
    radial-gradient(circle at 90% 85%, rgba(32, 173, 197, 0.55), transparent 55%),
    linear-gradient(160deg, #8ea3b8 0%, #b9a9cc 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.widget-wall img {
  width: 100%;
  border-radius: 22%;
  box-shadow: 0 0.8rem 1.6rem -0.8rem rgba(28, 37, 48, 0.5);
}

.widget-wall .w-wide {
  grid-column: span 2;
  border-radius: 10.5% / 22.5%;
}

.widgets-copy .section-body {
  max-width: 40ch;
}

/* ---------- Support cards ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon svg .fill {
  fill: currentColor;
  stroke: none;
}

.card-title {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 0.45rem;
}

.card-body {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.tint-accent {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.tint-amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.tint-coral {
  background: var(--coral-soft);
  color: var(--coral);
}
.tint-indigo {
  background: var(--indigo-soft);
  color: var(--indigo);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 7vw, 5rem) 2rem;
  text-align: center;
}

.cta-band::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -60%;
  width: 70%;
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--glow), transparent 65%);
  filter: blur(2rem);
}

.cta-band > * {
  position: relative;
}

.cta-mark {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  margin: 0 auto 1.4rem;
}

.cta-band .section-body {
  max-width: 40ch;
  margin: 0 auto 2rem;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.footer-copy {
  font-size: 0.86rem;
  color: var(--ink-faint);
}

/* ---------- Legal / doc pages ---------- */

.doc {
  padding: 4rem 0 5rem;
}

.doc-header {
  margin-bottom: 1.6rem;
}

.doc-header h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 0.6rem;
  letter-spacing: -0.04em;
}

.doc-updated {
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.doc-body {
  max-width: 70ch;
}

.doc-body h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 2.2rem 0 0.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-strong);
}

.doc-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.doc-body p,
.doc-body li {
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.doc-body strong {
  color: var(--ink);
}

.doc-body ul {
  padding-left: 1.3rem;
}

.doc-body li {
  margin-bottom: 0.4rem;
}

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.8rem 0 1.5rem;
}

.doc-body th,
.doc-body td {
  text-align: left;
  padding: 0.6rem 0.6rem;
  border-bottom: 1px solid var(--border-strong);
  vertical-align: top;
}

.doc-body th {
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.scroll-x {
  overflow-x: auto;
}

/* ---------- FAQ ---------- */

/* Each question is its own stone card, like a row group in the app. */
.faq-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  margin-bottom: 0.75rem;
}

.faq-item h3 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.45rem;
}

.faq-item p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .tiles {
    grid-template-columns: 1fr;
    max-width: 34rem;
    margin: 0 auto;
  }
  .tile {
    display: grid;
    grid-template-columns: 1fr 42%;
  }
  .tile-copy {
    align-self: center;
  }
  .tile-media {
    height: 20rem;
    padding: 2rem 1.6rem 0 0;
  }
  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .switcher-body {
    grid-template-columns: 1fr;
    gap: 3rem;
    justify-items: center;
    text-align: center;
  }
  .switcher-body .switcher-media {
    order: -1;
  }
  .switcher-body .feature-body {
    margin: 0 auto;
  }
  .switcher-body .feature-points {
    display: inline-flex;
    align-items: flex-start;
    text-align: left;
  }
  .segmented {
    margin-bottom: 2.5rem;
  }
  .dark-panel {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }
  .dark-panel .section-body,
  .dark-note {
    margin-left: auto;
    margin-right: auto;
  }
  .dark-media {
    margin: 0 auto;
    height: 26rem;
  }
  .widgets-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .widget-wall {
    width: min(420px, 100%);
    margin: 0 auto;
    order: 1;
  }
  .widgets-copy .section-body {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  /* Only the secondary text links drop; the waitlist button stays in the
     sticky nav so it's always reachable. */
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .nav-row {
    padding-left: 0.85rem;
  }
  .hero {
    padding: 3rem 0 1rem;
  }
  .hero-stage {
    margin-top: 3rem;
  }
  .phone-main {
    width: min(64vw, 270px);
  }
  .phone-side {
    width: min(48vw, 210px);
    margin-top: 3rem;
  }
  .phone-left {
    margin-right: -38vw;
  }
  .phone-right {
    margin-left: -38vw;
  }
  section {
    padding: 3rem 0;
  }
  .status-grid,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .status-grid {
    gap: 1.1rem;
  }
  .tile {
    display: flex;
  }
  .tile-copy {
    padding: 1.6rem 1.5rem 1.4rem;
  }
  .tile-media {
    height: 18rem;
    padding: 0 16%;
  }
  .widget-wall {
    padding: 1.2rem;
    gap: 0.75rem;
  }
}
