﻿/* ==========================================================================
   Plain Page Web Services — site.css
   One stylesheet. No framework, no build step.
   Concept: the brand is a sheet of paper. Warm paper ground, teal ink,
   sage used only where something is folded back or worth pointing at.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand — taken directly from the logo files */
  --ink:          #123B3A;  /* deep teal, primary text + solid shapes */
  --sage:         #6FAE9B;  /* the folded corner */
  --paper:        #FBFAF7;  /* the page */

  /* The logo's grey-green is #5C7D75, but at 4.3:1 on paper it misses WCAG AA
     for the small uppercase text it's used on. This is that hue, darkened
     until it passes on paper, sunk and wash alike. */
  --muted:        #4F6D66;

  /* Derived neutrals — all mixed from the brand, so nothing looks foreign */
  --paper-sunk:   #F4F2EC;  /* recessed panels */
  --paper-edge:   #FFFFFF;  /* raised cards sit brighter than the page */
  --rule:         #E3E0D7;  /* hairlines */
  --rule-strong:  #CFCCC1;
  --ink-soft:     #2C4F4C;  /* body copy — 8.6:1 on paper */
  --ink-faint:    #5A6F6C;  /* captions, meta — 5.1:1 on paper, 4.8:1 on sunk */

  --sage-wash:    #EDF5F1;  /* tinted blocks */
  --sage-deep:    #377060;  /* sage dark enough for text: 5.5:1 paper, 5.2:1 wash */

  /* Type */
  --font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text:    "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;
  --font-ui:      "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Fluid type scale — 1.25 ratio, clamped so nothing gets silly on 4K */
  --t-hero:   clamp(2.75rem, 1.6rem + 5.2vw, 5rem);
  --t-h1:     clamp(2.25rem, 1.5rem + 3.4vw, 3.5rem);
  --t-h2:     clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --t-h3:     clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --t-lead:   clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --t-body:   1.0625rem;
  --t-small:  0.9375rem;
  --t-micro:  0.8125rem;

  /* Spacing — 8px base */
  --s1: 0.5rem;  --s2: 0.75rem; --s3: 1rem;    --s4: 1.5rem;
  --s5: 2rem;    --s6: 3rem;    --s7: 4rem;    --s8: 6rem;
  --s9: 8rem;

  /* The lower bound is what a phone gets. Kept tighter than the desktop
     rhythm so a small screen isn't mostly empty space between sections. */
  --section-y: clamp(2.75rem, 1.5rem + 7vw, 7rem);

  /* Layout */
  --wrap:       1140px;
  --wrap-tight: 760px;   /* prose measure */
  --gutter:     clamp(1.25rem, 4vw, 3rem);

  --radius:    14px;
  --radius-sm: 8px;

  /* One shadow, used sparingly. Tinted with the brand, never grey. */
  --lift:    0 1px 2px rgba(18,59,58,.05), 0 8px 24px -12px rgba(18,59,58,.16);
  --lift-lg: 0 2px 4px rgba(18,59,58,.05), 0 22px 48px -20px rgba(18,59,58,.24);

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem; /* clears the sticky header on anchor jumps */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 0 0 var(--s3);
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.012em; line-height: 1.25; }

p { margin: 0 0 var(--s4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

strong, b { font-weight: 600; color: var(--ink); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--s6) 0;
}

::selection { background: var(--sage); color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip link */
.skip {
  position: absolute; left: -9999px;
  top: var(--s3); z-index: 200;
  background: var(--ink); color: #fff;
  padding: var(--s2) var(--s4);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-weight: 500;
  text-decoration: none;
}
.skip:focus { left: var(--s3); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

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

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }

/* Hairline dividers instead of alternating colour bands — reads as a
   document rather than a stack of marketing panels. */
.section--ruled { border-top: 1px solid var(--rule); }
.section--sunk  { background: var(--paper-sunk); }
.section--wash  { background: var(--sage-wash); }
.section--ink   { background: var(--ink); color: rgba(255,255,255,.82); }
.section--ink h2, .section--ink h3, .section--ink strong { color: #fff; }

.grid { display: grid; gap: var(--s5); }
/* Grid and flex children default to min-width:auto, which lets wide content
   (tables, long words) push a column past its track and burst the page.
   This is the fix for that, and it must apply to every track child. */
.grid > *, .split > * { min-width: 0; }
@media (min-width: 720px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Asymmetric split: heading rail on the left, content on the right. */
.split { display: grid; gap: var(--s5); }
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(240px, 1fr) minmax(0, 1.65fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }
  .split__rail { position: sticky; top: 7rem; align-self: start; }
}

.stack > * + * { margin-top: var(--s4); }

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s3);
  display: flex; align-items: center; gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: var(--sage);
  flex: none;
}
.eyebrow--plain::before { display: none; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--ink-soft);
}

.meta {
  font-family: var(--font-ui);
  font-size: var(--t-small);
  color: var(--ink-faint);
}

.ui { font-family: var(--font-ui); }

.big-number {
  font-family: var(--font-display);
  font-size: var(--t-hero);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
}

/* Deliberately understated marker for the honest bits */
.aside-note {
  font-size: var(--t-small);
  color: var(--ink-faint);
  border-left: 2px solid var(--sage);
  padding-left: var(--s3);
  margin-top: var(--s4);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.95em 1.6em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--lift);
}
.btn--primary:hover { background: #0C2B2A; color: #fff; box-shadow: var(--lift-lg); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--onink {
  background: #fff; color: var(--ink);
}
.btn--onink:hover { background: var(--sage); color: var(--ink); }

.btn--onink-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn--onink-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }

.btn--lg { font-size: 1.0625rem; padding: 1.05em 1.9em; }

.btn-row {
  display: flex; flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
}
/* Stacked buttons of different label lengths look ragged on a phone. Below
   the point where two fit side by side, make them full width and aligned. */
@media (max-width: 539px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row > .btn { width: 100%; justify-content: center; }
}

/* Text link that reads as an action */
.arrow-link {
  font-family: var(--font-ui);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: .4em;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 2px;
  transition: gap .18s var(--ease), border-color .18s var(--ease);
}
.arrow-link:hover { gap: .75em; border-color: var(--ink); color: var(--ink); }
.arrow-link::after { content: "\2192"; }

/* --------------------------------------------------------------------------
   6. Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,247,.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--rule); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4);
  min-height: 4.75rem;
}

.brand { display: inline-flex; align-items: center; flex: none; }
/* Fluid so the wordmark has real presence on desktop without crowding the
   Menu button on a narrow phone. */
.brand img { height: clamp(2.15rem, 1.6rem + 1.6vw, 2.9rem); width: auto; }

.nav__links {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 940px) { .nav__links { display: flex; } }

.nav__links a {
  font-family: var(--font-ui);
  font-size: 0.9688rem;
  font-weight: 450;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .35rem 0;
  position: relative;
  transition: color .16s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--sage);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 550; }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { display: none; }
@media (min-width: 940px) { .nav__cta { display: inline-flex; } }

/* Mobile toggle */
.nav__toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  background: none; border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  font-family: var(--font-ui); font-size: .9375rem; font-weight: 500;
  color: var(--ink); cursor: pointer;
}
@media (min-width: 940px) { .nav__toggle { display: none; } }

.nav__toggle svg { width: 1rem; height: 1rem; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__panel {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding-block: var(--s3) var(--s5);
}
.nav__panel[data-open="true"] { display: block; }
@media (min-width: 940px) { .nav__panel { display: none !important; } }

.nav__panel ul { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.nav__panel li + li { border-top: 1px solid var(--rule); }
/* Scoped to the list on purpose: an unscoped `.nav__panel a` outranks
   `.btn--primary` and would repaint the panel's CTA dark-on-dark. */
.nav__panel ul a {
  display: block; padding: .95rem 0;
  font-family: var(--font-ui); font-size: 1.0625rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.nav__panel ul a[aria-current="page"] { color: var(--sage-deep); }
.nav__panel .btn { width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   6b. Page masthead
   Every interior page opens with this band. The logo mark is blown up and
   cropped by the band edge — a page sitting behind the page — with only the
   folded corner carrying real colour.
   -------------------------------------------------------------------------- */

.page-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(176deg, var(--paper) 0%, var(--paper-sunk) 100%);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2.25rem, 1.25rem + 6vw, 5rem);
}

.page-head__inner { position: relative; z-index: 2; }
.page-head .lead { max-width: 54ch; }
.page-head h1 { margin-bottom: var(--s3); }

/* A hairline of sage along the very bottom, echoing the eyebrow rule. */
.page-head::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: clamp(60px, 12vw, 140px); height: 3px;
  background: var(--sage);
  z-index: 3;
}

.page-head__mark {
  position: absolute;
  z-index: 1;
  right: clamp(-4.5rem, -5vw, -1.5rem);
  top: 50%;
  translate: 0 -50%;
  width: clamp(200px, 30vw, 440px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* On a phone the headline fills the band, so the mark is pushed mostly off the
   edge and dropped in strength — a sliver of the folded corner, not a smudge
   sitting behind the words. */
@media (max-width: 899px) {
  .page-head__mark { right: -26%; width: 58vw; opacity: .55; }
}
@media (max-width: 560px) {
  .page-head__mark { right: -34%; width: 66vw; opacity: .4; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(2.25rem, 1rem + 8vw, 8rem) clamp(2.5rem, 1.5rem + 5vw, 5.5rem); }

.hero h1 {
  font-size: var(--t-hero);
  letter-spacing: -0.038em;
  line-height: 1.02;
  max-width: 15ch;
  margin-bottom: var(--s4);
}

.hero .lead { max-width: 52ch; }

.hero__price {
  display: inline-flex; align-items: baseline; gap: .5rem;
  font-family: var(--font-ui);
  background: var(--paper-edge);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: .45rem 1.1rem .45rem .75rem;
  font-size: var(--t-small);
  color: var(--ink-faint);
  margin-bottom: var(--s5);
  box-shadow: var(--lift);
}
.hero__price b { color: var(--ink); font-weight: 600; }
.hero__price .dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--sage); flex: none;
  align-self: center;
}

/* Trust strip under the hero */
.trust {
  display: flex; flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
  font-family: var(--font-ui);
  font-size: var(--t-small);
  color: var(--ink-faint);
}
.trust span { display: inline-flex; align-items: center; gap: .5rem; }
.trust svg { width: 1.05rem; height: 1.05rem; color: var(--sage-deep); flex: none; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--paper-edge);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  /* Fluid, so a phone gives the text more of its narrow line length. */
  padding: clamp(1.375rem, 0.9rem + 2vw, 2rem);
  position: relative;
}

/* The folded corner from the logo, as a card treatment. */
.card--folded {
  border-top-right-radius: 0;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}
.card--folded::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 30px; height: 30px;
  background: var(--sage);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.card h3 { margin-bottom: var(--s2); }
.card p:last-child { margin-bottom: 0; }

.card__num {
  font-family: var(--font-display);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--sage-deep);
  letter-spacing: .04em;
  display: block;
  margin-bottom: var(--s2);
}

.card--link { text-decoration: none; color: inherit; display: block; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--lift-lg); border-color: var(--rule-strong); color: inherit; }

/* --------------------------------------------------------------------------
   9. Numbered step list (the process)
   -------------------------------------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--s4);
  padding-block: var(--s5);
  border-top: 1px solid var(--rule);
}
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--sage-deep);
  padding-top: .35rem;
  letter-spacing: .05em;
}
.steps h3 { margin-bottom: var(--s2); }
.steps p:last-child { margin-bottom: 0; }
.steps .meta { margin-top: var(--s2); }

/* --------------------------------------------------------------------------
   10. Checklists
   -------------------------------------------------------------------------- */

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }

/* The marker is positioned out of flow rather than sitting in a grid track.
   A grid item would turn every <b>, <a> and text run inside the <li> into a
   separate grid item, and the leftovers would wrap into the 1.4rem icon
   column one word per line. Keep the <li> a plain block so all of its inline
   content flows together as a single paragraph. */
.checks li {
  position: relative;
  padding-left: 1.95rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: var(--sage-wash);
  border: 1px solid var(--sage);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23377060' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.4l3 3 6-6.5'/%3E%3C/svg%3E");
  background-size: .85rem; background-repeat: no-repeat; background-position: center;
}

/* The "not included" list — same shape, honest about the no */
.checks--no li::before {
  background-color: var(--paper-sunk);
  border-color: var(--rule-strong);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235A6F6C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4.5 8h7'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   11. Pricing
   -------------------------------------------------------------------------- */

.price-card {
  background: var(--paper-edge);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  box-shadow: var(--lift);
}
.price-card--feature {
  border-color: var(--ink);
  box-shadow: var(--lift-lg);
}

.price-card__head {
  padding-bottom: var(--s4);
  margin-bottom: var(--s4);
  border-bottom: 1px solid var(--rule);
}
.price-card__amount {
  display: flex; align-items: baseline; gap: .4rem;
  margin-bottom: var(--s2);
}
.price-card__amount .big-number { font-size: clamp(3rem, 2rem + 4vw, 4.25rem); }
.price-card__amount .unit {
  font-family: var(--font-ui); font-size: 1rem; color: var(--ink-faint); font-weight: 450;
}

.price-note {
  font-family: var(--font-ui);
  font-size: var(--t-small);
  color: var(--ink-faint);
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
}

/* Comparison table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table.compare {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: var(--t-small);
  text-align: left;
}
table.compare th, table.compare td {
  padding: var(--s3) var(--s3);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.compare thead th {
  font-weight: 600; color: var(--ink);
  font-size: var(--t-micro); letter-spacing: .09em; text-transform: uppercase;
  border-bottom-color: var(--rule-strong);
  white-space: nowrap;
}
table.compare tbody th { font-weight: 500; color: var(--ink); }
table.compare td { color: var(--ink-faint); }
table.compare .yes { color: var(--sage-deep); font-weight: 600; }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 0; }
table.compare .col-us { background: var(--sage-wash); }

/* On a phone a wide table becomes a sideways-scroll trap, and the column that
   matters most — the price — is exactly the one that ends up off-screen.
   Below 700px each row becomes its own labelled card instead. The labels come
   from data-label on each <td>, so the header row can be dropped. */
@media (max-width: 699px) {
  .table-scroll { overflow-x: visible; }

  table.compare { min-width: 0; display: block; }

  table.compare thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }

  table.compare tbody, table.compare tr,
  table.compare tbody th, table.compare td { display: block; width: 100%; }

  table.compare tr {
    background: var(--paper-edge);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    padding: var(--s3) var(--s4);
    margin-bottom: var(--s3);
  }
  table.compare tr:last-child { margin-bottom: 0; }

  table.compare tbody th {
    border: 0;
    padding: 0 0 var(--s2);
    margin-bottom: var(--s2);
    border-bottom: 1px solid var(--rule);
    font-size: var(--t-body);
    font-weight: 600;
    color: var(--ink);
  }

  table.compare td {
    border: 0;
    padding: .3rem 0;
    display: flex;
    gap: var(--s3);
    justify-content: space-between;
    align-items: baseline;
    text-align: right;
  }
  table.compare td::before {
    content: attr(data-label);
    font-size: var(--t-micro);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
    flex: none;
  }

  /* The "us" column stays marked, but as a tinted row rather than a column. */
  table.compare td.col-us {
    background: var(--sage-wash);
    border-radius: 5px;
    margin: .2rem -.5rem;
    padding: .45rem .5rem;
  }
}

/* --------------------------------------------------------------------------
   12. FAQ / accordion
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--rule); }
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.012em;
  line-height: 1.3;
  padding: var(--s4) 3rem var(--s4) 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color .16s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--sage-deep); }
.faq summary::after {
  content: "";
  position: absolute; right: .25rem; top: 50%;
  width: 1.1rem; height: 1.1rem;
  margin-top: -.55rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23123B3A' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8 3v10M3 8h10'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .faq__body { padding: 0 3rem var(--s5) 0; max-width: 68ch; }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */

.form { display: grid; gap: var(--s4); }

.field { display: grid; gap: .45rem; }
.field > label {
  font-family: var(--font-ui);
  font-size: var(--t-small);
  font-weight: 550;
  color: var(--ink);
}
.field .hint {
  font-family: var(--font-ui);
  font-size: var(--t-micro);
  color: var(--ink-faint);
}
.field .req { color: var(--sage-deep); }

.input, .textarea, .select {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-edge);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
  appearance: none;
}
.textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234F6D66' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
.input::placeholder, .textarea::placeholder { color: #9BADA8; }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(111,174,155,.28);
}

.field--row { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .field--row { grid-template-columns: 1fr 1fr; } }

/* Honeypot — visually hidden, still reachable by bots */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.form__status {
  font-family: var(--font-ui);
  font-size: var(--t-small);
  border-radius: var(--radius-sm);
  padding: var(--s3);
  display: none;
}
.form__status[data-state="error"] {
  display: block;
  background: #FDF0EC; border: 1px solid #E9BFB2; color: #8A3D24;
}
.form__status[data-state="ok"] {
  display: block;
  background: var(--sage-wash); border: 1px solid var(--sage); color: var(--ink);
}

/* --------------------------------------------------------------------------
   14. Contact details block
   -------------------------------------------------------------------------- */

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.contact-list dt, .contact-list .label {
  font-family: var(--font-ui);
  font-size: var(--t-micro);
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.contact-list .value {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
}
a.value:hover { color: var(--sage-deep); }

/* On a phone these are the primary action on the page, and a 21px-tall link is
   a miss waiting to happen. Give them a proper 44px target without changing
   how they look. */
@media (max-width: 620px) {
  .contact-list a.value {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* --------------------------------------------------------------------------
   15. Demo / example site cards
   -------------------------------------------------------------------------- */

.demo-card {
  display: flex; flex-direction: column;
  background: var(--paper-edge);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.demo-card:hover { transform: translateY(-4px); box-shadow: var(--lift-lg); border-color: var(--rule-strong); color: inherit; }

.demo-card__shot {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  padding: var(--s4);
}

/* Photo thumbnails fill the frame edge to edge.
   The image is pinned rather than sized with height:100% — inside the
   grid-centred parent above, that percentage doesn't resolve, so the photo
   falls back to its natural ratio, overflows the frame and gets cropped
   off-centre. Pinning to the box removes the ambiguity entirely. */
.demo-card__shot--photo { padding: 0; }
.demo-card__shot--photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo-card__body { padding: var(--s4) var(--s5) var(--s5); }
.demo-card__body h3 { margin-bottom: .35rem; }
.demo-card__tag {
  font-family: var(--font-ui); font-size: var(--t-micro);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: var(--s2);
}

/* Persistent banner that sits on every demo page. */
.demo-banner {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  font-family: var(--font-ui);
  font-size: var(--t-small);
  padding: .7rem 0;
  position: relative; z-index: 120;
}
.demo-banner .wrap {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  align-items: center; justify-content: space-between;
}
.demo-banner strong { color: #fff; }
.demo-banner a { color: var(--sage); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(111,174,155,.5); }
.demo-banner a:hover { color: #fff; border-color: #fff; }

/* --------------------------------------------------------------------------
   16. Callout / CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: rgba(255,255,255,.8);
  border-radius: var(--radius);
  padding: clamp(2rem, 1.2rem + 4vw, 4rem);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band .lead { color: rgba(255,255,255,.78); max-width: 48ch; }
/* the folded corner, oversized and quiet */
.cta-band::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: clamp(80px, 12vw, 150px); aspect-ratio: 1;
  background: var(--sage);
  opacity: .9;
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: var(--s7) var(--s5);
  margin-top: var(--section-y);
  font-family: var(--font-ui);
  font-size: var(--t-small);
  color: var(--ink-faint);
}
.footer-grid {
  display: grid; gap: var(--s6);
  margin-bottom: var(--s7);
}
@media (min-width: 760px)  { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s5); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.site-footer img.brand-img { height: 2.2rem; width: auto; margin-bottom: var(--s3); }
.site-footer h4 {
  font-size: var(--t-micro);
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  margin-bottom: var(--s3);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: var(--s4);
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  justify-content: space-between;
  font-size: var(--t-micro);
}

/* --------------------------------------------------------------------------
   18. Motion
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal[data-visible="true"] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .cta-band, .nav__panel, .demo-banner { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { text-decoration: underline; }
  .faq details { open: true; }
}
