/* ==========================================================================
   ALDER CRM - SHARED STYLES

   The Charity's Wall Planner. A white planner sheet on a cool grey wall, a
   solid green title band, ruled grid lines, month lettering and round dot
   stickers in five role colours. Flat surfaces, hairline edges, no shadows.
   Albert Sans carries every heading and line of reading text; Kalam is the
   felt-tip marker and annotates sparingly.

   Source of truth: DESIGN.md and .impeccable/design.json.
   ========================================================================== */

/* ===== FONTS (SIL OFL 1.1, self-hosted latin subsets) ===== */
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/albert-sans-latin-c08eb95b.woff2") format("woff2");
}
@font-face {
  font-family: "Albert Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/albert-sans-latin-italic-2b2c3225.woff2") format("woff2");
}
@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/kalam-400-latin-61793e81.woff2") format("woff2");
}
@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/kalam-700-latin-920a7e79.woff2") format("woff2");
}

/* ===== TOKENS ===== */
:root {
  /* Ink and grounds */
  --ink: #15171a;
  --ink-2: #3d434a;
  --ink-hover: #2c3036;
  --sheet: #ffffff;
  --wall: #eef1f3;
  --weekend: #f1f4f7;

  /* Rules */
  --rule: #c4d0da;
  --rule-strong: #93a6b6;

  /* Title band */
  --band: #1f4d3c;
  --band-ink: #ffffff;
  --band-soft: #c9ddd2;
  --band-lede: #e6f2ec;
  --band-muted: #d7ebe1;
  --band-button-hover: #eef3f0;

  /* The five role colours. Always stickers, never fills. */
  --blue: #3d6aa8;
  --red: #bf5446;
  --green: #3f7f5c;
  --yellow: #ddb04a;
  --purple: #7a5b9e;

  /* Reading-weight versions of the role colours, for text on the wall and
     sheet grounds. The bright role colours are for dots and figures; at body
     and badge sizes they sit below 4.5:1 on --wall. These hold 5.2:1+. */
  --red-ink: #a8443a;
  --green-ink: #356b4d;
  --yellow-ink: #7d5a0c;

  /* Form control edges. --rule-strong is 2.5:1 against the sheet, below the
     3:1 that WCAG 1.4.11 asks of a control boundary. */
  --field-border: #7b8a97;

  /* Focus and footer */
  --focus: #1f5fd1;
  --footer-text: #d9dde1;
  --footer-muted: #aeb6bd;
  --footer-rule: #3a3f45;
  --footer-tree: #7fd1a6;

  /* The shared sticker edge */
  --edge: inset 0 0 0 1.5px rgba(21, 23, 26, .28);

  /* Type */
  --display: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --marker: "Kalam", "Comic Neue", cursive;

  /* Space */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;

  --measure: 72ch;
  --page: min(100% - 2rem, 84rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Shapes */
  --radius-focus: 4px;
  --radius-sheet: 6px;
  --radius-pill: 999px;
  --radius-dot: 50%;

  /* Legacy aliases. The views and the feature stylesheet still use these
     names; pointing them at the new tokens moves every page at once. */
  --primary: var(--band);
  --primary-light: var(--ink-2);
  --secondary: var(--blue);
  --accent: var(--band);
  --accent-light: var(--band-soft);
  --accent-text: var(--band);
  --bg: var(--wall);
  --bg-warm: var(--weekend);
  --white: var(--sheet);
  --text: var(--ink);
  --text-muted: var(--ink-2);
  --text-body: var(--ink-2);
  --border: var(--rule);
  --radius: var(--radius-sheet);
  --radius-lg: var(--radius-sheet);
  /* Declared only so old rules still parse. Nothing in the new world lifts a
     surface with a shadow: depth comes from ground and edge. */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--rule-strong) var(--wall);
}
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--sheet);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--band); text-decoration: none; }
/* Prose links carry the underline; navigation, buttons and footer links do
   not. */
p a:not(.btn):not(.nav-cta),
li a:not(.btn),
td a:not(.btn),
dd a:not(.btn),
.link-accent,
.link { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }
::selection { background: var(--yellow); color: var(--ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--wall); }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 6px; border: 3px solid var(--wall); }

/* ===== SKIP LINK (a11y) ===== */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 10000;
  padding: 12px 20px; background: var(--ink); color: var(--sheet);
  border-radius: 0 0 var(--radius-sheet) var(--radius-sheet);
  font-size: .9375rem; font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ===== FOCUS INDICATORS (a11y): 3px Focus Blue, 3px offset ===== */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-focus);
}
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-focus);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.2rem + 3.7vw, 4.7rem); line-height: 1; }
h2 { font-size: clamp(2.1rem, 1.3rem + 2.9vw, 3.6rem); }
h3 { font-size: 1.5rem; line-height: 1.1; }
h4 { font-size: 1.25rem; line-height: 1.15; }
p { text-wrap: pretty; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--weekend);
  border-radius: 4px;
  padding: .1em .35em;
}

/* Marker annotations: the felt-tip hand. Never headings or buttons. */
.marker, .tools-cost, .photo-credit {
  font-family: var(--marker);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--ink-2); }
.text-white-soft { color: var(--band-lede); }
.leading-relaxed { line-height: 1.7; }
.mt-1 { margin-top: 1rem; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }
.link-accent { color: var(--band); text-decoration: underline; text-underline-offset: .18em; }
.link-accent:hover { color: var(--ink); }
.link-white-soft { color: rgba(255, 255, 255, .7); text-decoration: underline; }
.img-rounded { border-radius: var(--radius-sheet); width: 100%; border: 1px solid var(--rule); }
.img-circle { border-radius: 50%; width: 100%; height: 100%; object-fit: cover; }
.photo-credit { font-size: .8rem; color: var(--ink-2); margin-top: 8px; }
.photo-credit a { color: var(--ink-2); text-decoration: underline; }
.photo-credit-light { font-size: .8rem; color: var(--band-muted); margin-top: 8px; }
.photo-credit-light a { color: var(--band-muted); text-decoration: underline; }

/* Section grounds alternate sheet white and wall grey. Green is a band,
   never a body ground. */
.bg-white { background: var(--sheet); }
.bg-grey { background: var(--wall); }
.bg-primary { background: var(--band); color: var(--band-ink); }
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4 { color: var(--band-ink); }
.bg-primary p, .bg-primary li { color: var(--band-lede); }
.bg-primary .link-accent, .bg-primary a { color: var(--band-ink); }
.border-top-subtle { border-top: 1px solid var(--rule); }

/* ===== LAYOUT ===== */
.container {
  width: var(--page);
  max-width: 84rem;
  margin-inline: auto;
}
.container-narrow {
  width: var(--page);
  max-width: 84rem;
  margin-inline: auto;
}
/* Reading text keeps the measure even though the column is page-wide, so
   intros line up with the hero rather than floating in the middle. */
.container-narrow > p,
.container-narrow > ul,
.container-narrow > ol,
.container-narrow > .section-intro > p { max-width: var(--measure); }
.container-narrow .mp-center { margin-inline: auto; }
.container .container-narrow { width: auto; }
.container-narrow p + p { margin-top: 1rem; }
.container-narrow h2 { margin-bottom: 1rem; }
.section { padding: var(--space-9) 0; }
.section-header { text-align: left; max-width: none; margin: 0 0 var(--space-7); }
.section-header p { margin-top: var(--space-4); color: var(--ink-2); line-height: 1.6; max-width: var(--measure); }
.section-intro { text-align: left; }
.section-intro p { color: var(--ink-2); line-height: 1.6; margin-top: var(--space-4); max-width: var(--measure); }

/* Printed lettering. Uppercase belongs to planner labels and column heads,
   never to a sentence, a button or a section heading. */
.section-label {
  display: block;
  font-family: var(--display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--band);
  margin-bottom: var(--space-3);
}
.bg-primary .section-label,
.migration .section-label {
  color: var(--band-soft);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.125rem;
  letter-spacing: .005em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: .85rem 1.4rem .85rem 1.1rem;
  min-height: 3rem;
  border: 0;
  cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .2s;
}
.btn:active { transform: translateY(1px); }

/* The yellow sticker sits at the leading edge of the primary pill. Buttons
   written without the sticker span get one drawn, so every primary action
   carries the same mark. */
.btn .sticker {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: var(--radius-dot);
  background: var(--yellow);
  box-shadow: var(--edge);
  flex: none;
}
a.btn-primary:not(:has(.sticker))::before,
.band a.btn-primary:not(:has(.sticker))::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  border-radius: var(--radius-dot);
  background: var(--yellow);
  box-shadow: var(--edge);
  flex: none;
}

.btn-primary,
.btn-dark {
  background: var(--ink);
  color: var(--sheet);
}
.btn-primary:hover,
.btn-dark:hover {
  background: var(--ink-hover);
  color: var(--sheet);
}
.btn-primary a, .btn-dark a { color: inherit; }

/* Secondary: outlined ink pill. Sits beside a primary, never alone. */
.btn-outline,
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: calc(.85rem - 2px) 1.4rem;
}
.btn-outline:hover,
.btn-secondary:hover {
  background: var(--ink);
  color: var(--sheet);
}

/* On a green band the primary inverts to a white pill with an ink label. */
.band .btn-primary,
.band .btn-dark,
.page-hero .btn-primary,
.page-hero .btn-dark,
.migration .btn-primary,
.migration .btn-dark,
.bg-primary .btn-primary,
.bg-primary .btn-dark {
  background: var(--sheet);
  color: var(--ink);
}
.band .btn-primary:hover,
.band .btn-dark:hover,
.page-hero .btn-primary:hover,
.page-hero .btn-dark:hover,
.migration .btn-primary:hover,
.migration .btn-dark:hover,
.bg-primary .btn-primary:hover,
.bg-primary .btn-dark:hover {
  background: var(--band-button-hover);
  color: var(--ink);
}
.band .btn-outline,
.band .btn-secondary,
.page-hero .btn-outline,
.page-hero .btn-secondary,
.migration .btn-outline,
.migration .btn-secondary,
.bg-primary .btn-outline,
.bg-primary .btn-secondary {
  color: var(--band-ink);
  border-color: rgba(255, 255, 255, .75);
  background: transparent;
}
.band .btn-outline:hover,
.band .btn-secondary:hover,
.page-hero .btn-outline:hover,
.page-hero .btn-secondary:hover,
.migration .btn-outline:hover,
.migration .btn-secondary:hover,
.bg-primary .btn-outline:hover,
.bg-primary .btn-secondary:hover {
  background: var(--band-ink);
  color: var(--ink);
  border-color: var(--band-ink);
}

/* On the green band and the ink footer, focus stays visible with a white
   ring; Focus Blue alone would sink into the ground. */
.band :focus-visible,
.page-hero :focus-visible,
.migration :focus-visible,
.getgo-band :focus-visible,
.bg-primary :focus-visible,
.stats-banner :focus-visible,
footer :focus-visible { outline-color: var(--sheet); }

/* ===== SITE HEADER ===== */
.site-header { position: sticky; top: 0; z-index: 110; }
.site-header nav { padding-top: env(safe-area-inset-top, 0px); }

/* ===== NAV ===== */
nav {
  position: relative;
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  width: var(--page);
  max-width: 84rem;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 4.25rem;
}
.nav-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.nav-logo svg { width: 2.5rem; height: 2.5rem; color: var(--band); }
.nav-logo span {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .25rem var(--space-5); min-width: 0; margin-left: auto; }
.nav-links a {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  padding: .5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover { border-bottom-color: var(--ink); }
.nav-links a.active { border-bottom-color: var(--band); }
.nav-links a.nav-cta {
  padding: .55rem 1.1rem .55rem .85rem;
  min-height: 2.6rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 650;
  border-bottom: 0;
  white-space: nowrap;
}
.nav-links a.nav-cta .sticker { width: .9rem; height: .9rem; }
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover {
  color: var(--sheet);
  border-bottom-color: transparent;
}
.nav-links a.nav-cta:hover { background: var(--ink-hover); }

/* ===== MOBILE NAV =====
   An outlined Menu pill with a hamburger icon and a label; it inverts to ink
   with a close icon when open. */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .45rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1rem;
  color: var(--ink);
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  cursor: pointer;
  padding: .45rem .9rem .45rem .7rem;
  min-height: 2.75rem;
}
.nav-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.nav-toggle .m-close { display: none; }
.nav-toggle[aria-expanded="true"] { background: var(--ink); color: var(--sheet); }
.nav-toggle[aria-expanded="true"] .m-open { display: none; }
.nav-toggle[aria-expanded="true"] .m-close { display: inline; }

/* ===== PAGE HERO (inner pages) =====
   The same title band the homepage uses: a green sheet on the wall, with a
   hairline edge and 6px corners, rather than a full-bleed slab. */
.page-hero {
  background: var(--wall);
  padding: var(--space-5) 0;
}
.page-hero .container {
  background: var(--band);
  color: var(--band-ink);
  border-radius: var(--radius-sheet);
  padding: var(--space-7) var(--space-7) var(--space-6);
}
.page-hero h1 {
  margin-bottom: var(--space-3);
  color: var(--band-ink);
  font-size: clamp(2.4rem, 1.3rem + 3.2vw, 3.9rem);
}
.page-hero p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--band-lede);
  max-width: var(--measure);
  margin: 0;
}
.page-hero .section-label { color: var(--band-soft); }

/* ===== SECTION DIVIDER (legacy wave strips) =====
   The old torn-paper dividers belong to the previous world. They are kept
   from breaking layout but rendered as a quiet rule instead. */
.section-divider {
  display: block;
  overflow: hidden;
  line-height: 0;
  position: relative;
  z-index: 2;
  padding: 0;
  font-size: 0;
  margin-top: -1px;
  margin-bottom: -1px;
  height: 0;
}
.section-divider svg { display: none; }

/* ===== PLANNER SHEET (signature frame) ===== */
.planner-sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sheet);
  overflow: hidden;
}
.planner-band {
  background: var(--band);
  color: var(--band-ink);
  padding: var(--space-6) var(--space-6) var(--space-5);
}
.planner-band h2 { margin: 0; color: var(--band-ink); }

/* ===== ROLE STICKERS ===== */
.sticker {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: var(--radius-dot);
  box-shadow: var(--edge);
  flex: none;
  vertical-align: -.15em;
}
.sticker-blue { background: var(--blue); }
.sticker-red { background: var(--red); }
.sticker-green { background: var(--green); }
.sticker-yellow { background: var(--yellow); }
.sticker-purple { background: var(--purple); }

/* ===== RULED LISTS AND TABLES ===== */
.ruled-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ruled-list li {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--rule);
}
.ruled-list b {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.1rem;
  flex: 0 0 11.5rem;
  line-height: 1.3;
}
.ruled-list span { color: var(--ink-2); }

/* ===== PROBLEM / FEATURE PANELS =====
   Content is tabular in this world; these panels read as planner sheets
   (hairline edge, no lift, square ruled internals) rather than floating
   cards. */
.problem { background: var(--sheet); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--space-7); }
.problem-grid--2 { grid-template-columns: repeat(2, 1fr); }
.problem-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 0 var(--space-6); }
.problem-card {
  padding: var(--space-5) 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  background: transparent;
}
.problem-grid--4 .problem-card { padding: var(--space-4) 0; }
/* Decorative iconography belongs to the previous world. Headings and rules
   carry these panels now, so the icon slot stays in the markup but draws
   nothing. */
.problem-icon,
.diff-icon { display: none; }
.problem-card h3 { margin-bottom: var(--space-2); }
.problem-card p { font-size: 1rem; color: var(--ink-2); line-height: 1.6; }

/* ===== STATS BANNER (a title-band extension) ===== */
.stats-banner { background: var(--band); color: var(--band-ink); padding: var(--space-8) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-7); text-align: left; }
.stat-number {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--band-ink);
  line-height: 1;
}
.stat-label { font-size: .95rem; color: var(--band-muted); margin-top: var(--space-2); }
.stats-banner p { color: var(--band-muted); }

/* ===== PRICING =====
   Plans are a ruled table, not a grid of cards: a plan column, its price,
   its limits, and a full-height green cell stating that every feature is on
   every plan. */
.pricing { background: var(--sheet); }
.pricing-intro { text-align: left; max-width: 68ch; margin: 0 0 var(--space-4); color: var(--ink-2); }
.pricing-toggle { display: flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-6); font-size: .95rem; font-weight: 600; color: var(--ink-2); }

.price-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.price-table thead th:nth-child(1) { width: 26%; }
.price-table thead th:nth-child(2) { width: 24%; }
.price-table thead th:nth-child(4) { width: 15rem; }
.price-table caption { text-align: left; padding-bottom: var(--space-3); font-size: .95rem; color: var(--ink-2); }
.price-table th, .price-table td { padding: var(--space-4); border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.price-table thead th {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sheet);
  padding: var(--space-3) var(--space-4);
  border-top: 2px solid var(--rule-strong);
  border-bottom: 2px solid var(--rule-strong);
}
.price-table thead th + th { border-left: 1px solid var(--rule); }
.price-table thead th.feat { background: var(--band); color: var(--band-ink); border-color: var(--band); text-align: center; }
.price-table tbody th { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.price-table tbody th small { display: block; font-family: var(--body); font-weight: 400; font-size: .9rem; color: var(--ink-2); margin-top: .3rem; line-height: 1.3; }
.price { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; white-space: nowrap; }
.price small { font-family: var(--body); font-size: .9rem; font-weight: 400; color: var(--ink-2); margin-left: .2rem; }
.price b { font-weight: inherit; }
.saves { display: grid; margin-top: .35rem; }
.saves .save { grid-area: 1 / 1; margin-top: 0; }
.saves .save-y { visibility: hidden; }
.saves.yearly .save-y { visibility: visible; }
.saves.yearly .save-m { visibility: hidden; }
.save { display: block; font-size: .85rem; font-weight: 600; color: var(--green); }
.th-wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.bill { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--radius-pill); padding: 2px; text-transform: none; letter-spacing: 0; }
.bill button {
  font-family: var(--body);
  font-size: .85rem;
  font-weight: 650;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  padding: .3rem .8rem;
  min-height: 2rem;
  cursor: pointer;
}
.bill button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }
.bill-m { display: none; margin-bottom: var(--space-4); }
.every {
  background: var(--band);
  color: var(--band-ink);
  text-align: center !important;
  vertical-align: middle !important;
  width: 15rem;
  border-bottom: 0 !important;
}
.every b { display: block; font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1.05; margin-bottom: .5rem; }
.every span { font-size: .95rem; color: var(--band-muted); display: block; max-width: 14rem; margin-inline: auto; line-height: 1.45; }
.every-m { display: none; }

.pricing-note { text-align: left; margin-top: var(--space-4); font-size: 1rem; color: var(--ink-2); max-width: var(--measure); }
.pricing-note + .pricing-note { margin-top: var(--space-2); font-size: .9rem; }
.pricing-note strong { color: var(--ink); font-weight: 650; }

/* The Get Started band that follows the table. */
.getgo {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  background: var(--sheet);
  border-radius: var(--radius-sheet);
  overflow: hidden;
  border: 1px solid var(--rule);
}
.getgo-band { background: var(--band); color: var(--band-ink); padding: var(--space-5) var(--space-6); }
.getgo-band p { margin: 0; color: var(--band-muted); font-size: 1.05rem; max-width: 52ch; }
.getgo-band b { display: block; color: var(--band-ink); font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1.05; margin-bottom: .3rem; }
.getgo-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding: var(--space-5) var(--space-6); }
.price-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-6); font-size: .98rem; color: var(--ink-2); }
.price-foot p { margin: 0; }
.price-vat { margin: var(--space-3) 0 0; font-size: .9rem; color: var(--ink-2); }

/* ===== DIFFERENTIATORS ===== */
.differentiators { background: var(--wall); }
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-7); }
.diff-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) 0;
  background: transparent;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.diff-card h3 { margin-bottom: var(--space-1); }
.diff-card p { font-size: 1rem; color: var(--ink-2); line-height: 1.6; }

/* ===== MIGRATION (title-band extension) ===== */
.migration { background: var(--band); color: var(--band-ink); }
.migration-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
.migration-text p { font-size: 1.0625rem; color: var(--band-lede); line-height: 1.6; margin-top: var(--space-4); }
.migration-sources { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.migration-source {
  padding: .2rem .8rem;
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 650;
  background: transparent;
  color: var(--band-ink);
  border: 1px solid rgba(255, 255, 255, .55);
}
.migration-step { display: flex; gap: var(--space-4); margin-bottom: var(--space-5); }
.step-number {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-dot);
  background: transparent;
  border: 3px solid var(--band-ink);
  color: var(--band-ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.migration-step:last-of-type .step-number { background: var(--green); border-color: var(--green); }
.step-content h3 { color: var(--band-ink); margin-bottom: var(--space-1); }
.step-content p { font-size: .95rem; color: var(--band-lede); line-height: 1.6; }

/* ===== ABOUT ===== */
.about { background: var(--sheet); }
.about-inner { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5) var(--space-7); align-items: start; max-width: 860px; margin: 0; }
.about-inner--text { grid-template-columns: 1fr; max-width: 68ch; }
.about-header { grid-column: 1 / -1; }
.about-header h2 { margin-bottom: 0; }
.about-avatar {
  width: 120px; height: 120px;
  border-radius: var(--radius-dot);
  background: var(--band);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 2.4rem; font-weight: 650;
  color: var(--band-ink);
  flex-shrink: 0;
  align-self: start;
  margin-top: 4px;
}
.about-text h2 { margin-bottom: var(--space-3); }
.about-text p { color: var(--ink-2); line-height: 1.6; margin-bottom: var(--space-3); }
.about-text p:last-child { margin-bottom: 0; }
.about-credentials { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.about-cred {
  display: inline-block;
  padding: .2rem .8rem;
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 650;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}

/* ===== CLOSING CTA (a planner sheet) ===== */
.cta { background: var(--wall); padding: var(--space-8) 0 var(--space-9); position: relative; overflow: hidden; }
.cta .container { position: relative; }
.cta-box {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sheet);
  overflow: hidden;
  padding: 0;
  text-align: left;
  max-width: none;
  margin: 0;
  position: relative;
  z-index: 1;
}
.cta-box > h2 {
  background: var(--band);
  color: var(--band-ink);
  margin: 0;
  padding: var(--space-6);
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3.2rem);
}
.cta-box > p { padding: var(--space-5) var(--space-6) 0; font-size: 1.0625rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 0; max-width: var(--measure); }
.cta-buttons { display: flex; gap: var(--space-3); justify-content: flex-start; flex-wrap: wrap; padding: var(--space-5) var(--space-6) var(--space-6); }
.cta-note { font-size: .875rem; color: var(--ink-2); padding: 0 var(--space-6) var(--space-6); }
.cta-tagline { font-family: var(--marker); font-size: 1.05rem; color: var(--ink-2); margin-top: var(--space-6); }
.cta-tree { display: none; }

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: var(--footer-text);
  padding: var(--space-8) 0 max(var(--space-6), env(safe-area-inset-bottom));
  font-size: .95rem;
}
footer a { color: var(--sheet); text-decoration: none; }
footer a:hover { color: var(--band-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: var(--space-5) var(--space-7); margin-bottom: var(--space-7); }
.footer-brand { grid-row: 1 / 3; }
.footer-brand .nav-logo span { color: var(--sheet); }
.footer-brand .nav-logo svg { color: var(--footer-tree); }
.footer-line {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.6rem;
  line-height: 1.05;
  color: var(--sheet);
  margin: var(--space-4) 0 var(--space-2);
}
.footer-brand p { font-size: .9rem; color: var(--footer-muted); line-height: 1.6; margin-top: var(--space-4); }
.footer-brand p a { display: inline-flex; align-items: center; min-height: 1.5rem; }
.footer-tagline { grid-column: 2 / -1; align-self: end; margin-bottom: var(--space-2); }
.footer-tagline p { font-size: .95rem; color: var(--footer-muted); line-height: 1.6; }
.footer-col h3 {
  font-family: var(--body);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--footer-muted);
  margin-bottom: var(--space-3);
}
.footer-col a { display: flex; align-items: center; min-height: 1.5rem; font-size: .9rem; color: var(--footer-text); margin-bottom: .4rem; }
.footer-col a:hover { color: var(--sheet); }
.footer-bottom {
  border-top: 1px solid var(--footer-rule);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
}
.footer-bottom p { font-size: .85rem; color: var(--footer-muted); margin: 0; }
.footer-bottom a { color: var(--footer-muted); font-size: .85rem; display: inline-flex; align-items: center; min-height: 1.5rem; }
.footer-bottom a:hover { color: var(--sheet); }
.footer-links { display: flex; gap: var(--space-5); }

/* ===== CONTENT SECTIONS (inner pages) ===== */
.content-section { padding: var(--space-8) 0; }
.content-section + .content-section { border-top: 1px solid var(--rule); }
.content-section h2 { margin-bottom: var(--space-3); }
.content-section p { color: var(--ink-2); line-height: 1.6; margin-bottom: var(--space-3); }
.content-section p:last-child { margin-bottom: 0; }

/* Comparison tables: ruled, opened by a 2px Strong Rule line. */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  background: var(--sheet);
  font-size: .95rem;
}
.comparison-table thead { border-top: 2px solid var(--rule-strong); border-bottom: 2px solid var(--rule-strong); }
.comparison-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-family: var(--display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  vertical-align: bottom;
}
.comparison-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); color: var(--ink-2); vertical-align: top; }
.comparison-table th + th,
.comparison-table td + td { border-left: 1px solid var(--rule); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table strong { color: var(--ink); }

/* Section intro copy under a page hero. */
.intro-lede { max-width: var(--measure); font-size: 1.15rem; color: var(--ink-2); margin-top: var(--space-2); }
.page-updated { font-size: .9rem; color: var(--ink-2); margin-top: var(--space-3); }

/* Segment panels */
.segment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--space-7); }
.segment-card {
  background: var(--sheet);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: var(--space-5) 0;
}
.segment-card h3 { margin-bottom: var(--space-2); }
.segment-card p { font-size: 1rem; color: var(--ink-2); line-height: 1.6; margin-bottom: var(--space-4); }
.segment-card .btn { width: auto; }

/* Consolidation visual: the patchwork, as plain pills on the sheet. */
.consolidation { display: flex; align-items: center; gap: var(--space-6); justify-content: flex-start; flex-wrap: wrap; margin: var(--space-6) 0; }
.consolidation-before { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-start; max-width: 380px; position: relative; }
.consolidation-after { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.consolidation-bubble {
  display: flex; align-items: center; gap: var(--space-2);
  padding: .2rem .8rem;
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 650;
  background: var(--sheet);
  color: var(--ink-2);
  border: 1px solid var(--rule-strong);
}
.consolidation-bubble svg { width: 18px; height: 18px; flex-shrink: 0; filter: grayscale(1); opacity: .75; }
.consolidation-arrow { font-size: 1.5rem; color: var(--ink-2); line-height: 1; }
.consolidation-alder {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--band);
  color: var(--band-ink);
}
.consolidation-alder svg { width: 2rem; height: 2rem; flex-shrink: 0; }
.consolidation-alder span { font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: var(--band-ink); }
.consolidation-caption {
  font-family: var(--marker);
  font-size: 1.05rem;
  color: var(--red);
  margin-top: var(--space-1);
  width: 100%;
}

/* ===== FAQ (ruled list, native details) ===== */
.faq-list { margin: 0; display: block; border-top: 2px solid var(--ink); max-width: none; }
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 0;
  overflow: hidden;
}
.faq-q { font-weight: 650; font-size: 1.0625rem; color: var(--ink); margin-bottom: var(--space-2); cursor: pointer; }
.faq-a { font-size: 1rem; color: var(--ink-2); line-height: 1.6; }
.faq-answer { display: none; padding: 0 0 var(--space-5); }
.faq-answer > * { max-width: var(--measure); }
.faq-answer p { font-size: 1rem; color: var(--ink-2); line-height: 1.6; }
details.faq-item { padding: 0; }
details.faq-item summary {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.0625rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--ink-2); flex-shrink: 0; margin-left: var(--space-4); transition: transform .25s var(--ease-out); }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-answer { display: none; padding: 0 0 var(--space-5); }
details.faq-item[open] .faq-answer { display: block; }

/* Switch page: before/after, as a two-column ruled comparison table. The
   "With Alder" side carries the weight; "Before" stays quiet. */
.switch-table { margin-top: 0; }
.switch-table th, .switch-table td { width: 50%; }
.switch-table td:first-child { color: var(--ink-2); }
.switch-table td + td { color: var(--ink); font-weight: 500; }
.switch-table thead th + th { color: var(--green); }
.switch-note { display: block; margin-top: var(--space-2); font-size: .875rem; font-weight: 400; line-height: 1.6; color: var(--ink-2); max-width: 56ch; }

/* Pricing comparison: the plan that covers each row, under the price. */
.pricing-comparison .plan-name { display: block; font-size: .85rem; color: var(--ink-2); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--space-6); margin: var(--space-6) 0; }
.step-card { padding: var(--space-5) 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.step-card .step-number { margin: 0 0 var(--space-3); }
.step-card h3 { margin-bottom: var(--space-2); }
.step-card p { font-size: 1rem; color: var(--ink-2); line-height: 1.6; }

/* Two-column grid with image (about and other pages) */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }

/* Two-column content */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
.two-col h3 { margin-bottom: var(--space-3); }

/* ===== POLICY PAGES (Privacy, Terms, Cookies) ===== */
.policy-content { width: var(--page); max-width: 84rem; margin-inline: auto; padding: var(--space-8) 0 var(--space-9); }
.policy-card {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sheet);
  padding: var(--space-7);
}
.policy-section { margin-bottom: var(--space-7); }
.policy-section:last-child { margin-bottom: 0; }
.policy-section h2 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 650;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.policy-section h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.2;
  color: var(--ink);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}
.policy-section p { margin-bottom: var(--space-3); color: var(--ink-2); line-height: 1.6; }
.policy-section ul, .policy-section ol { margin: 0 0 var(--space-4) 1.25rem; }
.policy-section li { margin-bottom: var(--space-2); line-height: 1.6; color: var(--ink-2); }
.policy-section li strong, .policy-section p strong { color: var(--ink); }
.policy-section a { color: var(--band); text-decoration: underline; overflow-wrap: anywhere; }
.agreement a, .policy-simple-content a { overflow-wrap: anywhere; }
.policy-section a:hover { color: var(--ink); }
.policy-note, .highlight-box {
  background: var(--wall);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--band);
  padding: var(--space-4);
  margin: var(--space-5) 0;
  border-radius: var(--radius-sheet);
}
.policy-note p, .highlight-box p { margin-bottom: 0; font-size: .95rem; }
.highlight-box strong { color: var(--ink); }
@media (min-width: 1100px) {
  .policy-section > p,
  .policy-section > ul,
  .policy-section > ol,
  .policy-section > .policy-note,
  .policy-section > .highlight-box { max-width: 72ch; }
  .policy-section > .agreement-toc { max-width: none; }
}
.policy-updated {
  color: var(--ink-2);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
}

/* Customer Agreement (legal numbering) */
.agreement .policy-card { max-width: none; }
.agreement .agreement-part {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 650;
  line-height: 1.15;
  color: var(--ink);
  margin: var(--space-7) 0 var(--space-5);
  padding-top: var(--space-5);
  border-top: 2px solid var(--rule-strong);
}
.agreement .agreement-clause { margin-bottom: var(--space-5); }
.agreement .agreement-clause h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--ink);
  margin: var(--space-5) 0 var(--space-2);
}
.agreement .agreement-clause h4 { font-size: 1rem; font-weight: 650; color: var(--ink); margin: var(--space-5) 0 var(--space-2); }
.agreement .clause { position: relative; padding-left: 3.5rem; margin-bottom: var(--space-2); line-height: 1.6; color: var(--ink-2); }
.agreement .clause-num { position: absolute; left: 0; width: 3rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.agreement .clause-l2 { padding-left: 6.5rem; }
.agreement .clause-l2 .clause-num { left: 3.5rem; }
.agreement .clause-l3 { padding-left: 9.5rem; }
.agreement .clause-l3 .clause-num { left: 6.5rem; }
.agreement .clause-def, .agreement .clause-cont { padding-left: 3.5rem; }
.agreement .agreement-toc { font-size: .95rem; color: var(--ink-2); }
.agreement .table-scroll { overflow-x: auto; margin: var(--space-4) 0 var(--space-5); }
.agreement .agreement-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.agreement .agreement-table th, .agreement .agreement-table td { padding: .6rem .75rem; text-align: left; vertical-align: top; border: 1px solid var(--rule); line-height: 1.5; }
.agreement .agreement-table thead th { background: var(--wall); color: var(--ink); font-weight: 650; }
.agreement .agreement-table tbody th { font-weight: 650; color: var(--ink); background: var(--weekend); }
@media (max-width: 600px) {
  .agreement .clause { padding-left: 2.75rem; }
  .agreement .clause-num { width: 2.5rem; }
  .agreement .clause-l2 { padding-left: 5rem; }
  .agreement .clause-l2 .clause-num { left: 2.75rem; }
  .agreement .clause-l3 { padding-left: 7.25rem; }
  .agreement .clause-l3 .clause-num { left: 5rem; }
  .agreement .clause-def, .agreement .clause-cont { padding-left: 2.75rem; }
}

/* Policy content (cookie page simple layout) */
.policy-simple-content { width: var(--page); max-width: 84rem; margin-inline: auto; padding: var(--space-7) 0 var(--space-9); }
.policy-simple-content h2 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 650;
  line-height: 1.15;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--ink);
}
.policy-simple-content h2:first-child { margin-top: 0; }
.policy-simple-content p { margin-bottom: var(--space-3); line-height: 1.6; color: var(--ink-2); }
.policy-simple-content ul { margin: 0 0 var(--space-4) 1.25rem; }
.policy-simple-content li { margin-bottom: var(--space-2); line-height: 1.6; color: var(--ink-2); }
.policy-simple-content a { color: var(--band); text-decoration: underline; }
.policy-simple-content a:hover { color: var(--ink); }
.policy-contact-box { background: var(--wall); border: 1px solid var(--rule); padding: var(--space-5); border-radius: var(--radius-sheet); margin-top: var(--space-6); }
.policy-contact-box p { margin-bottom: var(--space-2); }

/* ===== TABLES AND ACCESSIBILITY HELPERS ===== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.table-scroll { overflow-x: auto; margin: var(--space-5) 0 var(--space-2); -webkit-overflow-scrolling: touch; }
.subprocessor-table,
.policy-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .95rem; }
.subprocessor-table th, .policy-table th,
.subprocessor-table td, .policy-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  line-height: 1.6;
}
.subprocessor-table thead th, .policy-table thead th {
  border-top: 2px solid var(--rule-strong);
  border-bottom: 2px solid var(--rule-strong);
  background: var(--sheet);
  font-family: var(--display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.subprocessor-table tbody th, .policy-table tbody th { width: 26%; font-weight: 650; color: var(--ink); }
.subprocessor-table tbody td, .policy-table tbody td { color: var(--ink-2); }
.subprocessor-table tbody tr:last-child th, .policy-table tbody tr:last-child th,
.subprocessor-table tbody tr:last-child td, .policy-table tbody tr:last-child td { border-bottom: none; }

/* ===== CONTACT / REGISTER INTEREST PAGE ===== */
.contact-section { padding: var(--space-8) 0 var(--space-9); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  max-width: 72rem;
  margin: 0;
}
/* A form page with a single column keeps a readable measure rather than
   leaving half the grid empty. */
.contact-grid > :only-child { grid-column: 1 / -1; max-width: 38rem; }
.contact-form h2 { margin-bottom: var(--space-2); }
.contact-form > p { color: var(--ink-2); font-size: 1rem; margin-bottom: var(--space-6); line-height: 1.6; }
.form-group { margin-bottom: var(--space-4); }
.form-group label { display: block; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--space-1); color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sheet);
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--sheet);
  transition: border-color .2s;
  height: auto;
  min-height: 3rem;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233d434a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--focus); outline: 3px solid var(--focus); outline-offset: 1px; }
.form-group input::placeholder, .form-group textarea::placeholder {
  color: #5f6b76;
  opacity: 1;
}
.form-group textarea { resize: vertical; min-height: 7rem; }
.form-group .hint { font-size: .8rem; color: var(--ink-2); margin-top: var(--space-1); }
.form-consent { font-size: .85rem; color: var(--ink-2); margin-top: var(--space-4); margin-bottom: var(--space-5); line-height: 1.6; }
.form-consent a { color: var(--band); text-decoration: underline; }
.form-submit { width: 100%; justify-content: center; font-size: 1.0625rem; padding: 1rem 1.4rem; }

/* Book a call panel */
.book-call { padding: var(--space-5); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-sheet); margin-top: var(--space-5); }
.book-call h3 { font-family: var(--display); font-weight: 650; font-size: 1.15rem; margin-bottom: var(--space-2); }
.book-call > p { color: var(--ink-2); font-size: 1rem; margin-bottom: var(--space-5); line-height: 1.6; }
.book-call-placeholder { background: var(--wall); border: 1px dashed var(--rule-strong); border-radius: var(--radius-sheet); padding: var(--space-7) var(--space-5); text-align: center; margin-bottom: var(--space-5); }
.book-call-placeholder p { font-size: .95rem; color: var(--ink-2); }
.book-call-email { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--rule); }
.book-call-email p { font-size: 1rem; color: var(--ink-2); margin-bottom: var(--space-2); line-height: 1.6; }
.book-call-email a { color: var(--band); font-weight: 650; text-decoration: underline; }

/* What to expect: a ruled list */
.expect-panel { margin-top: var(--space-5); padding: var(--space-5); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-sheet); }
.expect-panel h3 { font-family: var(--display); font-weight: 650; font-size: 1.15rem; margin-bottom: var(--space-1); }
.expect-panel > p { font-size: .95rem; color: var(--ink-2); margin-bottom: 0; }
.expect-list { list-style: none; margin-top: var(--space-5); border-top: 2px solid var(--ink); }
.expect-list li { display: flex; gap: var(--space-3); padding: var(--space-3) 0; font-size: .95rem; color: var(--ink); border-bottom: 1px solid var(--rule); }
.expect-list li:last-child { border-bottom: none; }
.expect-list strong { font-family: var(--display); font-weight: 650; }
.expect-icon { width: 1.6rem; height: 1.6rem; border-radius: var(--radius-dot); flex-shrink: 0; display: grid; place-items: center; background: var(--band); color: var(--band-ink); font-family: var(--display); font-size: .8rem; font-weight: 700; }

/* ===== FEATURES PAGE (page furniture; mock panels live in features.css) ===== */
.feature-row { padding: var(--space-8) 0; border-bottom: 1px solid var(--rule); }
.feature-row-reverse { background: var(--wall); }
.feature-content { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; max-width: 84rem; margin: 0 auto; }
.feature-content > * { min-width: 0; }
.feature-text,
.feature-visual { min-width: 0; }
.feature-badge {
  display: inline-block;
  padding: .2rem .8rem;
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .02em;
  margin-bottom: var(--space-4);
  border: 1px solid currentColor;
}
.badge-green { color: var(--green-ink); }
.badge-walnut { color: var(--red-ink); }
.badge-emerald { color: var(--green-ink); }
.badge-gold { color: var(--yellow-ink); }
.badge-coral { color: var(--red-ink); }
.badge-amber { color: var(--yellow-ink); }
.badge-teal { color: var(--purple); }
.badge-slate { color: var(--ink-2); }
.badge-indigo { color: var(--purple); }
.badge-plum { color: var(--purple); }
.badge-blue { color: var(--blue); }
.feature-text h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin-bottom: var(--space-3); }
.feature-text > p { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); margin-bottom: var(--space-5); }
.feature-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.feature-list li { display: flex; gap: var(--space-3); padding: var(--space-2) 0; font-size: 1rem; color: var(--ink); border-bottom: 1px solid var(--rule); }
.feature-list li svg { display: none; }
.feature-list li::before { content: ''; flex: none; width: .4rem; height: 2px; margin-top: .7em; background: var(--rule-strong); }
.feature-visual { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-sheet); padding: var(--space-5); }
.feature-closing { padding: var(--space-8) 0; text-align: left; }
.feature-closing h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin-bottom: var(--space-3); }
.feature-closing p { font-size: 1.0625rem; line-height: 1.6; max-width: var(--measure); margin: 0 0 var(--space-5); color: var(--ink-2); }

/* Pricing comparison table (switch page, 4 columns) */
.pricing-comparison th:first-child, .pricing-comparison td:first-child { width: 18%; }
.pricing-comparison th:nth-child(2), .pricing-comparison td:nth-child(2) { width: 28%; }
.pricing-comparison th:nth-child(3), .pricing-comparison td:nth-child(3) { width: 28%; }
.pricing-comparison th:nth-child(4), .pricing-comparison td:nth-child(4) { width: 26%; }
.pricing-comparison td { padding: var(--space-4); }
.pricing-notes { margin-top: var(--space-5); max-width: var(--measure); }
.pricing-notes p { font-size: .9rem; color: var(--ink-2); line-height: 1.6; margin-bottom: var(--space-2); }
.pricing-notes p:last-child { margin-bottom: 0; }

/* ===== COMPARE PAGE ===== */
.comp-intro { padding: var(--space-7) 0; }
.comp-competitor-name { font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 650; color: var(--ink); margin: 0 0 var(--space-3); }
.comp-content h3 { margin-top: var(--space-6); margin-bottom: var(--space-3); font-size: 1.25rem; }
.comp-content p { margin-bottom: var(--space-3); color: var(--ink-2); line-height: 1.6; }
.cta-section .btn { display: inline-flex; }

/* ===== REGION FLAGS ===== */
.region-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.region-flag { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 650; letter-spacing: .02em; color: var(--ink); }
.region-flag svg { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }

/* ===== FLASH MESSAGES ===== */
.flash-message { padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); font-weight: 600; }
.flash-message--notice { background: var(--band-soft); color: var(--ink); }
.flash-message--error { background: var(--red); color: var(--sheet); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card:nth-child(3) { border-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; grid-row: auto; }
  .footer-tagline { grid-column: 1 / -1; }
  .segment-grid { grid-template-columns: 1fr; max-width: 42rem; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .two-col, .grid-2col, .migration-inner, .feature-content, .diff-grid, .problem-grid, .problem-grid--2, .problem-grid--4 { grid-template-columns: 1fr; gap: var(--space-5); }
  /* The desktop left/right alternation stops meaning anything once the row is
     one column, so every section reads copy first, illustration second. */
  .feature-content > .feature-text { order: 1; }
  .feature-content > .feature-visual { order: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-tagline { grid-column: 1 / -1; }
  .cta-box > h2 { padding: var(--space-5); }
  .cta-box > p, .cta-buttons, .cta-note { padding-left: var(--space-5); padding-right: var(--space-5); }
  .policy-card { padding: var(--space-5); }
}

@media (max-width: 860px) {
  /* Below 860px the header links fold into the Menu disclosure; the
     Start Free button stays visible. */
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-menu-open { overflow: hidden; }
  nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: var(--site-header-height, 90px);
    z-index: 109;
    background: var(--sheet);
    border-bottom: 2px solid var(--ink);
    padding: 0 var(--space-5) var(--space-5);
    overflow-y: auto;
  }
  nav.nav-open .nav-links a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 3.25rem;
    padding: 0;
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
  }
  nav.nav-open .nav-links a:not(.btn):hover,
  nav.nav-open .nav-links a:not(.btn).active { color: var(--band); }
  nav.nav-open .nav-cta { margin-top: var(--space-5); width: 100%; justify-content: center; }
}

/* The plan table stacks below 860px: the header row hides, each plan becomes
   a ruled block, and the "every feature" statement moves above the plans.
   Each block reads name, description, price, yearly saving, limits. Keeping
   the price out of a second column stops the long yearly-saving line from
   squeezing the plan description into a narrow ribbon. */
@media (max-width: 860px) {
  /* Keep the column headings in the accessibility tree (they still name the
     cells for screen readers) but out of the stacked visual layout. */
  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .price-table thead .bill { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td, .price-table th { display: block; width: 100%; }
  .price-table tr { padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); }
  .price-table th, .price-table td { border: 0; padding: 0; }
  .price-table td.price-cell { margin-top: var(--space-3); }
  .price-table td.price-cell .saves { margin-top: .2rem; }
  .price-table td.lim { margin-top: var(--space-2); color: var(--ink-2); }
  .price-table .every { display: none; }
  .every-m { display: block; width: auto; border-radius: var(--radius-sheet); padding: var(--space-5); margin-bottom: var(--space-3); text-align: left !important; }
  .every-m b { font-size: 2rem; }
  .every-m span { margin: 0; max-width: none; }
  .price-foot { grid-template-columns: 1fr; gap: var(--space-4); }
  .bill-m { display: block; }
  .bill button { min-height: 2.5rem; padding: .4rem 1rem; }
}

@media (max-width: 768px) {
  .section { padding: var(--space-7) 0; }
  .section-header { margin-bottom: var(--space-6); }
  .page-hero { padding: var(--space-3) 0 var(--space-4); }
  .page-hero .container { padding: var(--space-5); }
  .cta { padding: var(--space-7) 0 var(--space-8); }
  .bill button { min-height: 2.75rem; padding: .45rem 1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .footer-col a,
  .footer-links a,
  .footer-brand p a { display: flex; align-items: center; min-height: 1.75rem; }
  .comparison-table { font-size: .875rem; }
  .comparison-table th, .comparison-table td { padding: var(--space-2) var(--space-3); }
  /* Comparison tables stack: the row label is the heading, and each value
     keeps its column name beside it. Nothing is hidden behind a scroll. */
  .table-scroll--stack { overflow: visible; }
  .table-scroll--stack .comparison-table { display: block; min-width: 0; font-size: .95rem; }
  /* The column names stay available to assistive technology even though the
     stacked row labels carry them visually. */
  .table-scroll--stack .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .table-scroll--stack .comparison-table tbody { display: block; }
  .table-scroll--stack .comparison-table tr {
    display: block;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--rule);
  }
  .table-scroll--stack .comparison-table td,
  .table-scroll--stack .comparison-table th { display: block; border: 0; padding: 0; width: auto; }
  .table-scroll--stack .pricing-comparison th,
  .table-scroll--stack .pricing-comparison td { width: auto; }
  .table-scroll--stack .comparison-table td:first-child {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 650;
    color: var(--ink);
    margin-bottom: var(--space-2);
  }
  /* The label floats into the left gutter rather than being absolutely
     positioned, and flow-root makes the cell contain it, so a label that
     wraps to more lines than its value pushes the next row down instead of
     running into it. */
  .table-scroll--stack .comparison-table td[data-label] {
    display: flow-root;
    padding: .2rem 0 .2rem 9rem;
  }
  .table-scroll--stack .comparison-table td[data-label]::before {
    content: attr(data-label);
    float: left;
    width: 8rem;
    margin-left: -9rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-2);
    line-height: 1.5;
  }
  /* The switch table has no row heading: each side keeps its label above the
     text, so "Before" reads as quietly as it does on desktop. */
  .table-scroll--stack .switch-table td:first-child {
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    color: var(--ink-2);
    margin-bottom: var(--space-3);
  }
  .table-scroll--stack .switch-table td[data-label] { padding: 0; }
  .table-scroll--stack .switch-table td[data-label]::before { float: none; display: block; width: auto; margin: 0 0 var(--space-1); }
  .table-scroll--stack .switch-table td[data-label] + td[data-label]::before { color: var(--green); }
  /* Tables that are key/value in disguise stack too: the row heading is the
     label and the value reads below it. In the sub-processor list each value
     also carries its column name above it. Both used to sit behind a
     horizontal scroll at 390px, hiding the right-hand column. */
  .table-scroll--stack .subprocessor-table,
  .table-scroll--stack .policy-table { display: block; min-width: 0; }
  /* As with the comparison tables, the column names stay available to
     assistive technology even though the stacked row heading and labels carry
     them visually. */
  .table-scroll--stack .subprocessor-table thead,
  .table-scroll--stack .policy-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .table-scroll--stack .subprocessor-table tbody,
  .table-scroll--stack .policy-table tbody { display: block; }
  .table-scroll--stack .subprocessor-table tr,
  .table-scroll--stack .policy-table tr {
    display: block;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--rule);
  }
  .table-scroll--stack .subprocessor-table tr:last-child,
  .table-scroll--stack .policy-table tr:last-child { border-bottom: 0; }
  .table-scroll--stack .subprocessor-table th,
  .table-scroll--stack .subprocessor-table td,
  .table-scroll--stack .policy-table th,
  .table-scroll--stack .policy-table td {
    display: block;
    border: 0;
    padding: 0;
    width: auto;
  }
  .table-scroll--stack .subprocessor-table tbody th,
  .table-scroll--stack .policy-table tbody th {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 650;
    color: var(--ink);
    margin-bottom: var(--space-2);
  }
  .table-scroll--stack .subprocessor-table td[data-label] {
    margin-bottom: var(--space-3);
  }
  .table-scroll--stack .subprocessor-table td[data-label]:last-child { margin-bottom: 0; }
  .table-scroll--stack .subprocessor-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--display);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: .15rem;
  }
  .pricing-grid { grid-template-columns: 1fr; max-width: 26rem; }
  .pricing-card + .pricing-card { border-left: 0; }
}

/* ===== REDUCED MOTION (a11y) ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}
