/* ==========================================================================
   Linnea - getlinnea.com
   The app's locked "warm Clarity" design system, translated to the web.
   Tokens mirror the app repo's tailwind.config.js + global.css exactly.
   Fonts are self-hosted; the page makes zero third-party requests.
   ========================================================================== */

/* ---------- fonts (latin subsets, self-hosted) ---------- */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-v12-latin-regular.woff2")
    format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-v12-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-v12-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-v12-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/newsreader-v26-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/newsreader-v26-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/newsreader-v26-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/newsreader-v26-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/newsreader-v26-latin-500italic.woff2") format("woff2");
}

/* ---------- tokens ---------- */
:root {
  /* surfaces */
  --cream: #f6efe4;
  --card: #fffdf7;
  --card-alt: #fffefb;
  --sunken: #efe7d9;
  /* text */
  --ink: #2a241d;
  --ink-2: #4a4137;
  --muted: #6f6557;
  --faint: #a99e8c;
  /* brand */
  --teal: #1f5b53; /* fills / bands */
  --teal-ink: #1f5b53; /* teal link/icon on a surface */
  --teal-deep: #17453e;
  --clay: #bd6a44;
  --clay-soft: #bd6a44;
  --sand: #e9c9a0;
  --on-teal: #fbf6ec;
  --on-teal-muted: #a9c6bd;
  --tint: #e7efe9;
  /* the calm band is dark in BOTH modes (the app's dark surfaces) */
  --dark-bg: #17120c;
  --dark-card: #221b12;
  --dark-ink: #f1e9d8;
  --dark-muted: #b6aa93;
  --dark-hair: rgba(240, 228, 205, 0.12);
  /* lines & shadows */
  --hair: rgba(42, 36, 29, 0.08);
  --hair-strong: rgba(42, 36, 29, 0.12);
  --shadow-card: 0 1px 2px rgba(42, 36, 29, 0.04);
  --shadow-raised: 0 12px 28px -16px rgba(42, 36, 29, 0.32);
  --shadow-button: 0 12px 24px -10px rgba(189, 106, 68, 0.55);
  --shadow-on-teal: 0 12px 24px -10px rgba(0, 0, 0, 0.3);
  --shadow-phone: drop-shadow(0 26px 44px rgba(42, 36, 29, 0.28));
  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* layout */
  --radius-band: clamp(24px, 4vw, 34px);
  --nav-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #17120c;
    --card: #221b12;
    --card-alt: #1f1810;
    --sunken: #2a2117;
    --ink: #f1e9d8;
    --ink-2: #cfc4ad;
    --muted: #b6aa93;
    --faint: #8a7e6a;
    --teal: #1d564e;
    --teal-ink: #7cc0af;
    --teal-deep: #14403a;
    --clay: #c2744a;
    --clay-soft: #df9b6f;
    --tint: rgba(124, 191, 174, 0.14);
    --hair: rgba(240, 228, 205, 0.09);
    --hair-strong: rgba(240, 228, 205, 0.12);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-raised: 0 12px 28px -16px rgba(0, 0, 0, 0.6);
    --shadow-button: 0 12px 24px -10px rgba(194, 116, 74, 0.5);
    --shadow-phone: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.55));
    --dark-card: #221b12;
  }
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--teal-ink);
  text-decoration: none;
}
p,
h1,
h2,
h3,
figure {
  margin: 0;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 36px);
}
.section {
  padding-block: clamp(72px, 9vw, 122px);
}
section[id],
footer[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
#log,
#patterns,
#report,
#privacy,
#pricing,
#faq,
#why,
#download {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s;
}
.skip:focus {
  top: 12px;
}

h1,
h2,
.plan-name {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.1px;
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 5.6vw, 60px);
  line-height: 1.06;
}
h2 {
  font-size: clamp(29px, 3.8vw, 40px);
  line-height: 1.13;
}
h1 em,
h2 em,
.why-close em {
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-soft);
  margin-bottom: 18px;
}
.eyebrow-onteal {
  color: var(--sand);
}
.eyebrow-sand {
  color: var(--sand);
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ---------- brand mark ---------- */
.roundel {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.roundel > span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sand);
}
.roundel-lg {
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
}
.roundel-lg > span {
  width: 20px;
  height: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22.5px;
  color: var(--ink);
  letter-spacing: 0.2px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-clay {
  background: var(--clay);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn-clay:hover {
  transform: translateY(-1px);
}
.btn-cream {
  background: var(--on-teal);
  color: #17453e;
  box-shadow: var(--shadow-on-teal);
  padding: 13px 26px;
  margin-top: 30px;
}
.btn-cream:hover {
  transform: translateY(-1px);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--cream) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: clamp(16px, 2.4vw, 30px);
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-side {
  display: flex;
  align-items: center;
  gap: 14px;
}
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 0.22s,
    opacity 0.22s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px clamp(20px, 4.5vw, 36px) 20px;
  border-bottom: 1px solid var(--hair);
  background: color-mix(in srgb, var(--cream) 96%, transparent);
}
.mobile-menu a {
  padding: 11px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
}
.mobile-menu .btn {
  margin-top: 10px;
  align-self: flex-start;
}
.nav.open .mobile-menu {
  display: flex;
}
.nav.open .burger span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav.open .burger span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(40px, 6.5vw, 88px) 0;
}
.hero-arc {
  position: absolute;
  border-radius: 50%;
  background: var(--teal);
  pointer-events: none;
}
.hero-arc-a {
  width: 780px;
  height: 780px;
  top: -430px;
  right: -240px;
  opacity: 0.06;
}
.hero-arc-b {
  width: 520px;
  height: 520px;
  top: -290px;
  right: -110px;
  opacity: 0.07;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
/* The phones' min-content width must never widen the track (mobile: it would
   drag the text column past the viewport). */
.hero-grid > * {
  min-width: 0;
}
.hero-copy {
  padding-block: clamp(24px, 4vw, 64px) clamp(48px, 6vw, 88px);
}
.hero .lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.62;
  color: var(--muted);
  max-width: 54ch;
  margin-top: 24px;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.badge-row-center {
  justify-content: center;
}
.store-badge {
  display: inline-block;
  border-radius: 10px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}
.store-badge svg {
  display: block;
}
.store-badge[aria-disabled="true"] {
  cursor: default;
}
.badge-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--faint);
}
.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 34px 0 0;
  padding: 0;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.trust-strip .icon {
  width: 19px;
  height: 19px;
  color: var(--teal-ink);
}

.hero-visual {
  position: relative;
  height: clamp(430px, 52vw, 640px);
}
.hero-phone {
  position: absolute;
  filter: var(--shadow-phone);
}
.hero-phone img {
  width: 100%;
}
.hero-phone-main {
  width: clamp(240px, 24vw, 306px);
  left: 6%;
  top: 0;
  z-index: 2;
  transform: rotate(-1.5deg);
}
.hero-phone-side {
  width: clamp(200px, 20vw, 258px);
  right: 0;
  top: 11%;
  z-index: 1;
  transform: rotate(4deg);
  opacity: 0.97;
}
.hero-phone picture,
.hero-phone img {
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 96%);
}

/* ---------- reveal (gated behind .js so no-JS visitors see everything) ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .rv.in {
  opacity: 1;
  transform: none;
}
.js.reveal-now .rv {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- why ---------- */
.why {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(40px, 5vw, 72px);
}
.why-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.why-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(36px, 5vw, 56px);
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.stat-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 44px);
  line-height: 1;
  color: var(--teal-ink);
}
.stat-label {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.fn {
  font-weight: 600;
}
.why-close {
  margin-top: clamp(34px, 4.5vw, 48px);
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 23px);
  color: var(--ink);
}

/* ---------- features ---------- */
.feature {
  padding-block: clamp(48px, 6vw, 84px);
}
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.flip .feature-copy {
  order: 2;
}
.flip .feature-visual {
  order: 1;
}
.feature h2 {
  max-width: 17ch;
}
.feature .body {
  margin-top: 18px;
  color: var(--muted);
  max-width: 56ch;
}
.checks {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.checks li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.checks .icon {
  color: var(--teal-ink);
  background: var(--tint);
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 12px;
}
.checks div {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.checks strong {
  color: var(--ink);
  font-weight: 600;
}

.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  width: clamp(240px, 26vw, 300px);
  filter: var(--shadow-phone);
  position: relative;
}
.phone img {
  width: 100%;
}
/* Masks live on the CROP wrapper (gradient % is relative to the element box -
   on the full-height img the fade zone would sit below the crop and never show). */
.phone-crop {
  overflow: hidden;
  max-height: min(600px, 64vw);
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 97%);
}
.phone-tall {
  overflow: hidden;
  max-height: min(620px, 66vw);
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 97%);
}

.float-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 16px;
  box-shadow: var(--shadow-raised);
}
.insight-replica {
  left: max(-18px, -4vw);
  bottom: 9%;
  width: min(300px, 78%);
  padding: 16px 18px 14px;
}
.ic-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay-soft);
}
.ic-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay-soft);
}
.ic-line {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.32;
  color: var(--ink);
  margin-top: 8px;
}
.ic-sub {
  display: block;
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- report band ---------- */
.report-wrap {
  padding-block: clamp(40px, 5vw, 72px);
}
.report-band {
  position: relative;
  overflow: clip;
  background: var(--teal);
  border-radius: var(--radius-band);
  padding: clamp(40px, 5.5vw, 76px) clamp(24px, 5vw, 72px);
}
.band-arc {
  position: absolute;
  border-radius: 50%;
  background: #fbf6ec;
  pointer-events: none;
}
.band-arc-a {
  width: 460px;
  height: 460px;
  top: -260px;
  right: -140px;
  opacity: 0.05;
}
.band-arc-b {
  width: 300px;
  height: 300px;
  bottom: -170px;
  left: -110px;
  opacity: 0.04;
}
.report-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.report-band h2 {
  color: var(--on-teal);
}
.body-onteal {
  margin-top: 18px;
  color: var(--on-teal-muted);
  max-width: 56ch;
}
.body-onteal em {
  color: var(--on-teal);
  font-family: var(--serif);
  font-size: 1.06em;
}
.checks-onteal .icon {
  color: var(--sand);
  background: rgba(251, 246, 236, 0.1);
}
.checks-onteal div {
  color: var(--on-teal-muted);
}
.checks-onteal strong {
  color: var(--on-teal);
}
.report-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.report-visual .phone {
  filter: drop-shadow(0 30px 48px rgba(0, 0, 0, 0.38));
}
.report-visual .phone img {
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
}
.report-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  left: max(-14px, -3vw);
  bottom: 3.5%;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  max-width: 250px;
  line-height: 1.4;
}
.report-chip .icon {
  width: 20px;
  height: 20px;
  color: var(--teal-ink);
}

/* ---------- calm band ---------- */
.calm-wrap {
  padding-block: clamp(24px, 4vw, 56px);
}
.calm-band {
  position: relative;
  overflow: clip;
  background: var(--dark-bg);
  border: 1px solid var(--dark-hair);
  border-radius: var(--radius-band);
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 72px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.calm-band h2 {
  color: var(--dark-ink);
}
.calm-copy {
  padding-bottom: clamp(36px, 5vw, 64px);
}
.calm-copy p {
  margin-top: 16px;
  color: var(--dark-muted);
  max-width: 50ch;
}
.calm-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.calm-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark-ink);
  font-size: 15px;
  font-weight: 600;
}
.calm-points .icon {
  color: var(--sand);
  width: 20px;
  height: 20px;
}
.calm-visual {
  display: flex;
  justify-content: center;
  align-self: end;
}
.calm-visual .phone {
  margin-bottom: -2px;
}
.phone-crop-sm {
  overflow: hidden;
  max-height: min(520px, 60vw);
  width: clamp(230px, 24vw, 280px);
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 76%, transparent 99%);
}

/* ---------- privacy band ---------- */
.privacy-band {
  position: relative;
  overflow: clip;
  background: var(--teal);
  margin-top: clamp(24px, 4vw, 56px);
}
.band-arc-c {
  width: 720px;
  height: 720px;
  top: -420px;
  left: -260px;
  opacity: 0.05;
}
.privacy-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  position: relative;
}
.privacy-head h2 {
  color: var(--on-teal);
}
.privacy-head p {
  margin-top: 18px;
  color: var(--on-teal-muted);
  font-size: 17px;
}
.privacy-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(38px, 5vw, 56px);
}
.p-card {
  background: rgba(251, 246, 236, 0.07);
  border: 1px solid rgba(251, 246, 236, 0.13);
  border-radius: 18px;
  padding: 24px 22px 22px;
}
.p-card .icon {
  color: var(--sand);
  width: 24px;
  height: 24px;
}
.p-card h3 {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--on-teal);
}
.p-card p {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-teal-muted);
}
.privacy-link {
  margin-top: clamp(30px, 4vw, 42px);
  text-align: center;
  position: relative;
}
.privacy-link a {
  color: var(--on-teal);
  font-weight: 600;
  border-bottom: 1px solid rgba(251, 246, 236, 0.4);
  padding-bottom: 2px;
}
.privacy-link a:hover {
  border-bottom-color: var(--on-teal);
}

/* ---------- pricing ---------- */
.pricing-head {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}
.pricing-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: clamp(38px, 5vw, 56px);
  align-items: stretch;
}
.plan {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 24px;
  padding: 34px 30px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-premium {
  border: 1.5px solid var(--teal-ink);
}
.trial-flag {
  position: absolute;
  top: -13px;
  right: 26px;
  background: var(--teal);
  color: var(--on-teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 13px;
  border-radius: 999px;
}
.plan-name {
  font-size: 24px;
}
.plan-price {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.plan-price .num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 1;
  color: var(--ink);
}
.plan-price .unit {
  font-size: 14.5px;
  color: var(--muted);
}
.plan-alt {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.plan-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--hair);
  display: grid;
  gap: 12px;
  flex: 1;
  align-content: start;
}
.plan-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-2);
}
.plan-list .icon {
  width: 19px;
  height: 19px;
  color: var(--teal-ink);
  margin-top: 2px;
}
.plan-list strong {
  color: var(--ink);
}
.plan-foot {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--faint);
}
.grant-card {
  margin-top: 18px;
  background: linear-gradient(120deg, #f2e3c9, #eed9b7);
  border-radius: 24px;
  padding: 30px 30px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.grant-card .icon {
  width: 26px;
  height: 26px;
  color: #17453e;
  margin-top: 3px;
}
.grant-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  color: #2a241d;
}
.grant-card p {
  margin-top: 8px;
  color: #4a4137;
  font-size: 15.5px;
  max-width: 66ch;
}
.grant-card a {
  color: #17453e;
  font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  .grant-card {
    background: linear-gradient(120deg, #2e2413, #291f10);
    border: 1px solid var(--hair);
  }
  .grant-card h3 {
    color: var(--sand);
  }
  .grant-card p {
    color: var(--muted);
  }
  .grant-card .icon,
  .grant-card a {
    color: var(--sand);
  }
}
.fineprint {
  margin-top: 26px;
  text-align: center;
  font-size: 13.5px;
  color: var(--faint);
  max-width: 640px;
  margin-inline: auto;
}

/* ---------- faq ---------- */
.faq-inner {
  max-width: 780px;
}
.faq h2 {
  text-align: center;
}
.faq-list {
  margin-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--hair);
}
.faq-list details {
  border-bottom: 1px solid var(--hair);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 2px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary .icon {
  width: 17px;
  height: 17px;
  color: var(--faint);
  transition: transform 0.25s;
}
.faq-list details[open] summary .icon {
  transform: rotate(90deg);
  color: var(--teal-ink);
}
.faq-list details p {
  padding: 0 2px 20px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 68ch;
}
.faq-list a {
  font-weight: 600;
}

/* ---------- download ---------- */
.download {
  padding-top: clamp(30px, 4vw, 56px);
}
.download-card {
  position: relative;
  overflow: clip;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius-band);
  box-shadow: var(--shadow-raised);
  padding: clamp(48px, 7vw, 84px) clamp(24px, 5vw, 72px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dl-arc {
  width: 560px;
  height: 560px;
  top: -380px;
  right: -200px;
  opacity: 0.05;
}
.download-card h2 {
  max-width: 18ch;
}
.download-card > p {
  margin-top: 14px;
  color: var(--muted);
}
.download-card .badge-row {
  margin-top: 30px;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--hair);
  padding: clamp(44px, 6vw, 64px) 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.footer-tag {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
}
.footer-flower {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--faint);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 40ch;
}
.footer-flower .icon {
  width: 18px;
  height: 18px;
  color: var(--teal-ink);
  margin-top: 1px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.footer-col a:hover {
  color: var(--teal-ink);
}
.disclaimer {
  margin-top: clamp(32px, 4vw, 44px);
  padding: 18px 20px;
  background: var(--sunken);
  border-radius: 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.disclaimer p {
  max-width: none;
}
.footnotes {
  margin-top: 22px;
  display: grid;
  gap: 6px;
}
.footnotes p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--faint);
}
.legal {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--faint);
}
.legal p:last-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
}

/* ---------- prose (privacy page) ---------- */
.prose {
  max-width: 660px;
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 64px) clamp(56px, 8vw, 88px);
}
.prose h1 {
  font-size: clamp(32px, 4.5vw, 42px);
  margin-bottom: 8px;
}
.prose .meta {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 26px;
}
.prose .short {
  background: var(--tint);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 32px;
  color: var(--ink-2);
}
.prose h2 {
  font-size: clamp(21px, 2.4vw, 24px);
  margin: 36px 0 10px;
}
.prose p {
  margin: 0 0 14px;
  color: var(--ink-2);
}
.prose ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.prose li {
  margin-bottom: 8px;
}
.prose strong {
  color: var(--ink);
}
.prose a {
  font-weight: 600;
}
.prose a:hover {
  text-decoration: underline;
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-phone-main {
    left: 0;
  }
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 880px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding-bottom: 8px;
  }
  .hero-visual {
    height: auto;
    margin-top: 34px;
    display: flex;
    justify-content: center;
    gap: 0;
  }
  .hero-phone {
    position: relative;
  }
  .hero-phone-main {
    width: min(56vw, 270px);
    transform: rotate(-1.5deg);
    z-index: 2;
  }
  .hero-phone-side {
    width: min(42vw, 205px);
    top: 34px;
    margin-left: -44px;
  }
  .hero-phone picture,
  .hero-phone img {
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 92%);
  }
  .hero-visual {
    max-height: 480px;
    overflow: hidden;
  }
  .feature-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }
  .flip .feature-copy {
    order: 1;
  }
  .flip .feature-visual {
    order: 2;
  }
  .feature-visual {
    margin-top: 8px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .calm-band {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }
  .calm-copy {
    padding-bottom: 0;
  }
  .calm-visual {
    margin-top: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .insight-replica {
    left: 0;
  }
  .report-chip {
    left: 0;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .badge-row {
    gap: 10px;
  }
  .store-badge svg {
    height: 46px;
    width: auto;
  }
  .hero-phone-side {
    display: none;
  }
  .hero-phone-main {
    width: min(74vw, 270px);
  }
  .grant-card {
    flex-direction: column;
    gap: 12px;
  }
  .legal {
    flex-direction: column;
    gap: 6px;
  }
}
