/* KWZ Reporting — client site styles */
:root {
  --bg: #f4f1ea;
  --paper: #fffcf7;
  --ink: #1c1915;
  --muted: #6b645b;
  --line: #ddd4c6;
  --line-strong: #c9bdaa;
  --accent: #1b4a38;
  --accent-hover: #143628;
  --accent-soft: #e4efe8;
  --gold: #9a7b3c;
  --shadow: 0 1px 2px rgba(28, 25, 21, 0.06), 0 8px 24px rgba(28, 25, 21, 0.05);
  --radius: 12px;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Palatino, "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1000px 400px at 8% -8%, #efe8d8 0%, transparent 55%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 100;
}
.skip:focus { top: 12px; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
nav.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 20px 72px;
}

.hero {
  padding: 40px 0 28px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 2.15rem;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero p.lead {
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 60ch;
  margin: 0 0 12px;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--accent-soft); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.card h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 12px;
  color: var(--accent);
}
.card h3 {
  font-size: 1.05rem;
  margin: 16px 0 8px;
}
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 1.3em; }
li { margin-bottom: 6px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 1.75rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}

.note {
  background: #faf7f0;
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 0.94rem;
  color: var(--muted);
  border-radius: 0 8px 8px 0;
}
.warn {
  background: #fdf6f4;
  border-left: 3px solid #a34a3a;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 0.94rem;
  border-radius: 0 8px 8px 0;
}

.form-placeholder {
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
}
.form-placeholder strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 28px 20px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.small { font-size: 0.88rem; color: var(--muted); }

details.tech summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}
details.tech[open] summary { margin-bottom: 12px; }

.card a { color: var(--accent); }


/* Inner pages without an intro: open straight into content */
.hero { padding: 28px 0 8px; }
.hero h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  background: var(--gold);
}
main.wrap .card, main.wrap details.tech {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  padding: 18px 0 6px; margin-bottom: 10px;
  border-top: 1px solid var(--line-strong);
}
main.wrap .grid-2 { gap: 36px; }
.grid-3 .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }

/* Included / Not included: coloured top bar, tick and cross markers */
main.wrap .card.inc, main.wrap .card.exc { border-top-width: 4px; }
main.wrap .card.inc { border-top-color: var(--accent); }
main.wrap .card.exc { border-top-color: #a0463c; }
main.wrap .card.inc h2 { color: var(--accent); }
main.wrap .card.exc h2 { color: #8a3a31; }
.card.inc ul, .card.exc ul { list-style: none; padding-left: 0; }
.card.inc li, .card.exc li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.card.inc li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.card.exc li::before { content: "\2715"; position: absolute; left: 0; color: #a0463c; font-weight: 700; }

/* "Is this you?" is the first thing on the page, so it gets a soft green fill */
main.wrap .card.check { background: var(--accent-soft); border-top: 0; border-radius: var(--radius); padding: 24px 28px; margin: 12px 0 28px; }
main.wrap .card.check ol { padding-left: 1.4em; }
main.wrap .card.check li { font-size: 1.08rem; margin-bottom: 10px; }
main.wrap .warn { margin: 22px 0; }

/* Keep the footer at the bottom of the window on short pages */
body { display: flex; flex-direction: column; }
.site-header, .site-footer { flex: 0 0 auto; }
main.wrap { flex: 1 0 auto; width: 100%; }
@media (min-width: 761px) {
  main.wrap { padding-top: 56px; padding-bottom: 96px; }
}
.site-footer { padding: 36px 20px 40px; }

/* Skip link fully hidden until focused */
.skip { top: -60px; }

/* Home page: a fuller hero, panel cards and a closing band */
.home .hero { padding: 40px 0 36px; }
.home .hero h1 { font-size: 2.75rem; max-width: 26ch; }
.home .hero p.lead { font-size: 1.15rem; margin-bottom: 24px; }
.home main.wrap .grid-3 { margin-top: 24px; }
.home main.wrap .grid-3 .card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.home main.wrap .grid-3 .card p:last-child { margin-top: auto; margin-bottom: 0; }
.cta-band {
  margin-top: 48px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-band p { margin: 0; font-size: 1.05rem; }
@media (max-width: 760px) {
  .home .hero h1 { font-size: 2rem; }
  .cta-band { padding: 22px; }
}
.note a, .warn a { color: var(--accent); }

/* How it works: each step opens and closes */
details.step summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
details.step summary::-webkit-details-marker { display: none; }
details.step summary h2 { margin: 0; }
details.step summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  flex: none;
}
details.step[open] summary::after { content: "\2212"; }
details.step[open] summary { margin-bottom: 12px; }
details.step summary:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
details.step summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
main.wrap details.step { padding-bottom: 18px; }
.email-link { font-size: 1.25rem; margin: 4px 0 10px; }
.email-link a { color: var(--accent); font-weight: 600; text-underline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
