/*
 * Kinstodian marketing site — the one stylesheet. Organic theme (2026-09-04).
 *
 * Mobile first: every rule is written for a 320px viewport and widened at 768px and 1024px.
 * No JavaScript anywhere on the site, so nothing here depends on a class being toggled; the
 * hero rotator and the scroll-in rise are pure CSS and both switch off under
 * prefers-reduced-motion. All colours, sizes, radii, shadows and fonts come from tokens.css —
 * nothing below hardcodes a value.
 *
 * Section index (search for the ── headings):
 *   Reset · Type · Focus and motion · Layout · Sections and grounds · Divider arc · Blob and
 *   figures · Eyebrow · Buttons · Chips · Cards, callouts, banners · Feature row · Step list ·
 *   Panel · Plan card · Media frame · Accordion · Trust badges · Credibility strip ·
 *   Reassurance row · Crossing diagram · Contact band · Hero and rotator · Header · Footer ·
 *   FAQ page · Utilities · Print
 */
@import url("tokens.css");

/* ── Reset (small, deliberate) ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--color-ink);
  background: var(--color-paper);
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Type ──────────────────────────────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
  overflow-wrap: anywhere;   /* only ever bites at 200% text on a 320px screen; better than a scrollbar */
}

h1,
h2 {
  line-height: var(--leading-tight);
  letter-spacing: -0.015em;
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3,
h4 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

h4 {
  font-size: var(--text-lg);
}

p,
ul,
ol {
  margin: 0 0 var(--space-4);
  max-width: var(--width-prose);
}

li {
  margin-bottom: var(--space-2);
}

a {
  color: var(--color-moss);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--color-moss-deep);
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 700;
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-ink);
  line-height: 1.5;
}

.muted {
  color: var(--color-muted);
}

.fineprint {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ── Focus and motion ──────────────────────────────────────────────────────────────────────── */
/* One focus style for everything focusable. Moss on light grounds; reversed to paper on moss. */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.section--moss :focus-visible,
.skip-link:focus-visible {
  outline-color: var(--color-paper);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero content rises once on page load. That is the only motion on the site apart from the
   hero rotator and hover transitions: scroll-in effects were tried and dropped, because content
   that is invisible until scrolled into view is content a find-in-page, a print, or a screenshot
   cannot see. Switched off entirely under prefers-reduced-motion below. */
.rise {
  animation: rise var(--duration) var(--ease-organic) both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Layout primitives ─────────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--width-content);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--narrow {
  max-width: var(--width-narrow);
  text-align: center;
}

.container--narrow p,
.container--narrow ul {
  margin-inline: auto;
}

.container--prose {
  max-width: var(--width-prose);
}

.container--prose.center {
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }
}

/* Every grid starts as ONE column that can never be wider than its container — `minmax(0, 1fr)`
   rather than the default `auto`, so a long word, a wide chip or 200%-zoomed text wraps instead
   of pushing the page into a horizontal scroll (WCAG 1.4.10 reflow at 320px and 200% text). The
   wider breakpoints below only ever add columns. */
.hero__grid,
.feature-row,
.panel,
.plan-grid,
.crossing,
.trust-badge-row,
.cred-strip,
.grid-2,
.grid-3,
.step-list,
.accordion,
.crossing__list,
.crossing__side ul,
.plan-card__list,
.plan-card__top,
.site-footer__grid {
  grid-template-columns: minmax(0, 1fr);
}

.accordion summary,
.crossing__list li,
.toc a,
.chip {
  overflow-wrap: anywhere;
}

.toc li,
.toc a {
  max-width: 100%;
}

.site-footer a,
.crossing__side,
.contact-band a {
  overflow-wrap: anywhere;
}

/* A plain reading page (FAQ, Privacy, Terms, 404): one container, no section grounds. */
.page {
  padding-block: var(--space-7) var(--space-9);
}

.page h2 {
  margin-top: var(--space-7);
}

.page h3 {
  margin-top: var(--space-6);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block: var(--space-5);
}

.cta-row .btn {
  flex: 1 1 100%;
}

.cta-row--center {
  justify-content: center;
}

@media (min-width: 480px) {
  .cta-row .btn {
    flex: 0 1 auto;
    min-width: 12rem;
  }
}

/* ── Sections and grounds ──────────────────────────────────────────────────────────────────── */
/*
 * Used on: every page. A .section is a full-bleed band; its content sits in a .container inside.
 * The four grounds alternate down the page — paper, cream, sand, and the reversed moss band.
 * Grouping is carried by ground tint and soft shadow, never by a hard border.
 */
.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section--paper {
  background: var(--color-paper);
}

.section--cream {
  background: var(--color-cream);
}

.section--sand {
  background: var(--color-sand);
}

.section--moss {
  background: var(--color-moss);
  color: var(--color-paper);
}

.section--moss h1,
.section--moss h2,
.section--moss h3 {
  color: var(--color-paper);
}

.section--moss a {
  color: var(--color-paper);
}

.section--moss a:hover {
  color: var(--color-cream);
}

.section--moss .muted,
.section--moss .fineprint,
.section--moss .eyebrow {
  color: var(--color-cream);
}

.section--tight {
  padding-block: var(--space-6);
}

.section__head {
  margin-bottom: var(--space-6);
}

.section__head--center {
  text-align: center;
}

.section__head--center p,
.section__head--center h2 {
  margin-inline: auto;
}

/* ── Divider arc — the signature move ──────────────────────────────────────────────────────── */
/*
 * Used on: Home, Pricing, Trust, Partners — between any two sections with different grounds.
 *
 * A shallow, slightly asymmetric wave. The element's BACKGROUND is the ground of the section
 * above (--from-*) and the SVG path is filled with the ground of the section below (--to-*),
 * so the next section appears to rise into the previous one on a curve. The path is drawn once,
 * inline, in the page (fill="currentColor"); the modifiers here set that colour.
 *
 *   <div class="divider-arc divider-arc--from-paper divider-arc--to-cream" aria-hidden="true">
 *     <svg viewBox="0 0 1440 80" preserveAspectRatio="none" focusable="false"><path d="…"/></svg>
 *   </div>
 *
 * --flip mirrors the wave so consecutive dividers do not repeat the same curve. Always
 * aria-hidden: it is decoration, and the SVG has no focusable content.
 */
.divider-arc {
  display: block;
  line-height: 0;
  position: relative;
  z-index: 1;
}

.divider-arc svg {
  width: 100%;
  height: clamp(2.5rem, 6vw, 5rem);
  display: block;
  overflow: visible;   /* the path overshoots the bottom edge (V96 in an 80-high viewBox) so no
                          hairline of the "from" ground can show at the seam */
}

.divider-arc--flip svg {
  transform: scaleX(-1);
}

.divider-arc--from-paper {
  background: var(--color-paper);
}

.divider-arc--from-cream {
  background: var(--color-cream);
}

.divider-arc--from-sand {
  background: var(--color-sand);
}

.divider-arc--from-moss {
  background: var(--color-moss);
}

.divider-arc--to-paper {
  color: var(--color-paper);
}

.divider-arc--to-cream {
  color: var(--color-cream);
}

.divider-arc--to-sand {
  color: var(--color-sand);
}

.divider-arc--to-moss {
  color: var(--color-moss);
}

/* ── Blob and figures ──────────────────────────────────────────────────────────────────────── */
/*
 * Used on: Home (hero, personas), Trust (hero, feature rows), Partners (hero, feature rows).
 * .figure wraps an illustration placeholder; .blob is the soft shape behind it, aria-hidden.
 * The blob's asymmetric radii are what make it read as hand-cut rather than a rounded square.
 */
.figure {
  position: relative;
  isolation: isolate;
}

.figure > .media-frame,
.figure > img {
  position: relative;
  z-index: 1;
}

.blob {
  position: absolute;
  inset: 6% 0 0 2%;
  z-index: 0;
  background: var(--color-sand);
  border-radius: 58% 42% 56% 44% / 48% 62% 38% 52%;
  pointer-events: none;
}

.blob--cream {
  background: var(--color-cream);
}

.blob--paper {
  background: var(--color-paper);
}

.blob--alt {
  border-radius: 44% 56% 40% 60% / 60% 42% 58% 40%;
  inset: 0 2% 6% 0;
}

/* ── Eyebrow ───────────────────────────────────────────────────────────────────────────────── */
/* Used on: every sectioned page. The small-caps label above a section heading. */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-moss);
  margin-bottom: var(--space-3);
}

/* ── Buttons ───────────────────────────────────────────────────────────────────────────────── */
/* Every button is a full pill and at least 48px tall. Focus ring is never removed. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: var(--space-2) var(--space-6);
  border: 2px solid var(--color-moss);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: background-color var(--duration) var(--ease-organic), color var(--duration) var(--ease-organic), box-shadow var(--duration) var(--ease-organic);
}

.btn-primary {
  background: var(--color-moss);
  color: var(--color-paper);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--color-moss-deep);
  border-color: var(--color-moss-deep);
  color: var(--color-paper);
  box-shadow: var(--shadow-lift);
}

.btn-secondary {
  background: transparent;
  color: var(--color-moss);
}

.btn-secondary:hover {
  background: var(--color-cream);
  color: var(--color-moss-deep);
}

/* On the moss band both buttons reverse: a paper-filled primary, a paper-outlined secondary. */
.section--moss .btn-primary {
  background: var(--color-paper);
  border-color: var(--color-paper);
  color: var(--color-moss);
}

.section--moss .btn-primary:hover {
  background: var(--color-cream);
  border-color: var(--color-cream);
  color: var(--color-moss-deep);
}

.section--moss .btn-secondary {
  border-color: var(--color-paper);
  color: var(--color-paper);
}

.section--moss .btn-secondary:hover {
  background: var(--color-moss-deep);
  color: var(--color-paper);
}

.btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

.btn--block {
  width: 100%;
}

/* ── Chips ─────────────────────────────────────────────────────────────────────────────────── */
/*
 * Used on: Home (How it works), Pricing (plan cards), Partners (How it works). A chip always
 * carries a text label — "Renews", "One payment", "Free", "Save 20%" — and the two tints below
 * are decoration on top of that text, never a substitute for it (WCAG 1.4.1).
 */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.15em 0.85em;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--color-moss-deep);
  background: var(--color-cream);
  vertical-align: middle;
}

.chip--sand {
  background: var(--color-sand);
}

.chip--moss {
  background: var(--color-moss);
  color: var(--color-paper);
}

.section--moss .chip {
  background: var(--color-paper);
  color: var(--color-moss-deep);
}

/* ── Cards, callouts, banners ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--color-cream);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
}

.section--cream .card {
  background: var(--color-paper);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.callout {
  background: var(--color-sand);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-block: var(--space-6);
}

.callout h2,
.callout h3 {
  margin-top: 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .callout {
    padding: var(--space-8);
  }
}

.banner {
  background: var(--color-sand);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-soft);
}

.banner p {
  margin: 0;
  max-width: none;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: var(--space-5);
  margin-block: var(--space-5);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Feature row ───────────────────────────────────────────────────────────────────────────── */
/*
 * Used on: Home (the three personas), Trust ("How it actually works"), Partners ("What a
 * partner gets"). A two-up text/illustration block. On mobile it is one column with the
 * illustration FIRST; from 768px the illustration sits on the right, and --reverse puts it on
 * the left, so consecutive rows alternate side to side.
 */
.feature-row {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-6);
}

.feature-row + .feature-row {
  padding-top: var(--space-4);
}

.feature-row__media {
  order: -1;
}

.feature-row__body h2,
.feature-row__body h3 {
  margin-top: 0;
}

.feature-row__body > :last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-8);
    padding-block: var(--space-7);
  }
  .feature-row__media {
    order: 2;
  }
  .feature-row--reverse .feature-row__media {
    order: -1;
  }
}

@media (min-width: 1024px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
  }
}

/* ── Step list ─────────────────────────────────────────────────────────────────────────────── */
/*
 * Used on: Home ("How Kinstodian works"), Partners ("How it works"). Numbered circular badges.
 * The number is a CSS counter on ::before — the <ol> itself still carries the order for
 * assistive technology, so the badge is decoration on top of real list semantics.
 */
.step-list {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: var(--space-5);
}

.step-list > li {
  counter-increment: step;
  position: relative;
  padding-left: calc(var(--tap) + var(--space-4));
  margin: 0;
  min-height: var(--tap);
}

.step-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--tap);
  height: var(--tap);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-moss);
  color: var(--color-paper);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1;
}

.section--moss .step-list > li::before {
  background: var(--color-paper);
  color: var(--color-moss);
}

.step-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
  min-width: 0;
}

.step-list__head .chip {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.step-list h3 {
  margin: 0;
  font-size: var(--text-lg);
}

.step-list p {
  margin-bottom: 0;
}

.step-list + p {
  margin-top: var(--space-5);
}

/* ── Panel ─────────────────────────────────────────────────────────────────────────────────── */
/*
 * Used on: Home ("How Kinstodian works"). A large rounded two-column feature panel: sticky
 * screenshot on the left, step list on the right. Stacks on mobile with the screenshot first.
 */
.panel {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: var(--space-6);
}

.panel__media {
  align-self: start;
}

.panel__body > :last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .panel {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-8);
    padding: var(--space-8);
  }
  .panel__media {
    position: sticky;
    top: var(--space-6);
  }
}

/* ── Plan card ─────────────────────────────────────────────────────────────────────────────── */
/*
 * Used on: Pricing. A two-part card: a cream top band (name, chip, who it's for), a hairline,
 * then the price, a check-marked list and a full-width pill CTA. --featured raises the card,
 * gives it a sand top band and a moss ring, and swaps the CTA to primary.
 *
 * Four cards go two-by-two from 768px and stack on mobile; the featured card is first in source
 * order so it is first on mobile, and moved into its desktop slot with `order`.
 */
.plan-grid {
  display: grid;
  gap: var(--space-5);
  margin-block: var(--space-6);
  max-width: 56rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }
  .plan-grid .plan-card--featured {
    order: 1;   /* the second slot: top-right on desktop */
  }
  .plan-grid .plan-card--first {
    order: 0;
  }
  .plan-grid .plan-card:not(.plan-card--featured):not(.plan-card--first) {
    order: 2;
  }
}

.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.plan-card--featured {
  box-shadow: var(--shadow-lift), 0 0 0 3px var(--color-moss);
}

.plan-card__top {
  background: var(--color-cream);
  padding: var(--space-5) var(--space-6);
  display: grid;
  gap: var(--space-2);
}

.plan-card--featured .plan-card__top {
  background: var(--color-sand);
}

.plan-card__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: 0;
  font-size: var(--text-xl);
}

.plan-card__for {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-base);
}

.plan-card__body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.plan-card__price {
  font-family: var(--font-serif);
  font-size: var(--text-price);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.plan-card__suffix {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0;
  margin-left: var(--space-1);
}

/* Before billing goes live the price slot holds "Coming soon" alone; give it the weight of a price. */
.plan-card__soon {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  margin-left: 0;
}

.plan-card__renews {
  margin: 0;
  color: var(--color-muted);
}

.plan-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: var(--space-2);
  flex: 1;
}

.plan-card__list li {
  position: relative;
  padding-left: calc(1.5rem + var(--space-3));
  margin: 0;
}

/* The check mark is drawn, not typed, so screen readers hear the list item and nothing else. */
.plan-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--color-cream);
}

.plan-card__list li::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.35em;
  width: 0.35rem;
  height: 0.7rem;
  border: solid var(--color-moss);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plan-card .btn {
  margin-top: auto;
}

/* ── Media frame ───────────────────────────────────────────────────────────────────────────── */
/*
 * Used on: every page with a placeholder. The rounded, shadowed container for screenshots,
 * illustrations and the demo video. The aspect ratio is fixed by a modifier so nothing reflows
 * when the real asset drops in; the image (or, later, the video) fills it.
 *
 *   <div class="media-frame ratio-4x3"><img src="/assets/placeholder.svg" alt="…"></div>
 *
 * --soft drops the shadow (for line illustrations sitting on a blob, where a shadow would read
 * as a card edge). --video adds the play glyph and the caption bar. Swapping the placeholder for
 * a real self-hosted video is a one-element change: replace the image element with
 * <video controls poster="…" preload="none"><source src="…" type="video/mp4"><track kind="captions" …></video>
 * and remove the .media-frame__play span.
 */
.media-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-cream);
  box-shadow: var(--shadow-soft);
}

.media-frame--soft {
  box-shadow: none;
  background: transparent;
}

.media-frame > img,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.ratio-4x3 {
  aspect-ratio: 4 / 3;
}

.ratio-3x2 {
  aspect-ratio: 3 / 2;
}

.ratio-1x1 {
  aspect-ratio: 1 / 1;
}

.ratio-9x16 {
  aspect-ratio: 9 / 16;
}

.ratio-21x9 {
  aspect-ratio: 21 / 9;
}

.media-frame--video {
  background: var(--color-moss-deep);
}

.media-frame__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.media-frame__play::before {
  content: "";
  width: clamp(4rem, 12vw, 6rem);
  height: clamp(4rem, 12vw, 6rem);
  border-radius: 50%;
  background: var(--color-paper);
  box-shadow: var(--shadow-lift);
}

.media-frame__play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: clamp(0.8rem, 2.4vw, 1.2rem) 0 clamp(0.8rem, 2.4vw, 1.2rem) clamp(1.4rem, 4vw, 2rem);
  border-color: transparent transparent transparent var(--color-moss);
  transform: translateX(15%);
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  max-width: none;
  padding: var(--space-3) var(--space-5);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
}

/* ── Accordion ─────────────────────────────────────────────────────────────────────────────── */
/*
 * Used on: Home (FAQs), Partners (Partner FAQ). Native <details>/<summary> — no JavaScript, no
 * ARIA re-implementation. The chevron is drawn on ::after and rotates when open.
 */
.accordion {
  display: grid;
  gap: var(--space-3);
  max-width: var(--width-prose);
  margin-inline: auto;
}

.accordion details {
  background: var(--color-paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.section--paper .accordion details {
  background: var(--color-cream);
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--tap);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.35;
  border-radius: var(--radius);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.25rem;
  border: solid var(--color-moss);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-0.15rem);
  transition: transform var(--duration) var(--ease-organic);
}

.accordion details[open] summary::after {
  transform: rotate(225deg) translateY(-0.1rem);
}

.accordion details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.accordion summary:hover {
  color: var(--color-moss-deep);
}

.accordion__body {
  padding: 0 var(--space-5) var(--space-5);
}

.accordion__body > :last-child {
  margin-bottom: 0;
}

.accordion + p {
  margin-top: var(--space-6);
}

/* ── Trust badges ──────────────────────────────────────────────────────────────────────────── */
/*
 * Used on: Home (Security band), Partners (the privacy line). Icon + short claim, three across.
 * The icons are inline line drawings, aria-hidden; the claim is the text beside them.
 */
.trust-badge-row {
  list-style: none;
  margin: var(--space-6) 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .trust-badge-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.trust-badge {
  margin: 0;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.trust-badge__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-paper);
  display: grid;
  place-items: center;
}

.trust-badge__icon svg {
  width: 2rem;
  height: 2rem;
  stroke: var(--color-moss);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-badge h3 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  margin: 0 0 var(--space-1);
}

.trust-badge p {
  margin: 0;
  font-size: var(--text-base);
}

/* ── Credibility strip ─────────────────────────────────────────────────────────────────────── */
/* Used on: Home. Three factual statements with small icons on a sand ground — no logos, ever. */
.cred-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .cred-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.cred-strip li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
}

.cred-strip svg {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  stroke: var(--color-moss);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Reassurance row ───────────────────────────────────────────────────────────────────────── */
/* Used on: Pricing. Centred row of three short facts with small icons, under the plan cards. */
.reassure-row {
  list-style: none;
  margin: var(--space-6) auto 0;
  padding: 0;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
}

.reassure-row li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
}

.reassure-row svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--color-moss);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Crossing diagram ──────────────────────────────────────────────────────────────────────── */
/*
 * Used on: Trust ("What leaves your device"). Your device on the left, our servers on the
 * right, and between them the short list of the only things that cross. Three columns from
 * 768px; stacked on mobile with the list in the middle.
 */
.crossing {
  display: grid;
  gap: var(--space-5);
  align-items: stretch;
  margin-block: var(--space-6);
}

@media (min-width: 768px) {
  .crossing {
    grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr);
    gap: var(--space-6);
  }
}

.crossing__side {
  background: var(--color-paper);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.crossing__side h3 {
  margin: var(--space-3) 0 var(--space-2);
  font-size: var(--text-lg);
}

.crossing__side p,
.crossing__side ul {
  margin: 0 auto;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.crossing__side ul {
  list-style: none;
  padding: 0;
  text-align: left;
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.crossing__side li {
  margin: 0;
}

.crossing__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: var(--space-3);
  align-content: center;
}

.crossing__list li {
  margin: 0;
  position: relative;
  background: var(--color-paper);
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-5);
  box-shadow: var(--shadow-soft);
  padding-right: calc(var(--space-5) + 1.5rem);
}

/* A drawn arrow pointing at the servers — decoration; the list order says the same thing. */
.crossing__list li::after {
  content: "";
  position: absolute;
  right: var(--space-4);
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border: solid var(--color-moss);
  border-width: 2px 2px 0 0;
  transform: translateY(-50%) rotate(45deg);
}

.crossing__list strong {
  display: block;
}

.crossing__list small {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ── Contact band ──────────────────────────────────────────────────────────────────────────── */
/* Used on: Home, Pricing, Trust, Partners — the closing "get in touch" band before the footer. */
.contact-band {
  text-align: center;
}

.contact-band h2 {
  margin-bottom: var(--space-3);
}

.contact-band p {
  margin-inline: auto;
}

.contact-band .btn {
  margin-top: var(--space-3);
}

/* ── Hero and rotator ──────────────────────────────────────────────────────────────────────── */
/*
 * Used on: Home, Trust, Partners. Two columns from 768px: words on the left, illustration on
 * the right (first on mobile). The Home h1 carries the rotator.
 */
.hero {
  padding-block: var(--space-7) var(--space-6);
}

.hero__grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.hero__media {
  order: -1;
}

.hero h1 {
  max-width: 20ch;
}

.hero .lede {
  font-size: var(--text-xl);
  line-height: 1.45;
}

@media (min-width: 768px) {
  .hero {
    padding-block: var(--space-8) var(--space-7);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-8);
  }
  .hero__media {
    order: 2;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-block: var(--space-9) var(--space-8);
  }
  .hero__grid {
    gap: var(--space-9);
  }
}

/*
 * The "I want to…" rotator. Three phrases stacked in one inline-grid cell; a 12-second CSS
 * animation shows them in turn. No JavaScript. For screen readers the rotator is aria-hidden and
 * a .visually-hidden span carries the whole sentence with all three phrases. Under
 * prefers-reduced-motion the global rule kills the animation, which leaves the first phrase
 * showing (the default state below) as a complete, still sentence.
 */
.rotator {
  display: inline-grid;
  text-align: left;
  vertical-align: top;
  color: var(--color-moss);
}

.rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  animation: rotator 12s var(--ease-organic) infinite;
}

.rotator > span:nth-child(1) {
  opacity: 1;   /* the resting state: phrase one, always visible without animation */
  animation-delay: 0s;
}

.rotator > span:nth-child(2) {
  animation-delay: 4s;
}

.rotator > span:nth-child(3) {
  animation-delay: 8s;
}

@keyframes rotator {
  0% {
    opacity: 0;
    transform: translateY(0.35em);
  }
  5%,
  28% {
    opacity: 1;
    transform: none;
  }
  33%,
  100% {
    opacity: 0;
    transform: translateY(-0.35em);
  }
}

/* ── Skip link ─────────────────────────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 10;
  padding: var(--space-3) var(--space-5);
  background: var(--color-moss);
  color: var(--color-paper);
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ── Header and nav ────────────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--color-paper);
  position: relative;
  z-index: 2;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-4);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  text-decoration: none;
}

.wordmark__kin {
  font-weight: 700;
  color: var(--color-moss);
}

.wordmark__rest {
  font-weight: 400;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
}

.site-nav li {
  margin: 0;
}

.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--space-3);
  color: var(--color-ink);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-pill);
}

.site-nav a:not(.btn):hover {
  color: var(--color-moss-deep);
  background: var(--color-cream);
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--color-moss);
  background: var(--color-cream);
}

.site-nav .btn {
  min-height: 2.75rem;
  padding-inline: var(--space-5);
  margin-left: var(--space-2);
}

@media (max-width: 767.98px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav {
    width: 100%;
  }
  .site-nav ul {
    gap: var(--space-1) var(--space-1);
  }
  .site-nav li:last-child {
    flex-basis: 100%;
  }
  .site-nav .btn {
    margin: var(--space-2) 0 0;
    width: 100%;
    min-height: var(--tap);
  }
}

/* ── Footer ────────────────────────────────────────────────────────────────────────────────── */
/* Grouped columns — Product, Trust, Organizations, Contact — then the two standing lines. */
.site-footer {
  background: var(--color-cream);
  padding-block: var(--space-8) var(--space-7);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

@media (min-width: 480px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.site-footer__heading {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin: 0 0 var(--space-2);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.site-footer li {
  margin: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--color-ink);
  text-decoration-color: var(--color-line);
}

.site-footer a:hover {
  color: var(--color-moss-deep);
  text-decoration-color: currentColor;
}

.site-footer a[aria-current="page"] {
  font-weight: 700;
  color: var(--color-moss);
}

.site-footer__legal p {
  max-width: none;
  margin-bottom: var(--space-2);
}

.site-footer__legal .wordmark {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

/* ── FAQ page (/faq) ───────────────────────────────────────────────────────────────────────── */
.faq h3 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  margin-top: var(--space-6);
}

.faq h2 {
  margin-top: var(--space-8);
}

.toc ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  max-width: none;
}

.toc li {
  margin: 0;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--color-moss);
  background: var(--color-cream);
  font-weight: 600;
}

.toc a:hover {
  background: var(--color-sand);
  text-decoration: underline;
}

.link-list {
  list-style: none;
  padding: 0;
}

.link-list li {
  margin: 0;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

/* A link that stands alone in its own paragraph (not inline in running text) gets a full 48px
   target, like a button, while still reading as a link. */
.link-standalone {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-inline: var(--space-2);
  font-weight: 600;
}

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

.center {
  text-align: center;
}

p.center,
.center p,
.center ul {
  margin-inline: auto;
}

/* ── Print ─────────────────────────────────────────────────────────────────────────────────── */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .cta-row,
  .divider-arc,
  .blob,
  .media-frame {
    display: none;
  }
  .section {
    background: none;
    color: inherit;
    padding-block: var(--space-4);
  }
  a {
    color: inherit;
  }
  .accordion details {
    box-shadow: none;
  }
}
