/* ─────────────────────────────────────────────────────────────
   Moments — Daily Reflections · landing page styles
   Palette and type lifted from the app's Theme.swift (light mode)
   and dev-assets/DESIGN.md. Warm-cream canvas, sage-teal accent,
   Newsreader + Inter, squircle cards, soft tonal depth.
   ───────────────────────────────────────────────────────────── */

:root {
  /* surfaces — warm cream canvas, brighter cards lifted above it */
  --canvas:        #e8e6de;   /* app surface (light) */
  --canvas-dim:    #dedcd2;
  --surface:       #fafaf6;   /* card */
  --surface-2:     #ffffff;   /* brightest card */
  --surface-low:   #f3f2ec;
  --surface-high:  #eceae2;
  --surface-sink:  #e3e1d6;

  --ink:           #16181a;   /* on-surface */
  --ink-soft:      #3b4042;   /* on-surface-variant */
  --ink-faint:     #6c706f;   /* outline */
  --hairline:      rgba(22,24,26,.10);
  --hairline-soft: rgba(22,24,26,.06);

  /* brand — muted sage/teal (doubles as the app accent) */
  --primary:        #2e4c49;
  --primary-deep:   #1f3331;
  --primary-bright: #3a6b65;
  --on-primary:     #ffffff;
  --primary-container: #c8e9e5;
  --on-primary-container: #002120;

  /* the logo gradient (teal → deep teal) */
  --teal-1: #1f6f68;
  --teal-2: #15433f;

  /* energy bands — light values, from Theme.swift */
  --e-optimal:  #2a5b57;  --e-optimal-s:  #d7ece7;
  --e-positive: #556a26;  --e-positive-s: #e0ebc8;
  --e-neutral:  #8b6a1c;  --e-neutral-s:  #f2dcb2;
  --e-low:      #b8503f;  --e-low-s:      #f7cfc8;
  --e-lowest:   #9f1812;  --e-lowest-s:   #f5bab3;

  /* depth — soft tonal shadows, never heavy (calm aesthetic) */
  --shadow-soft:  0 1px 2px rgba(31,51,49,.05),
                  0 8px 22px rgba(31,51,49,.06),
                  0 28px 60px rgba(31,51,49,.05);
  --shadow-card:  0 1px 1px rgba(31,51,49,.04),
                  0 3px 10px rgba(31,51,49,.05),
                  0 16px 36px rgba(31,51,49,.06);
  --shadow-phone: 0 2px 4px rgba(20,24,26,.18),
                  0 24px 50px -16px rgba(20,32,30,.45),
                  0 8px 20px rgba(20,32,30,.18);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius:    16px;
  --radius-lg: 22px;   /* the app's squircle card radius */
  --radius-xl: 30px;
  --radius-pill: 999px;

  --container: 1200px;
  --margin: 32px;
  --section-gap: 104px;

  --font-display: 'Newsreader', 'Iowan Old Style', 'Apple Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* ── atmospheric background ──────────────────────────────────
   A soft, breathing wash of sage + warm light + teal, the page
   analogue of the app's AnimatedGradientBackground. */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1000px 680px at 8% -8%,  rgba(200,233,229,0.55), transparent 60%),
    radial-gradient(820px 620px at 98% 4%,   rgba(224,235,200,0.40), transparent 64%),
    radial-gradient(1200px 900px at 50% 116%, rgba(31,111,104,0.10), transparent 66%);
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.20 0 0 0 0 0.18 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .5;
  mix-blend-mode: multiply;
}

body > main,
body > header,
body > footer { position: relative; z-index: 1; }

/* ── typography ──────────────────────────────────────────── */
.display, .h1, .h2, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.018em;
  margin: 0;
}
.display {
  font-size: clamp(2.7rem, 5.6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.12;
}
.h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
}
em { font-style: italic; color: var(--primary); }

.lede {
  font-size: clamp(1.06rem, 1.25vw, 1.2rem);
  line-height: 1.66;
  color: var(--ink-soft);
  margin: 0;
  max-width: 54ch;
}
.aside {
  font-size: .96rem;
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.62;
  margin: 0;
}

.eyebrow {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: .55em;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--primary);
  display: inline-block;
}
.eyebrow--primary { color: var(--primary); }

.label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0 0 .7em;
}

/* ── nav ─────────────────────────────────────────────────── */
.site-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px var(--margin) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  overflow: hidden;
  display: grid; place-items: center;
  box-shadow: var(--shadow-card);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-text__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-text__sub {
  font-size: .58rem;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
  margin-top: 5px;
  font-weight: 600;
}
.site-nav__links { display: flex; align-items: center; gap: 26px; }
.site-nav__links a {
  font-size: .92rem;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.site-nav__links a:hover { color: var(--primary); }
.site-nav__links .nav-cta {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 500;
  font-size: .88rem;
  transition: background .2s ease, transform .2s ease;
}
.site-nav__links .nav-cta:hover { background: var(--primary-deep); color: #fff; transform: translateY(-1px); }

/* ── shared section frame ────────────────────────────────── */
main > section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-gap) var(--margin);
  position: relative;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head__lede { max-width: 60ch; margin: 18px 0 0; }
.section-head--center .section-head__lede { margin-inline: auto; }

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 1px 2px rgba(31,51,49,.18), 0 10px 24px -10px rgba(46,76,73,.6);
}
.btn--primary:hover { background: var(--primary-deep); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-faint); }

/* ── phone frame ─────────────────────────────────────────── */
.phone {
  background: linear-gradient(180deg, #20242a 0%, #14171a 100%);
  border-radius: 42px;
  padding: 7px;
  box-shadow: var(--shadow-phone);
  position: relative;
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 36px;
}
.phone--lg { width: 300px; flex: 0 0 300px; margin: 0; }

/* ── hero ────────────────────────────────────────────────── */
.hero {
  padding-top: 60px !important;
  padding-bottom: var(--section-gap) !important;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero__copy { max-width: 600px; }
.hero h1 { margin-bottom: 26px; }
.hero h1 em { color: var(--primary); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; align-items: center; }
.hero__cta img { width: 160px;}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--ink-soft);
  font-size: .82rem;
  letter-spacing: .02em;
}
.hero__meta li { position: relative; padding-left: 16px; }
.hero__meta li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 7px; height: 7px;
  background: var(--primary-bright);
  border-radius: 50%;
}

.hero__art { position: relative; display: grid; place-items: center; min-height: 560px; }
/* soft teal glow behind the hero device */
.hero__art::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(31,111,104,.34), rgba(31,111,104,0) 62%);
  filter: blur(8px);
  z-index: 0;
}
/* hero device pair — same Check-In screen in both themes */
.hero__phones {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__phones .phone { width: 232px; flex: 0 0 232px; }
.hero__phone { position: relative; }
.hero__phone--light {
  z-index: 2;
  margin-right: -82px;
  transform: rotate(-5deg) translateY(-14px);
}
.hero__phone--dark {
  z-index: 1;
  transform: rotate(5deg) translateY(14px);
}
.hero__phone figcaption {
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  padding: 4px 13px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--hairline-soft);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

/* ── screens showcase ────────────────────────────────────── */
.screens { border-top: 1px solid var(--hairline-soft); }
.screens__row {
  display: flex;
  gap: 40px 30px;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 104px;
}
.screens__row .phone--lg { width: 252px; flex: 0 0 252px; position: relative; }
.screens figcaption {
  position: absolute;
  bottom: -66px;
  left: 0; right: 0;
  text-align: center;
  font-size: .86rem;
  color: var(--ink-soft);
}
.screens figcaption b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ── interactive check-in demo ───────────────────────────── */
.concept { border-top: 1px solid var(--hairline-soft); }
.concept__intro { max-width: 720px; margin-bottom: 48px; }
.concept__intro h2 { margin: 0 0 22px; }

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
  background: linear-gradient(170deg, var(--surface-low) 0%, var(--surface) 100%);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.demo__panel { display: flex; flex-direction: column; gap: 24px; }
.demo__greeting { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.demo__greeting span { color: var(--ink-soft); font-size: .92rem; font-family: var(--font-sans); font-weight: 400; display: block; margin-top: 2px; }

.demo__group > .label { color: var(--ink-soft); }
.demo__chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-size: .9rem;
  transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.chip svg { width: 16px; height: 16px; opacity: .8; }
.chip .e-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint); }
.chip:hover { border-color: var(--ink-faint); transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  background: var(--primary-container);
  border-color: var(--primary);
  color: var(--primary-deep);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.demo__log {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
  padding: 15px 22px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  transition: background .2s ease, transform .12s ease, opacity .2s ease;
}
.demo__log:hover { background: var(--primary-deep); }
.demo__log:disabled { opacity: .45; cursor: not-allowed; }
.demo__log.saved { background: var(--e-optimal); }

/* the mini timeline that fills as you log */
.demo__feed {
  background: var(--surface-2);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}
.demo__feed .label { margin: 0; }
.demo__feed-list { display: flex; flex-direction: column; gap: 10px; }
.feed-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-low);
  border: 1px solid var(--hairline-soft);
  animation: feed-in .4s ease both;
}
@keyframes feed-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.feed-item .e-dot { width: 11px; height: 11px; border-radius: 50%; margin-top: 5px; }
.feed-item__time { font-size: .72rem; color: var(--ink-soft); letter-spacing: .02em; }
.feed-item__body { font-size: .92rem; color: var(--ink); line-height: 1.4; }
.feed-item__body b { font-weight: 600; }
.demo__empty { font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }

/* energy-band swatches reused everywhere */
.e-optimal  { background: var(--e-optimal)  !important; }
.e-positive { background: var(--e-positive) !important; }
.e-neutral  { background: var(--e-neutral)  !important; }
.e-low      { background: var(--e-low)      !important; }
.e-lowest   { background: var(--e-lowest)   !important; }

/* ── features grid ───────────────────────────────────────── */
.features { border-top: 1px solid var(--hairline-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  padding: 30px 28px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.feature__icon {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--primary-container);
  color: var(--primary);
  margin-bottom: 20px;
}
.feature__icon svg { width: 23px; height: 23px; }
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.feature p { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--ink-soft); }

/* ── insights deep-dive ──────────────────────────────────── */
.insights { border-top: 1px solid var(--hairline-soft); }
.insights__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}
.insights__art { display: flex; justify-content: center; }
.insights__art .phone--lg { width: 286px; flex-basis: 286px; }
.insights__list { display: flex; flex-direction: column; gap: 16px; }
.insight-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 20px 22px;
  background: var(--surface-2);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.insight-row__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
}
.insight-row h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; margin: 0 0 4px; }
.insight-row p { margin: 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }

/* energy band legend */
.bands { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.band {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink);
}
.band .e-dot { width: 10px; height: 10px; border-radius: 50%; }
.band.b-optimal  { background: var(--e-optimal-s); }
.band.b-positive { background: var(--e-positive-s); }
.band.b-neutral  { background: var(--e-neutral-s); }
.band.b-low      { background: var(--e-low-s); }
.band.b-lowest   { background: var(--e-lowest-s); }

/* ── atmospheres (light & dark) ──────────────────────────── */
.atmospheres { border-top: 1px solid var(--hairline-soft); }
.atmospheres__panel {
  background: linear-gradient(155deg, #15433f 0%, #0e2c2a 60%, #0b2422 100%);
  border-radius: var(--radius-xl);
  padding: 56px clamp(28px, 4vw, 64px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.atmospheres__panel::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 380px at 14% 0%, rgba(172,205,201,.18), transparent 60%),
    radial-gradient(600px 360px at 96% 100%, rgba(247,188,102,.10), transparent 64%);
  pointer-events: none;
}
.atmospheres__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}
.atmospheres__copy { max-width: 460px; }
.atmospheres__copy .eyebrow { color: #accdc9; }
.atmospheres__copy .eyebrow::before { background: #accdc9; }
.atmospheres__copy h2 { color: #f0f3f1; margin-bottom: 18px; }
.atmospheres__copy p { color: #c1c8c6; font-size: 1.04rem; line-height: 1.6; margin: 0 0 16px; }
.atmospheres__copy .glow-list { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.atmospheres__copy .glow-list li {
  display: flex; align-items: center; gap: 11px;
  color: #d7ded9; font-size: .94rem;
}
.atmospheres__copy .glow-list .e-dot {
  width: 10px; height: 10px; border-radius: 50%;
  box-shadow: 0 0 12px 1px currentColor;
}
.atmospheres__phones { display: flex; gap: 20px; }
.atmospheres__phones .phone {
  background: linear-gradient(180deg, #2a2d31 0%, #131619 100%);
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.6);
}
.atmospheres__phones .phone--a { width: 224px; flex: 0 0 224px; transform: translateY(-14px) rotate(-3deg); }
.atmospheres__phones .phone--b { width: 224px; flex: 0 0 224px; transform: translateY(14px) rotate(3deg); }

/* ── Moments Plus (premium) ──────────────────────────────── */
.plus { border-top: 1px solid var(--hairline-soft); }
.plus__card {
  background:
    radial-gradient(700px 320px at 10% -10%, rgba(200,233,229,.6), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-xl);
  padding: 52px clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-card);
}
.plus__head {
  display: flex; align-items: center; gap: 18px; margin-bottom: 14px;
}
.plus__head .leaf {
  display: inline-grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--primary-container);
  color: var(--primary);
  box-shadow: 0 0 0 1px rgba(46,76,73,.25) inset;
}
.plus__head .leaf svg { width: 28px; height: 28px; }
.plus__head h2 { margin: 0; }
.plus__head p { margin: 2px 0 0; color: var(--ink-soft); }
.plus__note { color: var(--ink-soft); max-width: 60ch; margin: 6px 0 36px; }
.plus__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 20px;
  background: var(--surface-low);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}
.perk b { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; }
.perk span { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.plus__free {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px dashed var(--hairline);
  font-size: .96rem;
  color: var(--ink-soft);
}
.plus__free b { color: var(--primary); font-weight: 600; }

/* ── final CTA ───────────────────────────────────────────── */
.cta { text-align: center; border-top: 1px solid var(--hairline-soft); }
.cta .display { color: var(--primary); margin-bottom: 22px; line-height: 1.06; }
.cta .lede { margin: 0 auto 32px; }
.cta__row { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta__store {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; color: var(--ink-soft); margin-top: 20px;
  letter-spacing: .02em;
}

/* ── footer ──────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--hairline-soft);
  padding: 36px var(--margin);
  max-width: var(--container);
  margin: 0 auto;
}
.site-foot__row {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 18px; align-items: center;
}
.site-foot__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  font-size: 1.08rem;
  display: inline-flex; align-items: center; gap: 10px;
}
.site-foot__brand img { width: 26px; height: 26px; border-radius: 7px; }
.site-foot__meta { margin: 0; font-size: .82rem; color: var(--ink-soft); letter-spacing: .02em; }
.site-foot__meta a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: rgba(22,24,26,.25);
  text-underline-offset: 2px;
}
.site-foot__meta a:hover { color: var(--primary); }

/* ── legal pages (privacy / terms) ───────────────────────── */
.legal { max-width: 880px; margin: 0 auto; padding: 56px var(--margin) var(--section-gap); }
.legal__doc {
  background: var(--surface-2);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 56px clamp(28px, 5vw, 64px);
}
.legal__doc h1 { margin: 8px 0 14px; font-size: clamp(2.2rem, 4vw, 3rem); }
.legal__doc h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.42rem;
  color: var(--primary);
  margin: 44px 0 10px;
}
.legal__doc h2:first-of-type { margin-top: 36px; }
.legal__doc p { margin: 0 0 1em; color: var(--ink); line-height: 1.7; font-size: 1.02rem; }
.legal__doc .lede { color: var(--ink); margin-bottom: 28px; max-width: none; }
.legal__doc strong { font-weight: 600; color: var(--ink); }
.legal__doc a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(46,76,73,.4);
  text-underline-offset: 3px;
}
.legal__doc a:hover { text-decoration-color: var(--primary); }
.legal__doc ul { margin: 0 0 1.2em; padding-left: 1.2em; list-style: disc; }
.legal__doc ul li { margin: 0 0 .55em; line-height: 1.65; font-size: 1rem; }
.legal__doc ul li::marker { color: var(--primary); }
.legal__doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--surface-high);
  padding: 1px 6px;
  border-radius: 5px;
}
.legal__meta {
  font-size: .82rem; letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 32px !important;
}
.legal__back {
  margin: 48px 0 0 !important;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  font-size: .92rem;
}

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-gap: 84px; }
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero__art { min-height: 480px; }
  .demo { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .insights__grid { grid-template-columns: 1fr; gap: 44px; }
  .insights__art { order: -1; }
  .atmospheres__inner { grid-template-columns: 1fr; gap: 40px; }
  .atmospheres__phones { justify-content: center; }
  .plus__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --margin: 22px; --section-gap: 66px; }
  .site-nav { padding-top: 18px; flex-wrap: wrap; }
  .site-nav__links { gap: 16px; flex-wrap: wrap; }
  .site-nav__links a:not(.nav-cta) { display: none; }
  .hero__art { min-height: 440px; }
  .feature-grid { grid-template-columns: 1fr; }
  .screens__row { gap: 64px 24px; }
  .plus__grid { grid-template-columns: 1fr; }
  .demo { padding: 28px; }
  .legal__doc { padding: 36px 22px; }
  .atmospheres__phones .phone--a, .atmospheres__phones .phone--b { transform: none; }
  .atmospheres__panel { padding: 40px 24px; }
}
@media (max-width: 420px) {
  .brand-text__sub { display: none; }
  .atmospheres__phones { flex-direction: column; align-items: center; }
  .hero__phones .phone { width: 176px; flex-basis: 176px; }
  .hero__phone--light { margin-right: -60px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
