/* AI Search Results Optimizer
   Palette: ink (text, dark sections), paper (page), highlight (the "cited" marker),
   signal (links), mist (rules, quiet text on dark), muted (secondary text). */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/public-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #12263A;
  --deep: #0B1A29;
  --paper: #F4F7F7;
  --white: #FFFFFF;
  --highlight: #FFD23F;
  --signal: #1F6F8B;
  --mist: #DCE6E8;
  --muted: #4B5E6B;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --step-0: 1.0625rem;                          /* body 17px */
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 4.75rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: 0; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
strong { font-weight: 600; }

/* The highlighter: marks the words an AI answer would cite */
mark {
  background: linear-gradient(transparent 12%, var(--highlight) 12%, var(--highlight) 88%, transparent 88%);
  color: inherit;
  padding: 0 0.15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.container { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--white); color: var(--ink); }
.btn-highlight { background: var(--highlight); border-color: var(--highlight); color: var(--ink); }
.btn-highlight:hover { background: transparent; color: var(--highlight); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--white); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--mist); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.1; }
.logo img { width: 2.6rem; height: 2.6rem; }
.logo:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 0.5rem 0.75rem; border-radius: 999px; }
.site-nav a:hover { background: var(--mist); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--highlight); border-radius: 0; }
.site-nav .nav-cta { background: var(--ink); color: var(--white); margin-left: 0.5rem; padding-inline: 1.1rem; }
.site-nav .nav-cta:hover { background: var(--signal); }
.nav-toggle { display: none; font: 600 1rem var(--body); background: none; border: 2px solid var(--ink); color: var(--ink); border-radius: 999px; padding: 0.45rem 1rem; cursor: pointer; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--mist);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--mist); }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--highlight); padding-left: 1rem; }
  .site-nav .nav-cta { margin: 0.9rem 0 0; text-align: center; border-radius: 999px; border: 0; }
}
@media (max-width: 420px) { .logo span { font-size: 1rem; } }

/* Home hero: the source constellation with an AI answer that cites the client */
.hero {
  background:
    linear-gradient(90deg, var(--deep) 0%, rgba(11, 26, 41, 0.92) 38%, rgba(11, 26, 41, 0.25) 75%),
    var(--deep) url("/images/hero-sources.jpg") center right / cover no-repeat;
  color: var(--white);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero p { color: var(--mist); font-size: 1.12rem; }
.hero .hero-lede strong { color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero .btn-quiet { color: var(--white); border-color: var(--mist); }
.hero .btn-quiet:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.answer {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}
.answer-question { display: flex; justify-content: flex-end; margin-bottom: 1.1rem; }
.answer-question p { background: var(--ink); color: var(--white); margin: 0; padding: 0.7rem 1rem; border-radius: 16px 16px 4px 16px; font-size: 0.98rem; max-width: 85%; }
.answer-body { display: flex; gap: 0.8rem; align-items: flex-start; }
.answer-body img { width: 2rem; height: 2rem; flex: none; margin-top: 0.15rem; }
.hero .answer p { color: var(--ink); }
.hero .answer-question p { color: var(--white); }
.answer-body p { font-size: 0.98rem; margin: 0 0 0.75rem; }
.answer-sources { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.answer-sources li { font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--white); border: 1px solid var(--mist); color: var(--muted); }
.answer-sources li.cited { background: var(--highlight); border-color: var(--highlight); color: var(--ink); }
.hero .answer-caption { color: var(--muted); }
.answer-caption { margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--mist); font-size: 0.82rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { background: linear-gradient(rgba(11, 26, 41, 0.85), rgba(11, 26, 41, 0.85)), var(--deep) url("/images/hero-sources.jpg") 70% center / cover no-repeat; }
}

/* Generic page sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section + .section { padding-top: 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark p { color: var(--mist); }
.section.section-dark,
.section-dark + .section { padding-top: clamp(3.5rem, 7vw, 6rem); }
.lead { font-size: var(--step-1); line-height: 1.5; }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.split > :first-child h2 { position: sticky; top: 6rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split > :first-child h2 { position: static; } }

/* Lists with a highlighter tick instead of a bullet */
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { position: relative; padding: 0.95rem 0 0.95rem 2.1rem; border-top: 1px solid var(--mist); }
.tick-list li:last-child { border-bottom: 1px solid var(--mist); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 1.35rem;
  width: 1.1rem; height: 0.55rem; background: var(--highlight); border-radius: 2px;
}
.section-dark .tick-list li { border-color: rgba(220, 230, 232, 0.2); }

/* "What we deliver": two columns of ruled entries */
.deliver { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); margin-top: 2.5rem; }
.deliver div { border-top: 2px solid var(--white); padding: 1.25rem 0 1.75rem; }
.deliver h3 { color: var(--white); }
.deliver p { margin: 0; }
@media (max-width: 700px) { .deliver { grid-template-columns: 1fr; } }

/* Call to action band */
.cta-band { background: var(--highlight); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { font-size: var(--step-2); margin: 0 0 0.3em; }
.cta-band p { margin: 0; }

/* Interior page header */
.page-head { background: var(--ink); color: var(--white); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-head p { color: var(--mist); font-size: var(--step-1); line-height: 1.5; }
.page-head .btn { margin-top: 0.75rem; }

/* Services */
.service-group { margin-bottom: 2.5rem; }
.service-group:last-child { margin-bottom: 0; }
.service-group h3 { font-size: var(--step-1); margin-bottom: 0.75rem; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li { padding: 1rem 0; border-top: 1px solid var(--mist); }
.service-list li:last-child { border-bottom: 1px solid var(--mist); }
.service-list strong { display: block; font-family: var(--display); font-size: 1.1rem; margin-bottom: 0.15rem; }
.service-list span { color: var(--muted); }
.plan + .plan { margin-top: clamp(3rem, 6vw, 5rem); }

/* 90 Day Launch slide viewer */
.deck { margin-top: 1rem; }
.deck-frame {
  position: relative; aspect-ratio: 16 / 9; background: var(--deep);
  border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(11, 26, 41, 0.6);
}
.deck-frame img { width: 100%; height: 100%; object-fit: contain; }
.deck-frame:focus-visible { outline-offset: 4px; }
.deck-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.deck-nav { display: flex; align-items: center; gap: 0.75rem; }
.deck-nav button { font: 600 1rem var(--body); padding: 0.7rem 1.2rem; }
.deck-nav button:disabled { opacity: 0.35; cursor: default; }
.deck-nav button:disabled:hover { background: var(--ink); color: var(--white); }
.deck-count { font-weight: 600; min-width: 4.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.deck-empty { display: grid; place-items: center; text-align: center; height: 100%; color: var(--mist); padding: 2rem; }
.deck-empty p { margin: 0 auto 1rem; }

/* Case study */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.facts h2 { font-size: var(--step-2); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 2rem 0 2.5rem; }
.result { background: var(--white); border-left: 6px solid var(--highlight); padding: 1.5rem 1.75rem; border-radius: 4px 14px 14px 4px; }
.result-figure { font-family: var(--display); font-weight: 800; font-size: var(--step-4); line-height: 1; margin: 0 0 0.35rem; }
.result-label { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .results { grid-template-columns: 1fr; } }
.note { color: var(--muted); font-size: 0.95rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-img { border-radius: 18px; width: 100%; box-shadow: 14px 14px 0 var(--highlight); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about-img { max-width: 30rem; } }

/* 404 */
.not-found { text-align: left; }

/* Footer */
.site-footer { background: var(--deep); color: var(--mist); padding: 2.5rem 0; font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-inner p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--highlight); text-decoration: underline; }

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

/* 90 Day Launch roadmap: month labels and FAQs */
.month { font-size: var(--step-2); font-weight: 800; position: sticky; top: 6rem; }
.month span { display: block; font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--signal); letter-spacing: 0; margin-bottom: 0.2rem; }
.month::after { content: ""; display: block; width: 3rem; height: 0.4rem; margin-top: 0.75rem; background: var(--highlight); border-radius: 2px; }
@media (max-width: 760px) { .month { position: static; } }
.faq div { padding: 1.25rem 0; border-top: 1px solid rgba(220, 230, 232, 0.25); }
.faq div:last-child { border-bottom: 1px solid rgba(220, 230, 232, 0.25); }
.faq h3 { color: var(--white); margin-bottom: 0.4rem; }
.faq p { margin: 0; }
.deck-frame { background: var(--white); }
