/* MyKinFold's marketing pages: the landing page ("/" signed out, path mode)
   and /pricing (app/views/layout_landing.php, app/views/marketing/).
   Loaded after site.css and built only from its tokens, so both themes and
   the contrast checks in tests/a11y/contrast.js cover these pages too.
   Product pictures are HTML/CSS mock-ups (.mock-*), never stock photos. */

:root:has(.landing-body) { scroll-padding-top: 5.5rem; }
.landing-body { --landing-header-h: 4.25rem; background: var(--bg); }
.landing { display: block; }
.landing-flashes { padding-top: 1rem; }

/* ---------- Header ---------- */
.landing-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.landing-header .header-inner { flex-wrap: nowrap; min-height: var(--landing-header-h); padding-block: .5rem; gap: .75rem; }
.landing-brand {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; margin-right: auto; min-width: 0;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em;
}
.landing-brand:hover { color: var(--ink); }
.landing-brand img { border-radius: 50%; flex: none; }
.landing-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.landing-nav a:not(.button) {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .85rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap;
}
.landing-nav a:not(.button):hover { background: var(--surface-2); color: var(--ink); }
.landing-nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-strong); }
.landing-nav .landing-nav-cta { margin-left: .35rem; white-space: nowrap; padding-inline: 1.15rem; }
@media (max-width: 899px) { .landing-nav-wide { display: none; } }
@media (max-width: 560px) {
  .landing-nav-pricing { display: none; }
  .landing-brand { font-size: 1.15rem; }
  .landing-nav a:not(.button) { padding-inline: .6rem; }
  .landing-nav .landing-nav-cta { margin-left: .1rem; padding-inline: .9rem; }
}
@media (max-width: 360px) {
  .landing-brand span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Shared section parts ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-surface { background: var(--surface); }
.section-tint { background: var(--surface-2); }
.section-brand { background: var(--brand-tint); }
.section-surface .step, .section-surface .teaser:not(.teaser-featured) { background: var(--bg); }
.section-head { max-width: 46rem; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 1.3rem + 1.7vw, 2.6rem); letter-spacing: -.02em; font-weight: 800; margin-bottom: .75rem; }
.section-head p:last-child { margin-bottom: 0; }
.section-head p { font-size: 1.15rem; color: var(--muted); }
.section-cta { text-align: center; margin: clamp(2rem, 5vw, 3rem) 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 1rem;
  padding: .3rem .85rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand-strong);
  font-size: .95rem; font-weight: 700; letter-spacing: .01em;
}
.section-brand .eyebrow { background: var(--surface); }
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 20px; height: 20px; }
.icon-xs { width: 16px; height: 16px; }
.landing h3, .landing h4 { font-weight: 700; }
.landing h4 { font-family: var(--font-display); line-height: 1.25; margin: 0 0 .35rem; font-size: 1.15rem; }
.badge-soon { background: var(--accent-tint); color: var(--accent); font-size: .8rem; vertical-align: middle; margin: 0; white-space: nowrap; }
.badge-save { background: var(--success-tint); color: var(--success-ink); font-size: .8rem; margin: 0; white-space: nowrap; }
.badge-pick { background: var(--brand-tint); color: var(--brand-strong); font-size: .8rem; margin: 0; }
.ticks { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.ticks .icon { color: var(--brand); margin-top: .2rem; }

/* ---------- Hero ---------- */
.hero, .pricing-hero {
  background:
    radial-gradient(circle at 8% 0%, rgb(47 93 80 / 14%), transparent 42%),
    radial-gradient(circle at 100% 100%, rgb(162 74 34 / 10%), transparent 40%),
    var(--bg);
}
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.hero-inner { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero h1, .pricing-hero h1 {
  font-size: clamp(2.3rem, 1.5rem + 3vw, 3.75rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; margin-bottom: 1.25rem;
}
.hero-lede { font-size: clamp(1.15rem, 1rem + .55vw, 1.4rem); line-height: 1.55; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.25rem; }
.hero-cta { min-height: 58px; font-size: 1.15rem; padding-inline: 1.75rem; box-shadow: 0 6px 18px rgb(47 93 80 / 28%); }
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
}
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: 1rem; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: .35rem; }
.hero-points .icon { color: var(--brand); }
.hero-returning { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); max-width: 36rem; }
.hero-returning p { margin: 0 0 .35rem; }
.hero-returning a { font-weight: 700; }

/* The hero's product picture: a browser window with two cards, plus two
   floating notes. Decorative (aria-hidden); the figcaption describes it. */
.hero-visual { position: relative; margin: 0; padding-block: 1rem 2.75rem; max-width: 36rem; justify-self: center; width: 100%; }
.mock-window {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgb(42 36 32 / 14%), 0 2px 6px rgb(42 36 32 / 6%);
  font-size: 1rem; line-height: 1.45;
}
.mock-bar { display: flex; align-items: center; gap: .75rem; padding: .55rem .85rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mock-dots { display: inline-flex; gap: .35rem; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-url { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .75rem; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; }
.mock-head { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; background: var(--brand); color: #fff; }
.mock-logo { width: 22px; height: 22px; border-radius: 50%; background: #fff; flex: none; }
.mock-family { font-weight: 700; white-space: nowrap; }
.mock-tabs { margin-left: auto; display: flex; gap: .2rem; font-size: .85rem; }
.mock-tabs > * { padding: .15rem .6rem; border-radius: 999px; }
.mock-tabs b { background: #fff; color: #224539; }
@media (max-width: 520px) { .mock-tabs > :not(b) { display: none; } }
.mock-body { display: grid; gap: .85rem; padding: 1rem; background: var(--bg); }
.mock-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; box-shadow: var(--shadow); text-align: left; line-height: 1.45;
}
.mock-card p { margin: .6rem 0; }
.mock-card small { display: block; color: var(--muted); font-size: .85rem; }
.mock-card strong { display: block; }
.mock-who { display: flex; gap: .65rem; align-items: center; }
.mock-who > span:nth-child(2) { flex: 1; min-width: 0; }
.mock-who .badge { margin: 0; flex: none; }
.mock-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-strong); font-weight: 700; font-size: .9rem;
}
.mock-avatar-accent { background: var(--accent-tint); color: var(--accent); }
.mock-avatar-memorial { width: 60px; height: 60px; font-size: 1.2rem; background: var(--memorial-tint); color: var(--memorial); }
.mock-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.mock-photo { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); display: grid; place-items: center; }
.mock-photo .icon { width: 28px; height: 28px; }
.mock-photo-1 { background: var(--brand-tint); color: var(--brand-strong); }
.mock-photo-2 { background: var(--accent-tint); color: var(--accent); }
.mock-photo-3 { background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.mock-foot { display: flex; gap: 1.1rem; margin-top: .65rem; font-size: .85rem; color: var(--muted); }
.mock-foot span { display: inline-flex; align-items: center; gap: .3rem; }
.mock-event-top { display: flex; gap: .8rem; align-items: center; }
.mock-event-top > span:last-child { min-width: 0; }
.mock-event-top small { display: flex; align-items: center; gap: .25rem; }
.mock-card .date-chip strong { display: block; }
.mock-rsvp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin-top: .8rem; }
.mock-rsvp span {
  display: inline-flex; align-items: center; justify-content: center; gap: .25rem; padding: .35rem .4rem;
  border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.mock-rsvp .is-on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong); }
.mock-card .mock-count { margin: .6rem 0 0; font-size: .9rem; color: var(--muted); }
.mock-count strong { display: inline; color: var(--ink); }
.mock-float {
  position: absolute; display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 34px rgb(42 36 32 / 16%); font-size: .9rem; line-height: 1.35;
}
.mock-float strong { display: block; }
.mock-float small { display: block; color: var(--muted); font-size: .8rem; }
.mock-float .icon { width: 32px; height: 32px; padding: 6px; border-radius: 10px; }
.mock-float-cal { left: -1.25rem; bottom: .25rem; }
.mock-float-cal .icon { background: var(--brand-tint); color: var(--brand-strong); }
.mock-float-chat { right: -1rem; top: -.25rem; }
.mock-float-chat .icon { background: var(--accent-tint); color: var(--accent); }
@media (max-width: 1100px) { .mock-float-cal { left: .5rem; } .mock-float-chat { right: .5rem; top: auto; bottom: .25rem; } }
@media (max-width: 640px) { .mock-float-chat { display: none; } }
@media (max-width: 420px) { .mock-float { display: none; } .hero-visual { padding-bottom: 1rem; } }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--surface); border-block: 1px solid var(--line); padding-block: 1.5rem; }
.trust-list { list-style: none; margin: 0 auto; display: grid; gap: 1.25rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.trust-list li { display: flex; gap: .85rem; align-items: center; font-size: 1rem; color: var(--muted); line-height: 1.35; }
.trust-list strong { display: block; color: var(--ink); font-size: 1.05rem; }
.trust-list .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-strong); }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow); }
.step h3 { font-size: 1.3rem; }
.step p { margin: 0; color: var(--muted); }
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.1rem;
  border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.4rem; font-weight: 800;
}

/* ---------- Spotlights and the feature grid ---------- */
.spotlight {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: minmax(0, 1fr);
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
}
@media (min-width: 900px) {
  .spotlight { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .spotlight-flip .spotlight-copy { order: 2; }
}
.spotlight-copy h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); letter-spacing: -.015em; margin-bottom: .75rem; }
.spotlight-copy > p { font-size: 1.1rem; margin: 0; }
.spotlight-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.1rem; border-radius: 16px; background: var(--brand-tint); color: var(--brand-strong); }
.spotlight-icon .icon { width: 30px; height: 30px; }
.spotlight-icon-memorial { background: var(--memorial-tint); color: var(--memorial); }
.spotlight-visual {
  display: grid; place-items: center; padding: clamp(1.25rem, 5vw, 3rem); border-radius: 24px;
  background: var(--brand-tint); font-size: 1rem;
}
.spotlight-flip .spotlight-visual { background: var(--memorial-tint); }
.spotlight-visual .mock-card { width: min(100%, 27rem); box-shadow: 0 18px 44px rgb(42 36 32 / 12%); }
.mock-rsvp-list ul, .mock-privacy ul { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; }
.mock-rsvp-list li { display: flex; gap: .65rem; align-items: center; padding-block: .55rem; border-top: 1px solid var(--line); }
.mock-rsvp-list li > span:nth-child(2) { flex: 1; min-width: 0; }
.mock-rsvp-list .badge { margin: 0; flex: none; }
.mock-card .mock-ics {
  display: inline-flex; align-items: center; gap: .4rem; margin: .75rem 0 0; padding: .35rem .9rem;
  border: 1.5px solid var(--brand); border-radius: 999px; color: var(--brand); font-weight: 600; font-size: .9rem;
}
.mock-memorial { border-top: 4px solid var(--memorial); }
.mock-memorial-head { display: flex; gap: .85rem; align-items: center; }
.mock-memorial-head strong { font-size: 1.3rem; font-family: var(--font-display); }
.mock-memorial-head small:first-child { color: var(--memorial); font-weight: 600; }
.mock-card .mock-service { display: flex; gap: .4rem; align-items: flex-start; margin: .9rem 0 .4rem; font-size: .9rem; color: var(--muted); }
.mock-service .icon { margin-top: .1rem; color: var(--memorial); }
.mock-service u { color: var(--memorial); }
.mock-tribute { margin-top: .55rem; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--memorial-tint); }
.mock-card .mock-tribute p { margin: 0 0 .2rem; font-size: .95rem; }
.mock-tribute small { font-weight: 600; }
.mock-privacy-title { font-weight: 700; }
.mock-card .mock-privacy-title { margin: 1rem 0 0; }
.mock-privacy li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .55rem; border-top: 1px solid var(--line); font-size: .95rem; }
.mock-privacy li:first-child { border-top: 0; }
.mock-switch { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); }
.mock-switch i { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--field-border); }
.mock-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); }
.mock-switch.is-on { color: var(--brand-strong); font-weight: 600; }
.mock-switch.is-on i { background: var(--brand); }
.mock-switch.is-on i::after { left: 19px; }

.feature-grid-title { text-align: center; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); margin-bottom: 1.75rem; }
.feature-grid, .addon-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature-grid li, .addon { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.feature-grid p, .addon p { margin: 0; color: var(--muted); font-size: 1rem; }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: .85rem; border-radius: 12px; background: var(--brand-tint); color: var(--brand-strong); }

/* Jump links to the five spotlights (wrap on phones; 44px targets). */
.tour-nav { margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.tour-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.tour-nav a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem 1rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none;
}
.tour-nav a:hover { border-color: var(--brand); color: var(--brand-strong); }
.tour-nav .icon { color: var(--brand); }
.spotlight { scroll-margin-top: 5.5rem; }
.spotlight-note { margin: 1.25rem 0 0; font-size: 1rem; color: var(--muted); }
.spotlight-visual-chat { background: var(--accent-tint); }
.spotlight-flip .spotlight-visual-chat { background: var(--accent-tint); }

/* Photo with hearts and a comment */
.mock-scene { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.scene-sky { fill: var(--accent-tint); }
.scene-sun { fill: var(--accent); opacity: .55; }
.scene-hill-back { fill: var(--brand-tint); }
.scene-hill { fill: var(--brand); opacity: .55; }
.scene-people { fill: var(--brand-strong); }
.mock-card .mock-caption { margin: .75rem 0 0; }
.mock-heart.is-on, .mock-heart.is-on .icon { color: var(--accent); }
.mock-heart.is-on .icon { fill: currentColor; }
.mock-comment { display: flex; gap: .6rem; align-items: center; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.mock-comment .mock-avatar { width: 32px; height: 32px; font-size: .75rem; }
.mock-card .mock-comment p { margin: 0; font-size: .95rem; }
.mock-comment strong { display: inline; margin-right: .3rem; }

/* Chat with rooms, who's online and messages */
.mock-chat-rooms { display: flex; flex-wrap: wrap; gap: .4rem; }
.mock-chat-rooms span { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; }
.mock-chat-rooms .is-on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong); }
.mock-chat-rooms b { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: var(--accent); color: var(--surface); font-size: .8rem; }
.mock-card .mock-online { display: flex; align-items: center; gap: .45rem; margin: .75rem 0 .25rem; font-size: .9rem; color: var(--muted); }
.mock-online i { width: 10px; height: 10px; border-radius: 50%; background: var(--success-ink); }
.mock-msg { display: flex; gap: .55rem; align-items: flex-end; margin-top: .6rem; }
.mock-msg .mock-avatar { width: 32px; height: 32px; font-size: .75rem; }
.mock-card .mock-msg p { margin: 0; padding: .5rem .8rem; border-radius: 14px 14px 14px 4px; background: var(--surface-2); font-size: .95rem; }
.mock-card .mock-msg p strong { font-size: .8rem; color: var(--muted); }
.mock-msg-own { justify-content: flex-end; }
.mock-card .mock-msg-own p { border-radius: 14px 14px 4px 14px; background: var(--brand); color: var(--on-brand, #fff); }

/* Branch picker and list */
.mock-card .mock-branches-title { margin: 0 0 .5rem; font-weight: 700; }
.mock-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.mock-choice span { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; padding: .35rem .5rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.mock-choice .is-on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong); }
.mock-branches ul { list-style: none; margin: .9rem 0 0; padding: 0; }
.mock-branches li { display: flex; gap: .7rem; align-items: center; padding-block: .55rem; border-top: 1px solid var(--line); }
.mock-branch-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); flex: none; }
.mock-branch-dot-2 { background: var(--accent); }
.mock-branch-dot-3 { background: var(--memorial); }

/* ---------- For whoever runs the site ---------- */
.organiser-inner { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1000px) { .organiser-inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.organiser-copy h2 { font-size: clamp(1.8rem, 1.3rem + 1.7vw, 2.6rem); letter-spacing: -.02em; font-weight: 800; margin-bottom: .75rem; }
.organiser-lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.organiser-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.organiser-list li { display: flex; gap: .85rem; align-items: flex-start; }
.organiser-list li > .icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-strong); }
.organiser-list h3 { font-size: 1.1rem; margin: 0 0 .2rem; }
.organiser-list p { margin: 0; color: var(--muted); font-size: 1rem; }
.organiser-visual { display: grid; gap: 1rem; padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: 24px; background: var(--brand-tint); }
.organiser-visual .mock-card { box-shadow: 0 18px 44px rgb(42 36 32 / 12%); }
.mock-card .mock-approve-title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .5rem; font-weight: 700; color: var(--brand-strong); }
.mock-approve .mock-who { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.mock-approve-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin-top: .6rem; }
.mock-approve-actions span { display: flex; justify-content: center; padding: .35rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; }
.mock-approve-actions .is-on { border-color: var(--brand); background: var(--brand); color: var(--on-brand, #fff); }
.mock-export { display: flex; gap: .8rem; align-items: center; }
.mock-export > .icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); }
.mock-export > span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Privacy promises (also the pricing principles) ---------- */
.promise-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.promise-grid li { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.promise-grid li > .icon { width: 30px; height: 30px; color: var(--brand); margin-top: .1rem; }
.promise-grid h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.promise-grid p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Plans teaser ---------- */
.teaser-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.teaser { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem; }
.teaser h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 1.35rem; }
.teaser p { margin: 0; color: var(--muted); font-size: 1rem; }
.teaser .teaser-price { margin: .35rem 0 .85rem; color: var(--ink); font-size: 1.05rem; }
.teaser-price strong { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; }
.teaser-price span { display: block; color: var(--muted); font-size: 1rem; }
.teaser-featured { border: 2px solid var(--brand); box-shadow: 0 18px 40px rgb(47 93 80 / 14%); }
.teaser-note { text-align: center; max-width: 42rem; margin: 2rem auto 0; color: var(--muted); }

/* ---------- FAQ (details/summary: works without JavaScript) ---------- */
.faq-inner { max-width: 52rem; }
.faq-list { display: grid; gap: .75rem; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-list details[open] { border-color: var(--brand); }
.faq-list summary {
  position: relative; display: block; list-style: none; cursor: pointer; min-height: 56px;
  padding: 1rem 3.5rem 1rem 1.25rem; font-weight: 700; font-size: 1.1rem; line-height: 1.4; border-radius: var(--radius);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%; width: .6rem; height: .6rem;
  border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: translateY(-70%) rotate(45deg);
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list summary:hover { color: var(--brand-strong); }
.faq-list details p { margin: 0; padding: 0 1.25rem 1.25rem; }

/* ---------- Final call to action ---------- */
.cta-band { background: var(--brand); color: #fff; text-align: center; padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); letter-spacing: -.02em; font-weight: 800; margin-bottom: .75rem; }
.cta-band p { font-size: 1.15rem; margin-bottom: 0; }
.cta-band .cta-actions { margin-top: 1.75rem; }
.cta-band :focus-visible { outline-color: var(--focus-on-brand); }
.cta-band .cta-button { background: #fff; border-color: #fff; color: #224539; min-height: 58px; font-size: 1.15rem; padding-inline: 1.75rem; }
.cta-band .cta-button:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand-strong); }

/* ---------- Footer (partials/site_footer.php, shared with every layout) ---------- */
.landing-footer .footer-inner { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.landing-footer .footer-brand { font-size: 1.1rem; }

/* ---------- Pricing ---------- */
.pricing-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1rem; text-align: center; }
.pricing-hero h1 { max-width: 18ch; margin-inline: auto; }
.pricing-hero .hero-lede { margin-inline: auto; }
.launch-note {
  display: flex; gap: .75rem; align-items: flex-start; max-width: 44rem; margin: 2rem auto 0; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem;
}
.launch-note .icon { color: var(--accent); margin-top: .1rem; }
.launch-note p { margin: 0; }
.plans-section { padding-top: 2rem; }
.billing-switch { margin: 0 auto 2.5rem; text-align: center; }
.billing-switch legend { width: 100%; margin-bottom: .75rem; text-align: center; color: var(--muted); font-weight: 600; }
.billing-options { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: .35rem; border-radius: 999px; background: var(--surface-2); }
.billing-option {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 52px; padding: .45rem 1.25rem;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 1.05rem;
}
.billing-option:has(input:checked) { background: var(--surface); border-color: var(--brand); color: var(--brand-strong); box-shadow: var(--shadow); }
.billing-option input { width: 22px; height: 22px; }
@media (max-width: 520px) {
  .billing-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: 20px; }
  .billing-option { flex-wrap: wrap; justify-content: center; gap: .3rem .5rem; padding: .5rem .6rem; border-radius: 16px; }
}
/* Yearly or monthly prices, by the checked radio (no JavaScript). */
.pricing-plans:has(#billing-month:checked) .price-year,
.pricing-plans:has(#billing-year:checked) .price-month { display: none; }
.plan-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 2rem 1.5rem; grid-template-columns: minmax(0, 1fr); max-width: 36rem; align-items: stretch; }
@media (min-width: 1000px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; } }
.plan-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow); }
.plan-featured { border: 2px solid var(--brand); box-shadow: 0 20px 44px rgb(47 93 80 / 16%); }
.plan-flag {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); margin: 0; white-space: nowrap;
  padding: .3rem 1rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: .9rem; font-weight: 700;
}
.plan-name { font-size: 1.6rem; font-weight: 800; margin: 0; }
.plan-for { margin: .25rem 0 1.25rem; color: var(--muted); font-size: 1rem; }
.plan-price { min-height: 6.25rem; }
.price { margin: 0; line-height: 1.1; }
.price strong { font-size: 2.9rem; font-weight: 800; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 1.05rem; }
.price-sub { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }
.price-sub .badge { margin-left: .2rem; }
.plan-action { margin: 1.25rem 0 0; }
.plan-action-note { margin: .5rem 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.plan-features-lead { margin: 1.5rem 0 .6rem; font-weight: 700; font-size: 1rem; }
.plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: 1rem; }
.plan-action + .plan-features { margin-top: 1.5rem; }
.plan-features li { display: flex; gap: .55rem; align-items: flex-start; }
.plan-features .icon { color: var(--brand); margin-top: .2rem; }
.plan-soon { margin: auto 0 0; padding-top: 1.25rem; color: var(--muted); font-size: .95rem; }
.plan-features + .plan-soon { margin-top: 1.25rem; border-top: 1px dashed var(--line); }
.plan-soon .badge { margin-right: .25rem; }
.plans-footnote { text-align: center; color: var(--muted); font-size: .95rem; margin: 2rem auto 0; max-width: 44rem; }

/* The comparison: a real table that fits a phone without sideways
   scrolling (fixed layout, wrapping cells); plan names stay in view. */
.compare { width: 100%; max-width: 62rem; margin: 0 auto; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 1rem; line-height: 1.4; }
.compare th, .compare td { color: var(--ink); vertical-align: middle; font-size: inherit; }
.compare tr:last-child td { border-bottom: 1px solid var(--line); }
.compare-corner { width: 40%; min-width: 0; }
.compare thead th {
  position: sticky; top: var(--landing-header-h); z-index: 2; background: var(--surface);
  padding: .9rem .4rem; text-align: center; font-size: 1.1rem; font-weight: 800; border-bottom: 2px solid var(--brand);
}
.compare thead td { border-bottom: 2px solid var(--brand); }
.compare .compare-group th { text-align: left; padding: .65rem .9rem; background: var(--brand-tint); color: var(--brand-strong); font-weight: 700; }
.compare tbody + tbody .compare-group th { border-top: 1.25rem solid var(--surface); }
.compare tbody th[scope="row"] { text-align: left; font-weight: 400; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
.compare tbody th .badge { margin: .2rem 0 0; }
.compare td { text-align: center; vertical-align: middle; padding: .8rem .35rem; border-bottom: 1px solid var(--line); }
.compare .icon-yes { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--success-tint); color: var(--success-ink); vertical-align: middle; }
.compare .icon-no { color: var(--muted); vertical-align: middle; }
@media (max-width: 600px) {
  .compare { font-size: .95rem; }
  .compare-corner { width: 39%; }
  .compare thead th { font-size: .95rem; padding-inline: .15rem; }
  .compare tbody th[scope="row"] { padding: .7rem .5rem .7rem .35rem; }
  .compare-group th { padding-inline: .5rem; }
  .compare td { padding-inline: .1rem; font-size: .875rem; overflow-wrap: normal; }
}
@media (max-width: 360px) {
  .compare-corner { width: 42%; }
  .compare tbody th[scope="row"] { font-size: .9rem; }
  .compare td { font-size: .8rem; }
}
.addon h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.addon .addon-price { color: var(--ink); margin-bottom: .6rem; }
.addon-price strong { font-size: 1.35rem; }

/* ---------- Dark theme (the device's, or forced with data-theme; see site.css) ---------- */
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme="light"])) .mock-head { background: #1d2f29; }
  :where(:root:not([data-theme="light"])) .mock-tabs b { background: var(--brand); color: #10211b; }
  :where(:root:not([data-theme="light"])) .step-num, :where(:root:not([data-theme="light"])) .plan-flag { color: #10211b; }
  :where(:root:not([data-theme="light"])) .mock-card .mock-msg-own p, :where(:root:not([data-theme="light"])) .mock-approve-actions .is-on { color: #10211b; }
  :where(:root:not([data-theme="light"])) .cta-band { background: #1d2f29; }
  :where(:root:not([data-theme="light"])) .cta-band .cta-button { background: var(--brand); border-color: var(--brand); color: #10211b; }
  :where(:root:not([data-theme="light"])) .cta-band .cta-button:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #10211b; }
  :where(:root:not([data-theme="light"])) .hero-cta { box-shadow: none; }
}
:where(:root[data-theme="dark"]) .mock-head { background: #1d2f29; }
:where(:root[data-theme="dark"]) .mock-tabs b { background: var(--brand); color: #10211b; }
:where(:root[data-theme="dark"]) .step-num, :where(:root[data-theme="dark"]) .plan-flag { color: #10211b; }
:where(:root[data-theme="dark"]) .mock-card .mock-msg-own p, :where(:root[data-theme="dark"]) .mock-approve-actions .is-on { color: #10211b; }
:where(:root[data-theme="dark"]) .cta-band { background: #1d2f29; }
:where(:root[data-theme="dark"]) .cta-band .cta-button { background: var(--brand); border-color: var(--brand); color: #10211b; }
:where(:root[data-theme="dark"]) .cta-band .cta-button:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #10211b; }
:where(:root[data-theme="dark"]) .hero-cta { box-shadow: none; }

@media (prefers-reduced-motion: no-preference) {
  .faq-list summary::after { transition: transform .15s ease; }
  .billing-option { transition: background-color .15s ease, border-color .15s ease; }
}

/* ---------- Founders offer (partials/founders_banner.php) ---------- */
.founders-section { padding-top: 0; }
.founders-banner {
  display: flex; gap: 1rem; align-items: flex-start; max-width: 52rem; margin: 2rem auto 0;
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow);
}
.founders-banner .founders-title { font-size: 1.35rem; margin: 0 0 .4rem; }
.founders-banner p { margin: 0 0 .5rem; }
.founders-banner p:last-child { margin-bottom: 0; }
.founders-banner .feature-icon { flex: none; }
@media (max-width: 520px) { .founders-banner { flex-direction: column; padding: 1rem; } }
