/* ==========================================================================
   Hustla — hustla.app
   Plain CSS, no build step. Tokens mirror the app's own design system
   (card radius 24, rounded-square checkboxes, "prominent" button face,
   resting/floating shadow stacks, SF Rounded inside the app cards).
   ========================================================================== */

/* Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  --bg: #FFFFFF;
  --text: #111111;
  --text-2: #707070;              /* #777 from the app nudged for AA on pure white */
  --text-3: #8A8A8A;
  --hair: rgba(17, 17, 17, 0.08);  /* app separator: hustlaPrimary @ 8% */
  --hair-2: rgba(17, 17, 17, 0.14);
  --card-border: rgba(0, 0, 0, 0.10);   /* app modalInnerBorder */
  --surface: #F5F5F5;
  --surface-2: #EAEAEA;            /* the app's light page background */

  --card-today: #FFFFFF;           /* hustlaCardToday */
  --card-next: #FBF8EF;            /* hustlaCardNext */
  --card-someday: #FDF5E6;         /* hustlaCardSomeday */

  --accent: #111111;               /* hustlaPrimary */
  --on-accent: #FFFFFF;            /* hustlaPrimaryInverted */
  --nav-bg: rgba(244, 243, 244, 0.72);
  --hero-bg: #F4F3F4;              /* matches the top of the hero render/clip */

  /* app shadow stacks (SwiftUI radius ≈ CSS blur / 2) */
  --shadow-resting: 0 0.5px 1px rgba(0, 0, 0, 0.08), 0 3px 12px rgba(0, 0, 0, 0.06);
  --shadow-floating: 0 1px 2px rgba(0, 0, 0, 0.10), 0 10px 44px rgba(0, 0, 0, 0.17);
  --shadow-btn: 0 0.5px 1px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-btn-press: 0 0.5px 1px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-device: 0 30px 60px rgba(0, 0, 0, 0.18);

  --r-card: 16px;
  --r-row: 8px;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  --font-rounded: ui-rounded, 'SF Pro Rounded', var(--font);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);            /* ~ spring(0.35, 0.86) */
  --ease-press: cubic-bezier(0.34, 1.4, 0.64, 1);    /* ~ spring(0.25, 0.7) */
  --dur: 0.35s;
}

/* Base
   -------------------------------------------------------------------------- */
html {
  font-size: 100%;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
  transition: background-color 0.3s, color 0.3s;
}

::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3 { text-wrap: balance; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
p { text-wrap: pretty; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 640px) { .wrap { padding: 0 40px; } }

.section { padding: 112px 0; }
@media (min-width: 960px) { .section { padding: 160px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--text-3); }

.h2 { font-size: clamp(32px, 2.2vw + 16px, 52px); }
.lede { font-size: clamp(17px, 0.6vw + 13px, 19px); line-height: 1.55; color: var(--text-2); }
.note { font-size: 13px; color: var(--text-3); letter-spacing: 0.01em; }

/* Buttons — the app's "prominent" face
   accent fill + lit-from-above gradient + hairline top highlight + 0.5px edge
   -------------------------------------------------------------------------- */
.btn {
  --btn-h: 40px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h);
  padding: 0 18px;
  border-radius: 12px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 50%),
    var(--accent);
  color: var(--on-accent);
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.35),
    0 0 0 0.5px rgba(0, 0, 0, 0.18),
    var(--shadow-btn);
  transition: transform 0.25s var(--ease-press), box-shadow 0.25s var(--ease), background 0.2s;
  will-change: transform;
}
.btn:hover {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 50%),
    var(--accent);
}
.btn:active { transform: scale(0.97); box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.2), 0 0 0 0.5px rgba(0,0,0,0.18), var(--shadow-btn-press); }
.btn:active::after { opacity: 1; }
.btn::after { /* press darken, like the app */
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(0, 0, 0, 0.14); opacity: 0; transition: opacity 0.15s; pointer-events: none;
}

/* Store buttons — custom, Apple logo inside (replaces the official badges) */
.stores {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
@media (min-width: 480px) { .stores { flex-direction: row; justify-content: center; } }
.store-btn {
  --btn-h: 54px;
  height: var(--btn-h);
  padding: 0 20px 0 16px;
  gap: 10px;
  min-width: 160px;
  justify-content: flex-start;
  text-align: left;
}
.store-btn .apple { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.store-btn .store-txt { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn .store-txt small { font-size: 11px; font-weight: 500; opacity: 0.72; letter-spacing: 0.01em; }
.store-btn .store-txt strong { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.store-btn .arrow {
  width: 14px; height: 14px; margin-left: auto; opacity: 0; transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.store-btn:hover .arrow { opacity: 0.9; transform: translateX(0); }
@media (min-width: 480px) { .store-btn .arrow { display: block; } }
.store-btn .arrow { display: none; }

/* Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 0.3s, background-color 0.3s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--hair); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; color: var(--text); }
.logo svg { height: 28px; width: auto; }
.nav-links { display: none; gap: 28px; }
.nav-links a {
  position: relative; font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--text); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-side { flex: 1 1 0; display: flex; align-items: center; }
.nav-right { justify-content: flex-end; gap: 10px; }
.nav .btn { --btn-h: 36px; padding: 0 16px; font-size: 13.5px; }
.nav-download { gap: 7px; }
.nav-download svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; margin-top: -2px; }

/* Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; text-align: center; padding: 136px 0 110px; overflow-x: clip;
  background: linear-gradient(to bottom, var(--hero-bg) 0%, var(--hero-bg) calc(100% - 110px), var(--bg) 100%);
}
@media (min-width: 960px) { .hero { padding-top: 176px; padding-bottom: 140px; background: linear-gradient(to bottom, var(--hero-bg) 0%, var(--hero-bg) calc(100% - 140px), var(--bg) 100%); } }
.hero h1 {
  font-size: clamp(38px, 3vw + 24px, 78px);
  max-width: 15ch; margin: 0 auto 24px;
  letter-spacing: -0.035em;
}
.hero h1 .w { display: inline-block; }
.hero .lede { max-width: 46ch; margin: 0 auto 36px; }
.hero .stores { margin-bottom: 16px; }

/* load-in: words cascade (disabled for reduced motion, and when JS is off) */
.js .hero .w,
.js .hero .lede,
.js .hero .stores,
.js .hero .note {
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 1ms);
}
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }

/* Hero scene — a single photoreal render, edges feathered into the page.
   Desktop scrubs a short clip of the same scene by scroll (js/site.js).
   -------------------------------------------------------------------------- */
.stage { position: relative; max-width: 1180px; margin: 24px auto 0; padding: 0; }
@media (min-width: 960px) { .stage { margin-top: 40px; } }
.scene {
  position: relative; width: 100%; aspect-ratio: 2752 / 1240; overflow: hidden;   /* crops the empty headroom of the render */
  -webkit-mask-image: radial-gradient(ellipse 72% 86% at 50% 54%, #000 46%, rgba(0,0,0,0) 98%);
  mask-image: radial-gradient(ellipse 72% 86% at 50% 54%, #000 46%, rgba(0,0,0,0) 98%);
}
.scene-img, .scene-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; display: block;
}
.scene-video { opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.scene-video.is-ready { opacity: 1; }
@media (max-width: 639px) {
  .stage { margin-top: 8px; margin-left: -24px; margin-right: -24px; }
  .scene { -webkit-mask-image: radial-gradient(ellipse 86% 90% at 50% 56%, #000 60%, rgba(0,0,0,0) 100%); mask-image: radial-gradient(ellipse 86% 90% at 50% 56%, #000 60%, rgba(0,0,0,0) 100%); }
}
.js .scene { opacity: 0; animation: riseDevice 1.1s var(--ease) 300ms forwards; }
@keyframes riseDevice { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }

/* Problem — words brighten as you scroll (text scrub)
   -------------------------------------------------------------------------- */
/* the hero's bottom band (110/140px) already adds space above, so trim the
   top padding to make the visual gap match the section's bottom padding */
.problem { text-align: center; padding-top: 0; }
@media (min-width: 960px) { .problem { padding-top: 20px; } }
.problem .big {
  font-size: clamp(22px, 1.4vw + 14px, 34px);
  line-height: 1.35; font-weight: 500; letter-spacing: -0.02em;
  max-width: 30ch; margin: 0 auto; --p: 0;
}
.problem .big .w {
  opacity: clamp(0.22, calc(var(--p) * var(--n) - var(--i)), 1);
  transition: opacity 0.2s linear;
}
.problem .big em { font-style: normal; }

/* Three lists — the signature
   Cards are a faithful rebuild of the app's TaskListCardView.
   -------------------------------------------------------------------------- */
.three { background: var(--surface); padding: 96px 0; position: relative; }
@media (min-width: 960px) { .three { padding: 140px 0 150px; } }
.three .h2 { text-align: center; font-size: clamp(36px, 3vw + 18px, 72px); margin-bottom: 16px; }
.three .sub { text-align: center; color: var(--text-2); font-size: clamp(15px, 0.4vw + 13px, 17px); margin-bottom: 56px; }
@media (min-width: 960px) { .three .sub { margin-bottom: 72px; } }

.cards {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px 24px 28px; margin: 0 -24px;
  -webkit-overflow-scrolling: touch;
}
.cards::-webkit-scrollbar { display: none; }
.cards > * { flex: 0 0 calc(100% - 36px); scroll-snap-align: center; }
@media (min-width: 720px) {
  .cards {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
    overflow: visible; padding: 0; margin: 0; max-width: 1100px; margin-inline: auto;
  }
  .cards > * { flex: auto; }
}
@media (min-width: 960px) { .cards { gap: 24px; } }

.hcard-wrap { display: flex; flex-direction: column; gap: 20px; }
.hcard {
  position: relative;
  font-family: var(--font-rounded);
  background: var(--card-bg);
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--card-border), var(--shadow-resting);
  padding: 24px 24px 0;
  min-height: 400px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.hcard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--card-border), var(--shadow-floating); }
.hcard-today { --card-bg: var(--card-today); }
.hcard-next { --card-bg: var(--card-next); }
.hcard-someday { --card-bg: var(--card-someday); }
.hcard-head {
  font-size: 16px; font-weight: 500; letter-spacing: -0.005em;
  padding-bottom: 20px; border-bottom: 1px solid var(--hair);
}
.hrows { padding: 16px 0 48px; flex: 1; }
.hrow {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 0 8px; min-height: 44px; border-radius: var(--r-row);
  font-size: 17px; line-height: 22px;
}
.hrow-text { position: relative; padding: 12px 0; color: var(--text); transition: color 0.5s ease-out; }
.hrow-text::after { /* the app's left→right strikethrough wipe */
  content: ''; position: absolute; left: 0; top: 50%; height: 1.5px; width: 0;
  background: var(--text-2); transform: translateY(-0.75px);
  transition: width 0.5s ease-out;
}
.hrow.is-done .hrow-text { color: var(--text-2); }
.hrow.is-done .hrow-text::after { width: 100%; }
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.chk { /* StatusToggleView: 20pt rounded square, r8, 1.5 stroke, 24% idle border */
  position: relative; flex-shrink: 0; width: 20px; height: 20px; margin: 12px 0 0;
  border-radius: 8px; border: 1.5px solid rgba(17, 17, 17, 0.24);
  transition: border-color 0.25s, transform 0.25s var(--ease-press);
}
.chk::before { /* in-progress fill: 14×14 r6, a pie sweeping from the top to the right half.
   Absolutely centered — grid centering on <button> stretches the fill in WebKit. */
  content: ''; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border-radius: 6px;
  transform: translateZ(0); /* own layer: WebKit's gradient repaints otherwise bite notches out of the border */
  --sweep: 0deg;
  background: conic-gradient(from 0deg, var(--accent) var(--sweep), transparent 0);
  /* the app animates the pie only when ENTERING in-progress; leaving resets instantly */
}
.chk svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(0.6); transition: opacity 0.25s var(--ease-press), transform 0.25s var(--ease-press); }
.chk svg path { stroke: var(--accent); stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hrow.is-half .chk, .hrow.is-done .chk { border-color: var(--accent); }
.hrow.is-half .chk::before { --sweep: 180deg; transition: --sweep 0.3s ease-out; }
.hrow.is-done .chk svg { opacity: 1; transform: none; }
.chk:active { transform: scale(0.88); }
.hrow .meta { margin: 13px 0 0 auto; width: 20px; height: 20px; color: var(--text-3); }
.hrow .meta svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.hcard-copy { font-size: 15.5px; line-height: 1.55; color: var(--text-2); padding: 0 8px; }
.hcard-copy b { color: var(--text); font-weight: 600; }
.three .closing {
  text-align: center; margin-top: 56px;
  font-size: clamp(18px, 1vw + 12px, 22px); color: var(--text); font-weight: 500; letter-spacing: -0.01em; line-height: 1.5; text-wrap: auto;
}
.three .try { text-align: center; margin-top: 10px; font-size: 13px; color: var(--text-3); }

/* Features
   -------------------------------------------------------------------------- */
.features .h2 { text-align: center; max-width: 18ch; margin: 0 auto 64px; }
.fgrid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--hair); border-radius: var(--r-card); overflow: hidden;
  max-width: 1000px; margin: 0 auto; box-shadow: inset 0 0 0 1px var(--hair);
}
@media (min-width: 640px) {
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* odd tile count: let the final tile close the grid full-width */
  .feat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.feat { position: relative; background: var(--bg); padding: 36px 32px 40px; overflow: hidden; }
.feat::after { /* hover glow */
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(320px 220px at var(--mx, 50%) var(--my, 0%), var(--surface), transparent 70%);
  transition: opacity 0.4s;
}
.feat:hover::after { opacity: 1; }
.feat > * { position: relative; z-index: 1; }
.feat .ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--surface);
  display: grid; place-items: center; margin-bottom: 22px; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: transform 0.4s var(--ease-press), background 0.3s;
}
.feat:hover .ic { transform: translateY(-2px) rotate(-3deg); }
.feat .ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; line-height: 1.3; }
.feat p { font-size: 15.5px; color: var(--text-2); line-height: 1.6; max-width: 38ch; }

/* Reviews
   -------------------------------------------------------------------------- */
.proof { text-align: center; }
.proof .h2 { margin-bottom: 56px; }
.quotes { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 1100px; margin: 0 auto; text-align: left; }
@media (min-width: 720px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote {
  background: var(--bg); border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--card-border), var(--shadow-resting);
  padding: 28px; display: flex; flex-direction: column; gap: 18px; min-height: 200px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.quote:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--card-border), var(--shadow-floating); }
.quote .q-stars { display: flex; gap: 2px; color: var(--text); }
.quote .q-stars svg { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.quote p { font-size: 17px; line-height: 1.5; font-weight: 400; letter-spacing: -0.01em; }
.quote .who { font-size: 14px; color: var(--text-3); margin-top: auto; }

/* Pricing
   -------------------------------------------------------------------------- */
.pricing .h2 { text-align: center; margin-bottom: 56px; }
.plans { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.plan {
  background: var(--bg); border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--card-border), var(--shadow-resting);
  overflow: hidden;
}
.plan-free { padding: 32px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 720px) { .plan-free { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; } }
.tier-k { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.plan-free .t { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin-top: 4px; line-height: 1; }
.plan-free p { font-size: 15.5px; color: var(--text-2); max-width: none; }
.pro-head {
  padding: 22px 32px; border-bottom: 1px solid var(--hair);
  font-size: 15px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline;
}
.pro-head b { color: var(--text); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.tiers { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier { padding: 32px; border-top: 1px solid var(--hair); transition: background 0.3s; }
.tier:hover { background: var(--surface); }
@media (min-width: 720px) { .tier { border-top: 0; border-left: 1px solid var(--hair); } .tier:first-child { border-left: 0; } }
.tier .n { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.tier .p { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tier .d { font-size: 14px; color: var(--text-2); margin-top: 12px; line-height: 1.5; }
.pricing-note { text-align: center; margin-top: 20px; }
.pricing .stores { margin-top: 40px; }
.pricing .note { text-align: center; margin-top: 16px; }

/* FAQ — accessible accordion
   -------------------------------------------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq .h2 { text-align: center; margin-bottom: 48px; }
.faq-items { transform: translateZ(0); } /* own layer: Safari otherwise leaves stale
   hairline paint below the list after the accordion resizes (ghost lines) */
.faq-item { border-top: 1px solid var(--hair-2); }
.faq-item:last-child { border-bottom: 1px solid var(--hair-2); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; text-align: left;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--text-2); }
.faq-q .plus {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-3);
  box-shadow: inset 0 0 0 1px var(--hair-2);
  transition: transform 0.4s var(--ease-press), background 0.3s, color 0.3s;
}
.faq-q .plus svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; fill: none; }
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); box-shadow: none; }
.faq-a { height: 0; overflow: hidden; transition: height 0.35s var(--ease); }
.faq-item.open .faq-a { height: auto; }
.faq-a p { font-size: 16px; color: var(--text-2); line-height: 1.6; padding: 0 48px 24px 0; max-width: 60ch; }

/* Final CTA
   -------------------------------------------------------------------------- */
.final { text-align: center; padding: 120px 0 140px; position: relative; }
.final .h2 { font-size: clamp(40px, 4vw + 20px, 88px); margin-bottom: 40px; letter-spacing: -0.04em; }
.final .stores { margin-bottom: 18px; }

/* GDPR consent card
   -------------------------------------------------------------------------- */
.consent {
  position: fixed; z-index: 200; left: 12px; right: 12px; bottom: 12px;
  margin: 0 auto; width: fit-content; max-width: calc(100vw - 24px);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px;
  background: var(--bg); border-radius: 16px; padding: 8px 8px 8px 20px;
  box-shadow: 0 0 0 1px var(--card-border), var(--shadow-floating);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.consent.in { opacity: 1; transform: none; }
.consent p { font-size: 12.5px; line-height: 1.4; color: var(--text-2); }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: 6px; }
.consent .btn { --btn-h: 30px; padding: 0 14px; font-size: 12.5px; border-radius: 8px; }
.consent .btn-ghost {
  height: 30px; border-radius: 8px; padding: 0 14px;
  font-size: 12.5px; font-weight: 600; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hair-2);
  transition: background 0.2s;
}
.consent .btn-ghost:hover { background: var(--surface); }
@media (max-width: 620px) { .consent { border-radius: 16px; padding: 12px 12px 10px 16px; } }

/* Footer — generated plaster plate behind, faded in
   -------------------------------------------------------------------------- */
.footer { position: relative; padding: 72px 0 56px; overflow: hidden; isolation: isolate; }
.footer::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: url('images/footer-done-light.jpg?v=20260825') center / cover no-repeat;
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0), #000 45%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0), #000 45%);
}
@media (max-width: 640px) {
  .footer::before {
    background-size: 120% auto; background-position: center calc(100% - 40px);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0), #000 55%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0), #000 55%);
  }
}
.footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer .logo svg { height: 22px; }
.footer .tag { font-size: 14px; color: var(--text-2); }
.footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 14px; color: var(--text-2); }
.footer .links a { transition: color 0.2s; }
.footer .links a:hover { color: var(--text); }
.footer .copy { font-size: 13px; color: var(--text-3); }
.footer .copy a { text-decoration: underline; text-underline-offset: 2px; }

/* Scroll reveals
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Legal / support pages
   -------------------------------------------------------------------------- */
.legal { max-width: 720px; margin: 0 auto; padding: 152px 24px 96px; }
@media (min-width: 640px) { .legal { padding: 176px 40px 120px; } }
.legal h1 { font-size: clamp(34px, 2.4vw + 16px, 56px); margin-bottom: 10px; }
.legal-updated { font-size: 14px; color: var(--text-3); margin-bottom: 48px; }
.legal h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin: 40px 0 10px; line-height: 1.3; }
.legal p { font-size: 16px; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair-2); transition: text-decoration-color 0.2s; }
.legal a:hover { text-decoration-color: var(--text); }
.legal-card {
  background: var(--bg); border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--card-border), var(--shadow-resting);
  padding: 28px 28px 24px; margin: 32px 0 8px;
}
.legal-card h2 { margin-top: 0; }
.legal-card ul { padding-left: 0; }
.legal-card li { font-size: 16px; color: var(--text-2); line-height: 1.7; padding-left: 22px; position: relative; }
.legal-card li::before { content: ''; position: absolute; left: 0; top: 12px; width: 8px; height: 8px; border-radius: 3px; border: 1.5px solid var(--hair-2); }
.legal-back { margin-top: 48px; font-size: 15px; }
.legal-back a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.legal-back a:hover { text-decoration: underline; }

/* Changelog (What's New) */
.legal .legal-sub { font-size: 17px; color: var(--text-3); line-height: 1.6; margin-bottom: 52px; }
.release + .release { margin-top: 72px; padding-top: 64px; border-top: 1px solid var(--hair); }
/* re-asserts the .h2 + global-heading type that `.legal h2` would otherwise win */
.legal .release-version {
  font-size: clamp(26px, 1vw + 20px, 32px);   /* .h2 character, one step down from the page h1 */
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
  margin: 0 0 48px;
}
.legal h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin: 32px 0 8px; }

/* Siri page (siri.html → /siri)
   Builds on the changelog layout: .legal + .release sections, .release-version h2, h3 per action. */
.siri .legal-sub { margin-bottom: 28px; }
.siri-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 56px; }
.legal .siri-toc a {
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em; line-height: 1;
  padding: 9px 14px; border-radius: 999px; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hair-2); text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.legal .siri-toc a:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--text-3); }
.siri .release[id] { scroll-margin-top: 104px; }
.siri .release + .release { margin-top: 64px; padding-top: 56px; }
.siri .legal-back { margin-top: 64px; }
.legal strong { color: var(--text); font-weight: 600; }
.siri-intro p { font-size: 17px; }
.siri-intro p:last-of-type { margin-top: 24px; }

/* numbered set-up steps: rounded-square counters, like the app's checkboxes */
.siri-steps { list-style: none; counter-reset: step; display: grid; gap: 14px; margin: 14px 0 0; }
.siri-steps li { counter-increment: step; position: relative; padding-left: 40px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.siri-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--hair-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums;
}

/* "Say this / Not this / Why" table */
.siri-table-wrap {
  margin: 20px 0 8px; background: var(--bg); border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--card-border), var(--shadow-resting); overflow: hidden;
}
.siri-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.siri-table th {
  text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); padding: 16px 18px 12px; border-bottom: 1px solid var(--hair);
}
.siri-table td { padding: 14px 18px; vertical-align: top; color: var(--text-2); border-bottom: 1px solid var(--hair); }
.siri-table tr:last-child td { border-bottom: 0; }
.siri-table td:first-child { color: var(--text); font-weight: 500; }
.siri-table td strong { font-weight: 700; }
.siri-table td:nth-child(2) strong { color: var(--text-2); }
@media (max-width: 639px) {
  .siri-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .siri-table tr, .siri-table td { display: block; }
  .siri-table tr { padding: 6px 18px 14px; border-bottom: 1px solid var(--hair); }
  .siri-table tr:last-child { border-bottom: 0; }
  .siri-table td { padding: 8px 0 0; border: 0; }
  .siri-table td::before {
    content: attr(data-label); display: block; font-size: 11px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px;
  }
}

/* phrase card: one row per thing you can say, set in the app's rounded face */
.say {
  list-style: none; margin: 16px 0 16px; padding: 4px 0; background: var(--bg);
  border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--card-border), var(--shadow-resting);
}
.say li {
  padding: 12px 18px;
  font-family: var(--font-rounded); font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.45; color: var(--text);
}
.say li::after { content: ''; display: block; clear: both; }
.say li + li { border-top: 1px solid var(--hair); }
.say .hint { float: right; margin: 2px 0 0 14px; font-family: var(--font); font-size: 13.5px; font-weight: 400; letter-spacing: 0; color: var(--text-3); }
.say .ph { font-size: 15px; }

/* fill-in slot inside a phrase, e.g. ‹to-do› or ‹list› */
.ph {
  display: inline-block; padding: 0 6px; border-radius: 6px; border: 1px dashed var(--hair-2);
  color: var(--text-2); font-weight: 400; line-height: 1.35; vertical-align: baseline;
}

.legal .also { font-size: 15px; line-height: 1.65; }

/* what Siri answers */
.reply {
  display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 20px;
  padding: 14px 18px; border-radius: 12px; background: var(--surface);
}
.reply-label {
  flex: none; padding-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3); white-space: nowrap;
}
.legal .reply p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text); }
@media (max-width: 479px) { .reply { flex-direction: column; gap: 6px; } .reply-label { padding-top: 0; } }

/* version tag beside a section title */
.release-tag {
  display: inline-block; vertical-align: 0.3em; margin-left: 10px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; line-height: 1; color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--hair-2);
}

/* troubleshooting list: rounded-square bullets, like .legal-card */
.siri-bullets { padding-left: 0; display: grid; gap: 12px; margin-top: 4px; }
.siri-bullets li { font-size: 16px; color: var(--text-2); line-height: 1.7; padding-left: 22px; position: relative; }
.siri-bullets li::before { content: ''; position: absolute; left: 0; top: 12px; width: 8px; height: 8px; border-radius: 3px; border: 1.5px solid var(--hair-2); }

/* Reduced motion — everything static, everything visible
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero .w, .js .hero .lede, .js .hero .stores, .js .hero .note, .js .scene { opacity: 1; transform: none; filter: none; animation: none; }
  .problem .big .w { opacity: 1; }
}
