/* Mission Alarm — shared stylesheet. No external requests. */
:root {
  color-scheme: light;
  --accent: #EB5711;
  --accent-soft: #FFF3EC;
  --bg: #FFF9F4;
  --card: #FFFFFF;
  --border: #F0E7E0;
  --sep: #EAE0D6;
  --text: #1C1C1E;
  --text-2: #6B6560;
  --text-3: #9A938C;
  --glow-1: rgba(235, 87, 17, 0.14);
  --glow-2: rgba(235, 87, 17, 0.05);
  --font-display: ui-serif, "New York", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 22px;
  --shell-max: 1020px;
  --shadow: 0 1px 2px rgba(28, 28, 30, 0.04), 0 12px 32px rgba(28, 28, 30, 0.06);
  --shadow-lift: 0 2px 4px rgba(28, 28, 30, 0.05), 0 20px 44px rgba(28, 28, 30, 0.10);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
em { font-family: var(--font-display); font-style: italic; letter-spacing: 0; }
img { user-select: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--page-max, 1020px);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Site header (all pages) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--sep);
  background: var(--bg);
  transition: border-color 0.4s, box-shadow 0.4s;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
  }
}
.site-header.at-top { border-bottom-color: transparent; }
.site-header.scrolled {
  border-bottom-color: var(--sep);
  box-shadow: 0 8px 24px rgba(28, 28, 30, 0.04);
}
.site-header .inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.wordmark:hover { text-decoration: none; color: var(--accent); }
.wordmark img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex: none;
  align-self: center;
  box-shadow: 0 1px 3px rgba(28, 28, 30, 0.16);
}
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.site-nav a { color: var(--text-2); }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.nav-cta {
  color: #FFFFFF !important;
  background: var(--accent);
  border-radius: 999px;
  padding: 9px 16px;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 14px var(--glow-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px var(--glow-1); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 64px 56px;
}
/* dawn glow — pure CSS atmosphere, no assets */
.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -45%;
  height: 130%;
  background:
    radial-gradient(60% 55% at 50% 100%, var(--glow-1), transparent 70%),
    radial-gradient(90% 80% at 50% 110%, var(--glow-2), transparent 75%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
  text-align: center;
  justify-items: center;
}
.hero .eyebrow { justify-content: center; }
.hero h1 {
  font-size: clamp(48px, 11vw, 84px);
  margin-top: 16px;
  letter-spacing: -0.02em;
}
.hero .promise {
  font-size: clamp(20px, 4.6vw, 26px);
  color: var(--text-2);
  max-width: 21em;
  margin: 18px auto 0;
  line-height: 1.4;
}
.hero .promise em { color: var(--text); }
.hero-sub {
  margin: 18px auto 0;
  color: var(--text-2);
  max-width: 30em;
  font-size: 16.5px;
}

/* App Store badge (Apple's official artwork — never modified or recolored). */
.badge-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 34px;
}
.badge-slot {
  display: block;
  width: 172px;
  aspect-ratio: 120 / 40;
  border-radius: 9px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.badge-slot:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 12px 26px rgba(28, 28, 30, 0.18); }
.badge-slot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.badge-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

/* Mission teaser chips */
.mission-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.chip img { width: 15px; height: 15px; }
.chip:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
}

/* ---------- Phone mockups (illustrative, pure HTML/CSS) ---------- */
.hero-device { position: relative; }
.hero-device::before {
  content: "";
  position: absolute;
  inset: 8% -18% -6%;
  background: radial-gradient(50% 50% at 50% 60%, var(--glow-1), transparent 72%);
  pointer-events: none;
}
.phone {
  position: relative;
  width: min(310px, 82vw);
  aspect-ratio: 9 / 19.3;
  padding: 9px;
  border-radius: 52px;
  background: #17130F;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 2px 6px rgba(28, 28, 30, 0.2),
    0 34px 70px -18px rgba(120, 50, 10, 0.38);
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 43px;
  background: #FFF9F4;
  overflow: hidden;
}
/* dynamic island */
.phone-screen::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 21px;
  border-radius: 11px;
  background: #17130F;
  z-index: 6;
}

/* Screen typography */
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 52px 20px 20px; color: #1C1C1E; font-size: 13px; line-height: 1.45; }
.sc-top {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #9A938C;
  text-align: center;
}
.sc-serif { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; }
.sc-dim { color: #6B6560; }
.sc-cta {
  height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #FFFFFF;
  background: #EB5711;
  box-shadow: 0 10px 22px rgba(235, 87, 17, 0.3);
}
.sc-foot { text-align: center; font-size: 10.5px; color: #9A938C; margin-top: 10px; }
.sc-card {
  background: #FFFFFF;
  border: 1px solid #F0E7E0;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(28, 28, 30, 0.06);
  padding: 14px 16px;
}
.mchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #FFF3EC;
  border: 1px solid rgba(235, 87, 17, 0.35);
  color: #1C1C1E;
  font-size: 11.5px;
  font-weight: 600;
}
.mchip img { width: 13px; height: 13px; }
.tile {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #FFF3EC;
  border: 1px solid rgba(235, 87, 17, 0.25);
}
.tile img { width: 30px; height: 30px; }
.tgl { position: relative; width: 40px; height: 24px; border-radius: 999px; background: #EB5711; flex: none; }
.tgl::after { content: ""; position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(28, 28, 30, 0.3); }
.check {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #EB5711;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px rgba(235, 87, 17, 0.35);
}
.check::after {
  content: "";
  width: 22px;
  height: 11px;
  border-left: 3px solid #FFFFFF;
  border-bottom: 3px solid #FFFFFF;
  transform: translateY(-3px) rotate(-45deg);
}
.bar { width: 132px; height: 5px; border-radius: 999px; background: rgba(28, 28, 30, 0.12); overflow: hidden; }
.bar span { display: block; height: 100%; width: 66%; border-radius: 999px; background: #EB5711; }

/* Hero looping story: ringing → mission → silence */
.hs { justify-content: space-between; opacity: 0; }
.hs-1 { opacity: 1; }
.hs .clock { flex: 1; display: grid; place-items: center; align-content: center; gap: 14px; position: relative; }
.rings { position: absolute; left: 50%; top: 46%; width: 230px; height: 230px; transform: translate(-50%, -50%); pointer-events: none; }
.rings span {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(235, 87, 17, 0.55);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
}
.hs .time {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #1C1C1E;
}
.hs .mid { flex: 1; display: grid; justify-items: center; align-content: center; gap: 12px; text-align: center; }
.hs-2 .sc-serif { font-size: 24px; }
.hs-3 .sc-serif { font-size: 26px; }
.hs-3 .sc-card { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .hs { animation: hs-cycle 13.5s infinite; }
  .hs-1 { animation-delay: 0s; }
  .hs-2 { animation-delay: 4.5s; }
  .hs-3 { animation-delay: 9s; }
  @keyframes hs-cycle {
    0% { opacity: 0; transform: scale(0.985); }
    2.5% { opacity: 1; transform: none; }
    31.5% { opacity: 1; transform: none; }
    34.5% { opacity: 0; transform: scale(0.99); }
    100% { opacity: 0; }
  }
  .rings span { animation: ring-pulse 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) infinite; }
  .rings span:nth-child(2) { animation-delay: 0.8s; }
  .rings span:nth-child(3) { animation-delay: 1.6s; }
  @keyframes ring-pulse {
    0% { transform: scale(0.52); opacity: 0; }
    25% { opacity: 0.9; }
    100% { transform: scale(1.08); opacity: 0; }
  }
  .spin { animation: spin-hold 3.4s cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite; }
  @keyframes spin-hold {
    0% { transform: rotate(0deg); }
    38% { transform: rotate(180deg); }
    50% { transform: rotate(180deg); }
    88% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
  }
  .float { animation: float 7s ease-in-out infinite; }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
  }
  .hero::before {
    animation: sunrise 1.8s var(--ease) both, glow-breathe 9s ease-in-out 2s infinite alternate;
  }
  @keyframes sunrise {
    from { opacity: 0; transform: translateY(9%); }
    to { opacity: 1; transform: none; }
  }
  @keyframes glow-breathe {
    to { opacity: 0.65; }
  }
}

/* ---------- Keyword ticker ---------- */
.ticker {
  border-block: 1px solid var(--sep);
  overflow: hidden;
  background: var(--glow-2);
}
.ticker-track {
  display: flex;
  width: max-content;
  padding: 13px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-3);
  white-space: nowrap;
}
.ticker .tt { padding-right: 3.2em; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: tick 46s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  @keyframes tick {
    to { transform: translateX(-50%); }
  }
}

/* ---------- Sections ---------- */
section.band { padding-block: 64px; }
.rule { border: 0; border-top: 1px solid var(--sep); margin: 0; }

.section-head { max-width: 36em; }
.section-head h2 {
  font-size: clamp(32px, 7vw, 48px);
  margin-top: 14px;
}
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 18px; }

/* ---------- Missions ---------- */
.missions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}
.mission {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.mission:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.mission .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.mission .name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mission .name h3 { text-wrap: balance; }
.mission h3 { font-size: 24px; }
.tag {
  flex: none;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}
.tag.free {
  color: #FFFFFF;
  background: var(--accent);
  border-color: var(--accent);
}
.mission p { margin-top: 10px; color: var(--text-2); }
/* mission symbol — cream tile keeps the two-tone glyph legible */
.mission-icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #FFF9F4;
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease);
}
.mission:hover .mission-icon { transform: rotate(-8deg) scale(1.08); }
.mission-icon img {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
}
/* the free mission leads */
.mission.lead {
  background: linear-gradient(160deg, var(--card), var(--card)) padding-box,
    linear-gradient(160deg, var(--accent), var(--border) 60%) border-box;
  border-color: transparent;
}

/* ---------- Supporting features ---------- */
.features {
  margin: 28px 0 0;
  border-top: 1px solid var(--sep);
}
.features > div {
  display: grid;
  gap: 4px;
  padding: 24px 0;
  border-bottom: 1px solid var(--sep);
}
.features dt {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
}
.features dd { margin: 0; color: var(--text-2); max-width: 38em; }

/* ---------- How a morning goes ---------- */
.steps {
  display: grid;
  gap: 26px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.step::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow);
}
.step .when {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 6px;
}
.step h3 { font-size: 22px; }
.step p { margin-top: 6px; color: var(--text-2); max-width: 32em; }

/* ---------- Privacy statement band ---------- */
.privacy-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--sep);
  border-bottom: 1px solid var(--sep);
  background: var(--glow-2);
}
.privacy-band .inner {
  max-width: var(--page-max, 1020px);
  margin-inline: auto;
  padding: 60px 20px;
  text-align: center;
}
.privacy-band .eyebrow { justify-content: center; }
.privacy-band .eyebrow::after,
.hero .eyebrow::after,
.pro-card .eyebrow::after,
.cta-band .eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.privacy-band .statement {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 14px;
  max-width: 20em;
  margin-inline: auto;
  text-wrap: balance;
}
.privacy-band .sub {
  margin: 14px auto 0;
  color: var(--text-2);
  max-width: 34em;
}
.privacy-band .more { margin-top: 18px; font-size: 15px; }

/* ---------- Inside the app (HTML mockups) ---------- */
.gallery {
  display: flex;
  gap: 22px;
  margin-top: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery .phone {
  flex: 0 0 min(74vw, 280px);
  width: auto;
  scroll-snap-align: center;
}
.gallery .scr { position: absolute; }
.g-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.g-head .sc-serif { font-size: 24px; }
.g-date { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; color: #9A938C; }
.g-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; color: #9A938C; }
.g-time { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: #1C1C1E; }
.g-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.g-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.g-kv b { font-weight: 600; }
.g-kv .sc-dim { font-size: 12px; }
.g-streak { display: flex; align-items: center; gap: 12px; }
.g-streak .n { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1; color: #EB5711; }
.mrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid #F0E7E0;
  font-size: 12px;
  font-weight: 600;
}
.mrow .mini {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #FFF3EC;
  flex: none;
}
.mrow .mini img { width: 14px; height: 14px; }
.mrow .stag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: #9A938C;
  border: 1px solid #F0E7E0;
  border-radius: 999px;
  padding: 2px 7px;
}
.mrow .stag.free { color: #FFFFFF; background: #EB5711; border-color: #EB5711; }
.mrow.on { border-color: rgba(235, 87, 17, 0.5); background: #FFF3EC; }

.swipe-hint {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.swipe-hint::after { content: "→"; font-family: var(--font-body); font-size: 13px; }

/* ---------- Pro ---------- */
.pro-band { position: relative; }
.pro-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: 44px 26px;
}
.pro-card::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  height: 70%;
  background: radial-gradient(55% 90% at 50% 0%, var(--glow-1), transparent 75%);
  pointer-events: none;
}
.pro-card > * { position: relative; }
.pro-card .grid { display: grid; gap: 36px; position: relative; }
.pro-card h2 { font-size: clamp(30px, 7vw, 44px); margin-top: 14px; }
.pro-card p { margin: 16px 0 0; color: var(--text-2); max-width: 32em; }
.pro-card p em { color: var(--text); }
.pro-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  align-content: center;
}
.pro-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 15.5px;
}
.pro-list .mission-icon { width: 30px; height: 30px; border-radius: 9px; }
.pro-list .mission-icon img { width: 17px; height: 17px; }
.pro-list .inc {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.pro-list li.freebie { border-style: dashed; font-weight: 500; color: var(--text-2); background: transparent; }
.pro-list li.freebie .inc { color: var(--text-3); }
/* Subscription management line */
.manage {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-3);
}

/* ---------- Closing CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: 88px 96px;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -20% -50%;
  height: 120%;
  background: radial-gradient(55% 55% at 50% 100%, var(--glow-1), transparent 72%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band .eyebrow { justify-content: center; }
.cta-band h2 {
  font-size: clamp(34px, 8vw, 60px);
  margin: 16px auto 0;
  max-width: 14em;
  letter-spacing: -0.02em;
}
.cta-band .badge-wrap { margin-top: 36px; }

/* ---------- Site footer (all pages) ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--sep);
  background: var(--bg);
  color: var(--text-2);
  font-size: 15px;
}
.site-footer .inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 44px 20px 56px;
}
.site-footer .top { display: grid; gap: 26px; }
.site-footer .mark { display: grid; gap: 8px; }
.site-footer .mark p { color: var(--text-3); font-size: 14px; max-width: 24em; }
.site-footer nav { display: grid; gap: 10px; font-size: 15px; }
.site-footer .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--accent); }
.site-footer nav a[aria-current="page"] { color: var(--text-3); }
.site-footer .bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--sep);
  color: var(--text-3);
  font-size: 13.5px;
}
.site-footer .bottom .said { font-family: var(--font-display); font-style: italic; }

/* ---------- Load reveal (hero) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.9s var(--ease) forwards;
  }
  .r1 { animation-delay: 0.05s; }
  .r2 { animation-delay: 0.14s; }
  .r3 { animation-delay: 0.26s; }
  .r4 { animation-delay: 0.38s; }
  .r5 { animation-delay: 0.5s; }
  .r6 { animation-delay: 0.4s; }
  .r7 { animation-delay: 0.75s; }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Scroll reveal (IntersectionObserver adds .in; works everywhere incl. Safari) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.io-on .io {
    opacity: 0;
    transform: translateY(20px);
  }
  html.io-on .io.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
}

/* ---------- Document pages ---------- */
.doc-page {
  --page-max: var(--shell-max);
  position: relative;
}
/* faint dawn glow behind the document header */
.doc-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 240px;
  background: radial-gradient(60% 120% at 50% 0%, var(--glow-2), transparent 75%);
  pointer-events: none;
}
.doc {
  position: relative;
  max-width: var(--page-max);
  padding: 56px 20px 72px;
  margin-inline: auto;
}
.doc .eyebrow { margin-bottom: 18px; }
.doc h1 { font-size: clamp(40px, 10vw, 64px); letter-spacing: -0.02em; }
.doc .updated {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 13px;
  font-family: var(--font-mono);
}
.doc .lede {
  margin-top: 28px;
  color: var(--text-2);
  font-size: clamp(19px, 4.4vw, 22px);
  font-family: var(--font-display);
  line-height: 1.45;
  max-width: 26em;
}
.doc .back { margin-top: 32px; font-size: 15px; }
.notfound .doc { min-height: 58vh; }
.doc section {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--sep);
  margin-top: 44px;
  padding-top: 36px;
}
.doc h2 { font-size: clamp(26px, 6vw, 32px); }
.doc section p { margin-top: 12px; max-width: 60ch; }
.doc section p + p { margin-top: 12px; }
.doc .tk, .doc .contact-card { max-width: 60ch; }
@media (min-width: 860px) {
  .doc section { grid-template-columns: 88px minmax(0, 1fr); gap: 0 24px; align-items: start; }
  .doc section .n { grid-row: 1 / span 9; padding-top: 6px; }
}
.doc section .n {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--text-3);
}

/* Clearly-marked placeholder copy — replaced by real text later */
.tk {
  border: 1px dashed var(--sep);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Support contact card */
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  margin-top: 16px;
}
.contact-card .mail {
  font-family: var(--font-display);
  font-size: clamp(19px, 4.6vw, 24px);
  font-weight: 600;
  word-break: break-all;
}
.contact-card .hint { margin-top: 10px; color: var(--text-2); font-size: 15px; }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  .site-footer .top {
    grid-template-columns: 1fr auto auto;
    gap: 48px;
    align-items: start;
  }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step { grid-template-columns: 1fr; gap: 14px; align-content: start; }
  .privacy-band .inner { padding: 84px 20px; }
  .swipe-hint { display: none; }
  section.band { padding-block: 84px; }
  .missions { grid-template-columns: 1fr 1fr; gap: 16px; }
  .gallery { overflow: visible; justify-content: center; }
  .gallery .phone { flex: 0 1 280px; }
  .gallery .phone:nth-child(2) { margin-top: 26px; margin-bottom: -26px; }
  .pro-card { padding: 56px 48px; }
}
@media (min-width: 900px) {
  .missions { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-block: 88px 72px; }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    justify-items: stretch;
    gap: 40px;
  }
  .hero h1 { font-size: clamp(48px, 6.4vw, 76px); }
  .hero-device { justify-self: center; }
  .mission-chips { justify-content: center; margin-top: 64px; }
  .pro-card .grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}
