/* ---------------------------------------------------------------------------
   Orbi — landing + privacy styles.
   Tokens mirror app/src/design/tokens.ts (Orbi, Expo app).
   No JS, no build step. Deploy as static files.
--------------------------------------------------------------------------- */

/* Fonts are bundled locally under web/fonts/ to avoid sending each visitor's
   IP to a third-party CDN. The same Fraunces + DM Sans as the mobile app.
   Source files are unchanged from Google Fonts; the @font-face declarations
   just point at local copies. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/fraunces-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-sans-500.woff2") format("woff2");
}

/* -- Tokens ---------------------------------------------------------------- */

:root {
  --bg:         #FBF7F5;   /* warm ivory paper */
  --surface:    #FFFCFB;   /* cards, sheets */
  --ink:        #3B2F3F;   /* primary text — soft aubergine, never black */
  --ink-soft:   #8A7D8F;   /* secondary text */
  --line:       #F0E7E7;   /* barely-there separation */
  --accent:     #8A6FA8;   /* dusty lavender — primary */
  --accent-soft:#F3EDF8;
  --blush:      #DFA79A;   /* dusty rose */
  --honey:      #E8B860;   /* warm honey */

  --font-serif: "Fraunces", "Times New Roman", serif;
  --font-sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-card: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 8px 32px rgba(59, 47, 63, 0.06);

  --space-screen: 24px;
  --content-max:  980px;
  --section-gap:  88px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #1A151F;
    --surface:    #241E2A;
    --ink:        #EFE8F0;
    --ink-soft:   #ADA1B3;
    --line:       #332B3A;
    --accent:     #C4A9E0;
    --accent-soft:#2E2638;
    --blush:      #E8B5AA;
    --honey:      #D9A24E;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  }
}

/* -- Reset ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.625;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "kern";
}

/* -- Type scale ------------------------------------------------------------ */

.wordmark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

h1, h2, h3 { margin: 0; font-weight: 400; color: var(--ink); }
h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}
h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
}
p { margin: 0; }
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
}
small, .small {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.ink-soft { color: var(--ink-soft); }

/* -- Layout ---------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-screen);
}

section {
  padding: 56px 0;
}

main > section:first-of-type { padding-top: 32px; }

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--space-screen);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.nav__brand svg { width: 28px; height: 28px; }
.nav__links {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav__link:hover { color: var(--ink); }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 96px;
  text-align: center;
}
.hero__inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero__mark { width: 200px; height: 200px; margin-bottom: 12px; }
.hero__title { margin-top: 8px; }
.hero__cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

/* -- Field (background) --------------------------------------------------- */

/* One field, fixed to the viewport, so the soft colored spills stay
   continuous across sections instead of resetting at each section edge.
   z-index: -1 keeps it under the static content; the nav (z-index: 10)
   covers it with its own bg, and the footer gets an explicit bg. */
.field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.field__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  will-change: transform;
  animation: drift 16s ease-in-out infinite alternate;
}
.field__blob--lavender {
  top: -10%; left: -15%;
  width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(138, 111, 168, 0.34) 0%, rgba(138, 111, 168, 0) 70%);
  animation-duration: 18s;
}
.field__blob--blush {
  top: -5%; right: -15%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(223, 167, 154, 0.32) 0%, rgba(223, 167, 154, 0) 70%);
  animation-duration: 22s;
  animation-delay: -5s;
}
.field__blob--apricot {
  bottom: -25%; left: 18%;
  width: 75%; height: 75%;
  background: radial-gradient(circle, rgba(232, 189, 140, 0.30) 0%, rgba(232, 189, 140, 0) 70%);
  animation-duration: 20s;
  animation-delay: -9s;
}
@media (prefers-color-scheme: dark) {
  .field__blob--lavender { background: radial-gradient(circle, rgba(196, 169, 224, 0.22) 0%, rgba(196, 169, 224, 0) 70%); }
  .field__blob--blush    { background: radial-gradient(circle, rgba(232, 181, 170, 0.18) 0%, rgba(232, 181, 170, 0) 70%); }
  .field__blob--apricot  { background: radial-gradient(circle, rgba(217, 162, 78, 0.18) 0%, rgba(217, 162, 78, 0) 70%); }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(28px, 18px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .field__blob { animation: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 120ms ease;
  user-select: none;
}
.btn:hover { opacity: 0.92; }
.btn:active { opacity: 0.85; }
.btn--primary {
  background: var(--accent);
  color: var(--surface);
}
.btn--secondary {
  background: var(--accent-soft);
  color: var(--accent);
}
.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
}
.btn--lg { height: 60px; padding: 0 32px; font-size: 17px; }

.link-text {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}
.link-text:hover { color: var(--ink); }
.link-accent {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.link-accent:hover { border-bottom-color: var(--accent); }

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

.section__head {
  max-width: 640px;
  margin-bottom: 32px;
}
.section__head h2 { margin-bottom: 12px; }
.section__head p  { color: var(--ink-soft); font-size: 17px; }

/* -- Ritual stages (3 steps) ---------------------------------------------- */

.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stage {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stage__num {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
}
.stage__title {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.stage__body {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.stage__arrow {
  display: none;
}

/* -- Methods grid --------------------------------------------------------- */

.methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.method {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  position: relative;
}
.method__icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.method__icon svg { width: 18px; height: 18px; stroke: var(--ink); }
.method__title {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
}

/* -- Fields row (six dots) ----------------------------------------------- */

.fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
}
.field-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.field-item__mark {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.field-item__mark span {
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
}
.field-item__copy { display: flex; flex-direction: column; gap: 2px; }
.field-item__label {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--ink);
}
.field-item__hint {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* -- Expectation ladder --------------------------------------------------- */

.expectations {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.expectation {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.expectation:last-child { border-bottom: 1px solid var(--line); }
.expectation__when {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--accent);
}
.expectation__copy {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
}

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

.cta-band {
  background: var(--night);
  color: var(--night-ink);
  border-radius: var(--radius-card);
  padding: 56px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}
.cta-band h2 { color: var(--night-ink); }
.cta-band p { color: color-mix(in srgb, var(--night-ink) 75%, transparent); max-width: 44ch; }

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

.foot {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 32px 24px 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
}
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* -- Privacy page ------------------------------------------------------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.prose h1 { font-size: clamp(36px, 5vw, 48px); margin-bottom: 8px; }
.prose .meta { color: var(--ink-soft); margin-bottom: 40px; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.25;
  margin-top: 40px;
  margin-bottom: 12px;
}
.prose h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 24px;
  margin-bottom: 8px;
}
.prose p, .prose li { font-size: 16px; line-height: 1.65; color: var(--ink); }
.prose ul, .prose ol { padding-left: 20px; margin: 8px 0 16px; }
.prose li { margin-bottom: 6px; }
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

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

@media (max-width: 720px) {
  section { padding: 48px 0; }
  .hero { padding: 56px 20px 80px; }
  .hero__mark { width: 160px; height: 160px; }
  .stages { grid-template-columns: 1fr; }
  .methods { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr; }
  .expectation { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .expectation__copy { font-size: 18px; }
  .cta-band { padding: 40px 24px; }
  .nav__link--hide-sm { display: none; }
}

@media (max-width: 420px) {
  .methods { grid-template-columns: 1fr; }
  .hero__mark { width: 140px; height: 140px; }
}