/* ==========================================================================
   Gibberish Limited - shared stylesheet
   One file, linked by every page, so design stays consistent.
   Palette and type are set as variables at the top: change them once here.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700&family=IBM+Plex+Mono:wght@400;500&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
  /* Colour */
  --ink: #12222b;          /* primary dark, headings, dark sections */
  --ink-soft: #1d3038;     /* alt dark surface */
  --paper: #f5f6f7;        /* page background (cool off-white) */
  --surface: #ffffff;      /* cards and raised surfaces */
  --text: #12222b;         /* body text on light */
  --muted: #52616a;        /* secondary text on light */
  --accent: #0a7061;       /* links, buttons, marks (AA on white) */
  --accent-hover: #0b5e52;
  --accent-light: #4fc9b8; /* accent for use on dark backgrounds */
  --line: #e1e4e6;         /* hairline borders */
  --on-dark: #eaf1f0;      /* text on dark sections */
  --muted-dark: #9fb2b3;   /* secondary text on dark */

  /* Type */
  --display: "Bricolage Grotesque", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --step-0: 1.0625rem;   /* 17px body */
  --step-1: 1.28rem;
  --step-2: 1.62rem;
  --step-3: 2.05rem;
  --step-4: 2.6rem;
  --step-5: clamp(2.6rem, 1.6rem + 4vw, 4.1rem);

  /* Space + shape */
  --wrap: 1140px;
  --radius: 10px;
  --radius-lg: 16px;
  --gap: clamp(1.25rem, 0.8rem + 1.6vw, 2rem);
  --section-y: clamp(3.5rem, 2.4rem + 4vw, 6rem);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: var(--step-5); font-weight: 700; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1rem; max-width: 68ch; }

/* Accessibility helpers -------------------------------------------------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 0.75rem 1rem; border-radius: 0 0 var(--radius) 0; z-index: 200;
}
.skip:focus { left: 0; color: #fff; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Layout ----------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.eyebrow {
  font-family: var(--mono); font-size: 0.82rem; font-weight: 500;
  color: var(--accent); margin: 0 0 0.9rem; letter-spacing: 0.01em;
}
.section--dark .eyebrow { color: var(--accent-light); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: 0.55rem; font-family: var(--display); font-weight: 700; font-size: 1.32rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand__dot { color: var(--accent); }
.brand__tag { font-family: var(--body); font-weight: 500; font-size: 0.8rem; color: var(--muted); letter-spacing: 0; }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 0.35rem; margin: 0; padding: 0; }
.nav__list a {
  display: inline-block; padding: 0.5rem 0.7rem; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem;
}
.nav__list a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-hover); }
.nav__list a[aria-current="page"] { color: var(--accent); }
.nav__cta { margin-left: 0.4rem; }
.nav-toggle { display: none; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  padding: 0.72rem 1.15rem; border-radius: var(--radius); font-weight: 600;
  font-size: 0.98rem; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-family: var(--body);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hover); background: transparent; }
.section--dark .btn-ghost { color: var(--on-dark); border-color: rgba(255,255,255,0.28); }
.section--dark .btn-ghost:hover { border-color: var(--accent-light); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Hero ------------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4rem); }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 1.1rem; }

/* Trust row -------------------------------------------------------------- */
.trustrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem;
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.92rem; font-weight: 500;
}
.trustrow__item { display: inline-flex; align-items: center; gap: 0.45rem; }
.stars { color: #d98b17; letter-spacing: 0.05em; }
.trustrow a { font-weight: 600; }

/* Grid + service blocks -------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 1vw, 2rem);
}
.card h3 { margin-top: 0.2rem; }
.card__mark {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-hover);
  margin-bottom: 1rem; font-size: 1.35rem;
}
.card__link { font-weight: 600; text-decoration: none; }
.card__link:hover { text-decoration: underline; }

/* Feature block (asymmetric, numbered only where it is a real sequence) --- */
.feature { border-top: 1px solid var(--line); padding-top: 1.6rem; margin-top: 1.6rem; }
.feature:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.feature h3 { margin-bottom: 0.3rem; }

/* Checklists ------------------------------------------------------------- */
.ticks { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg); transform-origin: center;
}
.section--dark .ticks li::before { border-color: var(--accent-light); }
.crosses { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.crosses li { position: relative; padding-left: 1.9rem; color: var(--muted); }
.crosses li::before { content: "\00d7"; position: absolute; left: 0.2rem; top: 0; color: #b23b3b; font-weight: 700; }

/* Tag list --------------------------------------------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; padding: 0; list-style: none; }
.tags li {
  font-size: 0.85rem; color: var(--muted); background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.28rem 0.75rem;
}
.section--dark .tags li { background: transparent; border-color: rgba(255,255,255,0.2); color: var(--muted-dark); }

/* Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: 0.5rem; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: var(--step-3); color: var(--ink); line-height: 1; }
.section--dark .stat__num { color: #fff; }
.stat__label { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; }
.section--dark .stat__label { color: var(--muted-dark); }

/* Dark section ----------------------------------------------------------- */
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: var(--on-dark); }
.section--dark .lede { color: var(--muted-dark); }

/* Urgency / notice strip ------------------------------------------------- */
.notice {
  background: var(--ink-soft); color: var(--on-dark); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); display: grid; gap: 1rem;
}
.notice h2, .notice h3 { color: #fff; }
.notice p { color: var(--on-dark); }

/* Pricing ---------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 1vw, 2.2rem); }
.price--feature { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price__name { font-weight: 600; font-family: var(--display); font-size: var(--step-1); }
.price__amount { font-family: var(--display); font-weight: 700; font-size: var(--step-3); margin: 0.4rem 0 0.2rem; }
.price__amount span { font-family: var(--body); font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price__note { color: var(--muted); font-size: 0.95rem; }

/* Reviews / testimonials ------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; display: flex; flex-direction: column; }
.quote__stars { color: #d98b17; letter-spacing: 0.05em; margin-bottom: 0.7rem; }
.quote p { font-size: 1.02rem; }
.quote__who { margin-top: auto; padding-top: 0.9rem; color: var(--muted); font-size: 0.9rem; }
.quote__who strong { color: var(--ink); display: block; font-weight: 600; }

/* FAQ accordion ---------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0; font-family: var(--display); font-weight: 600;
  font-size: var(--step-1); color: var(--ink); position: relative;
}
.faq__q::after {
  content: "+"; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%);
  font-family: var(--body); font-weight: 400; font-size: 1.6rem; color: var(--accent); line-height: 1;
}
.faq__q[aria-expanded="true"]::after { content: "\2013"; }
.faq__a { padding: 0 0 1.3rem; max-width: 72ch; }
.faq__a p { color: var(--muted); }
.faq__a[hidden] { display: none; }

/* Forms ------------------------------------------------------------------ */
.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea {
  font-family: var(--body); font-size: var(--step-0); padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.form__note { font-size: 0.88rem; color: var(--muted); }

/* Contact detail list ---------------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.contact-list__k { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); text-transform: none; }
.contact-list a { font-weight: 600; }

/* Prose (for text-heavy pages like regulatory readiness) ------------------ */
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .stamp {
  font-family: var(--mono); font-size: 0.85rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 0.7rem 0.9rem; display: inline-block; margin-bottom: 1.5rem;
}
.callout {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem; margin: 1.6rem 0;
}
.callout strong { color: var(--ink); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: var(--muted-dark); margin-top: 0.8rem; font-size: 0.95rem; }
.footer-col h4 { color: #fff; font-family: var(--body); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14);
  color: var(--muted-dark); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center;
}
.footer-bottom .mono { font-family: var(--mono); }

/* Reveal (single, gentle, reduced-motion safe) --------------------------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 0.75rem 1.25rem 1.25rem;
    display: none; max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav__list a { padding: 0.75rem 0.5rem; border-radius: var(--radius); }
  .nav__cta { margin: 0.5rem 0 0; }
  .nav__cta .btn { width: 100%; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; margin-left: auto;
    background: none; border: 1.5px solid var(--line); border-radius: var(--radius);
    padding: 0.5rem 0.8rem; font-family: var(--body); font-weight: 600; font-size: 0.95rem;
    color: var(--ink); cursor: pointer;
  }
}
@media (max-width: 900px) {
  .grid-3, .grid-2, .quotes, .stats, .price-grid, .footer-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
}
