/* Empirintel website 2.0
   Layout: left-aligned content on a 72rem measure. Dark ink header, hero and
   footer carry the brand; light paper sections carry the reading. The one bold
   element is the example Snapshot readout in the home hero. */

/* Self-hosted variable fonts (SIL Open Font License; licences in assets/fonts). */
@font-face {
  font-family: "Newsreader"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/newsreader.woff2") format("woff2-variations"), url("fonts/newsreader.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/public-sans.woff2") format("woff2-variations"), url("fonts/public-sans.woff2") format("woff2");
}

:root {
  /* The Empirintel palette. Every text colour passes WCAG 2.1 AA on the background it is used on. */
  --green: #63BB86;          /* brand green: logo, fills, icons, rules; buttons with ink text, 8.07:1 */
  --green-hover: #4FA570;    /* button hover, with ink text */
  --green-text: #367F54;     /* links and small green text: 4.86:1 on white */
  --green-deep: #367F54;     /* fill for the closing section; same value as --green-text, different job */
  --green-light: #E8F5EE;    /* callouts and highlights: ink on tint 16.83:1 */
  --green-border: #B2D9C2;   /* edges on green tint; not for text */
  --ink: #0F1117;            /* headings, dark backgrounds, button text: 18.87:1 on white */
  --mid: #4A4D5A;            /* body text: 8.40:1 on white */
  --muted-text: #6B6E7D;     /* captions, labels, meta: 5.06:1 on white */
  --muted: #8B8E9B;          /* non-text only */
  --border: #E2E5F0;         /* rules and borders; not for text */
  --surface: #F7F8FD;        /* section backgrounds */
  --white: #FFFFFF;
  --red: #E8394A;            /* Fix marker */
  --red-text: #D8192C;
  --amber: #F08C00;          /* Watch marker */
  --amber-text: #A56000;
  --amber-light: #FFF7E6;
  --status-green: #18A067;   /* Working marker */
  --status-green-text: #137F52;

  /* Shades for dark sections, which the palette sheet doesn't cover. Both pass AA on ink. */
  --ink-raised: #181C25;
  --ink-line: #2B313C;
  --on-ink: #FFFFFF;         /* 18.87:1 on ink */
  --muted-on-dark: #A5AFB7;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --measure: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  color-scheme: light;
}

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

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

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

img { max-width: 100%; height: auto; }

a { color: var(--green-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--green-text); outline-offset: 3px; border-radius: 3px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--green); }
.band :focus-visible, .form-section :focus-visible { outline-color: var(--white); }
.form-section .form-panel :focus-visible { outline-color: var(--green-text); }  /* the form card is white */

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--green); color: var(--ink); padding: 0.6rem 1rem;
  font-weight: 600; z-index: 20; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

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

h1, h2, h3 { text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
p { margin: 0; }

.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 38em; }

/* ------------------------------------------------------------ buttons */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button-primary { background: var(--green); color: var(--ink); }
.button-primary:hover { background: var(--green-hover); }
.button-quiet { border-color: currentColor; color: var(--on-ink); background: transparent; }
.button-quiet:hover { background: var(--ink-raised); }
.button-solid { background: var(--green); color: var(--ink); }
.button-solid:hover { background: var(--green-hover); }

/* ------------------------------------------------------------ header */

.site-header { background: var(--ink); color: var(--on-ink); border-bottom: 1px solid var(--ink-line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.5rem; flex-wrap: wrap;
}
.wordmark { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.wordmark img { display: block; width: 146px; height: auto; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--ink-line); color: var(--on-ink);
  border-radius: 8px; padding: 0.45rem 0.8rem; font: 600 0.95rem var(--font-body); cursor: pointer;
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav > a, .nav-services > summary {
  color: var(--on-ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; cursor: pointer;
}
.site-nav > a:hover, .nav-services > summary:hover { color: var(--green); }
.site-nav > a[aria-current="page"] { color: var(--green); }
.site-nav .button { min-height: 2.6rem; padding: 0.5rem 1.1rem; font-size: 0.95rem; }

.nav-services { position: relative; }
.nav-services > summary { list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-services > summary::-webkit-details-marker { display: none; }
.nav-services > summary::after {
  content: ""; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg); transition: transform 0.15s ease;
}
.nav-services[open] > summary::after { transform: translateY(0.1rem) rotate(-135deg); }
.nav-services ul {
  position: absolute; top: calc(100% + 0.9rem); left: -1rem; z-index: 10;
  list-style: none; margin: 0; padding: 0.5rem; min-width: 17rem;
  background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.nav-services li a {
  display: block; padding: 0.55rem 0.75rem; border-radius: 6px;
  color: var(--on-ink); text-decoration: none; font-size: 0.97rem;
}
.nav-services li a:hover, .nav-services li a[aria-current="page"] { background: var(--ink); color: var(--green); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0.25rem;
    padding-block: 0.5rem 1.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a, .nav-services > summary { padding-block: 0.55rem; font-size: 1.05rem; }
  .nav-services { width: 100%; }
  .nav-services ul { position: static; min-width: 0; box-shadow: none; margin-top: 0.25rem; }
  .site-nav .button { margin-top: 0.75rem; }
}

/* ------------------------------------------------------------ hero */

.hero {
  background: var(--ink) url("pattern-on-ink.svg") no-repeat right -260px center / min(860px, 95vw) auto;
  color: var(--on-ink); padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
}
@media (max-width: 920px) { .hero { background-position: right -45vw top -12vw; } }
.hero .lede { color: var(--muted-on-dark); margin-top: 1.4rem; }
.hero .actions { margin-top: 2.1rem; }
.hero-note { margin-top: 1.25rem; font-size: 0.93rem; color: var(--muted-on-dark); }

.hero-home .wrap {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
@media (max-width: 920px) { .hero-home .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero-service.has-visual .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
@media (max-width: 920px) { .hero-service.has-visual .wrap { grid-template-columns: minmax(0, 1fr); } }

.crumbs { font-size: 0.92rem; color: var(--muted-on-dark); margin-bottom: 1.4rem; }
.crumbs a { color: var(--muted-on-dark); }
.crumbs a:hover { color: var(--green); }
.crumbs span[aria-hidden] { margin-inline: 0.45rem; }
.hero-service h1 { max-width: 15em; }

/* Service diagrams: example panels in the readout style */
.diagram {
  background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 1.75rem); min-width: 0; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.review-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.review-grid li {
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0.8rem; border: 1px solid var(--ink-line); border-radius: 8px;
}
.area-name { font-weight: 600; font-size: 0.93rem; color: var(--on-ink); }
.review-grid .status { grid-row: auto; align-self: center; font-size: 0.8rem; color: var(--muted-on-dark); white-space: nowrap; }
.diagram-link { display: flex; justify-content: center; color: var(--green); margin: 0.5rem 0 0.2rem; }
.diagram-link svg { width: 1.2rem; height: 2rem; }
.roadmap { border-top: 1px solid var(--ink-line); padding-top: 1rem; }
.roadmap-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--on-ink); }
.roadmap ol { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.roadmap li { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: 0.35rem 0.9rem; align-items: center; }
.roadmap-month { font-size: 0.82rem; font-weight: 600; color: var(--muted-on-dark); }
.roadmap-track { height: 0.55rem; border-radius: 999px; background: var(--ink-line); position: relative; overflow: hidden; }
.roadmap-bar { position: absolute; inset-block: 0; left: calc(var(--start) * 33.333%); width: 33.333%; background: var(--green); border-radius: 999px; }
.roadmap-items { grid-column: 2; font-size: 0.88rem; color: var(--muted-on-dark); }
@media (max-width: 460px) { .review-grid { grid-template-columns: minmax(0, 1fr); } }
.review-grid.review-list { grid-template-columns: minmax(0, 1fr); margin-top: 0.7rem; }
.diagram > .roadmap-title { display: block; }

/* CRM: duplicate records merging */
.records { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.diagram-link + .records { margin-top: 0.2rem; }
.record { display: grid; gap: 0.15rem; padding: 0.7rem 0.85rem; border: 1px dashed var(--ink-line); border-radius: 8px; }
.record-name { font-weight: 600; font-size: 0.95rem; color: var(--on-ink); }
.record-detail { font-size: 0.85rem; color: var(--muted-on-dark); overflow-wrap: anywhere; }
.record-merged { border: 1px solid var(--green); background: rgba(99, 187, 134, 0.08); }
.before-after { margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--ink-line); display: grid; gap: 0.6rem; }
.before-after div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; }
.before-after dt { font-size: 0.9rem; font-weight: 600; color: var(--on-ink); }
.before-after dd { margin: 0; display: flex; gap: 0.9rem; font-size: 0.88rem; color: var(--muted-on-dark); font-variant-numeric: tabular-nums; }
.before-after dd span:last-child { color: var(--green); font-weight: 600; }

/* Lead Nurture and AI Tool Maker: a flow of steps */
.flow { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; }
.flow-step { position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 0.9rem; padding-bottom: 1.05rem; }
.flow-step::after {
  content: ""; position: absolute; left: calc(1.3rem - 1px); top: 2.6rem; bottom: 0.15rem;
  width: 2px; background: var(--ink-line);
}
.flow-step-end { padding-bottom: 0; }
.flow-step-end::after { display: none; }
.flow-icon {
  grid-row: 1 / span 2; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid var(--ink-line); color: var(--green); display: grid; place-items: center; background: var(--ink);
}
.flow-icon svg { width: 1.25rem; height: 1.25rem; }
.flow-step-end .flow-icon { background: var(--green); color: var(--ink); border-color: var(--green); }
.flow-title { font-weight: 600; font-size: 0.97rem; color: var(--on-ink); padding-top: 0.2rem; }
.flow-detail { font-size: 0.88rem; color: var(--muted-on-dark); }

/* Reporting: funnel, with conversion to scale */
.funnel-cols, .funnel li { display: grid; grid-template-columns: minmax(0, 1.1fr) 4.2rem minmax(0, 1.5fr); gap: 0.8rem; align-items: center; }
.funnel-cols { margin-top: 1rem; font-size: 0.78rem; color: var(--muted-on-dark); }
.funnel-cols span:nth-child(2) { text-align: right; }
.funnel { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.15rem; }
.funnel li { padding-block: 0.6rem; border-top: 1px solid var(--ink-line); }
.funnel-stage { font-weight: 600; font-size: 0.95rem; color: var(--on-ink); }
.funnel-value { text-align: right; font-size: 0.95rem; color: var(--on-ink); font-variant-numeric: tabular-nums; }
.funnel-conv { display: grid; grid-template-columns: minmax(0, 1fr) 2.6rem; gap: 0.6rem; align-items: center; }
.funnel-track { height: 0.55rem; border-radius: 999px; background: var(--ink-line); overflow: hidden; }
.funnel-bar { display: block; height: 100%; width: var(--w); background: var(--green); border-radius: 999px; }
.funnel-rate { font-size: 0.85rem; color: var(--muted-on-dark); text-align: right; font-variant-numeric: tabular-nums; }

/* Guardian: health report with a three-month trend */
.health-cols, .health-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto 5.4rem; gap: 0.9rem; align-items: center; }
.health-cols { margin-top: 1rem; font-size: 0.75rem; color: var(--muted-on-dark); }
.trend-label { width: calc(3 * 1.7rem + 2 * 0.3rem); text-align: center; white-space: nowrap; }
.health-rows { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; }
.health-rows li { padding-block: 0.75rem; border-top: 1px solid var(--ink-line); }
.health-rows .status { grid-row: auto; align-self: center; font-size: 0.82rem; color: var(--muted-on-dark); }
.trend-dots { display: grid; grid-template-columns: repeat(3, 1.7rem); column-gap: 0.3rem; align-items: center; }
.trend-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--muted); justify-self: center; }
.trend-fix { background: var(--red); }
.trend-watch { background: var(--amber); }
.trend-ok { background: var(--status-green); }

/* Snapshot: checks run */
.checks { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; margin-top: 1rem; }
.checks-label { font-weight: 600; font-size: 0.95rem; color: var(--on-ink); }
.checks-grid { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 0.35rem; }
.checks-grid .trend-dot { width: 0.85rem; height: 0.85rem; }
.checks-count { grid-column: 2; margin-top: -0.45rem; font-size: 0.8rem; color: var(--muted-on-dark); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .checks { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .checks-count { grid-column: 1; margin-top: 0; }
  .checks-grid { gap: 0.3rem; }
  .checks-grid .trend-dot { width: 0.72rem; height: 0.72rem; }
}

/* Snapshot: the two sharing options */
.option-head { display: flex; align-items: center; gap: 0.7rem; }
.option-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 10px; flex: none;
  background: var(--green-light); color: var(--green-text); display: grid; place-items: center;
}
.option-icon svg { width: 1.35rem; height: 1.35rem; }

/* The example Snapshot readout */
.readout {
  background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 1.75rem); min-width: 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.readout-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1rem; border-bottom: 1px solid var(--ink-line);
}
.readout-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--on-ink); }
.readout-tag {
  font-size: 0.8rem; font-weight: 600; color: var(--ink); background: var(--muted-on-dark);
  border-radius: 999px; padding: 0.15rem 0.65rem;
}
.readout ol { list-style: none; margin: 0; padding: 0; }
.readout li {
  display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 0.25rem 1rem;
  padding-block: 0.95rem; border-bottom: 1px solid var(--ink-line);
}
.readout li:last-child { border-bottom: 0; }
.status {
  grid-row: span 2; align-self: start; display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.85rem; font-weight: 600; color: var(--on-ink);
}
/* Status: the marker carries the colour, the word carries the meaning. */
.status::before { content: ""; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--muted); flex: none; }
.status-fix::before { background: var(--red); }
.status-watch::before { background: var(--amber); }
.status-ok::before { background: var(--status-green); }

/* Marker shapes: Fix a diamond, Watch a triangle,
   Working a circle, so a marker never relies on colour alone. */
.status-fix::before, .trend-fix { border-radius: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transform: scale(1.3); }
.status-watch::before, .trend-watch { border-radius: 0; clip-path: polygon(50% 3%, 100% 90%, 0 90%); transform: scale(1.3); }
.finding { font-weight: 600; color: var(--on-ink); font-size: 0.98rem; }
.finding-detail { color: var(--muted-on-dark); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.readout-foot { margin-top: 0.9rem; font-size: 0.84rem; color: var(--muted-on-dark); }

/* Text for screen readers only */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ sections */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section + .section { border-top: 1px solid var(--border); }
.section-white { background: var(--white); }
.section-head { max-width: 42rem; display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--mid); font-size: 1.1rem; }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.split > * { min-width: 0; }
.split .prose { display: grid; gap: 1.1rem; }
.split .prose p { color: var(--mid); font-size: 1.1rem; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }

.symptoms { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--green); }
.symptoms li {
  padding: 0.85rem 0 0.85rem 1.25rem; font-family: var(--font-display); font-size: 1.32rem; line-height: 1.35;
}
.symptoms li + li { border-top: 1px solid var(--border); }

/* Ruled list of services on the home page */
.service-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem);
}
.service-list li {
  border-top: 1px solid var(--border); padding-block: 1.4rem 1.6rem; display: grid; gap: 0.5rem 1.1rem; align-content: start;
  grid-template-columns: 2.9rem minmax(0, 1fr);
}
.service-list li > :not(.service-icon) { grid-column: 2; }
.service-icon {
  grid-column: 1; grid-row: 1 / span 2; width: 2.9rem; height: 2.9rem; border-radius: 10px;
  background: var(--green-light); color: var(--green-text); display: grid; place-items: center;
}
.service-icon svg { width: 1.55rem; height: 1.55rem; }
.service-list h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; }
.service-list h3 a { color: var(--ink); text-decoration: none; }
.service-list h3 a:hover { color: var(--green-text); text-decoration: underline; }
.service-list p { color: var(--mid); }
.service-list .price { color: var(--green-text); font-weight: 600; }
@media (max-width: 720px) { .service-list { grid-template-columns: minmax(0, 1fr); } }

/* Numbered steps: only for real sequences */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem);
}
.steps li { counter-increment: step; display: grid; gap: 0.5rem; align-content: start; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before {
  content: counter(step); font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--green-text);
}
.steps p { color: var(--mid); font-size: 1rem; }
.steps.has-icons li { position: relative; }
.step-icon { position: absolute; top: 1rem; right: 0; width: 2.3rem; height: 2.3rem; color: var(--green-text); }
.step-icon svg { width: 100%; height: 100%; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* What you get */
.deliverables {
  margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
}
.deliverables div { border-top: 1px solid var(--border); padding-block: 1.15rem 1.3rem; }
.deliverables dt { font-weight: 600; font-size: 1.07rem; }
.deliverables dd { margin: 0.3rem 0 0; color: var(--mid); }
@media (max-width: 720px) { .deliverables { grid-template-columns: minmax(0, 1fr); } }

.plain-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; }
.plain-list li::marker { color: var(--green-text); }

.note {
  margin-top: 2rem; padding: 1rem 1.25rem; border-radius: var(--radius);
  background: var(--green-light); border: 1px solid var(--green-border); max-width: 44rem;
}
.note a { color: var(--ink); } /* green text on the tint is 4.33:1, below AA */

/* Guardian tiers: three separate offers side by side */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tier {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; display: grid; gap: 0.9rem; align-content: start;
}
.tier h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
.tier-price { font-size: 1.05rem; color: var(--muted-text); font-variant-numeric: tabular-nums; }
.tier-price strong { font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; color: var(--ink); margin-right: 0.3rem; }
.tier-for { color: var(--mid); }
.tier ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; font-size: 0.98rem; }
.tier ul li::marker { color: var(--green-text); }
@media (max-width: 920px) { .tiers { grid-template-columns: minmax(0, 1fr); } }

/* Snapshot terms */
.terms-row { display: flex; flex-wrap: wrap; gap: 1rem 2.75rem; margin: 2rem 0 0; }
.terms-row div { display: grid; }
.terms-row dt { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.05; color: var(--on-ink); order: 1; }
.terms-row dd { margin: 0; color: var(--muted-on-dark); font-size: 0.95rem; order: 2; }
.has-visual .terms-row { gap: 1rem 2rem; }
.has-visual .terms-row dt { font-size: 1.9rem; }

.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.option { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start; }
.option h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.option p { color: var(--mid); }
@media (max-width: 720px) { .options { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative;
  font-weight: 600; font-size: 1.07rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 0.95rem;
  font-size: 1.4rem; line-height: 1; color: var(--green-text);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.2rem; color: var(--mid); max-width: 40rem; }
.faq-title { padding-bottom: 0.9rem; border-bottom: 1px solid var(--border); }

/* Points in the 'specialist' section */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.points li { display: grid; gap: 0.25rem; }
.points strong { font-size: 1.07rem; }
.points span { color: var(--mid); }

/* ------------------------------------------------------------ call-to-action band */

/* Every page ends on deep green: the home page's band and each page's form section.
   White text on deep green is 4.86:1 (brand green would be 2.34:1, below AA).
   Buttons on it are white with ink text. */
.band, .section.form-section {
  background: var(--green-deep) url("pattern-on-green.svg") no-repeat right -240px center / min(760px, 95vw) auto;
}
.band { color: var(--white); padding-block: clamp(3rem, 7vw, 5rem); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; }
.band h2 { max-width: 18em; }
.band p { color: var(--white); margin-top: 1rem; max-width: 38em; font-size: 1.1rem; }
.band .button-primary { background: var(--white); color: var(--ink); }
.band .button-primary:hover { background: var(--green-light); }
@media (max-width: 760px) { .band .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ------------------------------------------------------------ forms */

.form-section .wrap {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.section.form-section { color: var(--white); border-top: 0; }
.form-section .intro { display: grid; gap: 1rem; }
.form-section .intro p { color: var(--white); font-size: 1.1rem; }
.form-section .intro a { color: var(--white); text-decoration-thickness: 1.5px; }
@media (max-width: 860px) { .form-section .wrap { grid-template-columns: minmax(0, 1fr); } }

.form-panel {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem); min-width: 0;
}
.form-section .form-panel { border-color: transparent; box-shadow: 0 18px 40px rgba(15, 17, 23, 0.22); }
.form-fallback { color: var(--mid); }
.form-fallback a { color: var(--green-text); text-decoration: underline; text-underline-offset: 0.15em; font-weight: 600; }
.form-fallback a:hover { color: var(--ink); }
.form-slot.is-loaded .form-fallback { display: none; }
.form-pending {
  display: none; border: 1.5px dashed var(--border); border-radius: var(--radius);
  padding: 1.5rem; color: var(--mid); background: var(--surface);
}
.form-pending strong { display: block; color: var(--ink); margin-bottom: 0.35rem; }
.form-slot.is-pending .form-pending { display: block; }
.form-slot.is-pending .form-fallback { display: none; }

.contact-line { font-size: 1.05rem; }
.contact-line .email { font-weight: 600; }

/* ------------------------------------------------------------ legal text */

.legal { max-width: 46rem; display: grid; gap: 1rem; }
.legal h2 { font-size: 1.6rem; margin-top: 1.5rem; }
.legal h3 { margin-top: 0.5rem; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.legal p, .legal li { color: var(--mid); }
.legal h4 { font-size: 1.02rem; font-weight: 600; margin: 0.4rem 0 0; }
.legal .legal-part { font-size: clamp(1.85rem, 3.4vw, 2.6rem); margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.table-scroll { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 34rem; }
.legal th, .legal td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { font-weight: 600; background: var(--white); }
.placeholder-block {
  border: 1.5px dashed var(--amber); background: var(--amber-light); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; color: var(--ink);
}

/* ------------------------------------------------------------ footer */

.site-footer { background: var(--ink); color: var(--muted-on-dark); padding-block: 3.5rem 2.5rem; font-size: 0.95rem; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2rem;
}
.footer-grid h2 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--on-ink); margin-bottom: 0.8rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-grid a, .footer-base a, .linklike { color: var(--muted-on-dark); text-decoration: none; }
.footer-grid a:hover, .footer-base a:hover, .linklike:hover { color: var(--green); text-decoration: underline; }
.legal .linklike { color: var(--green-text); text-decoration: underline; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.footer-about p { margin-top: 0.75rem; max-width: 22rem; }
.footer-base {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ 404 */
.not-found { padding-block: clamp(4rem, 12vw, 8rem); }
.not-found p { margin-top: 1rem; color: var(--mid); font-size: 1.1rem; }
.not-found .actions { margin-top: 2rem; }

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