:root {
  --cream: #FFFFFF;
  --surface: #FFFCFA;
  --surface-alt: #F1E0D8;
  --ink: #241C18;
  --dim: #78685F;
  --body: #5b4d45;
  --border: #ECDCD3;
  --teal: #12B4B1;
  --teal-ink: #0C5F5D;
  --teal-soft: #D8F0EE;
  --rose: #CA7FA1;
  --blush: #E9B8C4;
  --peach: #E2B099;
  --sand: #DDC9AB;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw: 1140px;
  --sh-card: 0 4px 12px -2px rgba(36, 28, 24, .06);
  --sh-raised: 0 14px 34px -16px rgba(36, 28, 24, .28);

  /* Semantic Theme Tokens (Light Default) */
  --page-bg: #FFFFFF;
  --heading: #241C18;
  --primary: #12B4B1;
  --primary-ink: #0C5F5D;
  --primary-soft: #D8F0EE;
  --rose-accent: #CA7FA1;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --status-bg: rgba(36, 28, 24, 0.08);
  --edge-fade-rgb: 255, 255, 255;
  --hero-glow-a: rgba(233, 184, 196, .42);
  --hero-glow-b: rgba(226, 176, 153, .34);
  --shadow-card: var(--sh-card);
  --shadow-raised: var(--sh-raised);
  --phone-shell-edge: #51443D; /* // CALIBRATE */
  --phone-shell-depth: #1B1512; /* // CALIBRATE */
  --phone-highlight: rgba(255, 255, 255, 0.28); /* // CALIBRATE */
  --phone-ground-shadow: rgba(36, 28, 24, 0.18); /* // CALIBRATE */
  --phone-cast-shadow: 0 20px 48px -12px rgba(36, 28, 24, 0.26); /* // CALIBRATE */
  color-scheme: light;
}

:root[data-theme="dark"] {
  --cream: #16110F;
  --surface: #211915;
  --surface-alt: #2C221C;
  --ink: #F8EFE9;
  --dim: #B6A79E;
  --body: #F2E7E0;
  --border: #352A24;
  --teal: #38C5C0;
  --teal-ink: #38C5C0;
  --teal-soft: #163230;
  --rose: #D58FAE;
  --blush: #7A3B58;
  --peach: #6E3B29;
  --sand: #4A3C34;

  /* Semantic Theme Tokens (Dark Override) */
  --page-bg: #16110F;
  --heading: #F8EFE9;
  --primary: #38C5C0;
  --primary-ink: #38C5C0;
  --primary-soft: #163230;
  --rose-accent: #D58FAE;
  --nav-bg: rgba(22, 17, 15, 0.88);
  --status-bg: rgba(248, 239, 233, 0.10);
  --edge-fade-rgb: 22, 17, 15;
  --hero-glow-a: rgba(213, 143, 174, 0.15);
  --hero-glow-b: rgba(56, 197, 192, 0.15);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, .32);
  --shadow-raised: 0 14px 36px rgba(0, 0, 0, .48);
  --phone-shell-edge: #2a211b; /* // CALIBRATE */
  --phone-shell-depth: #1d1613; /* // CALIBRATE */
  --phone-highlight: rgba(255, 255, 255, 0.22); /* // CALIBRATE */
  --phone-ground-shadow: rgba(0, 0, 0, 0.45); /* // CALIBRATE */
  --phone-cast-shadow: 0 24px 54px -14px rgba(0, 0, 0, 0.58); /* // CALIBRATE */
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--heading);
  background: var(--page-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.18s ease, color 0.18s ease;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--heading);
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

section {
  padding: 84px 24px;
}

/* Accessibility skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--heading);
  color: var(--surface);
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Focus styles */
a:focus-visible, button:focus-visible, summary:focus-visible, .gallery-grid:focus-visible {
  outline: 2px solid var(--primary-ink);
  outline-offset: 3px;
}

.overline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---- Theme Toggle Button ---- */
.theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--heading);
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
  flex-shrink: 0;
}

html.js .theme-toggle {
  display: inline-flex;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  background: var(--surface-alt);
}

:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }

/* ---- Buttons & Status Badges ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  min-height: 48px;
  transition: transform .15s, box-shadow .15s, background-color .15s, border-color .15s;
  cursor: pointer;
  border: none;
}

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

.btn-ink:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

.btn-secondary {
  background: var(--surface);
  color: var(--heading);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-alt);
  transform: translateY(-2px);
}

.store-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--status-bg);
  color: var(--heading);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  min-height: 48px;
}

.waitlist-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--status-bg);
  color: var(--heading);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.waitlist-trigger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.waitlist-dialog {
  width: min(100% - 32px, 480px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  color: var(--heading);
  box-shadow: 0 24px 80px rgba(28, 20, 16, .28);
}

.waitlist-dialog::backdrop {
  background: rgba(23, 16, 13, .62);
  backdrop-filter: blur(4px);
}

.waitlist-dialog-inner {
  position: relative;
  padding: 38px;
  text-align: center;
}

.waitlist-icon {
  display: block;
  margin: 0 auto 18px;
  border-radius: 16px;
}

.waitlist-dialog h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 6vw, 38px);
  color: var(--heading);
}

.waitlist-dialog p:not(.overline):not(.waitlist-message):not(.waitlist-note) {
  color: var(--body);
  line-height: 1.6;
}

.waitlist-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--body);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.waitlist-close:hover { background: var(--surface-alt); }

.waitlist-form {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  text-align: left;
}

.waitlist-form[hidden],
.waitlist-success[hidden] {
  display: none;
}

.waitlist-form label {
  font-size: 14px;
  font-weight: 700;
}

.waitlist-form input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-alt);
  color: var(--heading);
  font: inherit;
}

.waitlist-form input[type="email"]:focus {
  outline: 2px solid var(--primary-ink);
  outline-offset: 2px;
}

.waitlist-form .btn { width: 100%; }
.waitlist-form .btn:disabled { cursor: wait; opacity: .75; transform: none; }
.waitlist-honeypot { position: absolute; left: -9999px; }

.waitlist-success {
  padding-top: 12px;
}

.waitlist-success-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: #e5f7f5;
  color: #008f8c;
  font-size: 28px;
  font-weight: 700;
}

.waitlist-success h2 {
  margin-top: 10px;
}

.waitlist-success > p:not(.overline) {
  max-width: 31ch;
  margin: 0 auto;
  color: var(--body);
  line-height: 1.6;
}

.waitlist-success .btn {
  width: 100%;
  margin-top: 28px;
}

.waitlist-note, .waitlist-message {
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.waitlist-note { color: var(--dim); }
.waitlist-note a { color: var(--primary-ink); text-decoration: underline; }
.waitlist-message { min-height: 20px; font-weight: 700; }
.waitlist-message[data-state="success"] { color: #087a54; }
.waitlist-message[data-state="error"] { color: #b42318; }

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: var(--heading);
  color: var(--surface);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  min-height: 48px;
}

/* ---- Sticky Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 30px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--heading);
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: conic-gradient(from 220deg, var(--blush), var(--peach), var(--teal), var(--blush));
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a {
  color: var(--dim);
  transition: color .15s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-links a:hover {
  color: var(--heading);
}

.nav-cta {
  padding: 9px 20px;
  font-size: 14px;
  min-height: 44px;
}

/* ---- Hero Section ---- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 48px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -8% 0 auto 30%;
  height: 480px;
  z-index: -1;
  background: radial-gradient(46% 60% at 75% 28%, var(--hero-glow-a), transparent 72%),
              radial-gradient(40% 52% at 95% 60%, var(--hero-glow-b), transparent 72%);
}

.hero h1 {
  font-size: clamp(44px, 6.2vw, 76px);
  margin: 16px 0 0;
}

.marker-underline {
  position: relative;
  display: inline-block;
  color: var(--primary-ink);
  white-space: nowrap;
}

/* The stroke is painted with currentColor through a mask, so the underline
   always matches the word above it. Previously the colour was hardcoded in the
   SVG and duplicated for dark mode, which let the two drift apart. */
.marker-underline::after {
  content: "";
  position: absolute;
  left: -1.5%;
  right: -1.5%;
  bottom: -.22em;
  height: .18em;
  pointer-events: none;
  background: currentColor;
  -webkit-mask: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg viewBox='0 0 120 20' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M3 5.5C25 7 43 13.5 63 14C84 14.5 103 11 117 5' fill='none' stroke='%23000' stroke-width='6.5' stroke-linecap='round'/%3E%3C/svg%3E");
  mask: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg viewBox='0 0 120 20' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M3 5.5C25 7 43 13.5 63 14C84 14.5 103 11 117 5' fill='none' stroke='%23000' stroke-width='6.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--body);
  max-width: 42ch;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.microcopy {
  margin-top: 16px;
  font-size: 13px;
  color: var(--dim);
  font-weight: 600;
}

/* ---- Hero 3D Device Frame ---- */
.hero-phone {
  position: relative;
  top: -36px; /* // CALIBRATE: keep the complete device above the desktop fold */
  display: flex;
  justify-content: center;
  perspective: 1100px; /* // CALIBRATE */
  perspective-origin: 48% 45%; /* // CALIBRATE */
  isolation: isolate;
  padding: 16px 12px; /* // CALIBRATE */
}

/* Ground shadow beneath the phone stage */
.hero-phone::before {
  content: "";
  position: absolute;
  bottom: 8px; /* // CALIBRATE */
  left: 50%;
  transform: translateX(-50%);
  width: 236px; /* // CALIBRATE */
  height: 34px; /* // CALIBRATE */
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--phone-ground-shadow) 0%, rgba(0,0,0,0) 72%); /* // CALIBRATE */
  pointer-events: none;
  z-index: 0;
}

.hero-phone-stage {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  --hero-stage-transform: rotateY(-8deg) rotateX(2deg) rotateZ(1deg) translateZ(0); /* // CALIBRATE */
  transform: var(--hero-stage-transform);
  transform-origin: 50% 52%; /* // CALIBRATE */
  z-index: 1;
}

.phone-frame {
  position: relative;
  width: 310px;
  border-radius: 42px;
  background: #0f0b09;
  padding: 10px;
  box-shadow:
    1px 1px 0 var(--phone-shell-edge),
    4px 4px 0 var(--phone-shell-depth),
    var(--phone-cast-shadow); /* // CALIBRATE */
  border: 1px solid var(--phone-shell-edge);
  z-index: 2;
}

:root[data-theme="dark"] .phone-frame {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Near-edge highlight layer above screenshot */
.phone-frame::after {
  content: "";
  position: absolute;
  inset: 1px; /* // CALIBRATE */
  border-radius: 41px; /* // CALIBRATE */
  pointer-events: none;
  background: transparent;
  box-shadow:
    inset 2.5px 0 3px -1px var(--phone-highlight),
    inset 0 2px 3px -1px var(--phone-highlight),
    inset -2px -2px 3px rgba(0, 0, 0, 0.28); /* // CALIBRATE */
  z-index: 3;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  object-fit: cover;
}

/* ---- Trust Strip ---- */
.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px 0;
  color: var(--dim);
  font-weight: 600;
  font-size: 14px;
}

.strip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

/* ---- Section Headers ---- */
.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 12px;
}

.section-sub {
  margin-top: 14px;
  color: var(--body);
  font-size: 16px;
}

/* ---- Process Journey Redesign ---- */
#how {
  padding-top: 44px; /* // CALIBRATE */
  padding-bottom: 44px; /* // CALIBRATE */
}

.process-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}

.process-intro {
  text-align: left;
  max-width: 620px;
  margin-bottom: 40px; /* // CALIBRATE */
}

.process-visual {
  position: relative;
  padding-top: 4px;
  padding-bottom: 16px;
}

.process-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.process-journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px; /* // CALIBRATE */
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.process-step {
  text-align: left;
  display: flex;
  flex-direction: column;
  padding: 30px; /* // CALIBRATE */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px; /* // CALIBRATE */
  box-shadow: var(--shadow-card);
  min-height: 240px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

:root[data-theme="dark"] .process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .process-step {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .process-step:nth-child(1):hover,
  .process-step:nth-child(3):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-raised);
  }

  .process-step:nth-child(2):hover {
    transform: translateY(29px);
    box-shadow: var(--shadow-raised);
  }
}

.process-step:nth-child(2) {
  transform: translateY(32px); /* // CALIBRATE */
}

.process-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.process-step-num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-ink);
  text-transform: uppercase;
}

.process-icon-well {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 12px;
  flex-shrink: 0;
}

.process-step h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.process-step p {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--body);
  line-height: 1.55;
  margin: 0 0 20px 0;
  max-width: 34ch;
  flex-grow: 1;
}

.process-proof {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  background: var(--primary-soft);
  color: var(--primary-ink);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: default;
  user-select: none;
  margin-top: auto;
}

.process-privacy {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px; /* // CALIBRATE */
  text-align: left;
  max-width: 680px;
}

.process-privacy-icon-well {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.process-privacy-text {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin: 0;
}

.process-privacy-text a {
  color: var(--primary-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Real Screenshot Story Gallery ---- */
.story-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.gallery-container {
  position: relative;
}

.gallery-container::before,
.gallery-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 72px;
  width: 72px;
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  transition: opacity .2s ease;
}

.gallery-container::before {
  left: 0;
  background: linear-gradient(90deg, var(--page-bg), rgba(var(--edge-fade-rgb), 0));
}

.gallery-container::after {
  right: 0;
  background: linear-gradient(270deg, var(--page-bg), rgba(var(--edge-fade-rgb), 0));
}

.gallery-container.at-start::before,
.gallery-container.at-end::after {
  opacity: 0;
}

.gallery-grid {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  padding: 8px 24px 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.gallery-grid::-webkit-scrollbar {
  display: none;
}

.screen-card {
  margin: 0;
  flex: 0 0 clamp(280px, 25vw, 315px);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

:root[data-theme="dark"] .screen-card {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.screen-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-raised);
}

.screen-card .phone-mini {
  width: 100%;
  max-width: 280px;
  border-radius: 24px;
  overflow: hidden;
  background: #0f0b09;
  padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.screen-card .phone-mini img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.screen-card figcaption {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--body);
  text-align: center;
  line-height: 1.45;
  padding: 0 4px;
}

.gallery-hint {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  margin-top: 16px;
}

.gallery-controls {
  position: absolute;
  inset: 0 8px 56px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.gallery-arrow {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--heading);
  font: 700 22px/1 var(--sans);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: var(--shadow-card);
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.gallery-arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

.gallery-arrow:disabled {
  opacity: 0;
  pointer-events: none;
  cursor: default;
}

/* ---- Feature Bento (Asymmetric Redesign) ---- */
.features {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 24px; /* // CALIBRATE */
}

.feature-intro {
  text-align: left;
  max-width: 700px;
  margin-bottom: 44px; /* // CALIBRATE */
}

.feature-intro .overline {
  display: block;
}

.feature-intro h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  margin: 12px 0 16px;
  color: var(--heading);
}

.feature-intro .section-sub {
  font-size: 17px;
  color: var(--body);
  margin: 0;
  max-width: 58ch;
}

.feature-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px; /* // CALIBRATE */
}

.feature-tile {
  position: relative;
  overflow: hidden;
  min-height: 270px; /* // CALIBRATE */
  border: 1px solid var(--border);
  border-radius: 28px; /* // CALIBRATE */
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 30px; /* // CALIBRATE */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px; /* // CALIBRATE */
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

:root[data-theme="dark"] .feature-tile {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-raised);
}

.feature-tile--colors {
  grid-column: 1 / span 7;
  background: radial-gradient(circle at 100% 100%, var(--hero-glow-b), transparent 65%), var(--surface);
}

.feature-tile--ritual {
  grid-column: 8 / span 5;
  background: radial-gradient(circle at 0% 0%, var(--hero-glow-b), transparent 65%), var(--surface);
}

.feature-tile--kbeauty {
  grid-column: 1 / span 5;
  background: radial-gradient(circle at 0% 100%, var(--hero-glow-a), transparent 65%), var(--surface);
}

.feature-tile--progress {
  grid-column: 6 / span 7;
  background: radial-gradient(circle at 100% 0%, var(--hero-glow-b), transparent 65%), var(--surface);
}

.feature-tile-copy {
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.feature-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-ink);
  margin-bottom: 8px;
  display: block;
}

.feature-tile h3 {
  font-family: var(--sans);
  font-size: 24px; /* // CALIBRATE */
  margin: 4px 0 8px;
  color: var(--heading);
  line-height: 1.3;
}

.feature-tile p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
  max-width: 36ch;
  margin: 0;
}

/* Feature Visualizations */
.feature-visual {
  z-index: 1;
  pointer-events: none;
}

/* Colors visualization */
.feature-palette {
  display: flex;
  align-items: center;
  position: relative;
  width: 180px; /* // CALIBRATE */
  padding: 8px 12px;
}

.palette-rail {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  z-index: 0;
}

.swatch {
  position: relative;
  z-index: 1;
  width: 32px; /* // CALIBRATE */
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-card);
  margin-left: -8px;
}

.swatch:first-of-type {
  margin-left: 0;
}

.swatch--primary { background: var(--primary); }
.swatch--rose { background: var(--rose-accent); }
.swatch--peach { background: var(--peach); }
.swatch--sand { background: var(--sand); }
.swatch--soft { background: var(--primary-soft); }

/* Ritual visualization */
.feature-ritual-list {
  display: flex;
  flex-direction: column;
  gap: 4px; /* // CALIBRATE */
  width: 100%;
  max-width: 110px; /* // CALIBRATE */
}

.ritual-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 10px; /* // CALIBRATE */
  border-radius: 12px;
  background: var(--page-bg);
  border: 1px solid var(--border);
}

.ritual-row--complete {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.ritual-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary-ink);
  flex-shrink: 0;
}

.ritual-line {
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  flex: 1;
}

.ritual-row--complete .ritual-line {
  background: var(--primary-ink);
  opacity: 0.4;
}

/* K-Beauty visualization */
.feature-hydration-orbit {
  position: relative;
  width: 78px; /* // CALIBRATE */
  height: 78px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--primary);
  opacity: 0.25;
  pointer-events: none;
}

.ring-outer {
  width: 76px; /* // CALIBRATE */
  height: 76px;
  border-style: dashed;
}

.ring-mid {
  width: 58px; /* // CALIBRATE */
  height: 58px;
  opacity: 0.4;
}

.ring-inner {
  width: 48px; /* // CALIBRATE */
  height: 48px;
  opacity: 0.55;
  background: var(--hero-glow-a);
}

.orbit-center {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--rose-accent);
  box-shadow: var(--shadow-card);
}

/* Progress visualization */
.feature-progress-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  position: relative;
  height: 68px; /* // CALIBRATE */
  width: 200px; /* // CALIBRATE */
  padding: 8px 12px 0;
  border-bottom: 2px solid var(--border);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100%;
  flex: 1;
}

.chart-bar {
  flex: 1;
  background: var(--primary-soft);
  border-radius: 4px 4px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
}

/* // CALIBRATE: decorative seven-day rhythm; these bars do not represent user data. */
.chart-bar:nth-child(1) { height: 45%; }
.chart-bar:nth-child(2) { height: 60%; }
.chart-bar:nth-child(3) { height: 52%; }
.chart-bar:nth-child(4) { height: 75%; }
.chart-bar:nth-child(5) { height: 68%; }
.chart-bar:nth-child(6) { height: 84%; }
.chart-bar:nth-child(7) { height: 95%; }

.chart-bar--highlight {
  background: var(--primary);
  border-color: var(--primary);
}

.chart-indicator {
  position: absolute;
  top: -6px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--surface);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-card);
}

/* ---- Open Trust Manifesto Section ---- */
.trust-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px; /* // CALIBRATE */
}

.trust-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr; /* // CALIBRATE */
  gap: 72px; /* // CALIBRATE */
  align-items: start;
}

.trust-manifesto {
  position: relative;
  text-align: left;
}

.trust-manifesto::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--hero-glow-a), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.trust-emblem {
  position: relative;
  z-index: 1;
  width: 64px; /* // CALIBRATE */
  height: 64px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--primary-ink);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.trust-manifesto .overline {
  position: relative;
  z-index: 1;
  display: block;
}

.trust-manifesto h2 {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 44px);
  margin: 12px 0 16px;
  color: var(--heading);
  max-width: 12ch;
  line-height: 1.25;
}

.trust-manifesto .section-sub {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 42ch;
  margin-bottom: 24px;
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
}

.trust-policy-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--primary-ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}

.trust-policy-link:hover {
  color: var(--heading);
}

.trust-promises {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-promise {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  padding: 30px 0; /* // CALIBRATE */
  border-bottom: 1px solid var(--border);
}

.trust-promises > .trust-promise:last-child {
  border-bottom: none;
}

.trust-promise-icon {
  width: 46px; /* // CALIBRATE */
  height: 46px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--primary-ink);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.trust-promise-copy h3 {
  font-family: var(--sans);
  font-size: 21px;
  margin: 0 0 8px;
  color: var(--heading);
  line-height: 1.3;
}

.trust-promise-copy p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
  max-width: 48ch;
  margin: 0;
}

/* ---- FAQ Section ---- */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 20px 4px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--heading);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 26px;
  color: var(--rose-accent);
  font-weight: 400;
  transition: transform .2s;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list p {
  margin-top: 14px;
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.6;
}

.faq-list a {
  color: var(--primary-ink);
  font-weight: 600;
}

/* ---- Final Launch CTA ---- */
.cta-wrap {
  padding: 40px 24px 24px;
}

.cta-band {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  border-radius: 36px;
  padding: 72px 28px;
  background: var(--page-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: background 0.18s ease, border-color 0.18s ease;
}

:root[data-theme="dark"] .cta-band {
  background: linear-gradient(135deg, #2C221C, #211915);
}

.cta-band h2 {
  font-size: clamp(32px, 4.4vw, 50px);
  color: var(--heading);
}

.cta-band p {
  font-size: 17px;
  color: var(--body);
  max-width: 48ch;
  margin: 18px auto 0;
}

.cta-band .cta-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ---- Footer ---- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 64px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 20px 0;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--dim);
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-fine {
  font-size: 13.5px;
  color: var(--dim);
}

/* ---- Failure-safe Progressive Reveal Motion ---- */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .process-step {
    transition: none !important;
  }

  .process-step:nth-child(1):hover,
  .process-step:nth-child(3):hover {
    transform: none !important;
    box-shadow: var(--shadow-card) !important;
  }

  .process-step:nth-child(2),
  .process-step:nth-child(2):hover {
    transform: translateY(32px) !important; /* // CALIBRATE */
    box-shadow: var(--shadow-card) !important;
  }
}

/* ---- Responsive Breakpoints ---- */
@media (max-width: 1024px) {
  .gallery-grid {
    gap: 20px;
    padding: 12px 24px 24px;
  }

  .screen-card {
    flex: 0 0 280px;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 48px;
  }

  .hero::before {
    inset: -8% 0 auto 10%;
  }

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

  .hero-phone-stage {
    --hero-stage-transform: rotateY(-6deg) rotateX(1.5deg) rotateZ(0.8deg) translateZ(0); /* // CALIBRATE */
  }

  .hero-phone {
    top: 0;
  }

  .lead {
    max-width: 48ch;
  }

  .hero-actions {
    justify-content: center;
  }

  .process-journey {
    grid-template-columns: 1fr;
    gap: 20px; /* // CALIBRATE */
    position: relative;
  }

  .process-journey::before {
    content: "";
    position: absolute;
    top: 36px;
    bottom: 36px;
    left: 42px;
    width: 2px;
    background: var(--border);
    opacity: 0.6;
    z-index: 0;
  }

  .process-step:nth-child(2) {
    transform: none;
  }

  @media (hover: hover) and (pointer: fine) {
    .process-step:nth-child(2):hover {
      transform: translateY(-3px);
    }
  }

  .process-path {
    display: none;
  }

  .process-privacy {
    margin-top: 32px;
  }

  .feature-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .feature-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
  }

  .feature-palette {
    margin-top: 18px; /* // CALIBRATE */
  }

  .feature-ritual-list {
    max-width: 220px;
    margin-top: 12px; /* // CALIBRATE */
  }

  .feature-hydration-orbit {
    margin-top: 16px; /* // CALIBRATE */
  }

  .feature-progress-chart {
    width: 100%;
    max-width: 260px;
    margin-top: 16px; /* // CALIBRATE */
  }

  .feature-tile--colors,
  .feature-tile--ritual,
  .feature-tile--kbeauty,
  .feature-tile--progress {
    grid-column: span 1;
  }

  .trust-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .trust-manifesto h2 {
    max-width: none;
  }

  .trust-manifesto .section-sub {
    max-width: none;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 920px) and (prefers-reduced-motion: reduce) {
  .process-step:nth-child(2),
  .process-step:nth-child(2):hover {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-tile,
  .feature-tile:hover {
    transform: none !important;
    box-shadow: var(--shadow-card) !important;
    transition: none !important;
  }
}

@media (max-width: 560px) {
  section {
    padding: 64px 20px;
  }

  .hero {
    gap: 26px; /* // CALIBRATE */
    padding: 24px 16px 44px; /* // CALIBRATE */
  }

  .nav {
    gap: 12px; /* // CALIBRATE */
    padding: 12px 16px; /* // CALIBRATE */
  }

  #how {
    padding: 64px 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-phone {
    order: -1;
    padding: 8px 8px 0; /* // CALIBRATE */
  }

  .phone-frame {
    width: 220px; /* // CALIBRATE */
  }

  .hero-phone-stage {
    --hero-stage-transform: rotateY(-4deg) rotateX(1deg) rotateZ(0.5deg) translateZ(0); /* // CALIBRATE */
  }

  .hero-phone::before {
    width: 170px; /* // CALIBRATE */
    height: 24px; /* // CALIBRATE */
  }

  .process-step {
    padding: 22px; /* // CALIBRATE */
  }

  .process-privacy {
    align-items: flex-start;
  }

  .feature-bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-tile {
    min-height: auto;
    padding: 24px; /* // CALIBRATE */
  }

  .trust-promise {
    grid-template-columns: 40px 1fr;
    gap: 16px;
    padding: 22px 0; /* // CALIBRATE */
  }

  .trust-promise-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
}

/* ---- Mega Footer ---- */
.footer-mega {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 32px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 3fr;
  gap: 40px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px 24px;
}

.footer-col-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 14.5px;
  color: var(--body);
  text-decoration: none;
}

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

.footer-col a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-tagline {
  color: var(--dim);
  font-size: 14.5px;
  max-width: 30ch;
  margin: 8px 0 18px;
}

.footer-kicker {
  margin: 18px 0 0;
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-store-status {
  white-space: normal;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 24px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}

.footer-legal a {
  color: var(--dim);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--heading);
}

@media (max-width: 920px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bar {
    justify-content: flex-start;
  }
}

/* ---- SEO Layouts & Components ---- */
.breadcrumb {
  max-width: var(--maxw);
  margin: 20px auto 0;
  padding: 0 24px;
  font-size: 14px;
  color: var(--dim);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li+li::before {
  content: "/";
  margin-right: 8px;
  color: var(--dim);
}

.breadcrumb a {
  color: var(--body);
  text-decoration: none;
}

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

.breadcrumb [aria-current="page"] {
  color: var(--heading);
  font-weight: 600;
}

.article, .hub {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Reading column. 40rem lands at ~68 characters per line, which is the range
   people actually scan comfortably. The previous 800px ran past 100. */
.article-header, .hub-header {
  margin-bottom: 32px;
  max-width: 40rem;
}

.article-header h1, .hub-header h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.15;
  color: var(--heading);
  margin: 12px 0 20px;
}

.article-intro, .hub-intro {
  font-size: 19px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 24px;
}

/* The opening sentence carries the search intent — give it weight so a skimmer
   gets the answer without reading further. */
.article-intro > p:first-child, .hub-intro > p:first-child {
  font-size: 21px;
  line-height: 1.55;
  color: var(--heading);
  margin-bottom: 16px;
}

.article-content, .hub-content {
  max-width: 40rem;
}

.article-content h2, .hub-content h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.25;
  color: var(--heading);
  margin: 56px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 96px;
}

.article-content h2:first-child, .hub-content h2:first-child {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

.article-content p, .hub-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: 22px;
}

/* First paragraph after a heading sets up the section; a touch more contrast
   makes the page scannable heading-to-heading. */
.article-content h2 + p, .hub-content h2 + p {
  color: var(--heading);
}

/* ---- On this page: jump nav ---- */
.toc {
  max-width: 40rem;
  margin: 0 0 40px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.toc-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 12px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--primary-ink);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.article-content ul, .article-content ol, .hub-content ul, .hub-content ol {
  padding-left: 24px;
  margin: 0 0 24px;
}

.article-content li, .hub-content li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 8px;
}

/* Screenshots are 360x780 phone captures. width:100% stretched them to ~1090px
   wide and over 2000px tall, which pushed all the text off the first screen. */
.article-media {
  margin: 32px 0 40px;
  max-width: 260px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.article-media img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
}

.palette-swatches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

/* Scoped names: `.swatch` is already taken by the homepage feature-tile motif
   (32px overlapping circles), which collapsed these into slivers. */
.palette-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--sans);
  color: var(--dim);
}

.palette-swatch-color {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.tool-cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin: 40px 0;
  box-shadow: var(--shadow-card);
}

.tool-cta-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--heading);
  margin-bottom: 8px;
}

.tool-cta-card p {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 20px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.link-card:hover {
  border-color: var(--primary-ink);
  box-shadow: var(--shadow-raised);
}

.link-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}

.link-card p {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.4;
  margin: 0;
}

.faq-section {
  margin: 56px 0 40px;
}

.faq-section h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 32px);
  color: var(--heading);
  margin-bottom: 24px;
}

.disclaimer {
  font-size: 14px;
  color: var(--dim);
  background: var(--surface-alt);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 40px 0 20px;
}

/* ---- Tool Shell & Interactive Widget ---- */
.tool-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  margin: 32px 0 48px;
  box-shadow: var(--shadow-raised);
}

.tool-progress {
  height: 6px;
  background: var(--surface-alt);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 24px;
}

.tool-progress-bar {
  height: 100%;
  background: var(--primary-ink);
  transition: width 0.3s ease;
}

.tool-question-title {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 20px;
}

.tool-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.tool-option-btn {
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tool-option-btn:hover {
  border-color: var(--primary-ink);
  background: var(--surface-alt);
}

.tool-option-btn.selected {
  border-color: var(--primary-ink);
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-weight: 600;
}

.tool-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.tool-result {
  animation: fadeIn 0.4s ease;
}

.tool-result h3 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--heading);
  margin-bottom: 12px;
}

.tool-result p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 20px;
}

.tool-privacy-note {
  font-size: 13px;
  color: var(--dim);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}


/* ---- Screen-reader-only live region for interactive tools ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Centered reading column ----
   The article container is 1140px but prose is capped at 40rem for legibility,
   which left a large void on the right at desktop widths. Centre the reading
   blocks; the related-links grid and CTA keep the full container width. */
.article-header, .hub-header,
.article-content, .hub-content,
.article-media,
.toc,
.faq-section,
.tool-cta-card,
.tool-shell,
.tool-privacy-note,
.palette-swatches {
  margin-left: auto;
  margin-right: auto;
}

.faq-section, .tool-cta-card, .tool-shell {
  max-width: 40rem;
}

.article .disclaimer, .hub .disclaimer {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Split lede: copy left, app screenshot right ----
   Only engages when the page actually has a screenshot; :has() keeps
   image-less pages on the plain centred column with no generator change. */
.article-lede:has(.article-media) {
  display: grid;
  grid-template-columns: minmax(0, 40rem) 260px;
  gap: 56px;
  align-items: start;
  max-width: calc(40rem + 260px + 56px);
  margin: 0 auto;
}

.article-lede:has(.article-media) .article-header {
  margin: 0;
  max-width: none;
}

.article-lede:has(.article-media) .article-media {
  margin: 6px 0 0;
  grid-column: 2;
}

@media (max-width: 900px) {
  .article-lede:has(.article-media) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 40rem;
  }
  .article-lede:has(.article-media) .article-media {
    grid-column: 1;
    margin: 32px auto 0;
  }
}

/* Browsers without :has() fall back to the stacked layout, which is the
   previous behaviour rather than a broken one. */

/* When a page carries a screenshot, the lede is wider than the reading column,
   so centring both independently left them on different left edges. Align
   everything to one edge instead; the phone sits in the gutter it creates. */
.article:has(.article-media) {
  max-width: calc(40rem + 260px + 56px);
}

/* .article-lede is deliberately absent: it spans copy + phone and must keep the
   full container width, or the image eats into the text column. */
.article:has(.article-media) .article-content,
.article:has(.article-media) .toc,
.article:has(.article-media) .faq-section,
.article:has(.article-media) .tool-cta-card,
.article:has(.article-media) .palette-swatches,
.article:has(.article-media) .disclaimer {
  margin-left: 0;
  margin-right: auto;
  max-width: 40rem;
}

.article-lede:has(.article-media) {
  max-width: none;
  margin: 0;
}

@media (max-width: 900px) {
  .article:has(.article-media) {
    max-width: 40rem;
  }
}


.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
}
