/*
 * Local Web Fix stylesheet.
 *
 * Plain, sturdy and readable, in the spirit of UK public-sector sites:
 * white background, near-black text, square corners, solid green
 * buttons and a yellow focus state. No external fonts or dependencies.
 *
 * Contents:
 *   1. Tokens and themes
 *   2. Base elements
 *   3. Layout helpers
 *   4. Header and navigation
 *   5. Buttons
 *   6. Hero
 *   7. Boxes and lists
 *   8. Pricing
 *   9. Steps, FAQ and about
 *  10. Contact form
 *  11. Secondary pages
 *  12. Footer
 */

/* 1. Tokens and themes */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f3f2ef;
  --ink: #0b0c0c;
  --muted: #4e5551;
  --line: #b1b4b6;
  --line-strong: #0b0c0c;
  --green: #00593b;
  --green-dark: #002d1e;
  --green-tint: #eaf1ed;
  --focus: #ffdd00;
  --warn: #942514;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1060px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141614;
  --bg-alt: #1c1f1c;
  --ink: #eceeeb;
  --muted: #a8b0aa;
  --line: #434a45;
  --line-strong: #eceeeb;
  --green: #2e9268;
  --green-dark: #1d6f4d;
  --green-tint: #1b2a22;
  --warn: #e6837a;
}

/* 2. Base elements */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

img { height: auto; }

p {
  margin: 0;
  max-width: 66ch;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  max-width: 26ch;
}

h3 {
  font-size: 1.15rem;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--green-dark);
  text-decoration-thickness: 3px;
}

:root[data-theme="dark"] a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid transparent;
  background-color: var(--focus);
  box-shadow: 0 -2px var(--focus), 0 4px var(--line-strong);
  color: #0b0c0c;
  text-decoration: none;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  background-color: var(--bg);
  box-shadow: none;
  outline: 3px solid var(--focus);
  outline-offset: 0;
  border-color: var(--line-strong);
  color: var(--ink);
}

ul {
  margin: 0;
}

.hidden {
  display: none;
}

/* 3. Layout helpers */

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: clamp(2.6rem, 6vw, 4.2rem) 0;
  scroll-margin-top: 5.5rem;
}

.compact-section {
  padding: clamp(2.2rem, 5vw, 3.4rem) 0;
}

.section-lg {
  padding: clamp(2.8rem, 7vw, 5rem) 0;
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-head p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.centred {
  text-align: left;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.7rem 0.95rem;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

/* 4. Header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 2px solid var(--line-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-mark svg rect {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
}

.brand-mark svg path {
  fill: none;
  stroke: var(--green);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark svg .mark-line {
  stroke-width: 2.5;
  opacity: 0.7;
}

.site-nav {
  order: 3;
  flex-basis: 100%;
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 0.95rem;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--green);
}

.theme-toggle {
  border: 2px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--bg-alt);
}

@media (min-width: 720px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    order: initial;
    flex-basis: auto;
  }
}

/* 5. Buttons */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 3px 0 var(--green-dark);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--green-dark);
}

.btn-secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--bg-alt);
}

/* 6. Hero */

.hero {
  padding-bottom: 0.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.hero-copy {
  max-width: 720px;
}

.hero-lede {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin-top: 1.1rem;
}

.trust-row span {
  position: relative;
  padding-left: 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-row span::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.quiet-line {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  align-self: start;
  border: 2px solid var(--line-strong);
  padding: 1.2rem;
}

.card-kicker,
.footer-heading,
.footer-brand,
.optional-title {
  font-weight: 700;
  color: var(--ink);
}

.pill-grid {
  margin: 0.8rem 0;
}

.pill-grid span {
  display: block;
  position: relative;
  padding: 0.3rem 0 0.3rem 1.35rem;
  font-size: 0.98rem;
}

.pill-grid span::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.card-note,
.form-note,
.field-help {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-note {
  padding-top: 0.4rem;
  margin-top: 0.4rem;
}

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: center;
  }
}

/* 7. Boxes and lists */

.three-grid,
.two-card-grid,
.privacy-grid,
.step-grid {
  display: grid;
  gap: 1rem;
}

.mini-card,
.info-card,
.step-card,
.check-list-card,
.content-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.1rem;
}

.mini-card p,
.info-card p,
.step-card p,
.check-list-card p {
  color: var(--muted);
  margin-top: 0.55rem;
}

.split-card {
  display: grid;
  gap: 1.4rem;
}

.split-card p {
  color: var(--muted);
  margin-top: 0.8rem;
}

.simple-list {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.simple-list p {
  color: var(--ink);
  margin: 0;
}

.simple-list strong {
  display: block;
}

.example-note {
  background: var(--bg);
  border: 2px solid var(--line-strong);
  padding: 1.2rem;
}

.example-note .clean-list {
  margin-top: 0.8rem;
}

.sample-disclaimer {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.clean-list,
.clean-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.5rem;
}

.clean-steps {
  margin-top: 0.75rem;
}

.crossed-list li::marker {
  content: "\2717  ";
  color: var(--warn);
  font-weight: 700;
}

.note-box {
  margin-top: 1rem;
  border-left: 5px solid var(--line-strong);
  background: var(--bg-alt);
  padding: 0.9rem 1rem;
  color: var(--muted);
}

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

.soft-card {
  background: var(--green-tint);
}

.access-card {
  border-color: var(--green);
}

@media (min-width: 720px) {
  .three-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .two-card-grid,
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .split-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }
}

/* 8. Pricing */

.pricing-grid,
.scope-pricing-grid {
  display: grid;
  gap: 1rem;
}

.price-card {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.2rem;
}

.price {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.price-card > p:not(.price) {
  color: var(--muted);
}

.price-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
}

.featured-card {
  border-color: var(--green);
  border-width: 2px;
}

.free-card {
  background: var(--green-tint);
}

.badge {
  justify-self: start;
  background: var(--green);
  color: #ffffff;
  padding: 0.25rem 0.55rem;
  font-weight: 700;
  font-size: 0.8rem;
  margin: 0;
}

.price-mini {
  display: grid;
  gap: 0.45rem;
}

.price-mini span {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
  color: var(--green);
}

@media (min-width: 720px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scope-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .pricing-grid,
  .scope-pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 9. Steps, FAQ and about */

.step-card span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.about-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.portrait-card {
  border: 1px solid var(--line);
  padding: 0.5rem;
  width: min(16rem, 64vw);
  margin-inline: auto;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1rem;
}

.link-row a {
  font-weight: 700;
}

.faq-layout {
  display: grid;
  gap: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 0.6rem;
}

details {
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  background: var(--bg);
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin-top: 0.65rem;
  color: var(--muted);
}

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: 16rem minmax(0, 1fr);
  }

  .faq-layout {
    grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  }
}

/* 10. Contact form */

.form-layout {
  display: grid;
  gap: 1.3rem;
}

.contact-form {
  background: var(--bg);
  border: 2px solid var(--line-strong);
  padding: 1.3rem;
  display: grid;
  gap: 1rem;
}

.field-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label,
.check-field label {
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 2px solid var(--line-strong);
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  min-height: 46px;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.optional-fields {
  border: 1px solid var(--line);
  padding: 1rem;
  display: grid;
  gap: 1rem;
  background: var(--bg-alt);
}

.optional-title {
  margin: 0;
}

@media (min-width: 720px) {
  .form-layout {
    grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
    align-items: start;
  }

  .field-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 11. Secondary pages */

.page-main {
  min-height: 62vh;
}

.page-hero {
  padding: clamp(2.4rem, 6vw, 4.4rem) 0 1.8rem;
}

.compact-page-hero {
  padding-bottom: 1rem;
}

.page-hero-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.page-hero-copy {
  max-width: 760px;
}

.page-lede {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.page-section {
  padding: clamp(1.9rem, 5vw, 3.4rem) 0;
}

.page-summary-card,
.confirm-card {
  background: var(--bg);
  border: 2px solid var(--line-strong);
  padding: 1.2rem;
}

.page-summary-card h2,
.confirm-card h2,
.info-card h2 {
  font-size: 1.25rem;
  max-width: none;
  margin-bottom: 0.55rem;
}

.page-summary-card p,
.confirm-card p {
  color: var(--muted);
}

.info-card p + p {
  margin-top: 0.75rem;
}

.page-split {
  display: grid;
  gap: 1.1rem;
  align-items: start;
}

.thanks-grid {
  align-items: center;
}

.confirm-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--green);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.final-cta {
  padding-top: 0;
}

.cta-card {
  border: 2px solid var(--line-strong);
  padding: 1.3rem;
  display: grid;
  gap: 1rem;
  align-items: center;
}

.cta-card p {
  color: var(--muted);
  margin-top: 0.45rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--green);
  text-decoration: underline;
}

.compact-info-strip {
  padding: 1rem 0;
}

.strip-grid {
  display: grid;
  gap: 0.75rem;
}

.strip-grid div {
  padding: 0.2rem 0;
}

.strip-grid strong {
  display: block;
  line-height: 1.25;
}

.strip-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.15rem;
  line-height: 1.35;
}

.micro-note {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.page-shell {
  padding: clamp(2.2rem, 6vw, 4rem) 0;
}

.prose h1 {
  margin-bottom: 0.8rem;
}

.prose p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.pay-grid {
  display: grid;
  gap: 1rem;
  margin: 1.4rem 0;
}

.price-label {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.payment-warning {
  border-left: 5px solid var(--warn);
  background: var(--bg-alt);
  padding: 0.9rem 1rem;
  margin: 1rem 0 1.4rem;
  max-width: 66ch;
}

@media (min-width: 760px) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }

  .page-split {
    grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  }

  .cta-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cta-card .btn {
    justify-self: end;
  }

  .strip-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pay-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 12. Footer */

.site-footer {
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 1.2rem;
}

.footer-grid a {
  display: inline-flex;
  margin: 0.18rem 0.9rem 0 0;
}

.footer-brand {
  margin-bottom: 0.2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.5fr 0.8fr 0.8fr;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .hero-actions .btn,
  .price-card .btn,
  .page-actions .btn,
  .cta-card .btn {
    width: 100%;
  }
}
