@font-face { font-family: 'Newsreader'; src: url(../fonts/newsreader-regular.woff) format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url(../fonts/newsreader-italic.woff) format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url(../fonts/newsreader-medium.woff) format('woff'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ground: #14110F; --surface: #1E1A17; --raised: #2A2320;
  --cream: #E7C9A8; --terracotta: #B4714F; --ink: #201612;
  --text: #F7F0E7; --text-2: rgba(247, 240, 231, .68); --text-3: rgba(247, 240, 231, .55);
  --hairline: rgba(247, 240, 231, .11);
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --page: min(1180px, 100% - 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--cream); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.1; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--cream); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.eyebrow { font: 600 13px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--cream); }
.section { width: var(--page); margin: 0 auto; padding: clamp(72px, 12vw, 150px) 0; }
.section-title { font-size: clamp(34px, 5.4vw, 64px); }
.section-title em { color: var(--cream); }
.section-lede { color: var(--text-2); font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; margin-top: 18px; }

.nav { position: absolute; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px; width: var(--page); height: 84px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font: 400 25px var(--serif); }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--cream); color: var(--ink); font: 600 15px var(--sans); text-decoration: none; padding: 10px 17px; border-radius: 99px; }

.store-badge { display: inline-block; }
.store-badge img { width: 150px; height: 50px; }
.qr { display: flex; align-items: center; gap: 14px; margin: 0; }
.qr img { width: 92px; height: 92px; border-radius: 10px; background: #fff; padding: 6px; image-rendering: pixelated; }
.qr figcaption { font-size: 14px; color: var(--text-3); line-height: 1.4; }
.store-bar { display: none; }

.footer { width: var(--page); margin: 0 auto; padding: 64px 0 48px; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand img { border-radius: 7px; }
.footer-brand p { color: var(--text-2); font-size: 15px; }
.footer-brand strong { color: var(--text); font: 400 20px var(--serif); }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer h2 { font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.footer nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: var(--text); }
.footer-fine { grid-column: 1 / -1; color: var(--text-3); font-size: 13px; margin-top: 12px; }
.footer-fine a { color: var(--text-2); }

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 88px; }
  .nav { height: 64px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; font-size: 13.5px; padding: 8px 13px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .qr { display: none; }
  .store-bar {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 14px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 30;
    height: 56px; border-radius: 99px; background: var(--cream); color: var(--ink);
    font: 600 16px var(--sans); text-decoration: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  }
}

/* ---------- phone + widget (Classic theme) ---------- */
.phone { position: relative; width: 100%; max-width: 392px; aspect-ratio: 392 / 800; border-radius: 16% / 7.8%; background: #0B0A09; padding: 3%; box-shadow: 0 60px 120px rgba(0, 0, 0, .6), 0 0 0 1.5px rgba(231, 201, 168, .12); }
.phone-screen { position: relative; height: 100%; border-radius: 13.5% / 6.6%; overflow: hidden; background: #000; container-type: inline-size; }
.phone-wallpaper { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(26px) brightness(.45) saturate(.8); }
.phone-island { position: absolute; left: 50%; top: 3.3cqw; translate: -50% 0; width: 32cqw; height: 9.3cqw; border-radius: 99px; background: #000; }
.phone-time { position: absolute; left: 9cqw; top: 4.6cqw; font: 600 4.4cqw var(--sans); color: #fff; }
.widget { position: absolute; left: 6.5cqw; right: 6.5cqw; top: 20cqw; aspect-ratio: 1 / 1.075; border-radius: 8cqw; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.widget-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.widget::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .1) 50%, transparent 80%); }
.widget:has(.widget-text:empty)::after { display: none; }
.widget-text { position: absolute; z-index: 1; left: 6cqw; right: 6cqw; bottom: 5.4cqw; font: 400 8.2cqw/1.15 var(--serif); color: #fff; }
.phone-apps { position: absolute; left: 6.5cqw; right: 6.5cqw; top: 121cqw; display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 7cqw; justify-items: center; }
.app { width: 18cqw; aspect-ratio: 1; border-radius: 4.2cqw; background: rgba(255, 255, 255, .12); }
.app-mira { background: url(../icon.png) center / cover; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: max(100svh, 760px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: 48px; padding: 110px max(24px, (100% - 1180px) / 2) 60px; background: radial-gradient(90% 90% at 85% 20%, #5A3A2D 0%, #2A1E19 38%, var(--ground) 70%); }
.hero-copy { position: relative; z-index: 3; max-width: 620px; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-title { font: 400 clamp(52px, 7.4vw, 92px)/1 var(--serif); letter-spacing: -.025em; display: flex; flex-direction: column; }
.hero-title em { color: var(--cream); }
.hero-lede { margin: 24px 0 28px; color: var(--text-2); font-size: clamp(17px, 1.6vw, 20px); max-width: 500px; }
.field { display: block; }
.field input { width: min(520px, 100%); height: 64px; border-radius: 18px; background: rgba(30, 26, 23, .9); border: 1px solid rgba(231, 201, 168, .28); color: var(--text); font: 400 23px var(--serif); padding: 0 20px; }
.field input::placeholder { color: var(--text-3); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0 30px; }
.chip { font: 500 14px var(--sans); color: var(--text-2); background: none; border: 1px solid var(--hairline); border-radius: 99px; padding: 7px 14px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero-cta, .film-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { color: var(--text-3); font-size: 14px; }
.hero-phone { position: relative; z-index: 2; }
.hero[data-reduced] .hero-stat, html:not(.js) .hero-stat { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; color: var(--text-2); font: 400 20px var(--serif); margin-bottom: 18px; }
@media (prefers-reduced-motion: reduce) {
  .hero .hero-stat { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; color: var(--text-2); font: 400 20px var(--serif); margin-bottom: 18px; }
}

/* The film exists only with JS, only when motion is allowed, and only until
   it is done. */
.film-flash, .film-shade, .film-count { display: none; }
@media (prefers-reduced-motion: no-preference) {
  /* These 1.1s flight durations must stay equal to FILM.morph in js/film.js. */
  .js .hero:not([data-phase="done"]) .film-flash { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: 4; background: var(--ground); filter: brightness(.36) saturate(.7); transition: left 1.1s var(--ease), top 1.1s var(--ease), width 1.1s var(--ease), height 1.1s var(--ease), border-radius 1.1s var(--ease), filter 1.1s; }
  .js .hero:not([data-phase="done"]) .film-shade { display: block; position: absolute; inset: 0; z-index: 4; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(14, 11, 10, .5), rgba(14, 11, 10, .93)); transition: opacity .6s; }
  .js .hero:not([data-phase="done"]) .film-count { display: flex; position: absolute; inset: 0; z-index: 5; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; transition: opacity .5s, transform .7s var(--ease); }
  .hero[data-phase="hold"] :is(.film-question, .film-cta) { opacity: 1; visibility: visible; transform: none; }
  .hero[data-phase="morph"] .film-shade { opacity: 0; }
  .hero[data-phase="morph"] .film-count { opacity: 0; transform: translateY(-40px); }
  .hero[data-phase="morph"] .film-flash { filter: none; border-radius: 30px; }
  .js .hero:is([data-phase="count"], [data-phase="hold"]) :is(.eyebrow, .hero-title, .hero-lede, .field, .chips, .hero-cta, .hero-phone) { opacity: 0; transform: translateY(24px); }
  /* If home.js never takes over (fails to load, throws), don't leave the
     overlay covering the hero forever: once data-phase is set, this stops
     matching and the real film rules above take it from here. */
  .js .hero:not([data-phase]) :is(.film-flash, .film-shade, .film-count) { animation: film-bail 0s 3s forwards; }
  @keyframes film-bail { to { visibility: hidden; } }
}
.film-line { font: 400 clamp(28px, 4.1vw, 52px)/1.1 var(--serif); }
.film-number { font: 400 clamp(180px, 23vw, 290px)/.86 var(--serif); color: var(--cream); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.film-source { font-size: 12px; color: var(--text-3); letter-spacing: .08em; margin-top: 10px; }
.film-question, .film-cta { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .7s, transform .7s, visibility .7s; }
.film-question { margin: 24px 0; font-size: clamp(16px, 1.7vw, 21px); color: var(--text-2); max-width: 520px; }

/* The final state fades in while the photo flies. Targets the children, not
   .hero-copy, because on phones .hero-copy is display: contents. The phone
   gets its own, shorter transition so it finishes arriving before the flash
   is removed (which happens when the morph ends, see FILM.morph above). */
.js .hero :is(.eyebrow, .hero-title, .hero-lede, .field, .chips, .hero-cta) { transition: opacity .8s .5s, transform .9s .4s var(--ease); }
.js .hero-phone { transition: opacity .6s .2s, transform .9s .2s var(--ease); }

@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; align-items: center; gap: 0; min-height: 100svh; padding: 84px 18px 32px; text-align: center; }
  .hero-copy { display: contents; }
  .hero-stat { order: 0; }
  .hero-copy .eyebrow { order: 1; margin-bottom: 12px; font-size: 11px; }
  .hero-title { order: 2; align-items: center; font-size: clamp(42px, 12vw, 54px); }
  .hero-phone { order: 3; width: min(76vw, 300px); height: min(94vw, 372px); overflow: hidden; margin-top: 22px; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
  .field { order: 4; width: 100%; margin-top: -40px; position: relative; z-index: 3; }
  .field input { height: 56px; font-size: 19px; }
  .chips { order: 5; justify-content: center; margin: 12px 0 18px; }
  .hero-lede { order: 6; margin: 0 auto 10px; font-size: 15.5px; }
  .hero-cta { order: 7; justify-content: center; }
  .hero-cta .store-badge { display: none; }
}

/* ---------- how it works ---------- */
.how-inner { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding: clamp(80px, 12vw, 150px) 0; }
.how-stage { position: sticky; top: calc(50vh - 330px); align-self: start; height: 660px; display: grid; place-items: center; }
.how-phone { max-width: 324px; }
.how-steps .eyebrow { margin-bottom: 8px; }
.how-step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.how-step h3 { font-size: clamp(34px, 4.6vw, 56px); }
.how-step p { color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); max-width: 460px; margin-top: 16px; }
.how-shot, .how-live { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.how-phone[data-step="goals"] [data-shot="goals"],
.how-phone[data-step="board"] [data-shot="board"],
.how-phone[data-step="widget"] [data-shot="widget"],
.how-phone[data-step="today"] [data-shot="today"] { opacity: 1; }

/* A widget whose photo and phrase cross-fade every three seconds. The scrim
   lives in each layer so it sits under that layer's text. */
.widget-cycle::after { display: none; }
.widget-layer { position: absolute; inset: 0; opacity: 0; animation: widget-cycle 9s infinite; }
.widget-layer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .1) 50%, transparent 80%); }
.widget-layer:nth-child(2) { animation-delay: 3s; }
.widget-layer:nth-child(3) { animation-delay: 6s; }
@keyframes widget-cycle { 0%, 30% { opacity: 1; } 36%, 94% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .widget-layer { animation: none; }
  .widget-layer:first-child { opacity: 1; }
}

@media (max-width: 760px) {
  .how-inner { grid-template-columns: 1fr; gap: 0; }
  .how-stage { top: 64px; height: 48svh; z-index: 1; background: linear-gradient(var(--ground) 82%, transparent); }
  .how-phone { width: auto; height: 100%; }
  .how-step { min-height: 55svh; text-align: center; align-items: center; }
}

/* ---------- themes (sizes: Swift points at a 364-pt medium widget → cqw) ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 26px; margin-top: 56px; }
.theme-item { margin: 0; container-type: inline-size; }
.theme-item figcaption { margin-top: 12px; font-size: 14px; color: var(--text-2); }
.theme-item figcaption span { margin-left: 6px; font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--cream); border-radius: 99px; padding: 2px 7px; }
.theme { position: relative; aspect-ratio: 364 / 170; border-radius: 6cqw; overflow: hidden; box-shadow: 0 20px 44px rgba(0, 0, 0, .4); }
.theme .theme-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theme .t { margin: 0; }

.theme-classic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .1) 50%, transparent); }
.theme-classic .t { position: absolute; z-index: 1; left: 4.12cqw; right: 4.12cqw; bottom: 4.12cqw; font: 400 5.49cqw/1.2 var(--serif); color: #fff; }

.theme-softSerif { background: #F6F0E7; display: flex; align-items: center; gap: 3.3cqw; padding: 3.02cqw; }
.theme-softSerif .side { position: relative; flex: none; width: 40.66cqw; height: 40.66cqw; border-radius: 4.4cqw; overflow: hidden; }
.theme-softSerif .t { font: italic 400 5.77cqw/1.2 var(--serif); color: #2A2320; }

.theme-minimal { background: #fff; display: flex; }
.theme-minimal .half { position: relative; flex: none; width: 50%; }
.theme-minimal .theme-photo { filter: saturate(.62); }
.theme-minimal .copy { display: flex; flex-direction: column; justify-content: center; gap: 1.1cqw; padding: 3.85cqw; }
.theme-minimal .today { font: 500 2.61cqw var(--sans); letter-spacing: .04em; color: #8A827C; }
.theme-minimal .t { font: 400 4.95cqw/1.2 var(--serif); color: #2A2320; }

.theme-bold .theme-photo { filter: brightness(.52) saturate(.85); }
.theme-bold .t { position: absolute; inset: 0; display: flex; align-items: center; padding: 5.49cqw; font: 400 7.42cqw/1.15 var(--serif); color: #fff; }

.theme-postcard { background: #F3EBDF; display: flex; flex-direction: column; align-items: center; gap: 4.4cqw; padding: 5.5cqw 5.5cqw 0; }
.theme-postcard .print { position: relative; flex: none; width: 100%; height: 27.1cqw; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .16); }
.theme-postcard .t { font: italic 400 4.95cqw/1.2 var(--serif); color: #3A2F28; text-align: center; }

.theme-terracotta { display: flex; flex-direction: column; }
.theme-terracotta .top { position: relative; flex: none; height: 60%; }
.theme-terracotta .t { flex: 1; display: flex; align-items: center; padding: 2.47cqw 3.57cqw; background: #B4714F; color: #F7E9D8; font: 400 4.95cqw/1.15 var(--serif); }

.theme-typeFirst { background: #14110F; }
.theme-typeFirst .theme-photo { opacity: .18; filter: saturate(.7); }
.theme-typeFirst .t { position: absolute; inset: 0; display: flex; align-items: center; padding: 4.95cqw; font: 400 6.59cqw/1.25 var(--serif); color: #F2E7D8; }

.theme-filmstrip .theme-photo { filter: grayscale(1) sepia(.2) brightness(.94); }
.theme-filmstrip .t { position: absolute; left: 3.85cqw; right: 3.85cqw; top: 3.85cqw; font: 600 3.02cqw/1.35 var(--sans); letter-spacing: .38cqw; text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .55); }

@media (max-width: 980px) { .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .theme-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- phrase wall ---------- */
.phrases { padding: clamp(80px, 12vw, 150px) 0; overflow: hidden; }
.phrases-head { width: var(--page); margin: 0 auto 48px; }
.phrases-links { margin-top: 18px; color: var(--text-2); }
.wall { content-visibility: auto; position: relative; height: 640px; display: flex; gap: 18px; padding: 0 18px; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.wall-col { flex: 1; overflow: hidden; }
.wall-track { animation: wall-up 60s linear infinite; }
.wall-col:nth-child(even) .wall-track { animation-name: wall-down; animation-duration: 72s; }
.wall-col:nth-child(3) .wall-track { animation-duration: 84s; }
.wall:is(:hover, :focus-within) .wall-track { animation-play-state: paused; }
@keyframes wall-up { to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.wall-card { position: relative; display: block; aspect-ratio: 4 / 5; margin-bottom: 18px; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; }
.wall-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.wall-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent 58%); }
.wall-card p { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 13px; font: 400 19px/1.2 var(--serif); }
a.wall-card:hover p { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .wall-track { animation: none; } }
@media (max-width: 760px) {
  .wall { height: 520px; gap: 10px; padding: 0 10px; }
  .wall-col:nth-child(n + 4) { display: none; }
  .wall-card { margin-bottom: 10px; border-radius: 12px; }
  .wall-card p { left: 9px; right: 9px; bottom: 8px; font-size: 13px; }
}

/* ---------- privacy, plans, questions, last call ---------- */
.privacy { text-align: center; }
.privacy .section-title { max-width: 900px; margin: 0 auto; }
.privacy .section-lede { margin: 22px auto 0; }
.privacy-link { margin-top: 22px; }

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 880px; margin-top: 52px; }
.plan { border: 1px solid var(--hairline); border-radius: 24px; padding: 30px; background: var(--surface); }
.plan h3 { font-size: 30px; margin-bottom: 16px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--text-2); }
.plan li::before { content: '—'; color: var(--terracotta); margin-right: 10px; }
.plan-premium { border-color: rgba(231, 201, 168, .4); background: linear-gradient(160deg, var(--raised), var(--surface)); }
.plan-premium h3 { color: var(--cream); }
.plan-note { margin-top: 18px; font-size: 14px; color: var(--text-3); }

.faq-list { max-width: 820px; margin-top: 40px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font: 400 clamp(20px, 2.2vw, 25px)/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; color: var(--cream); font: 300 28px var(--sans); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 680px; padding: 0 0 24px; color: var(--text-2); }

.last-call { text-align: center; padding: clamp(100px, 16vw, 200px) 24px; background: radial-gradient(70% 80% at 50% 100%, #5A3A2D 0%, #2A1E19 45%, var(--ground) 80%); }
.last-title { display: flex; flex-direction: column; align-items: center; font-size: clamp(38px, 6vw, 76px); }
.last-title em { color: var(--cream); }
.last-cta { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }

@media (max-width: 760px) {
  .plan-grid { grid-template-columns: 1fr; }
  .last-cta .store-badge { display: none; }
}

/* ---------- affirmations pages ---------- */
.aff { width: var(--page); margin: 0 auto; padding: 120px 0 60px; }
.aff-head { max-width: 760px; }
.aff-head .eyebrow a { color: inherit; text-decoration: none; }
.aff-head h1 { margin: 16px 0 26px; font-size: clamp(44px, 7vw, 84px); }
.aff-intro { margin-top: 14px; color: var(--text-2); font-size: clamp(17px, 1.6vw, 20px); }
.aff-byline { margin-top: 22px; font-size: 14px; color: var(--text-3); }
.aff-body { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 72px; align-items: start; margin-top: 72px; }
.aff-preview { position: sticky; top: 40px; }
.aff-hint { margin-top: 14px; text-align: center; font-size: 14px; color: var(--text-3); }
.aff-group { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--hairline); }
.aff-group h2, .aff-closing h2 { font-size: clamp(30px, 3.6vw, 42px); }
.aff-why, .aff-closing p { max-width: 620px; margin-top: 14px; color: var(--text-2); }
.aff-list { list-style: none; display: grid; gap: 6px; margin: 22px 0 0; padding: 0; }
.aff-phrase { width: 100%; text-align: left; background: none; border: 0; border-radius: 14px; padding: 12px 16px; color: var(--text); font: 400 clamp(20px, 2.2vw, 25px)/1.3 var(--serif); cursor: pointer; transition: background .2s, color .2s; }
.aff-phrase:hover { background: var(--surface); }
.aff-phrase[aria-pressed="true"] { background: var(--raised); color: var(--cream); }
.aff-pair { margin-top: 18px; font-size: 15px; color: var(--text-3); }
.aff-pair strong { color: var(--text-2); font-weight: 600; }
.aff-cta { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.aff-note { max-width: 620px; margin-top: 40px; font-size: 14px; color: var(--text-3); }

@media (max-width: 760px) {
  .aff { padding-top: 96px; }
  .aff-body { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
  /* On phones the preview is only the widget, pinned to the top while the list scrolls. */
  .aff-preview { top: 8px; z-index: 5; padding: 8px 0 16px; background: linear-gradient(var(--ground) 85%, transparent); }
  .aff-preview .phone { max-width: none; aspect-ratio: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .aff-preview .phone-screen { height: auto; background: none; border-radius: 0; }
  .aff-preview :is(.phone-wallpaper, .phone-island, .phone-time, .phone-apps) { display: none; }
  .aff-preview .widget { position: relative; inset: auto; aspect-ratio: 364 / 170; border-radius: 22px; }
  .aff-preview .widget-text { left: 16px; right: 16px; bottom: 14px; font-size: 22px; }
  .aff-hint, .aff-cta .store-badge { display: none; }
}

/* ---------- guides ---------- */
.guide { width: min(760px, 100% - 48px); margin: 0 auto; padding: 120px 0 60px; }
.guide-head .eyebrow a { color: inherit; text-decoration: none; }
.guide-head h1 { margin: 16px 0 26px; font-size: clamp(40px, 6.4vw, 72px); }
.guide-intro { margin-top: 14px; color: var(--text-2); font-size: clamp(17px, 1.6vw, 20px); }
.guide-section, .guide-closing { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--hairline); }
.guide-section h2, .guide-closing h2 { margin-bottom: 16px; font-size: clamp(28px, 3.4vw, 38px); }
.guide-section p, .guide-closing p { margin-top: 12px; color: var(--text-2); }
.guide-steps { counter-reset: step; list-style: none; display: grid; gap: 14px; margin: 22px 0 0; padding: 0; }
.guide-steps li { counter-increment: step; position: relative; padding-left: 44px; }
.guide-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--terracotta); color: #fff; font: 700 13px/28px var(--sans); text-align: center; }
.guide-bullets { display: grid; gap: 8px; margin: 18px 0 0; padding-left: 20px; color: var(--text-2); }
.guide-shot { margin: 28px 0 0; }
.guide-shot img { width: 100%; max-width: 320px; height: auto; border-radius: 28px; border: 1px solid var(--hairline); }
.guide-section .guide-tip { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hairline); font-size: 15px; }
@media (max-width: 760px) { .guide { padding-top: 96px; } .guide-closing .store-badge { display: none; } }
