/* ==========================================================================
   Xpandee: site styles
   Edit colours and fonts in :root. Everything else reads from these tokens.
   ========================================================================== */

:root {
  /* Brand */
  --accent: #0b5d57;        /* deep teal, 7.7:1 on white */
  --accent-ink: #084a45;    /* hover / pressed */
  --accent-tint: #e3f1ef;   /* soft teal surface */
  --accent-soft: #9fd3cb;   /* decorative only, never for text */

  /* Neutrals */
  --ink: #14161a;           /* headings and body */
  --ink-2: #4a4d55;         /* supporting text, 7.9:1 on --bg-soft */
  --ink-3: #6b6e76;         /* captions, 5.1:1 on white */
  --bg: #ffffff;
  --bg-soft: #f7f6f2;
  --line: #e4e2db;
  --line-strong: #cfccc2;

  /* Placeholder highlight (for [[FILL]] values) */
  --fill-bg: #fff4d6;
  --fill-ink: #7a4b00;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --radius-lg: 18px;
  --header-h: 68px;
  --section-y: clamp(64px, 9vw, 112px);

  --shadow-card: 0 1px 2px rgb(20 22 26 / 4%), 0 8px 24px -12px rgb(20 22 26 / 12%);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); font-optical-sizing: auto; }
h1 { font-size: clamp(2.35rem, 6.2vw, 4.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
em { font-style: italic; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--ink-2); font-size: 1.125rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.lede { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--ink-2); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  cursor: pointer;
}
.btn:hover { --btn-bg: var(--accent-ink); --btn-bd: var(--accent-ink); color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--bg); --btn-fg: var(--accent); --btn-bd: var(--accent); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--accent-ink); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--accent-tint); --btn-fg: var(--accent-ink); --btn-bd: var(--accent-tint); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 45%); }
.btn--outline-light:hover { --btn-bg: rgb(255 255 255 / 10%); --btn-fg: #fff; --btn-bd: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgb(255 255 255 / 88%);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: none; object-fit: contain; }
.brand__word { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; letter-spacing: -.01em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { list-style: none; display: flex; gap: 26px; }
.nav__link { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9688rem; padding: 6px 0; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); border-radius: 2px; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .2s;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  /* Panel drops below the header, so opening it never shifts the page. */
  .nav {
    /* The header's backdrop-filter makes it the containing block, so size by viewport, not bottom: 0. */
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px var(--gutter) 40px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 16px 0; font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--accent); }
  .nav .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1.08fr .92fr; } }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero .lede { margin-bottom: 32px; }

.hero__orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.orb--1 { width: 460px; height: 460px; background: radial-gradient(circle at 30% 30%, #bfe6df, transparent 70%); top: -140px; right: -80px; animation: drift-a 18s ease-in-out infinite alternate; }
.orb--2 { width: 380px; height: 380px; background: radial-gradient(circle at 50% 50%, #f1e6cf, transparent 70%); bottom: -160px; left: -100px; animation: drift-b 22s ease-in-out infinite alternate; }
.orb--3 { width: 260px; height: 260px; background: radial-gradient(circle at 50% 50%, #d4ece8, transparent 70%); top: 40%; left: 45%; animation: drift-a 26s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate(-60px, 50px) scale(1.08); } }
@keyframes drift-b { to { transform: translate(70px, -40px) scale(1.12); } }

/* Decorative search term panel */
.mock {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgb(11 93 87 / 28%), var(--shadow-card);
  overflow: hidden; font-size: .875rem;
}
.mock__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock__dots { display: flex; gap: 6px; }
.mock__dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock__title { font-weight: 600; color: var(--ink-2); font-size: .8125rem; }
.mock__tag { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mock__chart { padding: 18px 18px 8px; }
.mock__legend { display: flex; gap: 16px; margin-bottom: 10px; font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key::before { content: ""; width: 14px; height: 3px; border-radius: 3px; }
.key--sales::before { background: var(--accent); }
.key--acos::before { background: #d9893b; }
.chart { width: 100%; height: 190px; overflow: visible; }
.chart__grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.chart__bars rect { fill: var(--accent-tint); }
.chart__area { fill: rgb(11 93 87 / 7%); }
.chart__line { fill: none; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.chart__line--sales { stroke: var(--accent); }
.chart__line--acos { stroke: #d9893b; }
.chart__dot--sales { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.chart__dot--acos { fill: #d9893b; stroke: #fff; stroke-width: 2; }
.js .chart__line { stroke-dashoffset: 1; animation: draw 1.8s var(--ease) .3s forwards; }
.js .chart__line--acos { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mock__tiles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.tile { padding: 14px 16px; display: grid; gap: 6px; }
.tile + .tile { border-left: 1px solid var(--line); }
.tile__label { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tile svg { width: 100%; height: 22px; }
.tile path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tile__dir { font-size: .75rem; font-weight: 600; color: var(--accent-ink); }
.tile__dir--down { color: #8a4a12; }
@media (max-width: 420px) { .tile { padding: 12px 10px; } .tile__label { letter-spacing: .02em; } }
.mock__foot { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-2); font-size: .8125rem; }
.mock__foot svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.mock-note { margin-top: 10px; font-size: .75rem; color: var(--ink-3); text-align: right; }


/* ---------- Marketplace strip ---------- */
.markets { border-block: 1px solid var(--line); background: var(--bg); }
.markets .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: 26px; }
.markets__label { font-size: .875rem; font-weight: 600; color: var(--ink-2); margin: 0; }
.markets__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.market {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 8px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .875rem; font-weight: 600; color: var(--ink); background: var(--bg);
}
.market__code { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--accent-tint); color: var(--accent-ink); font-size: .6875rem; letter-spacing: .04em; }
.market--feature { border-color: var(--accent); }
.market--feature .market__code { background: var(--accent); color: #fff; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.section--soft .card { background: var(--bg); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); margin-bottom: 0; font-size: 1rem; }
.card--link:hover { border-color: var(--accent-soft); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.card--link .card__cta { margin-top: 20px; }
/* Make the whole card clickable while keeping one real link inside it. */
.card--link .stretched { color: inherit; text-decoration: none; }
.card--link .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent); margin-bottom: 20px;
}
.icon svg { width: 24px; height: 24px; }

/* Problems */
.problem { padding: 24px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); }
.problem__num { font-family: var(--font-display); font-size: 1rem; color: var(--accent); margin-bottom: 14px; display: block; }
.problem h3 { font-size: 1.15rem; }
.problem p { color: var(--ink-2); font-size: .975rem; margin: 0; }

/* ---------- Why Xpandee ---------- */
.why { display: grid; gap: clamp(40px, 6vw, 72px); align-items: start; }
@media (min-width: 960px) { .why { grid-template-columns: .85fr 1.15fr; } .why__intro { position: sticky; top: calc(var(--header-h) + 32px); } }
.why__list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.why__item { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.why__item .icon { width: 44px; height: 44px; margin: 0; }
.why__item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.why__item p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* ---------- Case study cards ---------- */
.case { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.case__head { padding: 28px 28px 0; }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.tag--accent { background: var(--accent-tint); color: var(--accent-ink); border-color: transparent; }
.case h3 { font-size: 1.4rem; }
.case__summary { color: var(--ink-2); font-size: 1rem; }
.case__metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); margin-top: auto; }
.case__foot { padding: 18px 28px; border-top: 1px solid var(--line); }

.metric { background: var(--bg); padding: 20px 22px; }
.metric__label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.metric__value { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.05; color: var(--ink); letter-spacing: -.02em; }
.metric__change { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: .875rem; color: var(--ink-2); margin-top: 6px; }
.metric__arrow { color: var(--accent); font-weight: 600; }

/* [[FILL]] placeholders: deliberately loud so none ship by accident. */
.fill { display: inline-block; background: var(--fill-bg); color: var(--fill-ink); border: 1px dashed #e0b44c; border-radius: 6px; padding: 1px 6px; font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: 0; line-height: 1.5; vertical-align: middle; }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 32px 28px 28px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 20px; }
.step h3 { margin-bottom: 8px; }
.step > p { color: var(--ink-2); font-size: 1rem; }
.checks { list-style: none; display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .9375rem; color: var(--ink); line-height: 1.45; }
.checks svg { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq__icon { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s, border-color .2s; }
.faq__icon svg { width: 14px; height: 14px; }
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq__body { padding: 0 52px 24px 0; color: var(--ink-2); }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--accent); color: #fff; border-radius: 28px; padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px); }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgb(255 255 255 / 85%); max-width: 52ch; font-size: 1.125rem; margin-bottom: 28px; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cta-band::before { width: 420px; height: 420px; right: -120px; top: -160px; background: radial-gradient(circle, rgb(255 255 255 / 16%), transparent 70%); }
.cta-band::after { width: 300px; height: 300px; right: 18%; bottom: -200px; border: 1px solid rgb(255 255 255 / 18%); }
.cta-band > * { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1214; color: #c9ccd1; padding-block: 64px 32px; font-size: .9375rem; }
.site-footer a { color: #e7e9ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand:hover { text-decoration: none; }
.footer__about { max-width: 34ch; color: #a9adb4; }
.footer__heading { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8b9098; margin-bottom: 14px; }
.footer__list { list-style: none; display: grid; gap: 10px; }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #262a2e; display: grid; gap: 12px; font-size: .8125rem; color: #8b9098; }
@media (min-width: 820px) { .footer__legal { grid-template-columns: auto 1fr; gap: 32px; } .footer__disclaimer { text-align: right; } }
.footer__disclaimer { margin: 0; max-width: 70ch; justify-self: end; }
.footer__legal p { margin: 0; }

/* ---------- Scroll reveal ---------- */
/* Hidden only when JS has run, so content is never lost without it. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-group > .reveal:nth-child(2) { transition-delay: .07s; }
.js .reveal-group > .reveal:nth-child(3) { transition-delay: .14s; }
.js .reveal-group > .reveal:nth-child(4) { transition-delay: .21s; }
.js .reveal-group > .reveal:nth-child(5) { transition-delay: .28s; }
.js .reveal-group > .reveal:nth-child(6) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .orb { animation: none; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* Page hero */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); border-bottom: 1px solid var(--line); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 20ch; }
.page-hero .lede { max-width: 60ch; }
.page-hero .orb--1 { width: 380px; height: 380px; top: -160px; right: -60px; }

/* In-page jump links */
.subnav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.subnav a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--ink); text-decoration: none; font-size: .9063rem; font-weight: 600; transition: border-color .2s, color .2s, background .2s; }
.subnav a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }

/* Services detail */
.service { display: grid; gap: clamp(28px, 4vw, 56px); padding-block: clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.service:last-of-type { border-bottom: 0; }
@media (min-width: 960px) { .service { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.service__num { font-family: var(--font-display); font-size: 1rem; color: var(--accent); display: block; margin-bottom: 10px; }
.service h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
.service__intro { color: var(--ink-2); font-size: 1.0938rem; max-width: 60ch; }
.service .checks { border-top: 0; margin-top: 24px; padding-top: 0; gap: 12px; }
@media (min-width: 640px) { .service .checks { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.aside-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.aside-card ul { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.aside-card li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: .975rem; line-height: 1.5; }
.aside-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.aside-card .badge { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; margin-bottom: 14px; }

/* Full case studies */
.case-full { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 24px); }
.case-full + .case-full { margin-top: 32px; }
.case-full__head { padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 40px) 0; }
.case-full h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); max-width: 28ch; }
.case-full__body { display: grid; gap: 28px; padding: 8px clamp(24px, 4vw, 40px) clamp(28px, 4vw, 40px); }
@media (min-width: 900px) { .case-full__body { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.case-full h3 { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.case-full__body p { color: var(--ink-2); }
.case-full ol { list-style: none; display: grid; gap: 12px; counter-reset: act; }
.case-full ol li { counter-increment: act; display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.case-full ol li::before { content: counter(act); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-ink); font-size: .8125rem; font-weight: 600; }
.case-full .case__metrics { margin-top: 0; }
.metric__from { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }

/* About */
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.prose-lg p { font-size: 1.125rem; color: var(--ink-2); }
.prose-lg p strong { color: var(--ink); font-weight: 600; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .9375rem; font-weight: 600; color: var(--ink); }
.compare { display: grid; gap: 20px; }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare .card h3 { display: flex; align-items: center; gap: 10px; }
.compare ul { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.compare li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ink-2); font-size: .975rem; line-height: 1.5; }
.compare li svg { width: 18px; height: 18px; margin-top: 2px; }
.compare .card--muted { background: var(--bg-soft); }
.compare .card--muted svg { color: var(--ink-3); }
.compare .card--accent { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.compare .card--accent svg { color: var(--accent); }

/* Contact */
.contact-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.45fr .85fr; } }
.cal-frame { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); }
.cal-frame__head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cal-frame__head h2 { font-size: 1.35rem; margin: 0; }
.cal-frame iframe { display: block; width: 100%; height: 760px; border: 0; background: var(--bg-soft); }
.contact-side { display: grid; gap: 20px; }
.contact-list { list-style: none; display: grid; gap: 4px; }
.contact-list a { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 12px; margin-inline: -12px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background .2s; }
.contact-list a:hover { background: var(--bg-soft); color: var(--ink); }
.contact-list .icon { width: 40px; height: 40px; margin: 0; border-radius: 10px; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--ink-3); font-size: .8125rem; font-weight: 600; }
.contact-list strong { font-weight: 600; word-break: break-word; }

/* Form */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 13px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(11 93 87 / 18%); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .9375rem; font-weight: 600; margin: 0; }
.form-status--ok { color: var(--accent-ink); }
.form-status--err { color: #a12d14; }

/* Legal prose */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; display: grid; gap: 6px; }
.prose .updated { font-size: .9375rem; color: var(--ink-3); }

/* 404 */
.not-found { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding-block: 80px; }
.not-found__code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--accent); margin-bottom: 8px; letter-spacing: -.04em; }
.not-found .btn-row { justify-content: center; }
.aside-card .contact-list { margin-bottom: 0; }
.aside-card .contact-list li { padding-left: 0; }
.aside-card .contact-list li::before { display: none; }
.chips--spaced { margin-top: 24px; }

/* ---------- Free audit: guide + upload ---------- */
.audit-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 1000px) { .audit-grid { grid-template-columns: 1.1fr .9fr; } }
.guide__title { font-size: 1.45rem; margin-bottom: 6px; }
.guide__intro { color: var(--ink-2); margin-bottom: 24px; }
.guide__steps { list-style: none; display: grid; gap: 0; }
.guide__step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 26px; }
.guide__step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 42px; bottom: 6px; width: 2px; background: var(--line); }
.guide__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 1.1rem; position: relative; z-index: 1; }
.guide__step h4 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; margin: 8px 0 4px; line-height: 1.3; }
.guide__step p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.guide__step em { font-style: normal; font-weight: 600; color: var(--ink); }
.ui { display: inline-block; padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg); color: var(--ink); font-size: .875rem; font-weight: 600; line-height: 1.6; white-space: nowrap; box-shadow: 0 1px 0 var(--line); }
.ui--primary { background: #232f3e; border-color: #232f3e; color: #fff; }
.ui--icon { padding: 0 6px; }
.guide__ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.guide__ticks li { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--ink-2); padding: 3px 9px 3px 6px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); }
.guide__ticks li::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.guide__tip { margin: 4px 0 0 56px; padding: 14px 16px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-ink); font-size: .9375rem; }
.guide__tip strong { font-weight: 600; }
@media (max-width: 520px) { .guide__tip { margin-left: 0; } }

.audit-form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-card); }
@media (min-width: 1000px) { .audit-form-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.audit-form-card h3 { font-size: 1.45rem; margin-bottom: 18px; }
.field__label { font-size: .875rem; font-weight: 600; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 26px 18px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--bg-soft); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 4px; }
.dropzone__text { font-size: .9688rem; color: var(--ink-2); }
.dropzone__text strong { color: var(--accent); font-weight: 600; }
.dropzone__hint { font-size: .8125rem; color: var(--ink-3); }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-tint); }
.dropzone:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
/* Input covers the zone so clicks and drops land on it, but stays invisible. */
.dropzone__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-list { list-style: none; display: grid; gap: 6px; }
.file-list:empty { display: none; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; padding: 8px 12px; border-radius: 8px; background: var(--accent-tint); color: var(--accent-ink); font-weight: 600; }
.file-list li span:last-child { font-weight: 400; white-space: nowrap; }
.file-list li.is-bad { background: #fbe9e4; color: #8a2e17; }
.form-note { font-size: .8125rem; color: var(--ink-3); margin: 0; }
.form .btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* Screenshot guide popup */
.guide__shots { margin: -8px 0 26px; }
.guide__shots svg { width: 18px; height: 18px; }
.guide__shots:hover svg { transform: none; }
.shot-dialog { width: min(1100px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 45%); overflow: hidden; }
.shot-dialog::backdrop { background: rgb(15 18 20 / 65%); backdrop-filter: blur(3px); }
.shot-dialog[open] { display: flex; flex-direction: column; animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.shot-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.shot-dialog__bar h3 { font-size: 1.15rem; margin: 0; }
.shot-dialog__close { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.shot-dialog__close:hover { border-color: var(--accent); color: var(--accent); }
.shot-dialog__close svg { width: 18px; height: 18px; }
.shot-dialog__body { overflow: auto; padding: 12px; background: var(--bg-soft); }
.shot-dialog__body img { width: 100%; height: auto; border-radius: 10px; }
@media (max-width: 700px) { .shot-dialog__body img { width: 900px; max-width: none; } }
body.dialog-open { overflow: hidden; }

/* Contact: Cal.com inline embed and audit alternative */
.contact-hero__alt { margin-top: 24px; }
.cal-inline { min-height: 640px; background: var(--bg); }
.cal-fallback { padding: 24px; color: var(--ink-3); font-size: .9375rem; margin: 0; }
.aside-card--accent { background: var(--accent-tint); border-color: transparent; }
.aside-card--accent p { color: var(--accent-ink); font-size: .975rem; }

/* Legal links sit inside a line of text, so underline them (not colour alone). */
.footer__legal a { text-decoration: underline; text-underline-offset: .2em; }
