/* Wren & Ledger — concept site by Dani Sostisso
   Direction: Colour chapters. Every section is one flat field of the palette. */

:root {
  /* palette (approved): cream, deep teal, mint, coral */
  --cream: #F7F1E8;
  --sand: #EADCC6;        /* how-it-works field, a step down from cream */
  --teal: #1F4A44;
  --green: #2E6159;       /* teal one step lighter: FAQ field, second stage */
  --mint: #9CC5B4;
  --mint-2: #B9D8CB;      /* tone step on mint */
  --mint-3: #CDE3D9;
  --coral: #D2643F;       /* brand coral: shapes and large fills */
  --coral-ink: #B84C2C;   /* darker coral for buttons and fields with text (AA with cream) */
  --cream-2: #EFE6D8;
  --coral-deep: #A44226;  /* chip and fill a step under coral-ink */
  --coral-press: #943B21;
  --coral-hover: #A2401F;
  --green-2: #3A6E65;     /* FAQ tiles on the green field */
  --green-3: #44786F;
  --peach: #E9A389;       /* team tile tint */

  --ink: var(--teal);
  --paper: var(--cream);

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-display: clamp(44px, 7.4vw, 124px);
  --t-h2: clamp(36px, 4.4vw, 64px);
  --t-3: 28px;
  --t-lead: 20px;
  --t-body: 18px;
  --t-small: 14px;

  /* space */
  --m: clamp(16px, 2.4vw, 32px);
  --gap: clamp(12px, 1.6vw, 24px);
  --r: 18px;
  --section: clamp(80px, 9vw, 136px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--teal) var(--cream); accent-color: var(--coral-ink); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--coral); color: var(--cream); }
:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 3px; border-radius: 4px; }
/* on the dark and coral fields the ring turns cream so it stays visible */
.services :focus-visible, .plans :focus-visible, .faq :focus-visible, .cta__tile :focus-visible, .foot :focus-visible,
.bar[data-tone="teal"] :focus-visible, .bar[data-tone="green"] :focus-visible, .bar[data-tone="coral"] :focus-visible,
.chapters__item[data-tone="teal"]:focus-visible, .chapters__item[data-tone="coral"]:focus-visible, .chapters__item[data-tone="green"]:focus-visible { outline-color: var(--cream); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--teal); color: var(--cream); padding: 12px 18px; border-radius: 999px; }
.skip:focus { top: 12px; }

.h2 { font-family: var(--serif); font-weight: 420; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.025em; font-variation-settings: "SOFT" 100, "opsz" 96; }
.h3 { font-family: var(--serif); font-weight: 450; font-size: var(--t-3); line-height: 1.15; letter-spacing: -0.01em; font-variation-settings: "SOFT" 100; }

/* ---------- buttons: fully round, flat ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0;
  font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--coral { background: var(--coral-ink); color: #fff; }
.btn--line { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn--cream { background: var(--cream); color: var(--teal); }
.btn--small { min-height: 44px; padding: 0 20px; }
@media (hover: hover) and (pointer: fine) {
  .btn--coral:hover { background: var(--coral-hover); }
  .btn--line:hover { background: var(--teal); color: var(--cream); }
  .btn--cream:hover { background: #fff; }
}

/* ---------- fixed bar: takes the colour of the chapter beneath it ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  padding: 10px var(--m);
  background: var(--bar-bg, var(--cream)); color: var(--bar-ink, var(--teal));
  transform: translateY(-100%);
  transition: transform 420ms var(--ease-out), background-color 300ms ease, color 300ms ease;
}
.bar.is-shown { transform: translateY(0); }
.bar__mark { font-family: var(--serif); font-size: var(--t-lead); font-weight: 500; text-decoration: none; letter-spacing: -0.01em; font-variation-settings: "SOFT" 100; }
.bar__links { display: flex; gap: 24px; margin-left: auto; }
.bar__links a { text-decoration: none; font-size: 16px; font-weight: 500; padding: 8px 0; position: relative; }
.bar__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .bar__links a:hover::after { transform: scaleX(1); } }
[data-tone="teal"].bar, .bar[data-tone="green"], .bar[data-tone="coral"] { --bar-ink: var(--cream); }
.bar[data-tone="cream"] { --bar-bg: var(--cream); --bar-ink: var(--teal); }
.bar[data-tone="sand"] { --bar-bg: var(--sand); --bar-ink: var(--teal); }
.bar[data-tone="mint"] { --bar-bg: var(--mint); --bar-ink: var(--teal); }
.bar[data-tone="teal"] { --bar-bg: var(--teal); }
.bar[data-tone="green"] { --bar-bg: var(--green); }
.bar[data-tone="coral"] { --bar-bg: var(--coral-ink); }
.bar[data-tone="coral"] .btn--coral { background: var(--cream); color: var(--coral-ink); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px;
  min-height: min(100svh, 1000px); padding: 10px;
  background: var(--cream); overflow-x: clip;
}
.hero__stage {
  grid-column: 1 / 11; position: relative;
  display: grid; grid-template-columns: repeat(10, 1fr); column-gap: var(--gap);
  align-items: center;
  padding: clamp(84px, 9vw, 120px) var(--m) clamp(40px, 5vw, 72px);
  background: var(--cream);
}
.hero__mark { position: absolute; top: 28px; left: var(--m); font-family: var(--serif); font-size: var(--t-3); font-weight: 500; text-decoration: none; letter-spacing: -0.015em; font-variation-settings: "SOFT" 100; }
.hero__copy { grid-column: 1 / 7; position: relative; z-index: 2; }
.hero__title {
  font-family: var(--serif); font-weight: 400; font-size: var(--t-display);
  line-height: 0.98; letter-spacing: -0.035em; font-variation-settings: "SOFT" 100, "opsz" 144;
}
.hero__title em { font-style: italic; font-weight: 380; color: inherit; }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; white-space: nowrap; }
.hero__line > span { display: inline-block; }
.hero__lede { max-width: 31em; margin-top: 32px; font-size: var(--t-lead); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__view { grid-column: 7 / 11; position: relative; align-self: stretch; min-height: 420px; }
.hero__photo { position: absolute; inset: 6% 6% 4% 4%; border-radius: var(--r); overflow: hidden; z-index: 2; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 47% 40%; }
.leaf { position: absolute; z-index: 1; overflow: visible; }
.leaf path { fill: currentColor; }
.leaf .vein { fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; }
.leaf--blob { color: var(--mint); width: 78%; right: -14%; top: -4%; }
.leaf--coral { color: var(--coral); width: 42%; left: -24%; bottom: 10%; z-index: 3; transform-origin: 90% 50%; }
.leaf--sprig { color: var(--teal); width: 26%; right: -10%; bottom: -3%; z-index: 3; transform-origin: 50% 100%; }
.leaf--sprig .vein { stroke: var(--teal); stroke-width: 5; }
.leaf--mint { color: var(--mint); width: 16%; left: -8%; top: 4%; z-index: 1; transform-origin: 50% 100%; }

.chapters { grid-column: 11 / 13; display: grid; grid-template-rows: repeat(5, 1fr); }
.chapters__item {
  display: flex; flex-direction: column; gap: 4px; padding: 20px; font-size: 16px; font-weight: 600; text-decoration: none; line-height: 1.25;
}
.chapters__item small { font-size: var(--t-small); font-weight: 400; line-height: 1.35; }
.chapters__item { position: relative; overflow: hidden; }
.chapters__item { text-decoration: underline 2px transparent; text-underline-offset: 6px; transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .chapters__item:hover { text-decoration-color: currentColor; } }
.chapters__item:first-child { border-radius: var(--r) var(--r) 0 0; }
.chapters__item:last-child { border-radius: 0 0 var(--r) var(--r); }
[data-tone="mint"].chapters__item { background: var(--mint); color: var(--teal); }
[data-tone="teal"].chapters__item { background: var(--teal); color: var(--cream); }
[data-tone="sand"].chapters__item { background: var(--sand); color: var(--teal); }
[data-tone="coral"].chapters__item { background: var(--coral-ink); color: var(--cream); }
[data-tone="green"].chapters__item { background: var(--green); color: var(--cream); }

/* ---------- intro board ---------- */
.intro { padding: 0 10px 10px; background: var(--cream); }
.board { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, minmax(300px, min(38svh, 400px))) auto; gap: 8px; }
.tile { border-radius: var(--r); overflow: hidden; position: relative; display: flex; align-items: flex-end; }
.tile--a { grid-column: 1 / 9; grid-row: 1 / 3; background: var(--teal); color: var(--cream); padding: 20px 28px; }
.tile__slogan { font-family: var(--serif); font-weight: 400; font-size: var(--t-display); line-height: 0.9; letter-spacing: -0.04em; font-variation-settings: "SOFT" 100, "opsz" 144; }
.tile--b { grid-column: 9 / 13; grid-row: 1; background: var(--mint); color: var(--teal); padding: 20px 24px; }
.tile__word { font-family: var(--serif); font-size: var(--t-display); line-height: 0.9; letter-spacing: -0.04em; font-variation-settings: "SOFT" 100, "opsz" 144; white-space: nowrap; }
.tile--c { grid-column: 9 / 13; grid-row: 2; }
.tile--c img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.tile--text { grid-column: 1 / 13; grid-row: 3; display: grid; grid-template-columns: repeat(12, 1fr); padding: clamp(48px, 7vw, 120px) 40px; background: var(--cream); }
.tile--text p { grid-column: 7 / 13; font-size: var(--t-3); line-height: 1.35; letter-spacing: -0.01em; }

/* ---------- chapters (shared) ---------- */
.chapter { padding: var(--section) var(--m); min-height: min(90svh, 900px); }
.soft { color: var(--green); }

/* who: mint */
.who { background: var(--mint); color: var(--teal); }
.who__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.who__body { display: grid; grid-template-columns: 190px 1fr; gap: 40px; margin-top: 56px; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tab {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 72px; padding: 10px 16px; text-align: left;
  border: 0; border-radius: 12px; background: var(--mint-2); cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.tab strong { font-size: 18px; font-weight: 600; }
.tab span { font-size: var(--t-small); line-height: 1.3; }
.tab:active { transform: scale(0.98); }
.tab[aria-selected="true"] { background: var(--teal); color: var(--cream); }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { background: var(--mint-3); } }
.panel__name { font-family: var(--serif); font-weight: 450; font-size: var(--t-3); margin-bottom: 14px; font-variation-settings: "SOFT" 100; }
.js .panel__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.panel + .panel { margin-top: 48px; }
.js .panel + .panel { margin-top: 0; }
.js .panel[hidden] { display: none; }
.bands { display: flex; flex-direction: column; gap: 4px; }
.band {
  display: grid; grid-template-columns: 22% 1fr auto; align-items: center; gap: 20px;
  min-height: 92px; padding: 16px 24px; border-radius: 12px;
  background: var(--mint-3);
}
.band:nth-child(even) { background: var(--mint-2); }
.band__key { font-family: var(--serif); font-size: var(--t-lead); font-weight: 450; font-variation-settings: "SOFT" 100; }
.band__what strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.35; }
.band__what small { display: block; font-size: 16px; line-height: 1.45; margin-top: 2px; }
.band__svc { font-size: var(--t-small); font-weight: 600; text-align: right; white-space: nowrap; }

/* services: teal, pinned heading */
.services { background: var(--teal); color: var(--cream); }
.services__main { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.services__pin { grid-column: 1 / 6; position: sticky; top: 88px; }
.services__title { font-family: var(--serif); font-weight: 500; font-size: var(--t-display); line-height: 0.95; letter-spacing: -0.035em; font-variation-settings: "SOFT" 100, "opsz" 144; }
.services__rows { grid-column: 6 / 13; display: flex; flex-direction: column; gap: 64px; padding-top: 8px; }
.tools { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: var(--section); padding-top: 48px; }
.tools .svc__name { grid-column: 1 / 6; }
.tools__names { grid-column: 6 / 13; }
.tools__note { grid-column: 6 / 12; }
.svc__name { font-family: var(--serif); font-weight: 450; font-size: var(--t-3); line-height: 1.1; margin-bottom: 24px; font-variation-settings: "SOFT" 100; }
.svc--flip .svc__list { font-size: 18px; line-height: 1.4; }
.svc__list li { padding-left: 26px; position: relative; }
.svc__list li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 12px; border-radius: 50% 0 50% 0; background: var(--mint); }
.svc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.svc-stage { position: relative; margin-top: 40px; width: min(100%, 440px); aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--green); }
.svc-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 600ms ease, transform 1200ms var(--ease-out); }
.svc-stage img.is-on { opacity: 1; transform: scale(1); }
.tools__names { font-family: var(--serif); font-size: var(--t-3); line-height: 1.1; letter-spacing: -0.02em; color: var(--mint); font-variation-settings: "SOFT" 100; }
.tools__note { margin-top: 18px; }

/* how: sand, horizontal accordion */
.how { background: var(--sand); color: var(--teal); }
.how__intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.how__intro .h2 { grid-column: 1 / 6; }
.how__intro p { grid-column: 7 / 12; font-size: 18px; }
.stages { display: flex; flex-direction: column; gap: 8px; margin-top: 64px; }
.stage { border-radius: var(--r); overflow: hidden; }
.stage:nth-child(1) { background: var(--teal); color: var(--cream); }
.stage:nth-child(2) { background: var(--green); color: var(--cream); }
.stage:nth-child(3) { background: var(--mint); color: var(--teal); }
.stage:nth-child(4) { background: var(--mint-3); color: var(--teal); }
.stage__tab { display: none; }
.stage__body { padding: 32px; }
.stage__name { font-family: var(--serif); font-weight: 450; font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "SOFT" 100; }
.stage__body p { max-width: 36ch; margin-top: 16px; font-size: 18px; }

.js .stages { flex-direction: row; gap: 0; height: 520px; }
.js .stage { position: relative; flex: 1 1 0; min-width: 0; border-radius: 0; transition: flex-grow 450ms var(--ease-in-out); }
.js .stage:first-child { border-radius: var(--r) 0 0 var(--r); }
.js .stage:last-child { border-radius: 0 var(--r) var(--r) 0; }
.js .stage.is-open { flex-grow: 4.6; }
.js .stage__tab {
  display: block; position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; padding: 0; z-index: 1;
}
.js .stage__tab span {
  position: absolute; left: 24px; bottom: 28px; transform-origin: 0 100%; transform: rotate(-90deg) translate(0, 100%);
  font-size: 20px; font-weight: 600; white-space: nowrap; transition: opacity 200ms ease;
}
.js .stage.is-open .stage__tab { pointer-events: none; }
.js .stage.is-open .stage__tab span { opacity: 0; }
.js .stage__body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; width: max(560px, 100%); opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 0s linear 220ms; pointer-events: none; }
.js .stage.is-open .stage__body { opacity: 1; visibility: visible; transition: opacity 260ms ease 200ms, visibility 0s; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) { .js .stage:not(.is-open):hover { flex-grow: 1.25; } }

/* plans: coral field, picker writes the sentence */
.plans { background: var(--coral-ink); color: var(--cream); display: flex; flex-direction: column; gap: 56px; }
.picker { display: flex; }
.picker__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.picker legend { padding: 0; margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px;
  background: var(--coral-deep); color: var(--cream); font-weight: 500; font-size: 16px;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.chip input:checked + span { background: var(--cream); color: var(--coral-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--cream); outline-offset: 3px; }
.chip:active span { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .chip:hover input:not(:checked) + span { background: var(--coral-press); } }

.verdict__line { font-family: var(--serif); font-weight: 400; font-size: var(--t-display); line-height: 1; letter-spacing: -0.035em; font-variation-settings: "SOFT" 100, "opsz" 144; }
.verdict__plan { display: inline-block; }
.verdict__price { display: inline-block; background: var(--teal); color: var(--cream); padding: 0 0.15em; border-radius: 0.12em; font-variant-numeric: tabular-nums lining-nums; }
.plans__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.picker { grid-column: 1 / 8; flex-direction: column; gap: 24px; }
.verdict__foot { grid-column: 8 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.verdict__inc { font-size: var(--t-lead); line-height: 1.5; }
.verdict__note { display: block; margin-top: 10px; }
.compare { padding-top: 16px; }
.compare__table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.4; font-variant-numeric: tabular-nums lining-nums; }
.compare__table th, .compare__table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(247, 241, 232, 0.35); }
.compare__table thead th { font-family: var(--serif); font-weight: 450; font-size: var(--t-3); font-variation-settings: "SOFT" 100; }
.compare__table tbody th { font-weight: 600; width: 22%; }
.compare__table td, .compare__table th[data-col] { transition: background-color 300ms ease, color 300ms ease; }
.compare__table .is-match { background: var(--cream); color: var(--teal); border-bottom-color: rgba(31, 74, 68, 0.2); }
.compare__table thead .is-match { border-radius: var(--r) var(--r) 0 0; }
.compare__table tbody tr:last-child .is-match { border-radius: 0 0 var(--r) var(--r); border-bottom-color: transparent; }
.compare__fine { margin-top: 20px; font-size: var(--t-small); }

/* team: cream, colour tiles */
.team { background: var(--cream); min-height: auto; }
.team__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.team__head .h3 { grid-column: 1 / 6; }
.team__head p { grid-column: 7 / 12; font-size: 18px; }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 12px; margin-top: 40px; }
.person__tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); }
.person__tile img { position: absolute; max-width: none; height: auto; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
.person__tile--1 { background: var(--mint); }
.person__tile--2 { background: var(--peach); }
.person__tile--3 { background: var(--sand); }
.person__tile--4 { background: var(--mint-2); }
.person__tile--1 img { width: 300%; left: -94%; top: -8%; }
.person__tile--2 img { width: 390%; left: -44%; top: -6%; }
.person__tile--3 img { width: 390%; left: -153%; top: -8%; }
.person__tile--4 img { width: 390%; left: -250%; top: -6%; }
.person__name { margin-top: 12px; font-size: 18px; font-weight: 600; }
.person__role { font-size: 16px; line-height: 1.4; color: var(--green); }

/* faq: green field, filled tiles */
.faq { background: var(--green); color: var(--cream); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.faq__title { grid-column: 1 / 5; }
.faq__list { grid-column: 5 / 13; display: flex; flex-direction: column; gap: 8px; }
.faq details { border-radius: var(--r); background: var(--green-2); transition: background-color 260ms ease, color 260ms ease; }
.faq details[open] { background: var(--cream); color: var(--teal); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px; padding: 16px 24px; cursor: pointer; list-style: none;
  font-size: 20px; font-weight: 500; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary { position: relative; padding-right: 64px; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 28px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px;
  border-radius: 2px; background: currentColor;
}
.faq summary::after { transform: rotate(90deg); transition: transform 260ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 24px; max-width: 52ch; font-size: 18px; }
@media (hover: hover) and (pointer: fine) { .faq details:not([open]):hover { background: var(--green-3); } }

/* cta: the action tile */
.cta { padding: var(--section) 0; background: var(--cream); overflow: hidden; }
.cta__row { display: grid; grid-template-columns: 1fr 4fr 1fr; gap: 12px; margin: 0 -40px; }
.cta__side, .cta__tile { min-height: 380px; border-radius: var(--r); overflow: hidden; }
.cta__side--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 85% 50%; }
.cta__side--mint { background: var(--mint); }
.cta__tile { background: var(--coral-ink); color: var(--cream); padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.cta__tile > p:not(.cta__demo) { max-width: 34em; font-size: 18px; }
.cta__demo { font-size: var(--t-small); margin-top: 2px; }

/* footer: the mark built from blocks */
.foot { background: var(--teal); color: var(--cream); padding: 64px var(--m) 28px; }
.mark { display: flex; align-items: flex-end; gap: 4px; height: min(34svh, 340px); min-height: 220px; }
.mark span {
  flex: 1 1 0; height: calc(var(--h) * 100%); border-radius: 10px;
  display: flex; align-items: flex-end; justify-content: center;
  font-family: var(--serif); font-weight: 500; font-size: var(--t-display); line-height: 0.8; padding-bottom: 0.1em;
  color: var(--teal); background: var(--cream); font-variation-settings: "SOFT" 100, "opsz" 144;
  transform-origin: 50% 100%;
}
.mark span:nth-child(3n+2) { background: var(--mint); }
.mark span:nth-child(4n+3) { background: var(--coral); }
.mark .mark__amp { flex-grow: 1.3; background: var(--mint); }
.foot__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 32px; margin-top: 56px; }
.foot__links { grid-column: 1 / 5; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; font-size: 16px; align-content: start; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot__links a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.foot__contact { grid-column: 5 / 8; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.foot__concept { grid-column: 9 / 13; font-size: 16px; }
.foot__concept .link { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--mint); text-underline-offset: 4px; }
.foot__legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; font-size: var(--t-small); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .hero__copy { grid-column: 1 / 7; }
  .who__body { grid-template-columns: 1fr; gap: 24px; }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); }
  .band { grid-template-columns: 1fr; gap: 6px; }
  .band__svc { text-align: left; }
}
@media (max-width: 900px) {
  :root { --t-display: clamp(40px, 11.4vw, 96px); --t-h2: clamp(34px, 8vw, 56px); --t-3: 24px; }
  .bar__links { display: none; }
  .bar .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 8px; gap: 0; }
  .hero__stage { grid-column: 1; grid-template-columns: 1fr; padding: 92px var(--m) 40px; row-gap: 40px; }
  .hero__copy { grid-column: 1; }
  .hero__view { grid-column: 1; min-height: 0; aspect-ratio: 4 / 3.4; margin: 0 6% 0 8%; }
  .chapters { grid-column: 1; grid-template-rows: none; }
  .chapters__item { padding: 14px 16px; min-height: 52px; }
  .chapters__item small { display: none; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .svc__list { grid-template-columns: 1fr; }
  .svc-stage { display: none; }
  .chapters__item:first-child { border-radius: var(--r) var(--r) 0 0; }
  .board { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 6px; }
  .tile--a { grid-column: 1 / 3; grid-row: auto; min-height: 46svh; padding: 20px; }
  .tile--b, .tile--c { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
  .tile--b { padding: 16px; }
  .tile__word { font-size: var(--t-h2); }
  .tile--text { grid-column: 1 / 3; grid-row: auto; display: block; padding: 48px 12px; }
  .tile--text p { font-size: var(--t-lead); }
  .who__head { flex-direction: column; align-items: flex-start; }
  .services__main { display: block; }
  .services__pin { position: sticky; top: 64px; z-index: 2; margin: 0 calc(var(--m) * -1); padding: 12px var(--m); background: var(--teal); }
  .services__title { font-size: var(--t-h2); }
  .tools { display: block; padding-top: 0; }
  .tools__names { margin-top: 0; }
  .services__rows { margin-top: 40px; gap: 72px; }
  .svc__row, .svc--flip   .svc--flip     .svc__list { font-size: 16px; }
  .how__intro { display: block; }
  .how__intro p { margin-top: 20px; }
  .js .stages { flex-direction: column; height: auto; gap: 0; }
  .js .stage, .js .stage:first-child, .js .stage:last-child { border-radius: 0; transition: none; }
  .js .stage:first-child { border-radius: var(--r) var(--r) 0 0; }
  .js .stage:last-child { border-radius: 0 0 var(--r) var(--r); }
  .js .stage__tab { position: relative; height: 64px; }
  .js .stage__tab span { transform: none; left: 20px; bottom: auto; top: 50%; translate: 0 -50%; font-size: 18px; }
  .js .stage.is-open .stage__tab { display: none; }
  .js .stage__body { position: static; display: none; width: auto; padding: 24px 20px 28px; opacity: 1; }
  .js .stage.is-open .stage__body { display: block; }
  .js .stage__body p { font-size: 16px; }
  .plans__grid { display: flex; flex-direction: column; }
  .verdict__foot .btn { align-self: stretch; }
  .verdict__inc { font-size: 18px; }
  .compare__table, .compare__table thead, .compare__table tbody { display: block; font-size: 16px; }
  .compare__table tr { display: grid; grid-template-columns: repeat(3, 1fr); }
  .compare__table thead td { display: none; }
  .compare__table tbody th { grid-column: 1 / -1; width: auto; padding: 16px 0 6px; border-bottom: 0; }
  .compare__table th, .compare__table td { padding: 10px 10px 12px; }
  .compare__table thead th { font-size: var(--t-lead); }
  .compare__table tbody tr:last-child .is-match { border-radius: 0 0 12px 12px; }
  .compare__table tbody .is-match { border-radius: 0; }
  .team__head { display: block; }
  .team__head p { margin-top: 12px; }
  .people { grid-template-columns: 1fr 1fr; gap: 28px 8px; }
  .faq { display: block; }
  .faq__title { margin-bottom: 32px; }
  .faq summary { font-size: 18px; min-height: 64px; padding: 14px 56px 14px 20px; }
  .faq summary::before, .faq summary::after { right: 22px; }
  .faq details p { font-size: 16px; padding: 0 20px 20px; }
  .cta { padding: var(--section) var(--m); }
  .cta__row { grid-template-columns: 1fr 1fr; margin: 0; gap: 8px; }
  .cta__tile { grid-column: 1 / 3; grid-row: 1; min-height: 300px; padding: 32px 24px; }
  .cta__tile .btn { align-self: stretch; }
  .cta__side { min-height: 120px; }
  .mark { height: auto; min-height: 0; flex-wrap: wrap; row-gap: 4px; }
  .mark span { flex: 1 0 calc(16.66% - 4px); height: calc(var(--h) * 22svh); min-height: 0; font-size: 13vw; }
  .mark .mark__amp { flex-grow: 1; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__links { grid-column: 1 / 3; }
  .foot__contact, .foot__concept { grid-column: 1 / 3; }
}

/* ---------- motion helpers ---------- */
@keyframes sway { 0%, 100% { rotate: -3deg; } 50% { rotate: 4deg; } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: -2% 3%; } }
@media (prefers-reduced-motion: no-preference) {
  .leaf--coral { animation: sway 7s ease-in-out infinite; }
  .leaf--sprig { animation: sway 9s ease-in-out -2s infinite; }
  .leaf--mint { animation: sway 8s ease-in-out -4s infinite; }
  .leaf--blob { animation: drift 14s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .leaf { animation: none; }
  .bar { transition: background-color 300ms ease, color 300ms ease; }
  .js .stage { transition: none; }
  .svc-stage img { transform: none; transition: opacity 300ms ease; }
  .btn:active, .tab:active, .chip:active span { transform: none; }
  .faq summary::after { transition: none; }
}
