/* Legal Bundle AI marketing site
   Version 1.0, 29/09/2026
   Light theme, Exact Solutions brand. Rules:
   - Green is a surface / button colour only. Never green text on a light background.
   - Buttons: green with black text.
   - No italics anywhere.
   - Only the hero load and the scroll story move. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #62c967;
  --green-deep: #39a73f;
  --green-tint: #d8efd9;
  --charcoal: #2d2d2a;
  --grey: #dbdbdb;
  --paper: #f2f2f2;
  --white: #ffffff;
  --black: #000000;

  --ink: var(--charcoal);          /* 12.3:1 on paper */
  --ink-muted: #55554f;            /* 6.7:1 on paper, 7.5:1 on white */
  --ink-on-dark: #f2f2f2;          /* 12.3:1 on charcoal */
  --ink-on-dark-muted: #c4c4bf;    /* 7.9:1 on charcoal */
  --hairline: rgba(45, 45, 42, 0.16);
  --hairline-strong: rgba(45, 45, 42, 0.32);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 6px;
  --shadow-paper: 0 1px 0 rgba(45, 45, 42, 0.05), 0 12px 28px -14px rgba(45, 45, 42, 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-synthesis-style: none;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* No italics anywhere */
em, i, cite, address, dfn, var, q, blockquote { font-style: normal; }
em, i { font-weight: 600; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.25; }
p { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--green); }

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

.skip-link {
  position: absolute;
  left: 1rem; top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

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

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--black);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--green-deep); }
.btn--small { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.95rem; }
.btn--large { min-height: 3.5rem; padding: 0.9rem 2rem; font-size: 1.125rem; }

.text-link { font-weight: 600; color: var(--ink); }
.text-link--light { color: var(--ink-on-dark); }

/* ---------- Header ---------- */
.site-header { background: var(--paper); position: relative; z-index: 20; }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 2rem; height: 2rem; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand__by { font-size: 0.8rem; color: var(--ink-muted); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav__list { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav__list a {
  text-decoration: none;
  font-weight: 500;
  padding-block: 0.4rem;
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.nav-toggle {
  font: inherit;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

/* Without JS the nav simply wraps. With JS, small screens get a disclosure menu. */
@media (max-width: 860px) {
  .site-header__inner { flex-wrap: wrap; }
  .site-nav { flex-wrap: wrap; gap: 0.75rem 1.5rem; padding-bottom: 1rem; }

  .js .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1.25rem;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav__list a { display: block; padding-block: 0.75rem; border-bottom: 1px solid var(--hairline); }
  .js .site-nav .btn { margin-top: 0.75rem; }
}
@media (min-width: 861px) {
  .nav-toggle { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); background: var(--white); }
.section--grey { background: var(--paper); }
.section--dark { background: var(--charcoal); color: var(--ink-on-dark); }
.section__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__intro {
  margin-top: 1rem;
  max-width: 38rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 6.5rem); }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 13ch;
}
.hero__lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}
.hero__note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  max-width: 34rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Shared illustration pieces (all sized in em so they scale as a unit) ---------- */
.bundle {
  position: relative;
  width: 16.5em;
  height: 20em;
}
.bundle__sheet {
  --i: 0;
  position: absolute;
  left: calc((6 - var(--i)) * 0.2em);
  top: calc(var(--i) * 0.2em);
  width: 13.8em;
  height: 18.8em;
  /* Faux text lines inside the margins; white paper across the whole sheet */
  background: repeating-linear-gradient(to bottom, #e3e3df 0 0.28em, transparent 0.28em 0.9em) content-box, var(--white);
  padding: 2.2em 1.8em 3.4em;
  border: 1px solid rgba(45, 45, 42, 0.14);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(45, 45, 42, 0.08);
}
.bundle__sheet:nth-of-type(1) { --i: 0; }
.bundle__sheet:nth-of-type(2) { --i: 1; }
.bundle__sheet:nth-of-type(3) { --i: 2; }
.bundle__sheet:nth-of-type(4) { --i: 3; }
.bundle__sheet:nth-of-type(5) { --i: 4; }
.bundle__sheet:nth-of-type(6) { --i: 5; }
.bundle__sheet:nth-of-type(7) { --i: 6; box-shadow: var(--shadow-paper); }

.bundle__tab {
  position: absolute;
  left: 14.2em;
  width: 2.2em;
  height: 3.3em;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.45em;
  border-radius: 0 0.4em 0.4em 0;
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
  color: var(--black);
  border: 1px solid rgba(45, 45, 42, 0.25);
}
.bundle__tab--a { top: 2.2em;  background: var(--grey); }
.bundle__tab--b { top: 6.2em;  background: var(--green); }
.bundle__tab--c { top: 10.2em; background: var(--green-deep); }
.bundle__tab--d { top: 14.2em; background: var(--charcoal); color: var(--white); }

.qa {
  background: var(--white);
  border-radius: 0.6em;
  padding: 1.1em 1.2em 1.2em;
  box-shadow: var(--shadow-paper);
  border: 1px solid rgba(45, 45, 42, 0.08);
}
.qa__q {
  background: var(--paper);
  border-radius: 0.45em;
  padding: 0.6em 0.8em;
  font-weight: 600;
  line-height: 1.35;
}
.qa__a { margin-top: 0.9em; font-size: 0.92em; line-height: 1.55; }

.chip {
  position: relative;
  display: inline-block;
  isolation: isolate;
  padding: 0 0.35em;
  border: 1px solid var(--green);
  border-radius: 0.3em;
  background: var(--green-tint);
  color: var(--black);
  font-size: 0.86em;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
}
.chip__fill {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--green);
  opacity: 0;
}
.chip.is-active .chip__fill { opacity: 1; }

.page {
  background: var(--white);
  padding: 1.1em 1.4em 1.4em;
  border: 1px solid rgba(45, 45, 42, 0.14);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(45, 45, 42, 0.06), 0 24px 44px -18px rgba(45, 45, 42, 0.45);
}
.page__ref { text-align: right; font-size: 0.8em; font-weight: 700; color: var(--ink-muted); }
.page__lines {
  display: block;
  height: 2.9em;
  margin-top: 0.5em;
  background-image: repeating-linear-gradient(to bottom, #e3e3df 0 0.28em, transparent 0.28em 0.9em);
}
.page__lines--short { height: 1.8em; margin-top: 0.8em; width: 70%; }
.page__meta { margin-top: 0.7em; font-size: 0.78em; font-weight: 600; color: var(--ink-muted); }
.page__cite {
  position: relative;
  margin-top: 0.35em;
  padding: 0.2em 0.35em;
  font-size: 0.88em;
  line-height: 1.5;
}
.page__mark {
  position: absolute;
  inset: 0;
  border-radius: 0.2em;
  background: var(--green);
  opacity: 0.55;
  transform-origin: left center;
}
.page__text { position: relative; }

.chron__title { font-weight: 700; font-size: 1em; margin-bottom: 0.7em; }
.chron__rule {
  display: block;
  height: 2px;
  background: var(--charcoal);
  transform-origin: left center;
}
.chron__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8em;
  padding-top: 0.9em;
}
.event {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35em;
  background: var(--white);
  border: 1px solid rgba(45, 45, 42, 0.12);
  border-radius: 0.4em;
  padding: 0.7em 0.8em 0.8em;
  font-size: 0.84em;
  line-height: 1.35;
  box-shadow: 0 8px 18px -12px rgba(45, 45, 42, 0.4);
}
.event::before {
  content: "";
  position: absolute;
  top: calc(-1.42em - 3px);
  left: 0.8em;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--charcoal);
}
.event__date { font-weight: 700; }

/* ---------- Hero tableau ---------- */
.tableau-wrap { container-type: inline-size; }
.tableau {
  position: relative;
  font-size: calc(100cqi / 36);
  width: 36em;
  height: 30em;
}
.tableau__bundle { position: absolute; left: 18.5em; top: 0.5em; }
.tableau__qa { position: absolute; left: 0; top: 3em; width: 22em; z-index: 2; }
.tableau__page { position: absolute; left: 4em; top: 16.4em; width: 18em; z-index: 3; transform: rotate(-2deg); }

/* Narrow screens: a taller, larger arrangement so the text stays legible */
@container (max-width: 520px) {
  .tableau { font-size: calc(100cqi / 24); width: 24em; height: 31em; }
  .tableau__qa { width: 23.5em; top: 0; }
  .tableau__bundle { left: 7.5em; top: 9.5em; }
  .tableau__page { left: 0.4em; top: 17em; width: 16.5em; }
}

@media (prefers-reduced-motion: no-preference) {
  .tableau__page { animation: lb-pull 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both; }
  .tableau__page .page__mark { animation: lb-mark 0.6s cubic-bezier(0.3, 0.7, 0.3, 1) 1.2s both; }
  .tableau .chip.is-active .chip__fill { animation: lb-fade 0.4s ease 1.05s both; }
}
@keyframes lb-pull {
  from { transform: translate(70%, -52%) rotate(0deg) scale(0.8); opacity: 0; }
  35%  { opacity: 1; }
  to   { transform: rotate(-2deg); opacity: 1; }
}
@keyframes lb-mark { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Scroll story: static (default) ----------
   Readable version for mobile, reduced motion and no-JS. */
.story { background: var(--white); padding-block: var(--section-y); }
.story__inner { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.story__rail { display: none; }

.story__steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.75rem 2.5rem;
  margin-top: 2rem;
}
.story__step {
  counter-increment: step;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline-strong);
}
.story__step::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-muted);
}
.story__step p { margin-top: 0.4rem; color: var(--ink-muted); max-width: 32rem; }
.story__step .btn { margin-top: 1rem; }

.stage-wrap { container-type: inline-size; }
.stage {
  display: grid;
  gap: 1.5em;
  font-size: clamp(0.8rem, 2.9cqi, 1rem);
  padding: 1.5em;
  background: var(--paper);
  border-radius: var(--radius);
}
.stage__bundle { justify-self: center; }
.stage__qa, .stage__page { max-width: 30em; }
.stage__page { transform: rotate(-1deg); }
.stage .chip[data-cited] .chip__fill { opacity: 1; }

@container (max-width: 640px) {
  .story:not(.is-live) .chron__rule { display: none; }
  .story:not(.is-live) .chron__list { grid-template-columns: minmax(0, 1fr); border-left: 2px solid var(--charcoal); padding: 0 0 0 1.2em; }
  .story:not(.is-live) .event::before { top: 0.9em; left: calc(-1.78em - 3px); }
}
@container (min-width: 760px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "qa bundle" "page bundle" "chron chron";
    align-items: start;
    column-gap: 3em;
  }
  .stage__qa { grid-area: qa; }
  .stage__page { grid-area: page; }
  .stage__bundle { grid-area: bundle; align-self: center; }
  .stage__chron { grid-area: chron; }
}

/* ---------- Scroll story: live (set by story.js on wide screens with motion allowed) ---------- */
.story.is-live { padding-block: 0; }
.story.is-live .story__pin {
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.story.is-live .story__inner {
  grid-template-columns: minmax(17rem, 25rem) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(2rem, 4vw, 4rem);
}
.story.is-live .story__text { position: relative; padding-left: 1.75rem; }
.story.is-live .story__rail {
  display: block;
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  background: var(--grey);
  border-radius: 3px;
}
.story.is-live .story__rail-fill {
  display: block;
  height: 100%;
  background: var(--green-deep);
  border-radius: inherit;
  transform-origin: top center;
  transform: scaleY(0);
}
.story.is-live .story__steps {
  display: block;
  position: relative;
  min-height: 15rem;
  margin-top: 2.25rem;
}
.story.is-live .story__step {
  position: absolute;
  inset: 0 0 auto 0;
  border-top: 0;
  padding-top: 0;
}
.story.is-live .story__step::before { content: counter(step) " of 6"; }
.story.is-live .story__step h3 { font-size: 1.6rem; }
.story.is-live .story__step p { font-size: 1.15rem; line-height: 1.5; }

.story.is-live .stage {
  display: block;
  position: relative;
  width: 40em;
  height: 34em;
  margin-inline: auto;
  padding: 0;
  background: none;
  font-size: min(calc(100cqi / 40), calc((100svh - 6rem) / 34));
}
.story.is-live .stage > * { position: absolute; }
.story.is-live .stage__bundle { left: 22em; top: 1.5em; }
.story.is-live .stage__qa { left: 0; top: 0.5em; width: 22em; max-width: none; z-index: 2; }
.story.is-live .stage__page { left: 3em; top: 13.2em; width: 17em; max-width: none; z-index: 3; transform: none; }
.story.is-live .stage__chron { left: 0; top: 24.4em; width: 40em; }
.story.is-live .stage .chip[data-cited] .chip__fill { opacity: 0; }
.story.is-live .story__step--cta { pointer-events: none; }
.story.is-live .story__step--cta.is-current { pointer-events: auto; }

/* ---------- What it does ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
}
.ruled-list__row {
  padding-block: 1.4rem;
  border-top: 1px solid var(--hairline-strong);
}
.ruled-list__row:last-child { border-bottom: 1px solid var(--hairline-strong); }
.ruled-list dt { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.ruled-list dd { margin-top: 0.35rem; color: var(--ink-muted); max-width: 36rem; }
.split__aside {
  grid-column: 2;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--green);
  background: var(--white);
  max-width: 40rem;
}
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__aside { grid-column: 1; }
}

/* ---------- Security band ---------- */
.section--dark h2 { max-width: 20ch; }
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2rem 3rem;
  margin-block: clamp(2.5rem, 5vw, 3.5rem);
}
.security-grid li { padding-top: 1.1rem; border-top: 2px solid var(--green); }
.security-grid p { margin-top: 0.5rem; color: var(--ink-on-dark-muted); }

/* ---------- See it working ---------- */
.placeholder {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  border: 2px dashed var(--hairline-strong);
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--paper) 0 12px, #ebebe8 12px 24px);
  color: var(--ink);
}
.placeholder--video { aspect-ratio: 16 / 9; }
.placeholder--shot { aspect-ratio: 16 / 10; font-size: 0.95rem; }
.media { max-width: 64rem; }
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.shot figcaption { margin-top: 0.6rem; font-size: 0.95rem; color: var(--ink-muted); }

/* ---------- Who it's for ---------- */
.who {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 2rem clamp(2rem, 6vw, 5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.who__col { padding-top: 1.1rem; border-top: 1px solid var(--hairline-strong); }
.who__col p { margin-top: 0.6rem; max-width: 34rem; color: var(--ink-muted); }
.who__col p:has(.text-link) { color: var(--ink); }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 2rem 3rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.quote { padding-left: 1.25rem; border-left: 4px solid var(--green); }
.quote blockquote { font-size: 1.2rem; line-height: 1.45; }
.quote figcaption { margin-top: 0.8rem; font-size: 0.95rem; color: var(--ink-muted); }
.placeholder-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  border: 2px dashed var(--black);
  background: #ffe58a;
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Closing CTA ---------- */
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: end;
}
.cta__side { display: grid; gap: 1rem; justify-items: start; }
.cta__pricing { color: var(--ink-muted); }
.cta__pricing strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .cta__inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--ink-on-dark); padding-block: 3.5rem 2.5rem; }
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
}
.site-footer__name { font-weight: 700; font-size: 1.25rem; margin-bottom: 0.4rem; }
.site-footer__brand p:not(.site-footer__name) { color: var(--ink-on-dark-muted); }
.site-footer__brand a { color: var(--ink-on-dark); font-weight: 600; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem 4rem; }
.site-footer__nav a { text-decoration: none; display: inline-block; padding-block: 0.3rem; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__small {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 242, 242, 0.18);
  font-size: 0.9rem;
  color: var(--ink-on-dark-muted);
}
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hero trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  max-width: 36rem;
}
.trust li { display: flex; align-items: center; gap: 0.65rem; font-size: 0.95rem; font-weight: 500; line-height: 1.3; }
.trust__icon { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 6px; background: var(--green); }
.trust__icon svg { width: 1.3rem; height: 1.3rem; }
@media (max-width: 420px) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Product showcase (charcoal band) ---------- */
.showcase__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end; }
.showcase__head .section__intro { color: var(--ink-on-dark-muted); }
.showcase__head a { color: var(--ink-on-dark); }
@media (max-width: 860px) { .showcase__head { grid-template-columns: minmax(0, 1fr); } }

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
.tablist[hidden] { display: none; }
.tablist [role="tab"] {
  font: inherit;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(242, 242, 242, 0.35);
  background: transparent;
  color: var(--ink-on-dark);
  cursor: pointer;
}
.tablist [role="tab"]:hover { border-color: var(--ink-on-dark); }
.tablist [role="tab"][aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--black); }

.showcase__panel { margin-top: 2rem; }
.showcase__panel + .showcase__panel { margin-top: 4rem; }
.is-tabbed .showcase__panel + .showcase__panel { margin-top: 2rem; }
.showcase__panel[hidden] { display: none; }
.showcase__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 3rem;
  margin-bottom: 1.75rem;
  max-width: 64rem;
}
.showcase__copy h3 { font-size: 1.6rem; }
.showcase__copy p { margin-top: 0.5rem; color: var(--ink-on-dark-muted); font-size: 1.1rem; }
.showcase__copy ul { display: grid; gap: 0.5rem; align-content: start; }
.showcase__copy li { padding-left: 1.4rem; position: relative; color: var(--ink-on-dark); }
.showcase__copy li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.6rem; height: 0.6rem;
  border-radius: 2px;
  background: var(--green);
}
@media (max-width: 760px) { .showcase__copy { grid-template-columns: minmax(0, 1fr); } }

.showcase__note { margin-top: 1.25rem; font-size: 0.9rem; color: var(--ink-on-dark-muted); }
.app-stack { display: grid; gap: 2.5rem; }

/* ---------- App window: recreation of the live Exact app (fictional data) ----------
   Sized in em: 1em = 14px in the real app, scaled to the width of the frame.
   Check any change against the website brief. */
.app-wrap { container-type: inline-size; }
.app {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #dbdbdb;
  color: #000;
  font-size: calc(100cqi / 106);
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.app p { margin: 0; }
.app .i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app__caps { font-size: 0.786em; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #5c5c5c; }

/* Top bar */
.app__top {
  display: flex;
  align-items: center;
  gap: 1em;
  height: 4.86em;
  padding: 0 1.7em;
  background: #f6f6f6;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  overflow: hidden;
}
.app__brand { display: flex; align-items: center; gap: 0.86em; }
.app__seal {
  display: grid;
  place-items: center;
  width: 2.86em;
  height: 2.86em;
  border-radius: 3px;
  background: linear-gradient(135deg, #7ad97e 0%, #62c967 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(98, 201, 103, 0.35);
}
.app__seal .i { width: 1.57em; height: 1.57em; stroke-width: 1.75; }
.app__seal--sm { width: 2.29em; height: 2.29em; flex: none; }
.app__seal--sm .i { width: 1.26em; height: 1.26em; }
.app__brandtext { display: flex; flex-direction: column; }
.app__brandname { font-size: 1.36em; font-weight: 700; line-height: 1; }
.app__brandsub { margin-top: 0.5em; font-size: 0.714em; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #2f7a34; } /* darker than the app's green so it passes WCAG AA */
.app__sep { color: #c0c0c0; }
.app__casename { font-size: 1.143em; }
.app__close { margin-left: 0.4em; }
.app__nav {
  display: inline-flex;
  align-items: center;
  gap: 0.29em;
  margin-left: 0.6em;
  padding: 0.21em;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 3px;
  background: rgba(98, 201, 103, 0.12);
}
.app__navopt {
  display: inline-flex;
  align-items: center;
  gap: 0.52em;
  padding: 0.6em 0.87em;
  border-radius: 3px;
  font-size: 0.82em;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #3d3d3d;
}
.app__navopt .i { width: 1.13em; height: 1.13em; }
.app__navopt.is-active { background: #62c967; color: #000; }
.app__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.57em;
  height: 1.57em;
  padding: 0 0.43em;
  border-radius: 0.8em;
  background: rgba(98, 201, 103, 0.18);
  border: 1px solid rgba(98, 201, 103, 0.3);
  font-size: 0.87em;
  font-weight: 600;
  color: #000;
}
.app__navsep { width: 1px; height: 1.43em; margin: 0 0.29em; background: rgba(0, 0, 0, 0.18); }
.app__right { display: flex; align-items: center; gap: 0.86em; margin-left: auto; }
.app__user { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; margin-right: 0.3em; }
.app__user b { font-weight: 600; }
.app__user small { font-size: 0.786em; color: #5c5c5c; margin-top: 0.15em; }
.app__iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.43em;
  min-width: 2.9em;
  height: 2.9em;
  padding: 0 0.8em;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  background: #fff;
  font-weight: 600;
  font-size: 0.93em;
}
.app__iconbtn .i { width: 1.2em; height: 1.2em; }

/* Three-pane body */
.app__body { position: relative; display: grid; grid-template-columns: 18.5em minmax(0, 1fr) 24em; }
.app__body--2col { grid-template-columns: 18.5em minmax(0, 1fr); }
.app__body--modal { min-height: 44em; }

.app__side, .app__rail { background: linear-gradient(180deg, #e6e6e6 0%, #dbdbdb 100%); }
.app__side { border-right: 1px solid rgba(0, 0, 0, 0.1); }
.app__back { display: flex; align-items: center; gap: 0.57em; padding: 1.43em 1.8em; border-bottom: 1px solid rgba(0, 0, 0, 0.1); font-size: 0.786em; }
.app__newwrap { padding: 1em 1.14em; }
.app__newbtn {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 1em 1.14em;
  border: 1px solid #62c967;
  border-radius: 3px;
  background: linear-gradient(180deg, #7ad97e 0%, #62c967 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 4px 12px rgba(98, 201, 103, 0.28);
  font-size: 0.93em;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.app__listhead { display: flex; justify-content: space-between; padding: 1.3em 1.8em 0.7em; }
.app__cases { display: grid; gap: 2px; padding: 0.29em 0.71em 1.43em; list-style: none; margin: 0; }
.app__cases li { position: relative; padding: 0.86em 2em 0.86em 1.14em; border: 1px solid transparent; border-radius: 3px; }
.app__cases li.is-active { background: rgba(98, 201, 103, 0.32); border-color: rgba(0, 0, 0, 0.1); }
.app__cases li.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #62c967;
  box-shadow: 0 0 8px rgba(98, 201, 103, 0.35);
}
.app__cases b { display: block; margin-bottom: 0.29em; font-weight: 500; color: #3d3d3d; }
.app__cases li.is-active b { font-weight: 600; color: #000; }
.app__cases small { font-size: 0.857em; color: #5c5c5c; }
.app__dot { position: absolute; right: 1em; top: 1.15em; width: 6px; height: 6px; border-radius: 50%; background: #62c967; box-shadow: 0 0 6px rgba(98, 201, 103, 0.33); }

.app__center { display: flex; flex-direction: column; min-width: 0; }

/* Examination */
.app__exambar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8em 1.14em;
  padding: 0.8em 1.57em;
  background: rgba(98, 201, 103, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.app__select {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  min-width: 17em;
  padding: 0.5em 0.8em;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 3px;
  background: #fff;
  font-size: 0.93em;
}
.app__index { display: flex; align-items: center; gap: 0.86em; margin-left: auto; }
.app__smallbtn { padding: 0.45em 0.8em; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 3px; font-size: 0.714em; letter-spacing: 0.12em; text-transform: uppercase; color: #3d3d3d; }
.app__conv { flex: 1; width: 100%; max-width: 58.6em; margin: 0 auto; padding: 2em 2.3em 1.2em; }
.app__urow { display: flex; justify-content: flex-end; margin-bottom: 1.3em; }
.app__ububble { max-width: 80%; padding: 0.9em 1.3em; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 4px; background: rgba(98, 201, 103, 0.32); font-size: 1.143em; line-height: 1.6; }
.app__assist { display: flex; align-items: flex-start; gap: 1.14em; }
.app__assistbody { flex: 1; min-width: 0; }
.app__answer { margin-top: 0.6em; font-size: 1.143em; line-height: 1.78; }
.app__answer p + p, .app__answer p + ul { margin-top: 0.75em; }
.app__answer ul { margin: 0.4em 0 0; padding-left: 1.4em; list-style: disc; }
.app__answer li { margin: 0.35em 0; }
.app__cite, .app__chip, .app__fn {
  display: inline-flex;
  align-items: center;
  padding: 0.14em 0.57em;
  margin: 0 0.14em;
  border: 1px solid #62c967;
  border-radius: 3px;
  background: rgba(98, 201, 103, 0.32);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: baseline;
}
.app__cite { font-size: 0.6875em; }
.app__chip { font-size: 0.786em; }
.app__fn { font-size: 0.714em; padding: 0.05em 0.43em; }
.app__composerwrap { padding: 1.4em 2.3em 1.4em; background: #ececec; border-top: 1px solid rgba(0, 0, 0, 0.06); }
.app__composer { max-width: 58.6em; margin: 0 auto; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 4px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.app__input { padding: 1.1em 1.43em 2.2em; font-size: 1.143em; color: #6b6b6b; }
.app__cfoot { display: flex; align-items: center; justify-content: space-between; padding: 0.7em 1em; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.app__cleft { display: flex; align-items: center; gap: 0.86em; color: #5c5c5c; }
.app__cleft .i { width: 1.1em; height: 1.1em; }
.app__cdiv { width: 1px; height: 1.14em; background: rgba(0, 0, 0, 0.18); }
.app__submit { display: inline-flex; align-items: center; gap: 0.7em; padding: 0.6em 1em; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 3px; font-size: 0.786em; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: #3d3d3d; }
.app__note { margin-top: 0.9em; text-align: center; }

/* History rail */
.app__rail { display: flex; flex-direction: column; border-left: 1px solid rgba(0, 0, 0, 0.1); }
.app__railhead { position: relative; padding: 1.57em 1.71em 1.29em; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.app__railtitle { margin: 0.3em 0 0.4em; font-size: 1.57em; font-weight: 500; }
.app__railblurb { font-size: 0.93em; color: #5c5c5c; line-height: 1.55; }
.app__railbtn { position: absolute; right: 1.2em; top: 1.3em; display: grid; place-items: center; width: 2.4em; height: 2.4em; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 3px; background: rgba(98, 201, 103, 0.12); }
.app__hist { flex: 1; margin: 0; padding: 0.43em 0.71em 1em; list-style: none; }
.app__hist li { padding: 0.86em 1em; }
.app__hist li + li { border-top: 1px solid rgba(0, 0, 0, 0.06); }
.app__histfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.6em !important; font-size: 0.786em; color: #5c5c5c; }
.app__histfoot span { display: inline-flex; align-items: center; gap: 0.4em; }
.app__railfoot { display: flex; align-items: center; justify-content: space-between; padding: 0.86em 1.71em; border-top: 1px solid rgba(0, 0, 0, 0.1); }

/* Chronology and summary */
.app__work { padding: 1.7em 2.3em 2.2em; }
.app__toolrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.57em; margin-bottom: 0.86em; }
.app__focus { flex: 1 1 18em; min-width: 0; height: 2.86em; display: flex; align-items: center; padding: 0 1em; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 3px; background: #fff; color: #6b6b6b; white-space: nowrap; text-overflow: ellipsis; }
.app__btnp, .app__btns { display: inline-flex; align-items: center; height: 2.86em; padding: 0 1.43em; border-radius: 3px; font-size: 0.857em; letter-spacing: 0.15em; text-transform: uppercase; }
.app__btnp { border: 1px solid #62c967; background: linear-gradient(180deg, #7ad97e 0%, #62c967 100%); font-weight: 700; }
.app__btns { border: 1px solid rgba(0, 0, 0, 0.18); background: rgba(98, 201, 103, 0.12); color: #3d3d3d; }
.app__btng { display: inline-flex; align-items: center; padding: 0.45em 0.86em; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 3px; font-size: 0.786em; letter-spacing: 0.15em; text-transform: uppercase; color: #3d3d3d; white-space: nowrap; }
.app__stats { margin-bottom: 0.86em !important; font-size: 0.93em; color: #3d3d3d; }
.app__stats b { color: #000; }
.app__doc table { width: 100%; border-collapse: collapse; border: 1px solid rgba(0, 0, 0, 0.18); background: rgba(98, 201, 103, 0.12); }
.app__doc th { padding: 0.72em 1em; text-align: left; font-size: 0.786em; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; background: rgba(98, 201, 103, 0.32); border-bottom: 1px solid rgba(0, 0, 0, 0.18); }
.app__doc td { padding: 0.72em 1em; vertical-align: top; border-top: 1px solid rgba(0, 0, 0, 0.1); line-height: 1.55; }
.app__doc ul { margin: 0.5em 0 0; padding-left: 1.4em; list-style: disc; }
.app__doc li { margin: 0.4em 0; }
.app__h2 { margin-top: 1.3em !important; font-size: 1.29em; font-weight: 500; }
.app__leadtitle { margin-bottom: 1em !important; padding-bottom: 0.7em; border-bottom: 1px solid rgba(0, 0, 0, 0.1); font-size: 1.29em; font-weight: 500; }
.app__leadtitle + p { margin-bottom: 1.6em; line-height: 1.7; }
.app__sec { margin-bottom: 1em; }
.app__sectitle { display: flex; align-items: center; gap: 0.7em; padding: 0.86em 1.14em; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 3px; background: rgba(98, 201, 103, 0.12); font-size: 1.29em; font-weight: 500; }
.app__sectitle::before { content: "▸"; font-size: 0.85em; color: #5c5c5c; }
.app__sec.is-open .app__sectitle { border-bottom: 0; border-radius: 3px 3px 0 0; background: rgba(98, 201, 103, 0.32); }
.app__sec.is-open .app__sectitle::before { transform: rotate(90deg); }
.app__secbody { padding: 0.7em 1.29em 0.6em; border: 1px solid rgba(0, 0, 0, 0.1); border-top: 0; border-radius: 0 0 3px 3px; }
.app__secbody ul { margin-top: 0; }

/* Citation viewer (modal over the Examination screen) */
.app__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); }
.app__modal {
  position: absolute;
  left: 50%;
  top: 2.5em;
  width: min(64em, calc(100% - 3em));
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55);
}
.app__modalhead { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 1em 1.43em; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.app__modaltitle { font-size: 1.143em; font-weight: 500; }
.app__modaltitle span { color: #5c5c5c; }
.app__modalactions { display: flex; align-items: center; gap: 0.57em; }
.app__toggle { display: inline-flex; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 3px; overflow: hidden; font-size: 0.786em; letter-spacing: 0.15em; text-transform: uppercase; }
.app__toggle span { padding: 0.45em 0.86em; color: #3d3d3d; }
.app__toggle .is-active { background: #62c967; color: #000; }
.app__viewer { padding: 1em 1.43em 1.6em; background: #dbdbdb; }
.app__viewernav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1em !important; }
.app__sheet { max-width: 40em; margin: 0 auto; padding: 2.2em 2.6em 2.6em; background: #fff; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.45); line-height: 1.6; }
.app__sheethead { margin-bottom: 1.1em !important; }
.app__hl { background: rgba(98, 201, 103, 0.55); padding: 0.05em 0.15em; }
.app__lines { display: block; height: 4em; margin-top: 1.2em; background-image: repeating-linear-gradient(to bottom, #e3e3df 0 0.4em, transparent 0.4em 1.25em); }

/* Narrow frames: stop scaling, show the main panel only */
@container (max-width: 760px) {
  .app { font-size: 12px; }
  .app__body, .app__body--2col { grid-template-columns: minmax(0, 1fr); }
  .app__side, .app__rail, .app__casename, .app__close, .app__sep, .app__brandtext, .app__user, .app__right .app__iconbtn:not(:first-child), .app__index { display: none; }
  .app__navopt:not(.is-active), .app__navsep { display: none; }
  .app__top { padding: 0 1em; }
  .app__conv, .app__work, .app__composerwrap { padding-left: 1em; padding-right: 1em; }
  .app__note { display: none; }
  .app__doc { overflow-x: auto; }
  .app__doc th:nth-child(3), .app__doc td:nth-child(3), .app__doc th:nth-child(4), .app__doc td:nth-child(4) { display: none; }
  .app__focus { display: none; }
  .app__modal { top: 1em; width: calc(100% - 1.5em); }
  .app__modalactions .app__btng:first-child { display: none; }
  .app__sheet { padding: 1.4em; }
}

/* ---------- Roles ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2rem 2.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.roles li { padding-top: 1.1rem; border-top: 3px solid var(--green); }
.roles p { margin-top: 0.5rem; color: var(--ink-muted); }
.roles__links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 2.25rem; }

/* ---------- Home FAQ teaser ---------- */
.faq-teaser { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem clamp(2.5rem, 6vw, 6rem); }
.faq-teaser .faq { max-width: none; }
@media (max-width: 860px) { .faq-teaser { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Inner page header ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.page-hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.page-hero__lede {
  margin-top: 1.25rem;
  max-width: 40rem;
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-muted);
}
.page-hero .btn { margin-top: 2rem; }

/* ---------- Numbered sequences (only where the content really is a sequence) ---------- */
.sequence { counter-reset: seq; display: grid; gap: 0; max-width: 56rem; }
.sequence__item {
  counter-increment: seq;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0 1.25rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--hairline-strong);
}
.sequence__item:last-child { border-bottom: 1px solid var(--hairline-strong); }
.sequence__item::before {
  content: counter(seq);
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
}
.sequence__item h3 { font-size: 1.3rem; }
.sequence__item p { margin-top: 0.4rem; color: var(--ink-muted); max-width: 40rem; }

/* ---------- Sample chronology table ---------- */
.table-wrap { overflow-x: auto; max-width: 64rem; }
.table-wrap:focus-visible { outline-offset: 2px; }
.sample-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 1rem;
}
.sample-table caption { text-align: left; font-weight: 600; margin-bottom: 0.75rem; }
.sample-table th, .sample-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}
.sample-table thead th { border-bottom: 2px solid var(--charcoal); font-weight: 600; white-space: nowrap; }
.sample-table td:first-child { font-weight: 600; white-space: nowrap; }
.sample-table .chip { font-size: 0.85rem; }
.table-note { margin-top: 0.75rem; font-size: 0.95rem; color: var(--ink-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq__item { border-top: 1px solid var(--hairline-strong); }
.faq__item:last-child { border-bottom: 1px solid var(--hairline-strong); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--black);
  font-weight: 600;
  line-height: 1;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__answer { padding-bottom: 1.5rem; max-width: 44rem; color: var(--ink-muted); }
.faq__answer p + p { margin-top: 0.75rem; }
.faq__answer a { color: var(--ink); font-weight: 600; }
.faq-group + .faq-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.faq-group h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 1rem; }

/* ---------- Demo form ---------- */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3rem clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .form-layout { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: 1.35rem; max-width: 38rem; }
.field { display: grid; gap: 0.4rem; }
.field label, .field .label { font-weight: 600; }
.field__hint { font-size: 0.92rem; color: var(--ink-muted); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #767670;           /* 4.6:1 against white */
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  min-height: 3rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 1px; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.check input { width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; accent-color: var(--green-deep); }
.check a { font-weight: 600; }
.check label { font-weight: 400; }
.form-status {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--charcoal);
  background: var(--white);
}
.form-status[hidden] { display: none; }
.form-status--warn { border-left-color: #b3261e; }
.draft-banner {
  padding: 1rem 1.25rem;
  border: 2px dashed var(--black);
  background: #ffe58a;
  color: var(--black);
  font-weight: 600;
  max-width: 38rem;
  margin-bottom: 2rem;
}
.aside-box { padding: 1.5rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--hairline); }
.aside-box h2 { font-size: 1.35rem; }
.aside-box p, .aside-box ul { margin-top: 0.75rem; color: var(--ink-muted); }
.aside-box ul { padding-left: 1.2rem; list-style: disc; }
.aside-box li + li { margin-top: 0.4rem; }
.aside-box a { color: var(--ink); font-weight: 600; }

.email-cta { margin-top: 1.75rem; }

/* ---------- Legal prose (privacy, cookies) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); margin-top: 2.75rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose ul, .prose table { margin-top: 0.9rem; }
.prose ul { padding-left: 1.3rem; list-style: disc; }
.prose li + li { margin-top: 0.35rem; }
.prose a { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; background: var(--white); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--hairline); }
.prose thead th { border-bottom: 2px solid var(--charcoal); }
.prose code { font-family: inherit; font-weight: 600; background: var(--paper); padding: 0 0.3em; border-radius: 3px; }
.prose__updated { color: var(--ink-muted); }
.todo {
  background: #ffe58a;
  color: var(--black);
  border: 1px dashed var(--black);
  padding: 0 0.3em;
  font-weight: 700;
}

/* ---------- Cookie notice ---------- */
.notice {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: min(30rem, calc(100% - 2rem));
  padding: 0.9rem 1rem 0.9rem 1.2rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px -14px rgba(45, 45, 42, 0.45);
  font-size: 0.92rem;
  line-height: 1.45;
}
.notice[hidden] { display: none; }
.notice .btn { flex: none; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
