/* Lato, self-hosted (latin subset). 600 maps to the 700 file: Lato ships no 600. */
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lato-400.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/lato-700.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/lato-700.woff2') format('woff2'); }

/* ==========================================================================
   Aprotax — design system, editorial edition (Sept 2026)
   Brand: references/brand.md
   Navy #122940 primary | Teal #42B0C6 secondary | Georgia display + Lato text

   The idea: a specialist publication, not a SaaS landing page. Georgia carries
   the headlines, Lato does the reading, photographs of Alex and Anca are
   printed in a navy/teal duotone, and lists are ruled rather than boxed.
   Teal is spent in one place per page (the band under the hero) and on links.

   Contrast (WCAG AA):
   - Teal #42B0C6 on white 2.54:1 FAILS. Never body text. Teal surfaces take NAVY text.
   - Teal-deep #1B6E7F on paper 5.6:1 passes. Links and small accents on light.
   - Teal on navy 5.65:1 passes.
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --navy:        #122940;
  --navy-800:    #1B3B58;
  --navy-700:    #274F72;
  --teal:        #42B0C6;
  --teal-deep:   #1B6E7F;
  --teal-tint:   #E6F3F6;

  --ink:         #1B2733;
  --ink-muted:   #4A5763;
  --ink-faint:   #66727D;
  --rule:        #D9D3C8;   /* warm grey, sits on paper */
  --rule-soft:   #E9E4DA;
  --paper:       #FAF8F3;   /* the page */
  --paper-warm:  #F1ECE2;   /* alternate sections */
  --paper-white: #FFFFFF;   /* forms, plans */

  --amber:       #9E6608;
  --amber-tint:  #F8EDD5;

  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: Georgia, 'Times New Roman', Times, serif;

  --wrap: 1180px;
  --wrap-narrow: 760px;

  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 4px;

  --step: clamp(64px, 9vw, 120px);
}

/* --- Base ----------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--font-serif); font-weight: 400;
  color: var(--navy); letter-spacing: -.012em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; }
h3, h4 { font-family: var(--font-sans); font-weight: 700; color: var(--navy); line-height: 1.3; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

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

strong, b { font-weight: 700; }

:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--teal); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 14px 22px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--step); }
.section-tight { padding-block: clamp(44px, 6vw, 72px); }

.bg-paper { background: var(--paper); }
.bg-warm  { background: var(--paper-warm); }
.bg-tint  { background: var(--teal-tint); }
.bg-navy  { background: var(--navy); }

.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p, .on-dark li { color: rgba(255,255,255,.84); }
.on-dark a:not(.btn) { color: var(--teal); }
.on-dark a:not(.btn):hover { color: #fff; }

.lede { font-size: clamp(1.125rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--ink-muted); }
.on-dark .lede { color: rgba(255,255,255,.86); }

/* Kept for the few page-title labels that survive. Sentence case, no tracking. */
.eyebrow { display: block; font-size: 1rem; font-weight: 400; color: var(--ink-faint); margin-bottom: 14px; }
.on-dark .eyebrow { color: var(--teal); }

.center { text-align: center; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.section-head h2 + .lede, .section-head h1 + .lede { margin-top: 16px; }
.split h2, .split h1 { margin-bottom: 16px; }
.section-tight.bg-navy h1 { margin-bottom: 18px; }

/* --- Grid ----------------------------------------------------------------- */
.grid { display: grid; gap: 32px 40px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.split { display: grid; gap: clamp(36px, 6vw, 88px); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn.btn-primary { background: var(--teal); color: var(--navy); }
.btn.btn-primary:hover { background: #5FBFD2; color: var(--navy); }
.btn.btn-navy { background: var(--navy); color: #fff; }
.btn.btn-navy:hover { background: var(--navy-800); color: #fff; }
.btn.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.btn-ghost:hover { background: var(--navy); color: #fff; }
.on-dark .btn.btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.on-dark .btn.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-lg { padding: 18px 36px; font-size: 1.125rem; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.center { justify-content: center; }

/* --- Header --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand img { height: 44px; width: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav a { display: block; padding: 9px 12px; color: var(--navy); font-weight: 600; font-size: .97rem; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--teal-deep); }
.nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.header-cta { margin-left: 10px; }
.header-cta .btn { padding: 11px 20px; font-size: .97rem; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--navy); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 12px 24px 24px; margin: 0;
    max-height: calc(100dvh - 78px); overflow-y: auto;
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 14px 4px; font-size: 1.08rem; border-bottom: 1px solid var(--rule-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule-soft); color: var(--teal-deep); }
  .header-cta { margin: 16px 0 0; }
  .header-cta .btn { width: 100%; padding: 14px; }
}

/* --- Alert bar ------------------------------------------------------------ */
.alert-bar { background: var(--navy); color: rgba(255,255,255,.9); font-size: .95rem; text-align: center; }
.alert-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 6px 18px; flex-wrap: wrap; padding-block: 10px; }
.alert-bar strong { color: var(--teal); font-weight: 700; }
.alert-bar a { color: #fff; font-weight: 700; text-underline-offset: 4px; }
.alert-bar a:hover { color: var(--teal); }

/* --- Hero (home) ---------------------------------------------------------- */
.hero { background: var(--paper); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px); align-items: stretch;
  padding-block: clamp(40px, 5vw, 72px) 0;
}
.hero-copy { padding-bottom: clamp(40px, 5vw, 72px); align-self: center; }
.hero h1 { margin-bottom: 24px; max-width: 15.5ch; }
.hero .lede { margin-bottom: 34px; max-width: 52ch; }

/* The memorable thing: two real photographs, printed straight, framed like a
   magazine spread. Each frame appears once on the site. */
.hero-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; align-self: stretch; }
.duotone { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--paper-warm); }
.duotone img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; }
.duotone figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 1; font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: #fff; background: rgba(18,41,64,.7); padding: 3px 10px; border-radius: 3px; }

.hero-band { background: var(--teal); color: var(--navy); }
.hero-band .wrap { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; align-items: baseline; padding-block: 18px; }
.hero-band b { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; margin-right: 7px; letter-spacing: -.01em; }
.hero-band span { font-size: .97rem; font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; padding-top: 40px; }
  .hero-copy { padding-bottom: 0; }
  .hero-duo { margin-top: 36px; max-width: 560px; }
}

/* Inner-page banners: navy field, serif title */
.section-tight.bg-navy h1 { max-width: 18ch; }

/* --- Photo treatment on inner sections ----------------------------------- */
.photo-frame { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; }
.photo-frame img { display: block; }
.photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,41,64,0) 55%, rgba(18,41,64,.28)); pointer-events: none; }

/* --- Ruled lists (formerly cards) ---------------------------------------- */
.card { border-top: 1px solid var(--navy); padding-top: 22px; background: transparent; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-muted); }
.on-dark .card { border-top-color: rgba(255,255,255,.4); }
.on-dark .card p { color: rgba(255,255,255,.82); }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover h3, a.card:hover h2 { color: var(--teal-deep); }
.card-icon { display: none; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--teal-deep); text-decoration: underline; text-underline-offset: 4px; }
a.card:hover .card-link { color: var(--navy); }
.card .meta { font-size: .9rem; color: var(--ink-faint); margin-bottom: 8px; }

/* Boxed panels stay boxed where the content is an offer, not a list */
.card.panel, .bg-tint .card { background: var(--paper-white); border: 1px solid var(--rule); border-top: 4px solid var(--navy); padding: 30px; border-radius: var(--r-md); }

/* --- Steps (a real sequence, so the numerals stay) ------------------------ */
.steps { counter-reset: step; display: grid; gap: 36px 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { border-top: 1px solid var(--navy); padding-top: 18px; }
.step::before {
  counter-increment: step; content: counter(step) ".";
  display: block; font-family: var(--font-serif); font-size: 2.4rem; line-height: 1;
  color: var(--teal-deep); margin-bottom: 14px;
}
.on-dark .step { border-top-color: rgba(255,255,255,.4); }
.on-dark .step::before { color: var(--teal); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-muted); }
.on-dark .step p { color: rgba(255,255,255,.8); }

/* --- Lists ---------------------------------------------------------------- */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B6E7F' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}
.on-dark .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2342B0C6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.ticks.crosses li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A97A3' stroke-width='3.5' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

/* --- Stats ---------------------------------------------------------------- */
.stats { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat-n { font-family: var(--font-serif); font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 400; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.on-dark .stat-n { color: var(--teal); }
.stat-l { font-size: .95rem; color: var(--ink-muted); margin-top: 10px; }
.on-dark .stat-l { color: rgba(255,255,255,.75); }

/* --- Pricing -------------------------------------------------------------- */
.price-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.plan {
  background: var(--paper-white); border: 1px solid var(--rule); border-top: 4px solid var(--navy);
  border-radius: var(--r-md); padding: 32px 30px; position: relative; height: 100%;
  display: flex; flex-direction: column;
}
.plan.featured { border-top-color: var(--teal); }
.plan-badge { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--teal-deep); margin-bottom: 10px; }
.plan h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.7rem; margin-bottom: 4px; }
.plan-for { color: var(--ink-faint); font-size: .95rem; margin-bottom: 22px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.plan-price b { font-family: var(--font-serif); font-size: 3rem; font-weight: 400; color: var(--navy); letter-spacing: -.02em; line-height: 1; }
.plan-price span { color: var(--ink-muted); font-size: 1rem; }
.plan-vat { font-size: .85rem; color: var(--ink-faint); margin-bottom: 24px; }
.plan .ticks { margin-bottom: 28px; font-size: .97rem; }
.plan .btn { margin-top: auto; }

/* --- Quotes --------------------------------------------------------------- */
.quote { font-family: var(--font-serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.45; color: var(--navy); font-style: italic; }
.on-dark .quote { color: #fff; }
.quote-attr { font-family: var(--font-sans); font-style: normal; font-size: .95rem; color: var(--ink-faint); margin-top: 14px; font-weight: 600; }
.on-dark .quote-attr { color: rgba(255,255,255,.7); }

.testimonial { border-left: 3px solid var(--teal); padding: 6px 0 6px 26px; }
.testimonial p { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.5; color: var(--navy); }
.stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 12px; font-size: .95rem; }

/* --- Callout / note ------------------------------------------------------- */
.callout { background: var(--amber-tint); border-left: 4px solid var(--amber); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 22px 26px; }
.callout h3 { color: #6E4706; font-size: 1.1rem; margin-bottom: 8px; }
.callout p { color: #5E4210; margin-bottom: 0; }
.note { border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 18px 22px; font-size: .96rem; color: var(--ink-muted); background: var(--paper-white); }

/* --- FAQ ------------------------------------------------------------------ */
.faq-list { border-top: 1px solid var(--navy); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 400; color: var(--navy); line-height: 1.35; }
.faq-q:hover { color: var(--teal-deep); }
.faq-icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--teal-deep); transition: transform .2s ease; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { padding-bottom: 24px; color: var(--ink-muted); max-width: 68ch; }
.faq-a[hidden] { display: none; }

/* --- Tables --------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: .98rem; background: var(--paper-white); }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { color: var(--navy); font-weight: 700; font-size: .95rem; border-bottom: 2px solid var(--navy); }
tbody tr:last-child td { border-bottom: 0; }

/* --- Team ----------------------------------------------------------------- */
.person img { border-radius: var(--r-md); aspect-ratio: 4/5; object-fit: cover; object-position: center top; margin-bottom: 18px; }
.person h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.35rem; margin-bottom: 2px; }
.person-role { color: var(--ink-faint); font-size: .95rem; margin-bottom: 14px; }
.person p { color: var(--ink-muted); font-size: .99rem; }

/* --- Forms ---------------------------------------------------------------- */
.form-card { background: var(--paper-white); border: 1px solid var(--rule); border-top: 4px solid var(--navy); border-radius: var(--r-md); padding: clamp(28px, 4vw, 44px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 7px; font-size: .96rem; }
.field .hint { display: block; font-weight: 400; color: var(--ink-faint); font-size: .88rem; margin-top: 2px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid #B9B2A6; border-radius: var(--r-sm); background: #fff; font-size: 1rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-deep); outline: 3px solid rgba(27,110,127,.18); outline-offset: 0; }
.field textarea { min-height: 128px; resize: vertical; }
.form-foot { font-size: .88rem; color: var(--ink-faint); margin-top: 16px; text-align: center; }

/* --- Language switch ------------------------------------------------------ */
.lang-pill { display: inline-flex; align-items: stretch; border: 1px solid var(--rule); border-radius: var(--r-sm); overflow: hidden; font-size: .84rem; font-weight: 700; line-height: 1; }
.lang-pill a, .lang-pill span { display: inline-flex; align-items: center; padding: 8px 12px; text-decoration: none; border-bottom: 0; }
.lang-pill span[aria-current] { background: var(--navy); color: #fff; }
.lang-pill a { color: var(--ink-muted); }
.lang-pill a:hover { background: var(--teal-tint); color: var(--navy); }
@media (max-width: 1040px) { .nav .lang-pill { margin-top: 12px; } }

/* --- Sticky mobile action bar --------------------------------------------- */
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--paper); border-top: 1px solid var(--rule); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
.mobile-cta .btn { flex: 1; padding: 13px 10px; font-size: 1rem; }
.mobile-cta .btn-whatsapp { background: #E4F3E9; color: #0E6B3A; border: 1.5px solid #B9DFC6; }
.mobile-cta .btn-whatsapp:hover { background: #D2EBDB; color: #0A5A30; }
@media (max-width: 720px) { .mobile-cta { display: flex; } body { padding-bottom: 76px; } }

/* --- Works-with strip ----------------------------------------------------- */
.works-with .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-block: 18px; }
.works-with p { font-size: .95rem; color: var(--ink-faint); margin: 0; }
.works-with ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.works-with li { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy); }

/* --- Google reviews block ------------------------------------------------- */
.greview { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 30px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 24px 0; }
.greview-score { font-family: var(--font-serif); font-size: 3.2rem; color: var(--navy); line-height: 1; }
.greview-stars { display: flex; gap: 3px; color: var(--amber); margin-bottom: 6px; }
.greview-label { font-size: .95rem; color: var(--ink-muted); }
.greview-link { margin-left: auto; font-weight: 700; }
@media (max-width: 560px) { .greview-link { margin-left: 0; } }
.on-dark .greview { border-color: rgba(255,255,255,.25); }
.on-dark .greview-score { color: #fff; }
.on-dark .greview-stars { color: var(--teal); }
.on-dark .greview-label { color: rgba(255,255,255,.75); }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.74); padding-block: clamp(52px, 6vw, 80px) 32px; font-size: .96rem; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; margin-bottom: 44px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img.footer-logo { height: 36px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-family: var(--font-serif); font-weight: 400; font-size: 1.15rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: rgba(255,255,255,.74); text-decoration: none; }
.site-footer li a { display: inline-block; padding-block: 4px; min-height: 24px; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.site-footer p { color: rgba(255,255,255,.7); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: .9rem; }
.badge { color: rgba(255,255,255,.85); }
.badge::before { content: "\2713\00a0"; color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-size: .87rem; color: rgba(255,255,255,.55); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; align-items: center; }

/* --- Utilities ------------------------------------------------------------ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.maxw-60 { max-width: 60ch; } .maxw-70 { max-width: 70ch; }

@media print {
  .site-header, .alert-bar, .site-footer, .btn, .mobile-cta { display: none; }
  body { color: #000; background: #fff; }
}

/* --- Legal pages ---------------------------------------------------------- */
.legal-body h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.legal-body h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal-body ul { margin: 0 0 18px 22px; }
.legal-body li { margin-bottom: 8px; color: var(--ink-muted); }
.legal-body .meta { color: var(--ink-faint); font-size: .95rem; margin-bottom: 28px; }

/* --- Blog article body ---------------------------------------------------- */
.article-body { font-size: 1.1rem; line-height: 1.7; }
.article-body h2 { font-size: 1.75rem; margin: 44px 0 14px; }
.article-body h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body .meta { color: var(--ink-faint); font-size: .95rem; }


/* A white checker/form card inside a navy section keeps its own ink colours */
.on-dark .form-card, .on-dark .form-card h3, .on-dark .form-card label, .on-dark .form-card legend { color: var(--navy); }
.on-dark .form-card p, .on-dark .form-card li, .on-dark .form-card .hint { color: var(--ink-muted); }
.on-dark .form-card a:not(.btn) { color: var(--teal-deep); }
.on-dark .form-card .checker-result strong { color: var(--navy); }

/* --- MTD checker (making-tax-digital.html, ro.html) ------------------------ */
.checker-title { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; color: var(--navy); margin-bottom: 6px; }
.checker fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.checker legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: .96rem; }
.checker .radio { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; margin-bottom: 8px; cursor: pointer; }
.checker .radio input { width: auto; margin-top: 4px; }
.checker-result { margin-top: 22px; padding: 18px 20px; background: var(--teal-tint); border-left: 4px solid var(--teal-deep); }
.checker-result strong { color: var(--navy); }
.checker-result p { margin-bottom: 8px; }
.checker-result p:last-child { margin-bottom: 0; }
.checker-result.is-clear { background: var(--paper-warm); border-left-color: var(--rule); }
