/* FuneHub marketing site
   Tokens from the briefing (section 7) and the mood board canvas. */

:root {
  --paper-50: #fcfbf9;
  --paper-100: #f3f1ec;
  --cream: #fdf6ec;
  --sky: #f9e5cb;
  --sky-mid: #fdedd7;
  --sky-end: #fbf0e1;
  --far-hill: #9aa9af;
  --mid-hill: #cbcbc5;
  --near-hill: #e4dfd5;
  --sage-300: #bcc9b0;
  --sage-600: #8b9a82;
  --sage-700: #5f6f56;
  --logo-slate: #42505f;
  --slate-700: #36485a;
  --ink: #22303c;
  --ink-deep: #1e2a34;
  --body: #4b5a66;
  --muted: #68757f;
  --line: #e3e0d8;
  --ok: #1e8c6e;
  --ok-bg: #e4f3ee;
  --warn: #a8641c;
  --warn-bg: #fbf0e3;

  --sky-gradient: linear-gradient(180deg, var(--sky) 0%, var(--sky-mid) 35%, var(--sky-end) 100%);

  --font-display: "Newsreader", Georgia, serif;
  --font-ui: "Nunito Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --wrap: 1312px;
  --section-y: clamp(72px, 9vw, 128px);
  --radius-card: 12px;
  --radius-scene: 24px;
  --shadow-float: 0 32px 64px -16px rgba(30, 42, 52, 0.4), 0 2px 6px rgba(30, 42, 52, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: var(--slate-700); }
a:hover { color: var(--ink-deep); }
:focus-visible { outline: 3px solid var(--sage-700); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--slate-700); color: var(--paper-50); padding: 12px 18px; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--paper-50); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */

.kicker {
  font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: var(--sage-700);
  text-transform: uppercase; letter-spacing: 0.2em;
}
.h2 {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05; letter-spacing: -0.015em; color: var(--logo-slate); text-wrap: balance;
}
.h2 em, .hero h1 em { font-style: italic; color: var(--sage-700); }
.lead { font-size: clamp(17px, 1.4vw, 18px); line-height: 1.65; color: var(--body); max-width: 60ch; }
.note { font-size: 14px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 13px 26px; border-radius: 999px; font-family: var(--font-ui); font-weight: 600;
  font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--slate-700); color: var(--paper-50); }
.btn--primary:hover { background: var(--ink-deep); color: var(--paper-50); }
.btn--ghost { border-color: #c9c4b8; color: var(--slate-700); background: rgba(252, 251, 249, 0.7); }
.btn--ghost:hover { border-color: var(--slate-700); }
.btn--light { background: var(--cream); color: var(--ink-deep); }
.btn--light:hover { background: #fff; color: var(--ink-deep); }
.btn--outline-light { border-color: rgba(252, 251, 249, 0.6); color: var(--paper-50); }
.btn--outline-light:hover { border-color: var(--paper-50); color: var(--paper-50); }
.link-arrow {
  font-family: var(--font-ui); font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Nav (1) ---------- */

.site-nav {
  position: sticky; top: 16px; z-index: 50; margin: 16px var(--gutter) 0;
}
.site-nav__bar {
  max-width: 1376px; margin: 0 auto; min-height: 64px; padding: 8px 10px 8px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(252, 251, 249, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; box-shadow: 0 12px 32px -12px rgba(30, 42, 52, 0.28);
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
}
.site-nav__logo img { height: 26px; width: auto; }
.site-nav__links { display: flex; gap: clamp(16px, 2.2vw, 30px); list-style: none; padding: 0; }
.site-nav__links a, .site-nav__tools a { text-decoration: none; }
.site-nav__tools { display: flex; align-items: center; gap: 18px; }
.site-nav__tools .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.lang-switch { display: flex; gap: 6px; align-items: center; }
.lang-switch [aria-current="true"] { color: var(--ink-deep); text-decoration: underline; text-underline-offset: 4px; }
.site-nav__toggle {
  display: none; width: 44px; height: 44px; flex-shrink: 0; border: 0; background: transparent; border-radius: 50%;
  align-items: center; justify-content: center; color: var(--slate-700); cursor: pointer;
}
.site-nav__toggle:hover { background: var(--paper-100); }
.site-nav__toggle .icon-close, .site-nav.is-open .site-nav__toggle .icon-menu { display: none; }
.site-nav.is-open .site-nav__toggle .icon-close { display: block; }
.site-nav__quick, .site-nav__demo, .site-nav__scrim { display: none; }
.site-nav__panel { display: contents; }

/* Phone and tablet: the pill bar itself grows into the menu card */
@media (max-width: 1080px) {
  .site-nav { height: 64px; }
  .site-nav__bar {
    position: relative; flex-wrap: wrap; padding: 8px 8px 8px 20px; gap: 8px;
    transition: border-radius .2s ease;
  }
  .site-nav__logo { margin-right: auto; }
  .site-nav__toggle { display: inline-flex; }
  .site-nav.is-open .site-nav__bar {
    border-radius: 28px; background: var(--paper-50);
    max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 24px 48px -16px rgba(30, 42, 52, 0.35);
  }

  .site-nav__scrim {
    position: fixed; inset: 0; z-index: -1; background: rgba(30, 42, 52, 0.4); border: 0; padding: 0; cursor: default;
  }
  .site-nav.is-open .site-nav__scrim { display: block; }

  .site-nav__panel {
    display: none; width: 100%; flex-direction: column; padding: 4px 12px 12px 0;
    border-top: 1px solid var(--line); margin-top: 4px;
  }
  .site-nav.is-open .site-nav__panel { display: flex; animation: nav-in .18s ease-out; }

  .site-nav__links { flex-direction: column; gap: 0; }
  .site-nav__links li + li { border-top: 1px solid var(--line); }
  .site-nav__links a {
    display: flex; justify-content: space-between; align-items: center; padding: 16px 0; min-height: 56px;
    font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--logo-slate);
  }
  .site-nav__links a::after { content: "→"; font-family: var(--font-ui); font-size: 18px; color: var(--sage-600); }

  .site-nav__tools {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "cta cta" "demo demo" "login lang";
    gap: 10px; margin-top: 12px;
  }
  .site-nav__tools .btn { min-height: 48px; font-size: 16px; }
  .site-nav__tools .btn--primary { grid-area: cta; }
  .site-nav__demo { display: inline-flex; grid-area: demo; }
  .site-nav__login { grid-area: login; align-self: center; padding: 14px 0 0; font-size: 15px; }
  .site-nav__tools .lang-switch { grid-area: lang; justify-self: end; align-self: center; padding-top: 14px; }
  .site-nav__login, .site-nav__tools .lang-switch { margin-top: 6px; border-top: 0; }
  .site-nav__tools::after { content: ""; grid-column: 1 / -1; grid-row: 3; border-top: 1px solid var(--line); margin-top: 6px; pointer-events: none; align-self: start; }

  .lang-switch a { display: inline-flex; min-width: 40px; min-height: 36px; align-items: center; justify-content: center; border-radius: 999px; }
  .lang-switch [aria-current="true"] { background: var(--paper-100); text-decoration: none; }
  .site-nav__tools .lang-switch > span { display: none; }
}
@media (min-width: 600px) and (max-width: 1080px) {
  .site-nav__quick { display: inline-flex; min-height: 44px; padding: 10px 18px; font-size: 15px; }
  .site-nav.is-open .site-nav__quick { display: none; }
  .site-nav__tools { grid-template-areas: "cta demo" "login lang"; }
  .site-nav__tools::after { grid-row: 2; }
}
@media (min-width: 1081px) {
  .site-nav__panel { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 16px; padding-left: clamp(16px, 3vw, 48px); }
}
html.nav-open { overflow: hidden; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-nav.is-open .site-nav__panel { animation: none; } .site-nav__bar { transition: none; } }

/* ---------- Hero (2) ----------
   Static layout (Hero A style) is the default: no JS, reduced motion, small screens.
   .hero-motion on <html> switches to the Hero D scroll scene. */

.hero { position: relative; margin-top: -80px; padding-top: 80px; background: var(--sky-gradient); }

.hero__hills {
  position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(80px, 10vw, 150px); pointer-events: none;
}
.hero__stage {
  position: relative; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(110px, 12vw, 190px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "content visual";
  gap: clamp(40px, 5vw, 72px); align-items: center;
}
.hero__content { grid-area: content; display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(44px, 6vw, 82px);
  line-height: 1.02; letter-spacing: -0.02em; color: var(--logo-slate); text-wrap: balance;
}
.hero__pitch { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--body); max-width: 540px; }
.hero__trust { font-size: 14px; color: var(--muted); }
.hero__cta-motion { display: none; }

.hero__visual { grid-area: visual; position: relative; align-self: start; }
.hero__arch {
  width: min(480px, 100%); aspect-ratio: 48 / 62; margin-left: auto; overflow: hidden;
  border-radius: 999px 999px 28px 28px; background: var(--sky-mid);
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero__sun {
  position: absolute; right: 0; top: -12px; width: clamp(96px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%;
  overflow: hidden; border: 6px solid var(--paper-50); box-shadow: 0 12px 32px -12px rgba(30, 42, 52, 0.28);
}
.hero__sun img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }

.hero__card {
  grid-area: visual; align-self: end; justify-self: start; z-index: 3; margin-bottom: -56px;
  width: min(400px, 92%);
}
.app-card {
  background: var(--paper-50); border-radius: var(--radius-card); box-shadow: var(--shadow-float);
  padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); font-size: 14px; line-height: 1.45;
}
.app-card__meta { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.app-card__eyebrow { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-700); font-weight: 600; }
.app-card__date { font-size: 11px; color: var(--muted); }
.app-card__ask {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 6px 6px 6px 14px;
  display: flex; align-items: center; gap: 8px;
}
.app-card__ask span:first-child { flex: 1; }
.app-card__send {
  width: 30px; height: 30px; border-radius: 50%; background: var(--slate-700); display: inline-flex; align-items: center; justify-content: center;
}
.app-card__status { font-size: 12px; color: var(--body); }
.app-card__status strong { color: var(--warn); font-weight: 500; }
.app-card__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.app-card__tile {
  aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; padding: 10px;
  display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; font-weight: 500;
}

/* Scene layers only exist in motion mode */
.hero__scene, .hero__intro, .hero__hint { display: none; }

@media (max-width: 860px) {
  .hero__stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "content" "visual"; }
  .hero__arch { margin: 0 auto; width: min(400px, 86%); }
  .hero__card { justify-self: center; margin-bottom: -40px; }
}

/* Motion mode (Hero D) */
.hero-motion .hero { margin-top: -80px; padding-top: 0; background: none; }
.hero-motion .hero__hills--static { z-index: 4; }
.hero-motion .hero__track { height: 330vh; position: relative; }
.hero-motion .hero__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; max-width: none; padding: 0; display: block; overflow: hidden;
  background: var(--sky-gradient);
}
.hero-motion .hero__visual { display: none; }
.hero-motion .hero__scene, .hero-motion .hero__intro, .hero-motion .hero__hint { display: block; }

.hero-motion .hero__scene { position: absolute; inset: 0; }
.hero-motion .scene-side {
  position: absolute; bottom: 12vh; opacity: var(--side-op, 1);
  transform: translate(calc(var(--away, 0) * var(--dx, 0) * 1px), calc(var(--away, 0) * 70px));
  will-change: transform, opacity;
}
.scene-side img { width: 100%; height: 100%; object-fit: cover; }
.scene-urn { left: 7.5vw; width: 8.3vw; height: 13vw; max-height: 22vh; --dx: -560; }
.scene-urn svg { width: 100%; height: 100%; display: block; }
.scene-leaf { left: 18vw; width: 17.4vw; height: 22.2vw; max-height: 36vh; border-radius: 50% 18px 50% 18px / 40% 18px 40% 18px; overflow: hidden; --dx: -460; }
.scene-leaf img { object-position: 50% 30%; }
.hero-motion .scene-sun {
  left: 25vw; bottom: auto; top: 36vh; width: 9.7vw; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  transform: translate(calc(var(--away, 0) * -380px), calc(var(--away, 0) * -140px));
}
.scene-sun img { object-position: 65% 50%; }
.scene-hill { left: 65vw; width: 18.8vw; height: 20.8vw; max-height: 34vh; clip-path: url(#hillTop); --dx: 460; }
.scene-rect { left: 86vw; width: 10.4vw; height: 14.6vw; max-height: 24vh; border-radius: var(--radius-scene); overflow: hidden; --dx: 560; }
.scene-rect img { object-position: 30% 50%; }

.scene-arch {
  position: absolute; left: 50%; bottom: calc(12vh + var(--arch-bottom, 0px));
  width: var(--arch-w, 320px); height: var(--arch-h, 470px); transform: translateX(-50%);
  border-radius: 999px 999px var(--arch-foot, 14px) var(--arch-foot, 14px); overflow: hidden; background: var(--sky-mid);
  box-shadow: 0 0 0 6px rgba(66, 80, 95, var(--outline, 0.85)); will-change: width, height, bottom;
}
.scene-arch__img, .scene-arch__scrim {
  position: absolute; left: 50%; bottom: calc(-12vh - var(--arch-bottom, 0px)); width: 100vw; height: 100vh; height: 100svh;
  transform: translateX(-50%);
}
.scene-arch__img img {
  width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 45%;
  transform: scale(var(--img-scale, 1.2)); transform-origin: 50% 60%;
}
.scene-arch__scrim {
  background: linear-gradient(90deg, rgba(30, 42, 52, 0.82) 0%, rgba(30, 42, 52, 0.5) 45%, rgba(30, 42, 52, 0) 75%);
  opacity: var(--scrim, 0);
}
.scene-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 26vh; display: block; }
.scene-hills--back { transform: translateY(calc(var(--open, 0) * 22vh)); }
.scene-hills--mid { transform: translateY(calc(var(--open, 0) * 30vh)); }
.scene-hills--front { transform: translateY(calc(var(--open, 0) * 40vh)); }

.hero-motion .hero__intro {
  position: absolute; left: 0; right: 0; top: clamp(112px, 15vh, 150px); text-align: center; padding: 0 var(--gutter);
  opacity: var(--intro-op, 1); transform: translateY(calc(var(--intro-y, 0) * 1px));
}
.hero__intro p:first-child { margin-bottom: 14px; }
.hero__intro .hero__intro-line {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 4.3vw, 62px); line-height: 1.04;
  letter-spacing: -0.02em; color: var(--logo-slate);
}
.hero__intro .hero__intro-line em { color: var(--sage-700); }
.hero__intro .hero__intro-sub { margin-top: 14px; font-size: 18px; color: var(--body); }

.hero-motion .hero__content {
  position: absolute; left: var(--gutter); top: 50%; width: min(620px, 46vw); gap: 24px;
  opacity: var(--fin, 0); transform: translateY(calc(-58% + var(--fin-y, 40) * 1px)); color: var(--paper-50);
}
.hero-motion .hero__content:focus-within { opacity: 1; }
.hero-motion .hero__content .kicker { color: var(--sky); }
.hero-motion .hero h1 { color: var(--paper-50); font-size: clamp(48px, 5.3vw, 76px); }
.hero-motion .hero h1 em { color: var(--sky); }
.hero-motion .hero__pitch { color: #dde4e9; }
.hero-motion .hero__trust { color: #cdd6dc; }
.hero-motion .hero__cta-static { display: none; }
.hero-motion .hero__cta-motion { display: flex; }

.hero-motion .hero__card {
  position: absolute; right: var(--gutter); bottom: max(18vh, 150px); margin: 0; width: 400px;
  opacity: var(--card-op, 0); transform: translateY(calc(var(--card-y, 120) * 1px));
}
.hero-motion .hero__hint {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); text-align: center;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--logo-slate); opacity: var(--hint-op, 1);
}
.hero__hint svg { margin: 6px auto 0; }

/* ---------- Section shell ---------- */

.section { padding: var(--section-y) 0; position: relative; }
.section--paper { background: var(--paper-100); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink-deep); color: var(--paper-50); }
.section--dark .kicker { color: var(--sage-300); }
.section--dark .h2 { color: var(--paper-50); }
.section--dark .h2 em { color: var(--sky); }
.section--dark .lead { color: #dde4e9; }
.section__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px 72px; align-items: end; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split > .stack { gap: 22px; }

/* ---------- Audience picker (3) ---------- */

.picker { padding: clamp(48px, 6vw, 80px) 0 var(--section-y); }
.picker__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 28px; }
.picker__card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius-scene);
  background: var(--paper-100); text-decoration: none; color: var(--ink); transition: background-color .2s, transform .2s;
  min-height: 200px;
}
.picker__card:hover { background: var(--cream); color: var(--ink); transform: translateY(-2px); }
.picker__card h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--logo-slate); }
.picker__card p { color: var(--body); }
.picker__card .link-arrow { margin-top: auto; color: var(--slate-700); }
.picker__card a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- Reality (4) ---------- */

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; margin-top: 48px; }
.people figure { display: flex; flex-direction: column; gap: 14px; }
.people__sun { aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.people__sun img { width: 100%; height: 100%; object-fit: cover; }
.people__sun--todo {
  background: var(--sky-gradient); border: 1px dashed #b9a98f; display: flex; align-items: center; justify-content: center;
  padding: 18%; text-align: center; font-size: 14px; color: var(--body);
}
.people figcaption { font-family: var(--font-ui); font-size: 15px; font-weight: 600; text-align: center; }

/* ---------- One platform (5) ---------- */

.network { text-align: center; }
.network .stack { align-items: center; max-width: 820px; margin: 0 auto; }
.network .lead { margin: 0 auto; }
.network__diagram {
  list-style: none; padding: 0; margin: 56px auto 0; max-width: 980px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px;
}
.network__party {
  font-family: var(--font-ui); font-size: 15px; font-weight: 600; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 18px;
}
.network__hub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 210px; height: 210px; border-radius: 50%; background: var(--cream); margin: 0 12px; padding: 24px;
}
.network__hub img { width: 64px; height: auto; }
.network__hub strong { font-family: var(--font-ui); font-size: 17px; color: var(--logo-slate); }
.network__hub span { font-size: 13px; color: var(--body); }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin-top: 56px; text-align: left; }
.trio > div { border-top: 1px solid var(--line); padding-top: 20px; }
.trio h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--logo-slate); margin-bottom: 6px; }
.trio p { color: var(--body); }
.section--dark .trio > div { border-color: #384854; }
.section--dark .trio h3 { color: var(--paper-50); }
.section--dark .trio p { color: #a9b4bd; }

/* ---------- Funeral directors (6) ---------- */

.checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 24px; }
.checks li { display: flex; gap: 10px; }
.checks svg { flex-shrink: 0; margin-top: 3px; }
.ui-shot { position: relative; }
.ui-shot__photo { width: min(560px, 100%); aspect-ratio: 56 / 46; margin-left: auto; border-radius: var(--radius-scene); overflow: hidden; }
.ui-shot__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.ui-shot .app-card { position: relative; width: min(390px, 90%); margin-top: -170px; }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: #17694f; }
.pill--warn { background: var(--warn-bg); color: #8a5a1c; }
.pill--info { background: #e6eef7; color: #245a8f; }
.app-card__title { font-family: var(--font-display); font-size: 22px; color: var(--logo-slate); }

/* ---------- Suppliers (7) ---------- */

.supplier-visual { position: relative; width: min(500px, 100%); padding-top: 64px; }
.supplier-visual__urn { position: absolute; right: 8%; top: 0; width: 34%; height: 260px; }
.supplier-visual__leaf {
  position: relative; width: 100%; aspect-ratio: 50 / 56; overflow: hidden;
  border-radius: 50% 28px 50% 28px / 40% 28px 40% 28px;
}
.supplier-visual__leaf img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.import-card { width: min(420px, 92%); margin: -180px 0 0 auto; position: relative; }
.import-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; font-size: 13px; }
.import-row__thumb { width: 36px; height: 36px; border-radius: 6px; flex-shrink: 0; }
.import-row__name { flex: 1; font-weight: 500; }
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: step; }
.steps li { display: flex; gap: 16px; align-items: flex-start; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--slate-700);
  color: var(--paper-50); font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center;
}
.steps span { padding-top: 5px; }
.steps strong { font-weight: 600; }
.mock-btn { align-self: flex-start; font-size: 13px; font-weight: 500; background: var(--slate-700); color: var(--paper-50); padding: 9px 14px; border-radius: 999px; }

/* ---------- AI (8) ---------- */

.ai-flow { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; margin-top: 56px; }
.ai-mail {
  width: min(400px, 100%); background: #243039; border: 1px solid #384854; border-radius: var(--radius-card); padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.ai-mail__from { display: flex; gap: 10px; align-items: center; font-size: 12px; color: #a9b4bd; }
.ai-mail__subject { font-weight: 500; }
.ai-mail__body { font-size: 14px; line-height: 1.55; color: #a9b4bd; }
.ai-flow .app-card { width: min(400px, 100%); }
.ai-flow__arrow { flex-shrink: 0; }
.ai-rule {
  margin-top: 40px; display: flex; gap: 14px; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-ui); font-weight: 600; color: var(--sky);
}
.section--dark .link-arrow { color: var(--sky); }

/* ---------- Custom software & AI (9) ---------- */

.custom-visual { position: relative; }
.custom-visual__hill { width: 100%; aspect-ratio: 56 / 50; overflow: hidden; border-radius: var(--radius-scene); clip-path: url(#hillTop); }
.custom-visual__hill img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-top: 56px; }
.services li {
  list-style: none; background: var(--paper-50); border-radius: var(--radius-card); padding: 22px; display: flex; flex-direction: column; gap: 8px;
}
.services ul { padding: 0; }
.services h3 { font-family: var(--font-ui); font-size: 17px; font-weight: 700; color: var(--logo-slate); }
.services p { font-size: 15px; line-height: 1.55; color: var(--body); }
.case {
  border-left: 0; background: var(--paper-50); border-radius: var(--radius-scene); padding: 24px 26px; display: flex; flex-direction: column; gap: 8px;
}
.case__label { font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: var(--sage-700); text-transform: uppercase; letter-spacing: 0.2em; }
.intake { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: intake; }
.intake li {
  counter-increment: intake; font-family: var(--font-ui); font-weight: 600; font-size: 14px; background: var(--paper-50);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
}
.intake li::before { content: counter(intake) ". "; color: var(--sage-700); }

/* ---------- Trust (10) ---------- */

.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.trust-grid > div { background: var(--paper-100); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.trust-grid h3 { font-size: 17px; font-weight: 600; }
.trust-grid p { font-size: 15px; line-height: 1.55; color: var(--body); }

/* ---------- Proof (11) ---------- */

.proof__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.badge-todo { font-size: 13px; font-weight: 600; background: var(--warn-bg); color: #8a5a1c; padding: 6px 12px; border-radius: 999px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 48px; }
.quotes figure { background: var(--paper-50); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.quotes blockquote { font-family: var(--font-display); font-size: 22px; line-height: 1.4; color: var(--logo-slate); }
.quotes figcaption { display: flex; gap: 14px; align-items: center; }
.quotes__sun {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; background: var(--sky-gradient);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--logo-slate);
}
.quotes__who { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; line-height: 1.4; }
.quotes__who span { font-size: 14px; font-weight: 400; color: var(--muted); }
.logos-todo {
  margin-top: 32px; border: 1px dashed #b9a98f; border-radius: var(--radius-card); padding: 18px; text-align: center; color: var(--body); font-size: 14px;
}

/* ---------- Pricing (12) ---------- */

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 48px; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius-scene); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.price-card--sky { background: var(--sky-gradient); border-color: transparent; }
.price-card__amount { font-family: var(--font-display); font-size: 40px; font-weight: 300; color: var(--logo-slate); line-height: 1.1; }
.price-card p { color: var(--body); }
.price-card .btn { align-self: flex-start; margin-top: auto; }
.prices__more { margin-top: 28px; }

/* ---------- FAQ + closing (13) ---------- */

.faq { max-width: 880px; margin: 0 auto; }
.faq__list { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--font-display); font-size: clamp(20px, 2vw, 24px); color: var(--logo-slate); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--sage-700); border-bottom: 2px solid var(--sage-700); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--body); max-width: 70ch; }

.closing {
  position: relative; background: var(--sky-gradient); text-align: center;
  padding: clamp(80px, 10vw, 140px) 0 clamp(130px, 15vw, 210px);
}
.closing__inner { position: relative; max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 24px; align-items: center; }
.closing__inner img { width: 64px; height: auto; }
.closing .h2 { font-size: clamp(42px, 5.4vw, 72px); }
.closing .btn-row { justify-content: center; }
.closing__hills { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(80px, 10vw, 150px); display: block; }

.site-footer { padding: 48px 0 56px; font-size: 14px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; color: var(--muted); }
.site-footer__brand img { height: 26px; width: auto; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.site-footer__cols h2 { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-700); margin-bottom: 4px; }
.site-footer__cols ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer__cols a { text-decoration: none; display: inline-block; padding: 3px 0; }
.site-footer__bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; font-size: 13px; color: var(--muted);
}
.site-footer__bottom a { text-decoration: none; }

/* Placeholder marker for open questions from the briefing */
.todo { background: var(--warn-bg); color: #8a5a1c; border-radius: 4px; padding: 0 4px; }
.section--dark .todo { background: rgba(249, 229, 203, 0.16); color: var(--sky); }
