/* MemoriesIQ marketing site.
   Deliberately hand-written and dependency-free: this page exists to convert
   paid-ad clicks, so first paint matters more than authoring convenience. No
   framework, no webfont request, no build step — and no image files either:
   every illustration on the page is CSS and inline SVG, so the whole site is
   two requests with nothing left to download.

   Versioned filename because hosting serves stylesheets `immutable` for a
   year; a new look needs a new URL. */

:root {
  --sage: #40835a;
  --sage-deep: #2f6647;
  --sage-light: #83be9b;
  --sage-mist: #d8eee0;
  /* Accent, reserved for milestones — the same rule the app follows. */
  --gold: #c08a2c;
  /* Text and icons sitting on a --sage fill. A token rather than a literal
     because white fails contrast on the lighter sage the dark theme uses. */
  --on-brand: #ffffff;
  --ink: #14201a;
  --body: #4a5a50;
  --bg: #ffffff;
  --surface: #f5f9f6;
  --surface-2: #e7f2ea;
  --border: #e1eae4;
  /* The ground the capture and recall screens paint themselves on. Dark by
     design in either theme, so this pair sits outside the light/dark split. */
  --immersive-top: #1a3627;
  --immersive-bottom: #080f0b;
  --radius: 16px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* The brand colours flip too — #40835a on a near-black ground is about
       2.4:1, so every accent-coloured word would fade out. */
    --sage: #83be9b;
    --sage-deep: #40835a;
    --gold: #e0b457;
    --on-brand: #14201a;
    --ink: #eaf2ec;
    --body: #a7bcae;
    --bg: #0f1613;
    --surface: #18211c;
    --surface-2: #1a2922;
    --border: #26332b;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.022em;
}

h1 {
  font-size: clamp(2.2rem, 6.2vw, 3.6rem);
}
h2 {
  font-size: clamp(1.65rem, 4vw, 2.3rem);
}
h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--sage);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* -- header ---------------------------------------------------------- */

header {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1rem;
}

/* The app icon itself, inlined rather than linked so the site keeps its
   two-request budget. Regenerate with tools/branding/generate_icons.py — the
   same script writes the launcher and web icons from this geometry, so the
   header, the favicon and the Play listing can never drift apart. */
.mark {
  width: 30px;
  height: 30px;
  border-radius: 22.5%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0.75' y2='1'%3E%3Cstop offset='0' stop-color='%234f9a6c'/%3E%3Cstop offset='0.46' stop-color='%2340835a'/%3E%3Cstop offset='1' stop-color='%232b5c40'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='14.4000' fill='url(%23g)'/%3E%3Ccircle cx='32.0000' cy='32.0000' r='16.2688' fill='none' stroke='%23ffffff' stroke-width='2.9760'/%3E%3Ccircle cx='32.0000' cy='32.0000' r='11.1104' fill='none' stroke='%23f0cb85' stroke-width='2.9760'/%3E%3Ccircle cx='32.0000' cy='32.0000' r='3.5712' fill='%23ffffff'/%3E%3C/svg%3E") center / contain no-repeat;
  flex: none;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--body);
  text-decoration: none;
}

.nav a:hover {
  color: var(--sage);
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }
}

/* -- hero ------------------------------------------------------------
   Full-bleed and dark, because it is the app's own capture ground. The
   emotional claim lands harder against the colour someone will actually
   be sitting inside while they record. */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 72% 18%, rgba(64, 131, 90, 0.5), transparent 62%),
    radial-gradient(120% 100% at 20% 0%, var(--immersive-top), var(--immersive-bottom) 72%);
  color: #d6e5da;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 92px 0 96px;
}

.hero h1 {
  /* Not pure white: the rotating line below is, and it has to be able to out-shine
     the headline to earn the eye. A headline this size can give up that much
     luminance and still land at roughly 12:1 on the immersive ground. */
  color: #e9f1eb;
  font-size: clamp(2rem, 4.7vw, 3rem);
  margin-bottom: 0.55em;
}

/* The two words the whole promise turns on. Gold rather than the --gold token
   because the hero is dark in both themes, and the light-theme token (#c08a2c)
   is too dark to read against it — this is the app's goldLight instead. */
.hero h1 em {
  color: #e0b457;
  font-style: normal;
}

.hero .lead {
  font-size: clamp(1.06rem, 2.1vw, 1.24rem);
  max-width: 46ch;
  color: #c3d6c9;
  margin-bottom: 1.9rem;
}

.hero .lead em {
  color: #fff;
  font-style: normal;
  font-weight: 600;
}

/* The rotating hero lines: one visible at a time, five seconds each, on a 20s
   loop. Stacked into a single grid cell rather than positioned absolutely, so
   the block is always as tall as its longest line and nothing below it shifts
   as the lines swap — the jump is what makes rotators feel cheap. */
.rotator {
  display: grid;
  max-width: 34ch;
  margin: 0 0 1.6rem;
  font-size: clamp(1.1rem, 2.3vw, 1.42rem);
  line-height: 1.4;
  font-weight: 600;
  /* The brightest thing in the hero, headline included. The glow is what sells
     the extra step: pure white is already the ceiling, so luminance has to come
     from bloom rather than from a lighter value. */
  color: #ffffff;
  text-shadow: 0 0 26px rgba(131, 190, 155, 0.42);
}

.rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  animation: rotate-line 20s ease-in-out infinite;
}

.rotator > span:nth-child(2) {
  animation-delay: 5s;
}
.rotator > span:nth-child(3) {
  animation-delay: 10s;
}
.rotator > span:nth-child(4) {
  animation-delay: 15s;
}

@keyframes rotate-line {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  3% {
    opacity: 1;
    transform: translateY(0);
  }
  25% {
    opacity: 1;
    transform: translateY(0);
  }
  28% {
    opacity: 0;
    transform: translateY(-12px);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-light);
  background: rgba(131, 190, 155, 0.12);
  border: 1px solid rgba(131, 190, 155, 0.28);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage-light);
  animation: blink 2.6s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sage);
  color: var(--on-brand);
  text-decoration: none;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
}

.hero .cta {
  background: linear-gradient(135deg, #4e9a6b, #2f6647);
  color: #fff;
  box-shadow: 0 14px 34px -12px rgba(64, 131, 90, 0.9);
}

.cta:hover {
  background: var(--sage-deep);
}

.hero .cta:hover {
  background: linear-gradient(135deg, #5aab79, #37764f);
}

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c3d6c9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  border-bottom: 1px solid rgba(195, 214, 201, 0.35);
  padding-bottom: 2px;
}

.cta-ghost:hover {
  color: #fff;
}

.cta-note {
  display: block;
  margin-top: 18px;
  font-size: 0.9rem;
  color: #9db3a4;
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Dated fragments drifting around the phone: the memories the app is
   already holding, waiting to be asked for. */
.mote {
  position: absolute;
  border: 1px solid rgba(131, 190, 155, 0.24);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #dbe8de;
  max-width: 200px;
  animation: drift 9s ease-in-out infinite;
  z-index: 5;
  background: rgba(23, 40, 30, 0.82);
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.85);
}

.mote b {
  display: block;
  color: var(--sage-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.mote-1 {
  top: 5%;
  left: -8%;
  animation-delay: -1s;
}
.mote-2 {
  top: 46%;
  right: -4%;
  animation-delay: -4s;
}
.mote-3 {
  bottom: 8%;
  left: 2%;
  animation-delay: -6.5s;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-11px);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 64px 0 76px;
    text-align: center;
  }
  .hero .lead,
  .rotator {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-row {
    justify-content: center;
  }
  .mote-1 {
    left: -1%;
  }
  .mote-2 {
    right: -1%;
  }
  .mote-3 {
    left: 1%;
  }
}

@media (max-width: 600px) {
  .mote {
    display: none;
  }
}

/* -- the device kit ---------------------------------------------------
   A hand-built phone. Every screen inside it is real markup rather than a
   screenshot, so it stays sharp at any density, follows the visitor's
   theme, and costs nothing to download. */

.phone {
  width: 292px;
  flex: none;
  aspect-ratio: 9 / 18.6;
  border-radius: 40px;
  padding: 9px;
  background: linear-gradient(160deg, #2c3a32, #0c120e);
  box-shadow:
    0 40px 80px -26px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 3;
}

.phone::after {
  /* Speaker slot. */
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 4;
}

.screen {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 34px 16px 16px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.screen-dark {
  background: radial-gradient(
    120% 80% at 50% 14%,
    var(--immersive-top),
    var(--immersive-bottom) 74%
  );
  color: #fff;
}

.screen-light {
  background: var(--surface);
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  .screen-light {
    background: #141c17;
  }
}

.screen-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.screen-dark .screen-title {
  color: #fff;
}

/* Write / Speak segmented control, as it sits at the top of the app. */
.seg {
  display: flex;
  align-self: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  margin-bottom: 16px;
}

.seg span {
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.seg span.on {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.pillrow {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  white-space: nowrap;
}

.screen-light .pill {
  background: var(--surface-2);
  color: var(--sage-deep);
}

@media (prefers-color-scheme: dark) {
  .screen-light .pill {
    color: var(--sage);
  }
}

/* The compose field of Write mode. */
.compose {
  flex: 1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  padding: 13px;
  color: #e7f0e9;
  font-size: 0.79rem;
  position: relative;
}

.compose .caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  background: var(--sage-light);
  vertical-align: -0.14em;
  margin-left: 1px;
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.compose .count {
  position: absolute;
  right: 12px;
  bottom: 9px;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.42);
}

.save-btn {
  margin-top: 12px;
  text-align: center;
  padding: 11px;
  border-radius: 12px;
  background: var(--sage);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
}

/* The mic button and the AI orb, both built from the app's hero wash. */
.orb {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at 34% 28%,
    var(--sage-mist),
    var(--sage) 52%,
    var(--sage-deep)
  );
  box-shadow: 0 0 46px -4px rgba(64, 131, 90, 0.75);
  position: relative;
  flex: none;
}

.orb svg {
  width: 38px;
  height: 38px;
  fill: #fff;
}

.orb::before,
.orb::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(131, 190, 155, 0.55);
  animation: halo 2.9s ease-out infinite;
}

.orb::after {
  animation-delay: -1.45s;
}

@keyframes halo {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

/* Live waveform. Every bar gets its own delay so it reads as a voice
   rather than as a loading spinner. */
.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 42px;
}

.wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--sage-light);
  height: 30%;
  animation: bar 1.1s ease-in-out infinite;
}

@keyframes bar {
  0%,
  100% {
    height: 22%;
    opacity: 0.55;
  }
  50% {
    height: 92%;
    opacity: 1;
  }
}

/* Chat bubbles for the recall screen. */
.bubble {
  border-radius: 14px;
  padding: 10px 13px;
  margin-bottom: 9px;
  font-size: 0.76rem;
  line-height: 1.5;
  max-width: 90%;
}

.bubble.me {
  margin-left: auto;
  background: var(--sage);
  color: #fff;
  border-bottom-right-radius: 5px;
}

@media (prefers-color-scheme: dark) {
  .bubble.me {
    color: var(--on-brand);
  }
}

.bubble.ai {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
}

@media (prefers-color-scheme: dark) {
  .bubble.ai {
    background: var(--surface);
  }
}

.cites {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.cite {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--sage-deep);
}

@media (prefers-color-scheme: dark) {
  .cite {
    background: rgba(131, 190, 155, 0.15);
    color: var(--sage);
  }
}

/* Memory cards in the feed. */
.memcard {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 11px 13px;
  margin-bottom: 9px;
  position: relative;
}

.memcard .when {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 3px;
}

.memcard .what {
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.45;
}

.memcard.starred {
  border-color: rgba(192, 138, 44, 0.45);
  background: linear-gradient(135deg, rgba(224, 180, 87, 0.14), transparent 60%);
}

.star {
  position: absolute;
  top: 9px;
  right: 11px;
  color: var(--gold);
  font-size: 0.85rem;
}

/* Themed-insight card, the shape the Insights screen returns. */
.themes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}

.theme {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--sage-deep);
  border: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .theme {
    color: var(--sage);
  }
}

/* -- alternating feature showcases ----------------------------------- */

.showcase {
  padding: 78px 0;
  border-top: 1px solid var(--border);
}

.showcase.tint {
  background: var(--surface);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.showcase.flip .showcase-art {
  order: 1;
}

.showcase-art {
  display: flex;
  justify-content: center;
  position: relative;
}

.showcase-copy h2 {
  margin-bottom: 0.4em;
}

.showcase-copy .lead {
  font-size: 1.08rem;
  max-width: 46ch;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.98rem;
}

.ticks svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  stroke: var(--sage);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ticks b {
  color: var(--ink);
}

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .showcase.flip .showcase-art {
    order: 0;
  }
  .showcase-copy {
    text-align: center;
  }
  .showcase-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .ticks {
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
}

/* -- the forgetting panel --------------------------------------------
   Two versions of the same evening, side by side. On the left, what a year
   does to it: the words physically fade out of the sentence. */

.fade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
}

.fade-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  background: var(--bg);
}

.fade-panel.kept {
  border-color: rgba(64, 131, 90, 0.4);
  background: linear-gradient(160deg, var(--surface-2), var(--bg) 70%);
}

.fade-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: 14px;
}

.fade-panel.kept .fade-label {
  color: var(--sage);
}

.quote {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

.quote .g1 {
  opacity: 0.5;
}
.quote .g2 {
  opacity: 0.26;
}
.quote .g3 {
  opacity: 0.11;
}

.fade-foot {
  margin: 20px 0 0;
  font-size: 0.93rem;
  color: var(--body);
}

.fade-panel.kept .fade-foot {
  color: var(--ink);
}

@media (max-width: 760px) {
  .fade-grid {
    grid-template-columns: 1fr;
  }
}

/* -- sections, cards, steps ------------------------------------------ */

section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 48ch;
  margin-bottom: 40px;
}

.section-head.mid {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.showcase.tint .card {
  background: var(--bg);
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p:last-child {
  margin-bottom: 0;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  margin-bottom: 16px;
}

.icon svg {
  width: 21px;
  height: 21px;
  stroke: var(--sage);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 28px;
  border-top: 2px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -17px;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: var(--on-brand);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 0 0 5px var(--bg);
}

.step h3 {
  margin-bottom: 0.35em;
}

.step p:last-child {
  margin-bottom: 0;
}

/* -- privacy band ---------------------------------------------------- */

.vault {
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(64, 131, 90, 0.42), transparent 62%),
    linear-gradient(180deg, var(--immersive-top), var(--immersive-bottom));
  color: #c3d6c9;
  border-top: none;
}

.vault h2,
.vault h3 {
  color: #fff;
}

.vault .section-head p {
  color: #c3d6c9;
}

.vault .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.11);
  color: #c3d6c9;
}

.vault .icon {
  background: rgba(131, 190, 155, 0.16);
}

.vault .icon svg {
  stroke: var(--sage-light);
}

.vault a {
  color: var(--sage-light);
}

/* Four cards on a three-column grid orphan the fourth. Two-up stays even. */
.vault .grid {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.vow {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  border: 1px solid rgba(131, 190, 155, 0.3);
  background: rgba(131, 190, 155, 0.08);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 40px;
  font-size: 1.1rem;
  line-height: 1.55;
  color: #e3efe7;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.vow p {
  margin: 0;
}

.vow strong {
  color: #fff;
}

.vow svg {
  width: 34px;
  height: 34px;
  flex: none;
  stroke: var(--sage-light);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* -- faq ------------------------------------------------------------- */

details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--sage);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
}

details[open] summary::after {
  content: "\2212";
}

details p {
  margin: 12px 0 0;
}

/* -- closing cta ----------------------------------------------------- */

.close-cta {
  text-align: center;
  background: var(--surface);
}

.close-cta .wrap {
  max-width: 46ch;
}

/* -- footer ---------------------------------------------------------- */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  font-size: 0.92rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  justify-content: space-between;
  align-items: center;
}

/* The parent company gets an underline the other footer links do not: it is the
   only one that leaves the site, and it is a claim about who is behind the app
   rather than a utility link. */
.foot .parent {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

.foot .parent:hover {
  text-decoration-color: var(--sage);
}

.foot nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.foot a {
  color: var(--body);
  text-decoration: none;
}

.foot a:hover {
  color: var(--sage);
}

/* -- legal pages ----------------------------------------------------- */

.legal {
  padding: 56px 0 72px;
  max-width: 72ch;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li {
  margin-bottom: 0.5em;
}

.updated {
  color: var(--body);
  font-size: 0.92rem;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--sage);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* -- store badges -----------------------------------------------------
   Placeholders, not links: neither store listing exists yet. Rendered as
   spans so a click does nothing and nothing lands in the tab order — a
   disabled anchor still takes focus and still looks tappable, which is a
   worse lie than a badge that plainly says "coming soon". */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px 9px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.2;
  cursor: default;
}

.store svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}

.store b {
  display: block;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.store small {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.72;
  font-weight: 600;
}

/* On the hero's dark ground the light tokens do not apply. */
.hero .store {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.hero .store small {
  opacity: 0.66;
}

/* -- pricing ----------------------------------------------------------
   A comparison table, so the rows that are identical across both plans read
   as identical at a glance. The premium column is tinted for its whole height
   rather than boxed, which keeps the row rhythm unbroken — a card would cut
   every feature line in half. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Below roughly 620px the three columns cannot hold their content, so the
   table scrolls inside this rather than the page scrolling sideways. */
.plan-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Swiping the table must not hand the gesture back to the browser as a
     back-navigation once it hits the end. */
  overscroll-behavior-x: contain;
}

.plan-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  text-align: left;
}

.plan-table th,
.plan-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.plan-table tbody th {
  font-weight: 400;
  color: var(--ink);
  font-size: 0.96rem;
  width: 52%;
}

/* Both plan columns are fixed and centred so the ticks line up in two clean
   vertical runs; the eye scans those columns, not the prose. */
.plan-cell,
.col-plan {
  width: 24%;
  text-align: center;
}

.plan-table .paid {
  background: var(--surface);
}

/* -- the header row -- */

.plan-table thead th {
  border-bottom: 2px solid var(--border);
  padding-bottom: 20px;
}

.plan-table thead .paid {
  border-bottom-color: var(--sage);
  border-radius: var(--radius) var(--radius) 0 0;
}

.col-name {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage);
}

.plan-table thead .paid .col-name {
  /* Gold reads as premium, but #c08a2c only clears 3.4:1 as text — so it
     becomes the chip and the ink goes near-black. That literal has to sit on
     --gold in both themes, and every token that is dark in one is light in the
     other. */
  display: inline-block;
  color: #1a1305;
  background: var(--gold);
  padding: 3px 11px;
  border-radius: 999px;
}

.col-price {
  display: block;
  margin-top: 10px;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.col-per {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--body);
}

/* -- the cells -- */

.plan-table .yes svg {
  width: 21px;
  height: 21px;
  stroke: var(--sage);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-table .val {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}

.soon-chip {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body);
  border: 1px dashed var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

/* On a phone the table still scrolls, but it should not have to scroll far:
   everything that can give up width does, so the swipe is a nudge rather than
   a journey. The feature column keeps the most because it is the only column
   with prose in it. */
@media (max-width: 620px) {
  .plan-table {
    min-width: 430px;
  }
  .plan-table th,
  .plan-table td {
    padding: 12px 10px;
  }
  .plan-table tbody th {
    font-size: 0.87rem;
    width: 46%;
  }
  .col-price {
    font-size: 1.5rem;
  }
  .col-per {
    font-size: 0.7rem;
  }
}

/* -- the closing row -- */

.plan-table tfoot td {
  border-bottom: none;
  padding-top: 22px;
}

.plan-table tfoot .paid {
  border-radius: 0 0 var(--radius) var(--radius);
}

.plan-cta {
  display: block;
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px dashed var(--sage);
  color: var(--sage);
  cursor: default;
}

/* The closing CTA paints itself on --surface, which is also the badge's own
   fill — without this the badges would show as bare outlines there. */
.close-cta .store {
  background: var(--bg);
}

.plan-foot {
  max-width: 62ch;
  margin: 30px auto 0;
  text-align: center;
  font-size: 0.92rem;
}

/* -- motion opt-out ---------------------------------------------------
   Everything above animates for feel, never for meaning, so switching it
   all off costs the page nothing. */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .wave i {
    height: 58%;
  }
  .rotator > span:first-child {
    opacity: 1;
  }
}
