:root {
  color-scheme: light;

  /* Brand — source: constants/themes/primitives.ts */
  --brand-navy: #0e3a6b;
  --brand-cyan: #0a82ab;
  --brand-coral: #ff654a;
  --brand-coral-dark: #ff765f;

  /* Paper theme — source: constants/themes/primitives.ts */
  --paper-base: #f3efe6;
  --paper-surface: #faf7f2;
  --paper-elevated: #fffcf7;
  --paper-border: #e4ddd0;
  --paper-border-strong: #d4cdc0;
  --paper-text: #1c1915;
  --paper-text-secondary: #3d3830;
  --paper-text-tertiary: #6b6458;
  --paper-text-disabled: #9a9388;

  /* Supporting web colors */
  --navy-deep: #082746;
  --navy-soft: #e0e9f2;
  --cyan-soft: #dceff4;
  --coral-soft: #fae3dc;
  --green: #268a2e;
  --green-soft: #e7f2e5;
  --warning: #b85f00;
  --warning-soft: #f8ebd4;
  --white: #ffffff;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;

  /* Geometry */
  --radius-card: 10px;
  --radius-study: 12px;
  --radius-hero: 14px;
  --radius-surface: 16px;
  --radius-panel: 18px;
  --radius-form: 20px;
  --radius-large: 28px;
  --shadow-card: 0 2px 12px rgba(28, 25, 21, 0.08);
  --shadow-study: 0 18px 48px rgba(28, 25, 21, 0.14);
  --content-width: 1160px;
}

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

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

body {
  margin: 0;
  background: var(--paper-base);
  color: var(--paper-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.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;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--radius-card);
  background: var(--paper-elevated);
  color: var(--brand-navy);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 4px;
}

.site-container {
  width: min(100% - 48px, var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid color-mix(in srgb, var(--paper-border) 86%, transparent);
  background: color-mix(in srgb, var(--paper-base) 90%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper-text);
  text-decoration: none;
}

.brand img { width: 27px; height: 29px; object-fit: contain; }

.brand-name {
  color: var(--brand-navy);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-studio {
  color: var(--paper-text-tertiary);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-navigation > a:not(.button) {
  color: var(--paper-text-secondary);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.005em;
  text-decoration: none;
}

.primary-navigation > a:not(.button):hover { color: var(--brand-cyan); }
.menu-toggle { display: none; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-hero);
  background: var(--brand-navy);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(14, 58, 107, 0.16);
  font-weight: 750;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--brand-cyan);
  box-shadow: 0 14px 34px rgba(10, 130, 171, 0.2);
  transform: translateY(-1px);
}

.button:active { transform: translateY(0); }
.button-small { min-height: 40px; padding-inline: 17px; border-radius: var(--radius-study); font-size: 13px; }
.button-wide { width: 100%; }
.button[aria-disabled="true"] {
  cursor: default;
  background: color-mix(in srgb, var(--brand-navy) 78%, var(--paper-base));
  box-shadow: none;
}

.button[aria-disabled="true"]:hover {
  background: color-mix(in srgb, var(--brand-navy) 78%, var(--paper-base));
  box-shadow: none;
  transform: none;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: 56px;
  padding-block: 70px 84px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--brand-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-coral);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-coral) 16%, transparent);
}

.hero h1,
.section-title {
  margin: 0;
  color: var(--brand-navy);
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(58px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 em { color: var(--brand-coral); font-weight: 500; }

.hero-lede {
  max-width: 34rem;
  margin: 26px 0 0;
  color: var(--paper-text-secondary);
  font-size: 18px;
  line-height: 1.62;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-top: 34px;
}

.button-app-store { min-width: 214px; justify-content: flex-start; }
.button-app-store span:last-child { display: grid; line-height: 1.05; font-size: 17px; }
.button-app-store small { font-size: 9px; font-weight: 600; letter-spacing: 0.2px; }
.hero-actions p { margin: 0; color: var(--paper-text-tertiary); font-size: 13px; }
.hero-actions strong { color: var(--brand-navy); }

.hero-product {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.soft-orbit {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(38, 138, 46, 0.04);
}

.phone {
  position: relative;
  z-index: 1;
  width: 268px;
  height: 536px;
  padding: 9px;
  border-radius: 43px;
  background: var(--navy-deep);
  box-shadow: 0 36px 70px rgba(14, 58, 107, 0.24), 0 8px 20px rgba(14, 58, 107, 0.14);
}

.phone-hero { transform: rotate(3deg); }
.phone.phone--screenshot {
  width: min(268px, 72vw);
  height: auto;
  padding: 8px;
}

.phone--screenshot img {
  width: 100%;
  height: auto;
  border-radius: 35px;
}

.ready-note {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 12%;
  width: 180px;
  padding: 18px;
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-panel);
  background: var(--paper-elevated);
  box-shadow: var(--shadow-study);
  transform: rotate(-5deg);
}

.ready-note small { display: block; color: var(--brand-coral); font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.ready-note strong { display: block; margin-top: 8px; color: var(--brand-navy); font-family: var(--font-serif); font-size: 18px; line-height: 1.2; }

.promise-bar { padding-block: 23px; background: var(--brand-navy); color: var(--white); }
.promise-list { display: flex; justify-content: center; align-items: center; gap: clamp(22px, 5vw, 52px); font-size: 12px; font-weight: 700; }
.promise-list span::before { content: "✓"; margin-right: 8px; color: var(--brand-coral-dark); }

.section { padding-block: clamp(88px, 8vw, 112px); }
.section-title { max-width: 760px; margin-top: 16px; font-size: clamp(42px, 5.2vw, 62px); line-height: 1.07; }
.section-lede { max-width: 36rem; margin: 24px 0 0; color: var(--paper-text-secondary); font-size: 16px; line-height: 1.68; text-wrap: pretty; }

.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.step-panel { min-height: 240px; padding: 28px; border: 1px solid var(--paper-border); border-radius: var(--radius-form); background: var(--paper-elevated); box-shadow: var(--shadow-card); }
.step-panel:nth-child(2) { transform: translateY(18px); }
.step-number { color: var(--brand-coral); font-family: var(--font-serif); font-size: 17px; font-style: italic; }
.step-panel h3 { margin: 33px 0 11px; color: var(--brand-navy); font-family: var(--font-serif); font-size: 25px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.18; }
.step-panel p { margin: 0; color: var(--paper-text-tertiary); font-size: 14px; line-height: 1.62; text-wrap: pretty; }

.path-showcase { background: var(--green-soft); }
.split-layout { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: 72px; }
.path-screenshot {
  width: min(100%, 390px);
  margin-inline: auto;
  padding: 10px;
  border-radius: 42px;
  background: var(--navy-deep);
  box-shadow: 0 28px 70px rgba(14, 58, 107, 0.2), 0 8px 22px rgba(28, 25, 21, 0.12);
  transform: rotate(-2deg);
}

.path-screenshot img {
  width: 100%;
  height: auto;
  border-radius: 33px;
}

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.feature-grid article { padding: 18px; border-radius: var(--radius-surface); background: color-mix(in srgb, var(--paper-elevated) 72%, transparent); }
.feature-grid h3 { margin: 0; color: var(--brand-navy); font-size: 14px; letter-spacing: -0.01em; line-height: 1.3; }
.feature-grid p { margin: 7px 0 0; color: var(--paper-text-tertiary); font-size: 11.5px; line-height: 1.55; }

.tour-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 15%, var(--cyan-soft), transparent 34%),
    var(--paper-base);
}

.tour-header {
  max-width: 790px;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(18px, 3vw, 34px);
  max-width: 1040px;
  margin: 58px auto 0;
}

.tour-card {
  align-self: start;
  margin: 0;
  padding: 9px 9px 22px;
  border: 1px solid var(--paper-border);
  border-radius: 31px;
  background: var(--paper-elevated);
  box-shadow: var(--shadow-study);
}

.tour-card:nth-child(2) { transform: translateY(28px); }

.tour-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: 23px;
}

.tour-card figcaption {
  display: grid;
  gap: 3px;
  padding: 17px 10px 0;
}

.tour-card figcaption strong {
  color: var(--brand-navy);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tour-card figcaption span {
  color: var(--paper-text-tertiary);
  font-size: 12px;
  line-height: 1.5;
}

.privacy-section { background: var(--navy-deep); color: var(--white); }
.privacy-section .section-kicker { color: var(--brand-coral-dark); }
.privacy-section .section-title { color: var(--paper-elevated); }
.privacy-section .section-lede { color: #b9c8d7; }
.privacy-layout { grid-template-columns: 1.05fr 0.95fr; }
.text-link { display: inline-block; margin-top: 24px; color: var(--paper-elevated); font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.privacy-grid article { min-height: 146px; padding: 20px; border: 1px solid rgba(255, 252, 247, 0.14); border-radius: var(--radius-panel); background: rgba(255, 255, 255, 0.045); }
.privacy-grid article > span { color: var(--brand-coral-dark); font-size: 18px; }
.privacy-grid h3 { margin: 14px 0 7px; color: var(--white); font-size: 14px; letter-spacing: -0.01em; line-height: 1.3; }
.privacy-grid p { margin: 0; color: #9fb2c5; font-size: 11.5px; line-height: 1.55; }

.pricing-inner { text-align: center; }
.pricing-inner .section-title { margin-inline: auto; }
.price-panel { max-width: 540px; margin: 48px auto 0; padding: 42px; border: 1px solid var(--paper-border); border-radius: var(--radius-large); background: var(--paper-elevated); box-shadow: var(--shadow-study); }
.price-name { margin: 0; color: var(--paper-text-tertiary); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase; }
.price-offer {
  display: grid;
  justify-items: center;
  gap: 11px;
  margin-top: 24px;
}
.price-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: #a4402c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}
.price-lockup {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(14px, 3vw, 24px);
}
.price-original {
  position: relative;
  color: var(--paper-text-disabled);
  font-family: var(--font-serif);
  font-size: 30px;
  letter-spacing: -0.025em;
  line-height: 1;
  text-decoration-color: var(--brand-coral);
  text-decoration-thickness: 3px;
}
.price-current {
  color: var(--brand-navy);
  font-family: var(--font-serif);
  font-size: clamp(72px, 8vw, 88px);
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.price-subtitle { margin: 15px 0 0; color: var(--paper-text-tertiary); font-size: 14px; line-height: 1.5; }
.price-panel ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 22px; margin: 29px 0; padding: 0; color: var(--paper-text-secondary); font-size: 12px; font-weight: 650; line-height: 1.5; list-style: none; }
.price-panel li::before { content: "✓"; margin-right: 6px; color: var(--green); }
.compatibility { margin: 16px 0 0; color: var(--paper-text-disabled); font-size: 10px; line-height: 1.5; }

.faq-section { padding-top: clamp(64px, 7vw, 88px); }
.faq-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 72px; }
.faq-layout .section-title { font-size: clamp(38px, 4vw, 52px); }
.faq-list { border-top: 1px solid var(--paper-border-strong); }
.faq-list details { border-bottom: 1px solid var(--paper-border-strong); }
.faq-list summary { position: relative; padding: 22px 44px 22px 0; color: var(--brand-navy); font-weight: 700; letter-spacing: -0.005em; line-height: 1.45; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 21px; color: var(--brand-coral); font-size: 20px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 58ch; margin: -5px 0 24px; color: var(--paper-text-tertiary); font-size: 14px; line-height: 1.65; }

.site-footer { padding-block: 31px; border-top: 1px solid var(--paper-border); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; color: var(--paper-text-tertiary); font-size: 11px; }
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand img { width: 22px; height: 24px; }
.footer-brand strong { color: var(--brand-navy); font-size: 15px; }
.footer-brand a { color: var(--paper-text-tertiary); text-underline-offset: 3px; }
.footer-brand a:hover { color: var(--brand-cyan); }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner nav a { text-underline-offset: 4px; }
.footer-inner > p { justify-self: end; margin: 0; }

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 12px 17px;
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-study);
  background: var(--paper-elevated);
  color: var(--paper-text-secondary);
  box-shadow: var(--shadow-study);
  font-size: 13px;
  font-weight: 700;
}

/* Shared content-page shell: support and privacy */
.content-page main { min-height: 70vh; }
.content-hero { padding-block: 84px 56px; border-bottom: 1px solid var(--paper-border); }
.content-hero h1 { max-width: 760px; margin: 16px 0 0; color: var(--brand-navy); font-family: var(--font-serif); font-size: clamp(48px, 7vw, 74px); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.content-hero p:last-child { max-width: 42rem; margin: 24px 0 0; color: var(--paper-text-secondary); font-size: 17px; line-height: 1.68; text-wrap: pretty; }
.content-body { max-width: 820px; padding-block: 64px 104px; }
.content-body section + section { margin-top: 56px; }
.content-body h2 { margin: 0 0 16px; color: var(--brand-navy); font-family: var(--font-serif); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.18; }
.content-body h3 { margin: 30px 0 9px; color: var(--paper-text-secondary); font-size: 16px; letter-spacing: -0.01em; line-height: 1.35; }
.content-body p, .content-body li { color: var(--paper-text-secondary); font-size: 15px; line-height: 1.72; }
.content-body a { color: var(--brand-cyan); font-weight: 700; text-underline-offset: 3px; }
.content-body ul, .content-body ol { padding-left: 22px; }
.callout { padding: 22px; border-left: 4px solid var(--brand-coral); border-radius: 0 var(--radius-surface) var(--radius-surface) 0; background: var(--paper-elevated); }
.callout p { margin: 0; }

@media (max-width: 900px) {
  .menu-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--paper-border);
    border-radius: var(--radius-study);
    background: var(--paper-elevated);
    color: var(--brand-navy);
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) { width: 19px; height: 2px; background: currentColor; transition: transform 160ms ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

  .primary-navigation {
    position: fixed;
    inset: 76px 0 auto;
    display: grid;
    gap: 0;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--paper-border);
    background: var(--paper-base);
    box-shadow: 0 22px 35px rgba(28, 25, 21, 0.12);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 180ms ease, visibility 180ms;
  }

  .primary-navigation.is-open { transform: translateY(0); visibility: visible; }
  .primary-navigation > a:not(.button) { padding: 14px 4px; border-bottom: 1px solid var(--paper-border); font-size: 15px; }
  .primary-navigation .button { margin-top: 16px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 58px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-product { margin-top: 12px; }
  .ready-note { right: 12%; }
  .step-grid { grid-template-columns: 1fr; }
  .step-panel:nth-child(2) { transform: none; }
  .split-layout, .privacy-layout, .faq-layout { grid-template-columns: 1fr; }
  .showcase-copy { order: -1; }
  .privacy-layout { gap: 48px; }
  .tour-grid {
    grid-auto-columns: minmax(250px, 54vw);
    grid-template-columns: none;
    grid-auto-flow: column;
    gap: 20px;
    margin-inline: -24px;
    padding: 0 24px 28px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }
  .tour-card { scroll-snap-align: center; }
  .tour-card:nth-child(2) { transform: none; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-inner > p { justify-self: center; }
}

@media (max-width: 600px) {
  .site-container { width: min(100% - 36px, var(--content-width)); }
  .brand-studio { display: none; }
  .hero-grid { min-height: 0; gap: 20px; padding-block: 52px 66px; }
  .hero h1 { font-size: clamp(50px, 15vw, 64px); line-height: 1; }
  .hero-lede { font-size: 16px; line-height: 1.6; }
  .hero-actions { flex-direction: column; }
  .soft-orbit { width: 390px; height: 390px; }
  .phone { width: 248px; height: 500px; }
  .ready-note { right: -1%; width: 154px; }
  .path-screenshot { width: min(88vw, 340px); }
  .tour-grid {
    grid-auto-columns: minmax(238px, 76vw);
    margin-inline: -18px;
    padding-inline: 18px;
  }
  .promise-list { flex-direction: column; gap: 9px; }
  .section { padding-block: 76px; }
  .section-title { font-size: 39px; line-height: 1.08; letter-spacing: -0.03em; }
  .section-lede { line-height: 1.65; }
  .step-grid { margin-top: 40px; }
  .price-panel { padding: 26px 22px; }
  .feature-grid, .privacy-grid { grid-template-columns: 1fr; }
  .price-panel ul { display: grid; justify-content: start; text-align: left; }
  .footer-inner nav { flex-wrap: wrap; justify-content: center; }
  .content-hero { padding-block: 64px 42px; }
  .content-hero h1 { font-size: 49px; }
  .content-body { padding-block: 48px 80px; }
}

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