/* ==========================================================
   Fluency The Agency — brand tokens
   Change colours here and they flow through the whole site.
   ========================================================== */
:root {
  --asphalt: #1b1e21;      /* main dark background */
  --asphalt-2: #24282c;    /* dark surfaces (cards, inputs) */
  --line-dark: #3a4046;    /* borders on dark */
  --paper: #f2f3ef;        /* main light background */
  --concrete: #e2e3de;     /* alternate light background */
  --ink: #16181a;          /* text on light */
  --steel: #5d646b;        /* secondary text on light */
  --steel-light: #a7adb3;  /* secondary text on dark */
  --hivis: #f6d515;        /* hi-vis yellow: buttons and calls to action only */
  --missed: #e0382b;       /* missed call red: losses only */
  --booked: #34b86f;       /* booked green: wins only */

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 8px;
  --wrap: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(3rem, 7.2vw, 5.8rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.55rem; line-height: 1.1; }
p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; border-radius: 4px; }
.on-light :focus-visible, .on-light:focus-visible { outline-color: var(--ink); }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 14px 28px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.01em;
  color: var(--ink); background: var(--hivis);
  border: 2px solid var(--hivis); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:hover { background: #ffe23a; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--hivis); }
.btn-ghost:hover { background: rgba(246, 213, 21, .1); }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 1.1rem; }
.btn[disabled] { opacity: .55; cursor: wait; }

.quiet-link { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.quiet-link:hover { text-decoration-thickness: 2px; }

/* ---------- dark zones ---------- */
.dark { background: var(--asphalt); color: var(--paper); }
.dark .muted { color: var(--steel-light); }
.muted { color: var(--steel); }

/* ---------- site header ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.01em;
  text-decoration: none; color: inherit;
}
.logo span { color: var(--hivis); }

/* ---------- hero ---------- */
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center;
  padding: 40px 0 96px;
}
.hero-for { font-weight: 600; color: var(--hivis); margin-bottom: 18px; font-size: 1.15rem; }
.hero h1 { max-width: 13ch; }
.hero-sub { font-size: 1.28rem; color: #d9dbd6; max-width: 34ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-actions .fine { font-size: 1rem; margin: 0; }
.hero-second { margin-top: 18px; font-size: 1.05rem; }

/* phone recents: the signature element */
.phone {
  background: #121416; border: 1px solid var(--line-dark); border-radius: 30px;
  padding: 22px 18px 18px; max-width: 390px; width: 100%; justify-self: end;
}
.phone-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 4px; }
.phone-title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; margin: 0; }
.seg { display: inline-flex; background: var(--asphalt-2); border-radius: 999px; padding: 3px; }
.seg button {
  font: 600 .9rem var(--font-body); color: var(--steel-light); background: none; border: 0;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.calls { list-style: none; margin: 0; padding: 0; }
.call {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center;
  padding: 13px 6px; border-top: 1px solid #2b3035;
}
.call-icon { width: 26px; height: 26px; color: var(--missed); transition: color .3s; }
.call-who { font-weight: 600; color: var(--missed); transition: color .3s; line-height: 1.25; }
.call-what { font-size: .95rem; color: var(--steel-light); line-height: 1.3; }
.call-status { font-size: .9rem; color: var(--missed); transition: color .3s; }
.call-value { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--steel-light); }
.call.is-booked .call-icon, .call.is-booked .call-status { color: var(--booked); }
.call.is-booked .call-who { color: var(--paper); }
.phone-caption { font-size: .95rem; color: var(--steel-light); margin: 14px 6px 0; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-concrete { background: var(--concrete); }
.section-intro { max-width: 720px; margin-bottom: 56px; }
.section-intro p { font-size: 1.2rem; }

/* the leak track */
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 6px;
  background: var(--ink); border-radius: 3px;
}
.track li { position: relative; padding-top: 52px; }
.track li::before {
  content: ""; position: absolute; top: 4px; left: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--missed); border: 4px solid var(--paper);
}
.track-step { font-family: var(--font-display); font-weight: 600; color: var(--steel); font-size: 1.05rem; }
.track h3 { margin: 4px 0 8px; }
.track p { font-size: 1.05rem; color: #3c4146; }
.track-after { margin-top: 56px; font-size: 1.2rem; font-weight: 500; }

/* the system rows (reads like a job docket) */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 72px minmax(180px, 280px) 1fr; gap: 24px;
  padding: 28px 0; border-top: 2px solid var(--ink); align-items: baseline;
}
.row-num { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--steel); line-height: 1; }
.row h3 { margin: 0; font-size: 1.9rem; }
.row p { margin: 0; font-size: 1.1rem; }

/* three-up plain columns */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cols h3 { margin-bottom: 10px; }
.cols p { font-size: 1.05rem; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-left: 6px solid var(--ink); padding-left: 20px; }
.steps li::before {
  content: "Step " counter(step); display: block;
  font-family: var(--font-display); font-weight: 600; color: var(--steel); font-size: 1.05rem; margin-bottom: 4px;
}
.steps p { font-size: 1.05rem; }

/* guarantee: reads like a site safety sign */
.guarantee { background: var(--hivis); color: var(--ink); position: relative; }
.guarantee::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 14px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 18px, var(--hivis) 18px 36px);
}
.guarantee .wrap { padding-top: 104px; padding-bottom: 104px; }
.guarantee h2 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 800; }
.promise { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; max-width: 30ch; margin-bottom: .6em; }
.promise-2 { font-size: 1.35rem; font-weight: 600; }
.guarantee .fine { font-size: 1rem; max-width: 60ch; }
.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 12px 0 36px; }
.g-grid > div { border-top: 5px solid var(--ink); padding-top: 24px; }
.g-grid h3 { font-size: 2rem; margin-bottom: 12px; }
.g-plan { font-weight: 600; margin: 0 0 6px; font-size: 1rem; }
.g-grid .promise { font-family: var(--font-body); font-weight: 500; font-size: 1.25rem; line-height: 1.45; max-width: 40ch; }
@media (max-width: 900px) { .g-grid { grid-template-columns: 1fr; gap: 28px; } }
.founding { margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--ink); font-size: 1.15rem; font-weight: 500; }

/* works-with + guide */
.works { font-size: 1.2rem; }
.works strong { font-weight: 600; }
.guide-note { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-top: 56px; padding: 32px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); }
.guide-note h3 { margin-bottom: 6px; }
.guide-note p { margin: 0; font-size: 1.05rem; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px; font-size: 2rem; font-weight: 600; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 12px; font-size: 1.08rem; }

/* final cta */
.final { text-align: left; }
.final h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 800; }
.final p { font-size: 1.25rem; color: #d9dbd6; }

/* footer */
.site-foot { padding: 40px 0 56px; border-top: 1px solid var(--line-dark); font-size: .98rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-foot p { margin: 0; }

/* ---------- draft markers (remove body class "show-drafts" when confirmed) ---------- */
.show-drafts [data-draft] { outline: 3px dashed #d9480f; outline-offset: 6px; position: relative; }
.show-drafts [data-draft]::after {
  content: "DRAFT: " attr(data-draft); position: absolute; top: -34px; right: 0;
  font: 600 .8rem/1 var(--font-body); background: #d9480f; color: #fff; padding: 6px 8px; border-radius: 4px; z-index: 5;
  max-width: 90%;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-bottom: 72px; }
  .phone { justify-self: start; }
  .track { grid-template-columns: 1fr; gap: 28px; padding-left: 44px; }
  .track::before { top: 0; bottom: 0; left: 9px; right: auto; width: 6px; height: auto; }
  .track li { padding-top: 0; }
  .track li::before { left: -44px; top: 2px; }
  .row { grid-template-columns: 52px 1fr; gap: 6px 16px; }
  .row p { grid-column: 2; }
  .row-num { font-size: 1.9rem; }
  .cols, .steps { grid-template-columns: 1fr; gap: 32px; }
  .guide-note { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .guarantee .wrap { padding-top: 88px; padding-bottom: 80px; }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .wrap { padding: 0 20px; }
  .site-head .btn-small span.long { display: none; }
  .btn { width: 100%; }
  .site-head .btn { width: auto; }
  .faq summary { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
