/* ==========================================================================
   The calm pass, 2026-10-29. Edgar: x3web.co.za reads "smoother, neater, more
   professional" than ours. Measured there: ONE typeface (Inter Variable) at
   light-medium weights (h1 480, h2 420, h3 450), tight tracking (about -3%),
   body 16px at 1.6, lead 18px at 1.6, warm grey grounds (#ebe7e1 / #edecea /
   #f9f9f9) with white surfaces, one section padding (85px at 1024, 56px on a
   phone), buttons 16px weight 500, logos big and grey.

   What this layer does: loads after new-styles.css on new-home.html only and
   overrides the tokens and base roles. Folded into new-styles.css on promote.
   Brand stays the four colours: every tone below is a color-mix of them.
   ========================================================================== */

:root {
  /* One face. Poppins (picked 2026-10-26) comes off: two faces read busier,
     and the "nicer font" Edgar saw on x3web is Inter alone at a lighter weight. */
  --text-font: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Type scale: calmer top, x3web's proportions (h2 nearly h1 size, h3 small) */
  /* Edgar 2026-10-29 on the first round: "this is too small". Up a step at
     the wide end: h1 62px at 1440 (70 cap), h2 52 (56 cap), lead 20. */
  --fs-h1: clamp(2.3rem, 0.9rem + 3.3vw, 4.4rem);      /* 37 -> 70 */
  --fs-h2: clamp(2rem, 1rem + 2.5vw, 3.5rem);          /* 32 -> 56 */
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);     /* 20 -> 24 */
  --fs-h4: 1.125rem;
  --fs-lead: clamp(1.0625rem, 0.9rem + 0.5vw, 1.25rem); /* 17 -> 20 */
  --fs-body: 1rem;                                      /* 16, phones 17 below */
  --fs-small: 0.9rem;
  --fs-micro: 0.8rem;

  /* Warm grounds, mixed from the four tokens: coral and teal meet in a warm
     grey, a little of it into paper warms the page without pink or beige.
     ground ~#f8f8f7 (near white), ground-alt ~#eeecec (x3web's #edecea). */
  --warm: color-mix(in srgb, var(--coral) 50%, var(--teal));
  --ground: color-mix(in srgb, var(--paper) 98%, var(--warm));
  --ground-alt: color-mix(in srgb, color-mix(in srgb, var(--paper) 93%, var(--warm)) 97%, var(--ink));
  --surface: var(--paper);
  --text-muted: color-mix(in srgb, var(--ink) 70%, var(--paper));  /* ~#5e5e5e, 6.6:1 on paper */

  /* Space: one section rhythm, tighter than before (was up to 136px) */
  --band: clamp(3.5rem, 2.5rem + 3vw, 5rem);           /* 56 -> 80, the --pad-band token at 1440 */
  --pad-band: var(--band);                             /* the two spacing tokens the sweep reads (QUALITY-STANDARDS, Spacing) */
  --gap-section: 0px;                                  /* bands meet edge to edge; every gap is a band's own padding */
  --band-tight: clamp(2.5rem, 2rem + 2vw, 4rem);
  --container: min(100% - var(--gutter) * 2, 1200px);
  --pad-card: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --gap-grid: clamp(1rem, 0.6rem + 1.2vw, 1.5rem);
  --r-card: 8px;   /* crisper, as x3web's near-square cards (round 3) */
}

/* ------------------------------ Backdrop, round 3 ----------------------- */
/* Edgar: theirs is "smoother, more professional". Lighter weight, slower float.
   The chevrons stay behind every paper section on every page at the hero's
   strength, no fade on scroll (Edgar 2026-10-30, reverses round 3's fade-out). */
.backdrop--mark .bm-1 { stroke: color-mix(in srgb, var(--teal) 20%, transparent); }
.backdrop--mark .bm-2 { stroke: color-mix(in srgb, var(--coral) 15%, transparent); }
.backdrop--mark .bm-a { animation-duration: 16s; }
.backdrop--mark .bm-b { animation-duration: 20s; }

/* ------------------------------ Round 4: the reviewer's critique against x3web ------------------ */
/* 1. The Ask Ed launcher was the busiest thing on either page (bobbing robot,
   a badge, a speech bubble, 178x80). One quiet pill with a small still Ed. */
.chat-teaser { display: none !important; }
.chat-badge { display: none !important; }
.ed-wrap { width: 48px; height: 48px; filter: none; }
.chat-launch .ed-body, .chat-launch .ed-mic { animation: none !important; }
.chat-launch.has-ed > span:not(.chat-badge) { font-weight: 500; font-size: 0.95rem; padding: 0.55rem 1rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.chat-launch.is-nudged { animation: none; }
@media (max-width: 600px) { .ed-wrap { width: 44px; height: 44px; } }
/* 2. Looping motion off outside the hero's entrance: no floating phone. */
.hero.is-in .hero-panel.is-phone { animation: none; }
/* 3. Reading sizes: body 17 at 1.6, tick lists at body size, muted text a touch darker. */
:root { --fs-body: 1.0625rem; --text-muted: color-mix(in srgb, var(--ink) 76%, var(--paper)); }
.facts li, .checks li { font-size: 1rem; }
/* 4. One primary button: the pricing buttons go coral like every other primary. */
.pcard .btn--ink { background: var(--coral-deep); }
.pcard .btn--ink:hover { background: var(--ink); }
/* 5. One frame per card: a hairline, no shadow under it (x3web uses one or the other, never both). */
.card, .svc, .faq-card, .review, .work-shot, .pcard { box-shadow: none; }
.card--lift:hover, .work-tile:hover .work-shot { box-shadow: none; transform: none; }
.faq-card[open] { box-shadow: none; }
/* 6. The hero chevrons a shade lighter still. */
.backdrop--mark .bm-1 { stroke: color-mix(in srgb, var(--teal) 16%, transparent); }
.backdrop--mark .bm-2 { stroke: color-mix(in srgb, var(--coral) 12%, transparent); }
/* 7. On a phone the chevrons take too much attention (Edgar 2026-10-30): half strength. */
@media (max-width: 600px) {
  .backdrop--mark .bm-1 { stroke: color-mix(in srgb, var(--teal) 8%, transparent); }
  .backdrop--mark .bm-2 { stroke: color-mix(in srgb, var(--coral) 6%, transparent); }
}
/* 8. Phones: no cart in the header (it read as a shop); the promo as a text line. */
@media (max-width: 900px) { .nav-end .cart-btn { display: none; } }
@media (max-width: 600px) {
  .promo { background: none; color: var(--text); padding: 0; border-radius: 0; gap: var(--s3); }
  .promo b { color: var(--coral-deep); border-right-color: var(--line-strong); }
}

/* ------------------------------ Phone action bar (round 5) -------------- */
/* On a phone the two actions ride along the bottom edge, as on x3web; the
   Ask Ed pill moves up above it and the footer leaves room underneath. */
.phone-bar { display: none; }
@media (max-width: 600px) {
  .phone-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 48;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--ground); border-top: 1px solid var(--line);
  }
  .phone-bar .btn { min-height: 48px; padding: 0 0.75rem; font-size: 0.95rem; white-space: nowrap; }
  .chat-launch { bottom: calc(68px + env(safe-area-inset-bottom) + 12px); }
  .site-footer { padding-bottom: calc(var(--s6) + 68px + 56px + env(safe-area-inset-bottom)); }  /* the bar plus the launcher above it (Apple pass 6) */
}

/* ------------------------------ Apple pass, 2026-10-29 ------------------ */
/* Every in-page landing clears the fixed header, whichever way it arrives
   (a hash, keyboard, history, reduced motion): the same 8px Lenis uses. */
html { scroll-padding-top: calc(var(--header-h) + 8px); }
/* The h1 breaks evenly on a phone, no one-word last line */
h1 { text-wrap: balance; }
/* Three controls that answered nothing on hover */
.faq-card:hover { border-color: var(--line-strong); }
.foot-col a:hover { color: var(--paper); }
.chat-launch.has-ed:hover > span:not(.chat-badge) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chat-launch.has-ed:hover .ed-wrap { transform: none; }

/* ------------------------------ Less movement, round 3 ------------------ */
.logo-track { animation-duration: 90s; }
.mq-track--left { animation-duration: 120s; }
.mq-track--right { animation-duration: 132s; }

/* ------------------------------ Header, round 3 ------------------------- */
/* An agency header ends in "Get in touch", not a shopping cart. The cart
   stays, quieter, beside it. */
.nav-end { gap: var(--s3); }
.nav-end .nav-cta { min-height: 48px; padding: 0 1.15rem; font-size: 0.95rem; }   /* one compact button role with the phone bar (Apple pass 14) */
.cart-btn { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.cart-btn:hover { background: var(--ink); color: var(--paper); transform: none; box-shadow: none; }
.site-header.on-ink .cart-btn { background: transparent; color: var(--paper); border-color: var(--line-on-ink); }
.site-header.on-ink .cart-btn:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 900px) { .nav-end .nav-cta { display: none; } }

/* ------------------------------ Type roles ------------------------------ */
body { line-height: 1.6; background: var(--ground); }
h1, h2, h3, h4 { font-weight: 450; letter-spacing: -0.035em; }
h1 { line-height: 1.04; }
h2 { line-height: 1.08; }
h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
h4 { font-weight: 500; letter-spacing: -0.015em; }
/* The accent word is red, same weight as the rest (Edgar 2026-10-29, second
   round, pointing at x3web's "Start": "to start must be red. I don't like that
   bold thing"). Coral on paper at display size: 3.9:1, over the 3:1 large bar. */
h1 .accent, h2 .accent, h3 .accent, h1 .cycle, h2 em, h1 em { font-weight: inherit; color: var(--coral); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-muted); max-width: 44ch; }
/* Section heads centred, the lead centred under them, as on x3web ("can I get
   our headings and text look like this? Almost exactly"). */
.head { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: var(--s5); }
.head .kicker { justify-content: center; }
.head .lead { font-weight: 400; color: var(--text-muted); margin-top: var(--s4); margin-inline: auto; max-width: 40ch; }
.head-end { justify-self: center; align-items: center; }
.faq-grid { grid-template-columns: minmax(0, 1fr); }
.faq-side { text-align: center; }
.faq-side .kicker { justify-content: center; }
p { text-wrap: pretty; }
/* Running copy inside panels reads soft, the heading carries the ink */
.step p, .pcard > p, .faq-card p, .service-panel > p, .foot-brand p { color: var(--text-muted); }
b, strong { font-weight: 600; }

/* ------------------------------ Section label --------------------------- */
/* Edgar, 2026-10-29: x3web's dash + "SERVICES" becomes our own mark + the word,
   normal case ("I don't want capitals"). The two chevrons are the logo's. */
.kicker {
  display: flex; align-items: center; gap: 0.4rem;   /* arrows close to the word (Edgar 2026-10-29) */
  margin: 0 0 var(--s4);
  font-family: var(--font); font-weight: 500; font-size: 0.95rem; line-height: 1;
  letter-spacing: 0; text-transform: none; color: var(--text);
}
.kicker svg { width: 17px; height: 14px; flex: none; color: var(--coral); order: 2; overflow: visible; }  /* after the word (2026-10-29); fatter, a touch bigger, the two closer (2026-10-30) */
.band--ink .kicker { color: var(--paper); }
.band--ink .kicker svg { color: var(--coral); }
.head .kicker { margin-bottom: var(--s4); }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  min-height: 52px; padding: 0 1.6rem;
  font-weight: 500; font-size: 1rem; letter-spacing: -0.005em;
  box-shadow: none;
}
.btn--sm { min-height: 44px; padding: 0 1.15rem; font-size: var(--fs-small); }
/* Second button: a paper pill with a hairline, never glass */
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* The brand's own arrow as the "go" mark on a primary button */
.btn--go::after { content: "\00bb"; font-weight: 700; margin-left: 0.1em; transition: transform var(--speed) var(--ease); }
.btn--go:hover::after { transform: translateX(3px); }
.ulink { font-weight: 600; }

/* ------------------------------ Surfaces -------------------------------- */
.card { border-radius: var(--r-card); }

/* ------------------------------ Logo strip ------------------------------ */
/* Edgar: "our logo sliders... maybe too small". 30px to 44px, more air. */
.logo-strip { padding-block: var(--s6); }
.logo-track { gap: clamp(3rem, 6vw, 6rem); }
.logo-track img { height: 44px; opacity: 0.62; filter: grayscale(1) contrast(1.05); }
.logo-track img.logo-tall { height: 60px; }

/* ------------------------------ Phones ---------------------------------- */
@media (max-width: 600px) {
  :root {
    --fs-body: 1.0625rem;                 /* 17, as x3web on a phone */
    --fs-h1: 2.25rem;                     /* 36 */
    --fs-h2: 2rem;                        /* 32 */
    --fs-h3: 1.25rem;
    --fs-h4: 1.125rem;
    --band: 3.5rem;                       /* 56 */
  }
  h1 { letter-spacing: -0.03em; }
  h2 { line-height: 1.08; letter-spacing: -0.03em; }
  /* Section heads centre on a phone, as x3web's do; the content under them
     keeps its own alignment. */
  .head { text-align: center; justify-items: center; }
  .head .kicker { justify-content: center; }
  .head .lead { margin-inline: auto; }
  .head-end { justify-self: center; align-items: center; }
  .logo-track img { height: 36px; }
  .logo-track img.logo-tall { height: 48px; }
  .card { padding: 1.5rem; }
}

/* ------------------------------ Promote, 2026-10-29: the type scale ------ */
/* The type sweep counted 15 rendered sizes; the scale allows 9. Folded onto
   nine roles: h1 62, h2 52, price 38.5, h3 24, lead 20, body and h4 17,
   list 16, UI and small 15, label 13. Nothing moves more than a pixel. */
:root { --fs-small: 0.9375rem; --fs-h4: 1.0625rem; --fs-label: 0.8125rem; }
.why-list h3 { font-size: var(--fs-h4); }
.gbadge > span:last-child { font-size: var(--fs-h4); }
.stars, .hero-trust .stars, .mq .review .stars, .review-by .initials,
.phone-stamp, .phone-stamp b, .phone-time, .chat-foot a, .chat-foot small { font-size: var(--fs-label); }
.gbadge .g { font-size: var(--fs-label); overflow: hidden; }   /* the hidden letter behind the G mark no longer counts as a 0px size */
/* The online dot in the brand's own teal, not a fifth hex (reviewer note, Apple pass) */
.chat-head small::before, .hero-panel.is-phone .chat-head small::before { background: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent); }
.hero-panel.is-phone .chat-head small, .hero-panel.is-phone .chat-foot a { font-size: var(--fs-label); }
@media (min-width: 901px) { .nav-links a { font-size: 1rem; } }   /* the menu on the list size (was 0.9rem x 1.1, the same 16px to the eye) */

/* Edgar 2026-10-29: "too big space underneath the copyrights". The footer's
   bottom padding was 116px to clear the launcher; 80px clears it (the pill's
   top sits 72px up) and reads as a footer, not a gap. Phones keep their own
   value for the bar plus the launcher. */
@media (min-width: 601px) { .site-footer { padding-bottom: 80px; } }

/* Edgar 2026-10-29: the header logo "very slightly smaller": 158x29 to 148x27 on
   a desktop (the phone size 132x24 stays). The footer mark is untouched. */
@media (min-width: 601px) { .site-header .logo img { width: 148px; height: 27px; } }

/* ------------------------------ Box shadows, site-wide (2026-10-30) ----- */
/* Edgar tested shadows instead of hairlines on the home page and said "big
   yes, apply to entire site". Reverses the 2026-10-29 hairline-only rule.
   Every card drops its line and takes one tight two-layer shadow from the ink
   token; a wide blur ran a row's shadows together into one grey ledge, so the
   blur stays small. Loads on every page through this file. */
:root {
  --card-shadow:
    0 0 0 1px color-mix(in srgb, var(--ink) 3%, transparent),
    0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent),
    0 4px 12px -4px color-mix(in srgb, var(--ink) 10%, transparent);
  --card-shadow-hover:
    0 0 0 1px color-mix(in srgb, var(--ink) 4%, transparent),
    0 2px 4px color-mix(in srgb, var(--ink) 7%, transparent),
    0 10px 20px -8px color-mix(in srgb, var(--ink) 14%, transparent);
}
.faq-card, .faq-card[open], .svc, .svc-cell, .pcard, .review, .mq .review,
.work-three .work-shot, .work-shot, .contact-card, .card, .card.step,
.co-group, .co-sum, .co--light .co-sum, .co--light .co-group, .index-card, .co-form,
.co-step, .co--light .co-step,
.ct .ct-step, .ct .form-group + .form-group.ct-step {
  border-color: transparent !important;
  box-shadow: var(--card-shadow) !important;
}
.faq-card:hover, .pcard:hover, .svc-cell:hover, .work-tile:hover .work-shot {
  box-shadow: var(--card-shadow-hover) !important;
}