:root {
  --background: #F8EFE7;
  --surface: #FFF8F0;
  --surface-selected: #F1E6DC;
  --foreground: #382A26;
  --muted: #806963;
  --border: #E8DDD5;
  --border-strong: #D9CBC0;
  --primary: #B96F62;
  --primary-deep: #A0574B;
  --primary-fg: #FFF8F0;
  --primary-strong: #A0574B;
  --primary-soft: rgba(185, 111, 98, 0.10);
  --peach: #DDA487;
  --gold: #D4A45C;
  --success: #55744F;

  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #231B18;
    --surface: #2C2320;
    --surface-selected: #372C28;
    --foreground: #F3EAE2;
    --muted: #B3A197;
    --border: #3B302B;
    --border-strong: #4A3D37;
    --primary: #BF7568;
    --primary-deep: #CF8B7E;
    --primary-fg: #231B18;
    --primary-strong: #E0A094;
    --primary-soft: rgba(207, 139, 126, 0.14);
    --success: #8FAF89;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary-strong); }

.wrap {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.masthead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 32px 0 0;
}

.masthead img { width: 40px; height: auto; }

.masthead span {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1;
  padding-top: 3px;
}


h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 9vw, 60px);
  line-height: 1.1;
  margin: 0 0 20px;
}

/* ============================================================
   Landing page (index.html). The privacy and delete-account
   pages use only the shared rules above and the footer below.
   ============================================================ */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 0;
}

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

.brand img { width: 40px; height: auto; }

.brand span {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1;
  padding-top: 3px;
}

.topbar-cta {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--primary-strong);
  background: var(--primary-soft);
  padding: 9px 16px;
  border-radius: 999px;
}

.topbar-cta:hover { background: var(--surface-selected); }

/* ---------- hero ---------- */

.hero {
  padding: 64px 0 0;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 15px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  margin: 0 0 24px;
}

.hero h1 {
  font-size: clamp(42px, 8vw, 72px);
  margin: 0 auto 20px;
  max-width: 12em;
}

.lede {
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto;
  max-width: 34em;
}

/* ---------- store badges ----------
   Each store's own badge, unmodified (see the comment at the top of
   index.html). Google's PNG carries its required clear space as transparent
   padding, so the visible badge is about 70% of the image's height. */

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 4px;
  margin-top: 26px;
}

.play-badge,
.app-store-badge { display: inline-block; line-height: 0; }
/* Google's PNG is mostly clear space: at 80px its visible badge is about 54px,
   the height Apple's badge is given so the two read as a matched pair. Apple
   asks for clear space of a quarter of its height around it. */
.play-badge img { height: 80px; width: auto; }
.app-store-badge { padding: 13px; }
.app-store-badge img { height: 54px; width: auto; }

/* ---------- film ---------- */

.film {
  position: relative;
  margin: 48px auto 0;
  max-width: 1040px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #FDF7ED; /* the film's own ground, so the poster never flashes */
  box-shadow: 0 24px 60px -30px rgba(90, 60, 45, .45);
}

.film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* The vertical cut (see the <source media> in index.html). */
@media (max-width: 600px) {
  .film { margin-top: 40px; border-radius: 20px; }
  .film video { aspect-ratio: 9 / 16; }
}

.film-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(56, 42, 38, .55);
  color: #FFF8F0;
  cursor: pointer;
}

.film-toggle svg { width: 18px; height: 18px; }
.film-toggle .i-play,
.film-toggle.is-paused .i-pause { display: none; }
.film-toggle.is-paused .i-play { display: block; }

/* ---------- section headings ---------- */

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.15;
  margin: 0;
}

.section-lede {
  color: var(--muted);
  font-size: 18px;
  margin: 14px auto 0;
  max-width: 34em;
}

/* ---------- features ---------- */

.features {
  padding: 112px 0 0;
  text-align: center;
}

.feature-grid {
  display: grid;
  gap: 16px;
  margin-top: 48px;
  text-align: left;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px 24px;
}

.feature svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
  margin-bottom: 16px;
}

.feature h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- screenshots ---------- */

.screens { padding: 112px 0 0; }

.screens-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.screens-nav { display: flex; gap: 8px; }

.screens-nav button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--foreground);
  cursor: pointer;
}

.screens-nav button:disabled { opacity: .35; cursor: default; }
.screens-nav svg { width: 20px; height: 20px; }

.screen-strip {
  list-style: none;
  margin: 32px -20px 0;
  padding: 0 20px 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(68vw, 260px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scrollbar-width: none;
}

.screen-strip::-webkit-scrollbar { display: none; }

.screen-strip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 12px;
}

.screen-strip li { scroll-snap-align: start; }

.screen-strip img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -28px rgba(90, 60, 45, .5);
}

.screen-strip p {
  margin: 14px 4px 0;
  font-size: 16px;
  font-weight: 600;
}

/* ---------- privacy ---------- */

.privacy-band {
  margin: 112px 0 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
}

.privacy-band svg {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--primary);
  margin-top: 2px;
}

.privacy-band h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 6px;
}

.privacy-band p { margin: 0; color: var(--muted); }
.privacy-band a { font-weight: 600; white-space: nowrap; }

/* ---------- download ---------- */

.download {
  padding: 112px 0 0;
  text-align: center;
}

.download > img { width: 64px; height: auto; margin: 0 auto 20px; }

.download h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 0 10px;
}

.download p { margin: 0; color: var(--muted); font-size: 18px; }

/* ---------- landing footer ---------- */

.site-footer { margin-top: 112px; }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- top navigation ---------- */

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav a:not(.topbar-cta) {
  color: var(--foreground);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
}

.topnav a:not(.topbar-cta):hover,
.topnav a[aria-current="page"] { background: var(--surface-selected); }

@media (max-width: 480px) {
  .topnav a[href$="#features"] { display: none; } /* keep the bar to one line */
}

/* ---------- pricing ---------- */

.pricing-hero {
  padding: 64px 0 0;
  text-align: center;
}

.pricing-hero h1 {
  font-size: clamp(38px, 7vw, 60px);
  margin: 0 auto 18px;
  max-width: 13em;
}

.plans {
  display: grid;
  gap: 20px;
  margin: 48px auto 0;
  max-width: 880px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px 28px;
}

.plan-pro {
  background: var(--primary-soft);
  border-color: var(--primary);
  box-shadow: 0 24px 50px -34px rgba(160, 87, 75, .55);
}

.plan h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  margin: 0;
}

.price {
  margin: 10px 0 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price b {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
}

.price span { color: var(--muted); font-weight: 600; }

.plan-note { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.checks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.checks b { font-weight: 700; }

.terms {
  list-style: none;
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border-strong);
  display: grid;
  gap: 14px;
}

.terms li { display: grid; gap: 2px; }
.terms b { font-weight: 700; font-size: 17px; }
.terms small { color: var(--muted); font-size: 14px; }

.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #6B4A12;
  background: rgba(212, 164, 92, .28); /* the one gold detail, as on the paywall */
}

.lifetime { max-width: 880px; margin: 40px auto 0; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 20px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

.lifetime-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px 28px;
}

.lifetime-card > div { flex: 1 1 360px; }

.lifetime-card h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 6px;
}

.lifetime-card p { margin: 0; color: var(--muted); font-size: 16px; }

.lifetime-card .lifetime-cta {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.lifetime-cta small { font-size: 13px; }
.lifetime-card .price { margin: 0; flex-direction: column; align-items: flex-end; gap: 2px; }
.lifetime-card .price b { font-size: 40px; color: var(--foreground); }

@media (max-width: 600px) {
  .lifetime-card .price { align-items: flex-start; }
}

.price-fine {
  max-width: 880px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.faq { max-width: 760px; margin: 104px auto 0; }
.faq .section-title { text-align: center; margin-bottom: 28px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  position: relative;
  font-weight: 700;
  font-size: 18px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 24px;
  font-weight: 400;
  color: var(--primary);
  transition: transform 180ms var(--ease-out, ease-out);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 0 0 20px;
  color: var(--muted);
}

.request {
  max-width: 880px;
  margin: 96px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 28px;
}

.request h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 4px;
}

.request > div { flex: 1 1 360px; }

.plan { display: flex; flex-direction: column; }

.plan-cta {
  margin-top: auto;
  padding-top: 26px;
  display: grid;
  gap: 8px;
  text-align: center;
}

.plan-cta a { text-align: center; }
.plan-cta small { color: var(--muted); font-size: 13px; }

.button-outline {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--foreground);
  font-weight: 700;
  text-decoration: none;
}

.button-outline:hover { background: var(--surface-selected); }

.faq-more {
  margin: 28px 0 0;
  text-align: center;
  color: var(--muted);
}

.faq-more a { font-weight: 600; }

.request p { margin: 0; color: var(--muted); }

.button-quiet {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--primary-deep);
  color: var(--primary-fg);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button-quiet:hover { opacity: .9; }

@media (min-width: 760px) {
  .plans { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

/* ---------- wider screens ---------- */

@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .screen-strip { grid-auto-columns: 260px; gap: 24px; }
}

@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .privacy-band { padding: 36px 40px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- motion ----------
   The app's house entrance (design system §9): content fades up 14px over
   400ms on an ease-out cubic, siblings 70ms apart, nothing overshoots.
   All of it is off under reduced motion. */

:root {
  --rise: 14px;
  --arrive: 400ms;
  --stagger: 70ms;
  --ease-out: cubic-bezier(.33, 1, .68, 1); /* ease-out cubic */
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(var(--rise)); }
}

@media (prefers-reduced-motion: no-preference) {
  /* The hero assembles on load. Pure CSS, so it is already running at first
     paint and never flashes in and out. */
  .topbar,
  .hero > * {
    animation: arrive var(--arrive) var(--ease-out) both;
  }
  .hero > :nth-child(1) { animation-delay: calc(var(--stagger) * 1); }
  .hero > :nth-child(2) { animation-delay: calc(var(--stagger) * 2); }
  .hero > :nth-child(3) { animation-delay: calc(var(--stagger) * 3); }
  .hero > :nth-child(4) { animation-delay: calc(var(--stagger) * 4); }
  /* The film is the largest thing on the page: a little longer, so it settles. */
  .hero > .film { animation-duration: 700ms; animation-delay: calc(var(--stagger) * 5); }

  /* Everything below the fold arrives as it scrolls into view. site.js adds
     .reveal only to elements that start out of sight, and .is-in on arrival;
     --i staggers whatever arrives together. */
  .reveal {
    opacity: 0;
    transform: translateY(var(--rise));
    transition:
      opacity var(--arrive) var(--ease-out),
      transform var(--arrive) var(--ease-out);
    transition-delay: calc(var(--i, 0) * var(--stagger));
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- footer ---------- */

footer {
  margin: 72px 0 0;
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

footer a { font-weight: 600; }

.trademarks {
  flex-basis: 100%;
  margin: 8px 0 0;
  font-size: 13px;
}

@media (prefers-color-scheme: dark) {
  .badge { color: #F0CF98; background: rgba(212, 164, 92, .18); }
}
