/* XC Media — UK money guidance */
@import url("https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,500;0,7..72,700;1,7..72,500&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --navy: #0a2540;
  --navy-soft: #163a5f;
  --teal: #0e7c7b;
  --teal-dark: #0a5c5b;
  --teal-soft: #e6f4f3;
  --ink: #1a2b3c;
  --muted: #5a6b7c;
  --line: #d5dee8;
  --paper: #f3f6f9;
  --white: #ffffff;
  --sand: #eef2f6;
  --warn: #b45309;
  --ok: #0f766e;
  --shadow: 0 18px 40px rgba(10, 37, 64, 0.08);
  --radius: 14px;
  --max: 1120px;
  --font-display: "Literata", Georgia, serif;
  --font-body: "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(14, 124, 123, 0.12), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(10, 37, 64, 0.08), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, var(--paper) 40%, #f7fafc 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(247, 250, 252, 0.88);
  border-bottom: 1px solid rgba(213, 222, 232, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--teal), var(--navy));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.logo span {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-main ul {
  list-style: none;
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-main a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
}

.nav-main a:hover,
.nav-main a.active {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

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

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

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

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroKen 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(10, 37, 64, 0.92) 0%, rgba(10, 37, 64, 0.72) 42%, rgba(14, 124, 123, 0.28) 100%),
    linear-gradient(0deg, rgba(10, 37, 64, 0.55), transparent 45%);
}

.hero-inner {
  padding: 7rem 0 4.5rem;
  max-width: 640px;
}

.brand-kicker {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.brand-kicker span {
  color: #7fd4d0;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  margin-bottom: 0.85rem;
}

.hero .lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

@keyframes heroKen {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(230, 244, 243, 0.55));
  border-block: 1px solid rgba(213, 222, 232, 0.7);
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.eyebrow {
  display: inline-block;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

/* Feature list / benefits */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  padding: 1.25rem 0 1.25rem 1.1rem;
  border-left: 4px solid var(--teal);
  background: linear-gradient(90deg, rgba(14, 124, 123, 0.06), transparent 70%);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--muted);
  margin: 0;
}

/* Topic chooser — MoneyHelper / MSE style */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.topic-link {
  display: grid;
  gap: 0.45rem;
  padding: 1.25rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-link:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}

.topic-link .topic-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0;
}

.topic-link h3 {
  font-size: 1.15rem;
  margin: 0;
  font-family: var(--font-body);
}

.topic-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.topic-link .topic-more {
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--teal-dark);
  font-size: 0.92rem;
}

/* Tools / quick links strip */
.tools-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.tools-strip a {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 1.1rem;
  text-decoration: none;
  color: var(--navy);
  border-right: 1px solid var(--line);
  transition: background 0.2s ease;
}

.tools-strip a:last-child {
  border-right: 0;
}

.tools-strip a:hover {
  background: var(--teal-soft);
  color: var(--navy);
}

.tools-strip strong {
  font-family: var(--font-body);
  font-size: 1rem;
}

.tools-strip span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Guide rows — editorial list */
.guide-list {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--navy);
}

.guide-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.guide-row:hover {
  background: rgba(14, 124, 123, 0.04);
  color: inherit;
}

.guide-row img {
  width: 140px;
  height: 88px;
  object-fit: cover;
}

.guide-row h3 {
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
  font-family: var(--font-body);
}

.guide-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.guide-row .guide-cta {
  font-weight: 700;
  color: var(--teal-dark);
  white-space: nowrap;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-block: 1px solid var(--line);
}

.trust-bar strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.trust-bar span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 0.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.step h3 {
  font-size: 1.2rem;
}

.step p {
  color: var(--muted);
  margin: 0;
}

/* Info split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 280px;
  background: var(--sand);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.split-body h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.split-body p,
.split-body li {
  color: var(--muted);
}

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.review {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.review blockquote {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  font-style: italic;
  line-height: 1.45;
}

.review footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.review .name {
  font-weight: 600;
  color: var(--navy);
}

/* FAQ accordion */
.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--teal);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-body {
  padding: 0 0 1.15rem;
  color: var(--muted);
}

/* CTA bands */
.cta-band {
  padding: 3.5rem 0;
  background:
    linear-gradient(120deg, rgba(10, 37, 64, 0.96), rgba(14, 124, 123, 0.9)),
    var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  bottom: -100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.cta-band .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin: 0 0 0.4rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 38rem;
}

.cta-soft {
  background: var(--teal-soft);
  border-block: 1px solid #cfe8e6;
  color: var(--ink);
}

.cta-soft h2 {
  color: var(--navy);
}

.cta-soft p {
  color: var(--muted);
}

/* Page hero (inner) */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    linear-gradient(180deg, rgba(14, 124, 123, 0.08), transparent),
    linear-gradient(120deg, #eef5f8, #f7fafc 60%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.page-hero .lead {
  max-width: 46rem;
  margin: 0;
}

/* Content prose */
.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 1.4rem;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.legal-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}

.blog-item {
  display: grid;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.blog-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.blog-item:hover img {
  transform: scale(1.02);
}

.blog-item h2,
.blog-item h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--navy);
}

.blog-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

.contact-details {
  display: grid;
  gap: 1.25rem;
}

.contact-details h2 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.contact-details p {
  margin: 0;
  color: var(--muted);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
  background: var(--sand);
}

.map-wrap iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 124, 123, 0.15);
}

.form input.error,
.form textarea.error {
  border-color: #c2410c;
}

.field-error {
  color: #c2410c;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.form-success {
  display: none;
}

/* Thank-you modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 37, 64, 0.55);
  display: none;
  place-items: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: grid;
  animation: fadeUp 0.25s ease;
}

.modal-dialog {
  width: min(100%, 440px);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem 1.6rem;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}

.modal-dialog h2 {
  font-size: 1.55rem;
  margin-bottom: 0.5rem;
}

.modal-dialog p {
  color: var(--muted);
  margin-bottom: 1.35rem;
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.checkbox-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.3rem;
}

/* Quiz */
.quiz-shell {
  max-width: 720px;
  margin: 0 auto;
}

.quiz-progress {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.quiz-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--navy-soft));
  transition: width 0.3s ease;
}

.quiz-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.quiz-card h2 {
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
}

.quiz-options {
  display: grid;
  gap: 0.7rem;
}

.quiz-option {
  width: 100%;
  text-align: left;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.quiz-option:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
  transform: translateX(3px);
}

.quiz-result {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.quiz-result.show {
  display: block;
  animation: fadeUp 0.45s ease;
}

.quiz-result h2 {
  font-size: 2rem;
  color: var(--teal-dark);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 1.75rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .logo {
  color: #fff;
  margin-bottom: 0.85rem;
}

.site-footer .logo span {
  color: #7fd4d0;
}

.site-footer h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.site-footer p,
.site-footer address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: #7fd4d0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem;
  display: none;
  max-width: 560px;
  margin-left: auto;
}

.cookie-banner.show {
  display: block;
  animation: fadeUp 0.35s ease;
}

.cookie-banner p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

@media (max-width: 960px) {
  .features,
  .steps,
  .footer-grid,
  .topic-grid,
  .trust-bar {
    grid-template-columns: 1fr 1fr;
  }

  .tools-strip {
    grid-template-columns: 1fr 1fr;
  }

  .tools-strip a:nth-child(2) {
    border-right: 0;
  }

  .tools-strip a:nth-child(1),
  .tools-strip a:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .guide-row {
    grid-template-columns: 100px 1fr;
  }

  .guide-row .guide-cta {
    display: none;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-main {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(247, 250, 252, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1.25rem;
    display: none;
  }

  .nav-main.open {
    display: block;
  }

  .nav-main ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-main a {
    padding: 0.7rem 0.85rem;
  }

  .features,
  .steps,
  .reviews,
  .blog-grid,
  .footer-grid,
  .topic-grid,
  .trust-bar,
  .tools-strip {
    grid-template-columns: 1fr;
  }

  .tools-strip a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guide-row {
    grid-template-columns: 1fr;
  }

  .guide-row img {
    width: 100%;
    height: 160px;
  }

  .hero-inner {
    padding: 5.5rem 0 3rem;
  }

  .header-inner {
    position: relative;
  }
}
