/* ==========================================================================
   Earshot — marketing site
   "Measured Intelligence" — refined editorial light theme with deep teal
   anchoring and precise purple sparks. Built to peec.ai's calm SaaS rhythm.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Core palette (from brand spec) */
  --teal:        #114B5F;
  --teal-700:    #0E3E50;
  --teal-900:    #0A2D3B;
  --teal-50:     #ECF2F4;
  --purple:      #7A00DF;
  --purple-50:   #F4ECFF;
  --ink:         #1C2B30;
  --bg:          #F6F8F8;
  --white:       #FFFFFF;
  --grey:        #6B7B7E;
  --grey-300:    #C6CFD1;
  --grey-200:    #DCE3E4;
  --grey-100:    #ECF0F1;

  /* Functional data colours */
  --teal-green:  #2E8B7F;
  --amber:       #E0A458;
  --coral:       #C25E5E;

  /* Shadows — layered, teal-tinted */
  --shadow-1: 0 1px 2px rgba(17, 75, 95, 0.04),
              0 4px 12px rgba(17, 75, 95, 0.04);
  --shadow-2: 0 1px 2px rgba(17, 75, 95, 0.05),
              0 6px 18px rgba(17, 75, 95, 0.06),
              0 24px 60px rgba(17, 75, 95, 0.08);
  --shadow-3: 0 2px 4px rgba(17, 75, 95, 0.06),
              0 12px 32px rgba(17, 75, 95, 0.08),
              0 40px 100px rgba(17, 75, 95, 0.12);

  /* Spacing rhythm */
  --section-y: 120px;
  --section-y-sm: 76px;
  --container-x: 28px;
  --container-w: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, a { font: inherit; color: inherit; }
a { text-decoration: none; }

html { font-size: 16px; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grain overlay for organic warmth */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.18 0 0 0 0 0.23 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: var(--container-x);
  padding-right: var(--container-x);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--teal);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h1 { font-weight: 600; }
strong { font-weight: 500; color: var(--teal); }
em { font-style: italic; }

.eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
}
.section-eyebrow {
  margin-bottom: 22px;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--teal);
  opacity: 0.55;
}
.section-eyebrow.on-dark { color: rgba(255,255,255,0.82); }
.section-eyebrow.on-dark::before { background: rgba(255,255,255,0.6); }
.section-eyebrow.centred { display: flex; justify-content: center; }

.section-heading {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.03em;
  max-width: 760px;
  margin-bottom: 18px;
}
.section-heading.centred { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading.on-dark { color: var(--white); }

.section-lede {
  font-size: 17px;
  color: var(--grey);
  max-width: 640px;
  margin-bottom: 56px;
}
.section-lede.centred { text-align: center; margin-left: auto; margin-right: auto; }

/* Purple accent underline — used precisely */
.accent-underline {
  position: relative;
  white-space: normal;
}
.accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.32em;
  background: var(--purple);
  opacity: 0.22;
  z-index: -1;
  border-radius: 3px;
  transform: translateY(0.04em);
}
.accent-underline-light {
  position: relative;
  white-space: normal;
}
.accent-underline-light::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.32em;
  background: var(--purple);
  opacity: 0.4;
  z-index: -1;
  border-radius: 3px;
  transform: translateY(0.04em);
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px;
  --pad-x: 22px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 220ms var(--ease-out),
              background-color 220ms var(--ease-out),
              box-shadow 220ms var(--ease-out),
              border-color 220ms var(--ease-out),
              color 220ms var(--ease-out);
  will-change: transform;
}
.btn-sm { --pad-y: 10px; --pad-x: 18px; font-size: 13.5px; }
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(10, 45, 59, 0.18),
              0 8px 24px rgba(10, 45, 59, 0.14);
}
.btn-primary:hover {
  background: var(--teal-700);
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(10, 45, 59, 0.2),
              0 12px 32px rgba(122, 0, 223, 0.22);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--grey-200);
}
.btn-ghost:hover {
  border-color: var(--teal);
  background: var(--white);
  transform: translateY(-1px);
}
.btn-ghost:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.btn-accent {
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06),
              0 12px 32px rgba(0,0,0,0.18);
}
.btn-accent:hover {
  background: var(--purple);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(122, 0, 223, 0.3),
              0 14px 36px rgba(122, 0, 223, 0.38);
}
.btn-accent:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 248, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease-out),
              background 220ms var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(246, 248, 248, 0.92);
  border-bottom-color: var(--grey-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
}
.brand-mark { display: inline-flex; }
.brand-word {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--teal);
}
.primary-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--grey);
  font-weight: 400;
}
.primary-nav a {
  position: relative;
  transition: color 200ms var(--ease-out);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
.primary-nav a:hover {
  color: var(--teal);
}
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 92px 0 110px;
  overflow: hidden;
}
.hero::before {
  /* Soft layered gradient mesh — adds atmosphere */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 500px at 88% 18%, rgba(122,0,223,0.07), transparent 70%),
    radial-gradient(900px 700px at 8% 100%, rgba(17,75,95,0.06), transparent 60%);
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-copy { max-width: 640px; }
.eyebrow {
  margin-bottom: 28px;
  color: var(--teal);
}
.pulse {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}
.pulse i {
  position: absolute;
  inset: 0;
  background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(122, 0, 223, 0.5);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(122, 0, 223, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(122, 0, 223, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 0, 223, 0); }
}

.hero-headline {
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--teal);
  margin-bottom: 28px;
  font-weight: 600;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink);
  opacity: 0.78;
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-partnership {
  font-size: 13.5px;
  color: var(--grey);
  max-width: 520px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-200);
}
.hero-partnership strong { color: var(--teal); font-weight: 500; }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.hero-graph {
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 24px 24px 18px;
  box-shadow: var(--shadow-2);
  transform: rotate(-0.6deg);
}
.hero-graph::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(122,0,223,0.06), transparent 40%);
  z-index: 0;
}
.hero-graph svg { position: relative; z-index: 1; }
.hero-graph-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.hero-graph-caption {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--grey);
  align-self: center;
  background: var(--white);
  border: 1px solid var(--grey-200);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}
.caption-dot {
  width: 7px;
  height: 7px;
  background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(122,0,223,0.18);
}
.now-marker { animation: nowPulse 3s var(--ease-out) infinite; transform-origin: 268px 128px; }
@keyframes nowPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.78; }
}

/* ---------- Section base ---------- */
.section {
  position: relative;
  padding: var(--section-y) 0;
}
.section-inverse {
  background: var(--teal);
  color: rgba(255,255,255,0.84);
}
.section-inverse::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(122,0,223,0.14), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(46,139,127,0.10), transparent 70%);
  pointer-events: none;
}
.section-inverse > .container { position: relative; z-index: 1; }
.section-inverse h2,
.section-inverse h3 { color: var(--white); }
.section-inverse strong { color: var(--white); }

/* ---------- Problem ---------- */
.section-problem { padding-top: 92px; }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 8px;
}
.problem-card { max-width: 540px; }
.problem-card h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.18;
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}
.problem-card p {
  font-size: 16px;
  color: var(--ink);
  opacity: 0.78;
  margin-bottom: 16px;
}
.problem-card .pull {
  margin-top: 26px;
  padding: 18px 22px;
  border-left: 2px solid var(--purple);
  background: var(--white);
  font-size: 17px;
  font-weight: 500;
  color: var(--teal);
  opacity: 1;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-1);
}

/* ---------- What Earshot does (inverse) ---------- */
.section-does .statement {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--white);
  font-weight: 500;
  max-width: 980px;
  margin-bottom: 56px;
}
.does-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 980px;
}
.does-grid p {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
}

/* ---------- Product preview ---------- */
.section-preview {
  text-align: center;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 50%, var(--teal) 50%, var(--teal) 100%);
  padding-bottom: 60px;
}
.section-preview .section-heading,
.section-preview .section-lede {
  color: var(--ink);
}
.section-preview .section-heading { color: var(--teal); }
.section-preview .container > .section-heading,
.section-preview .container > .section-lede {
  position: relative; z-index: 2;
}

.browser-frame {
  position: relative;
  margin: 16px auto 0;
  max-width: 1080px;
  background: #0B1F24;
  border-radius: 16px;
  box-shadow: var(--shadow-3),
              0 0 0 1px rgba(255,255,255,0.05) inset;
  overflow: hidden;
  z-index: 1;
}
.browser-chrome {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  background: #132C33;
  border-bottom: 1px solid #1f4047;
  position: relative;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 7px;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.browser-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  background: #0F2429;
  border: 1px solid #214149;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.browser-body {
  position: relative;
  background: #0B1F24;
  height: 760px;
}
.browser-body iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- How it works ---------- */
.section-how .section-heading { margin-bottom: 56px; }
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  box-shadow: var(--shadow-1);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--grey-300);
}
.step-num {
  font-size: 28px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step h3 {
  font-size: 18px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.step p { color: var(--grey); font-size: 15.5px; line-height: 1.65; }

/* ---------- What you get ---------- */
.section-get .section-heading { margin-bottom: 56px; }
.gets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.get {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.get:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--grey-300);
}
.get-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--teal-50);
  color: var(--teal);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 18px;
}
.get h3 {
  font-size: 17px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.get p { color: var(--grey); font-size: 14.5px; line-height: 1.6; }

/* ---------- Why different (inverse) ---------- */
.section-why .section-heading { margin-bottom: 56px; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.why-card {
  padding: 30px 30px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: background 240ms var(--ease-out), border-color 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.why-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(122,0,223,0.4);
  transform: translateY(-2px);
}
.why-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--white);
}
.why-card p { color: rgba(255,255,255,0.74); font-size: 15px; line-height: 1.65; }

/* ---------- Who it's for ---------- */
.section-who .section-lede { margin-bottom: 48px; }
.verticals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.vertical {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  color: var(--teal);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.vertical:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--grey-300);
}
.vertical-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  color: var(--teal);
  opacity: 0.85;
}
.vertical h3 {
  font-size: 17px;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.vertical p { color: var(--grey); font-size: 13.5px; }

/* ---------- Framework ---------- */
.framework-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.framework-copy p {
  font-size: 16.5px;
  color: var(--ink);
  opacity: 0.78;
  margin-bottom: 16px;
  line-height: 1.7;
}
.framework-disclaimer {
  font-size: 13.5px;
  color: var(--grey);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--grey-200);
}
.framework-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-1);
  position: relative;
}
.framework-card::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 3px;
  background: var(--purple);
  border-radius: 3px 0 0 3px;
  opacity: 0.85;
}
.framework-card-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 18px;
}
.framework-card blockquote {
  font-size: 18px;
  line-height: 1.55;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.cite-line {
  font-size: 14px;
  color: var(--teal);
  font-weight: 500;
}
.cite-meta {
  font-size: 12.5px;
  color: var(--grey);
  letter-spacing: 0.04em;
}

/* ---------- Partnership ---------- */
.partnership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
}
.partnership-grid p {
  font-size: 16px;
  color: var(--ink);
  opacity: 0.78;
  line-height: 1.7;
}
.partnership-grid p strong { color: var(--teal); font-weight: 500; }

/* ---------- CTA ---------- */
.section-cta { text-align: center; }
.cta-container { max-width: 800px; }
.cta-headline {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  font-weight: 600;
  margin: 8px 0 18px;
}
.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  margin: 0 auto 38px;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-supporting {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ---------- Briefing form (on inverse teal section) ---------- */
.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;
}

.section-cta .cta-container { max-width: 680px; }

.briefing-form {
  margin-top: 52px;
  text-align: left;
}
.briefing-form-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.briefing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;   /* more vertical breathing room between fields */
}
.briefing-grid .field-full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 10px; }
.field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.field .req { color: var(--purple); font-weight: 500; font-size: 13px; }
.field .opt {
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 400;
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
}

.field input,
.field textarea {
  font: inherit;
  font-weight: 400;
  font-size: 16px;                     /* was 15.5 — 16 avoids iOS input zoom */
  color: var(--white);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;                 /* softer, was --radius-sm (10) */
  padding: 16px 20px;                  /* more generous touch area */
  width: 100%;
  transition: border-color 200ms var(--ease-out),
              background 200ms var(--ease-out),
              box-shadow 200ms var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}
.field textarea {
  resize: vertical;
  min-height: 144px;                   /* was 108 — more prominent */
  line-height: 1.6;
  font-family: inherit;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255,255,255,0.4);
  font-family: inherit;                /* prevents Safari's monospace fallback */
}
.field input:hover,
.field textarea:hover {
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.1);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--purple);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 4px rgba(122, 0, 223, 0.2);   /* softer 4px glow */
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(224, 164, 88, 0.6);
}

.briefing-footer {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;               /* full-width submit on mobile */
  gap: 22px;
}
.briefing-submit {
  width: 100%;
  padding: 18px 32px;                 /* prominent, thumb-friendly */
  font-size: 15.5px;
  font-weight: 500;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12),
              0 12px 32px rgba(122, 0, 223, 0.18);
}
.briefing-submit:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.14),
              0 16px 40px rgba(122, 0, 223, 0.32);
}
@media (min-width: 641px) {
  .briefing-submit {
    width: auto;
    min-width: 260px;
    align-self: flex-start;
  }
  .briefing-footer { align-items: flex-start; }
}
.briefing-submit[disabled] {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}
.briefing-privacy {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.62);
  max-width: 520px;
  margin: 0;
  font-style: italic;                 /* soft, gets out of the way */
}
.briefing-privacy strong {
  color: rgba(255,255,255,0.86);
  font-weight: 500;
  font-style: normal;                 /* keep the partner name upright */
}

.briefing-error {
  margin-top: 22px;
  padding: 14px 18px;
  background: rgba(194, 94, 94, 0.14);
  border: 1px solid rgba(194, 94, 94, 0.42);
  border-radius: var(--radius-sm);
  color: rgba(255, 235, 235, 0.92);
  font-size: 14px;
  text-align: left;
}
.briefing-error a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.4); }
.briefing-error a:hover { border-color: var(--purple); }

.briefing-success {
  margin-top: 40px;
  padding: 40px 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  text-align: left;
  max-width: 640px;
}
.briefing-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(46, 139, 127, 0.16);
  color: var(--teal-green);
  border-radius: 50%;
  margin-bottom: 20px;
}
.briefing-success h3 {
  color: var(--white);
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.briefing-success p {
  color: rgba(255,255,255,0.76);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 520px;
}
.briefing-success strong { color: var(--white); font-weight: 500; }

@media (max-width: 640px) {
  .briefing-grid { grid-template-columns: 1fr; gap: 22px; }
  .briefing-success { padding: 28px 22px; }
  .briefing-form { margin-top: 40px; }
  .briefing-footer { margin-top: 32px; }
}

/* ---------- FAQ ---------- */
.section-faq .section-heading { margin-bottom: 40px; }
.faq-list {
  max-width: 840px;
  margin: 0 auto;
}
.faq {
  border-top: 1px solid var(--grey-200);
}
.faq:last-of-type { border-bottom: 1px solid var(--grey-200); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  user-select: none;
  transition: color 200ms var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover .faq-q { color: var(--teal); }
.faq summary:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
  border-radius: 4px;
}
.faq-q {
  font-size: 17px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: -0.015em;
  line-height: 1.4;
  transition: color 200ms var(--ease-out);
}
.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 280ms var(--ease-out);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--teal);
  border-radius: 2px;
  transition: background 220ms var(--ease-out), transform 280ms var(--ease-out);
}
.faq-icon::before {
  width: 14px;
  height: 1.6px;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 1.6px;
  height: 14px;
  transform: translate(-50%, -50%);
}
.faq[open] .faq-icon::before { background: var(--purple); }
.faq[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); background: var(--purple); }
.faq-a {
  padding: 0 4px 26px;
  max-width: 720px;
}
.faq-a p {
  font-size: 15.5px;
  color: var(--grey);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 44px;
}
.site-footer .brand-word { color: var(--white); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 380px; }
.footer-tag {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.footer-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}
.footer-row a {
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 200ms var(--ease-out);
}
.footer-row a:hover { border-color: var(--purple); }
.footer-fine {
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Reveal animation (progressive enhancement, opt-in via JS) ---------- */
/* Default: fully visible. JS adds .js-reveal only when supported AND motion is OK,
   then IntersectionObserver flips to .is-visible. If JS never runs (or fails),
   content remains visible — never hidden behind an animation that didn't fire. */
.js-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --section-y: 96px; }
  .hero-grid { gap: 48px; }
  .browser-body { height: 640px; }
  .gets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  :root { --section-y: var(--section-y-sm); --container-x: 22px; }
  .header-inner { height: 64px; }
  .primary-nav { display: none; }

  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-headline { font-size: clamp(34px, 8vw, 48px); }
  .hero-sub { font-size: 16.5px; }

  .problem-grid { grid-template-columns: 1fr; gap: 36px; }
  .does-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .gets { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .verticals { grid-template-columns: 1fr 1fr; }
  .framework-grid { grid-template-columns: 1fr; gap: 36px; }
  .partnership-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { align-items: flex-start; }
  .footer-meta { align-items: flex-start; text-align: left; }

  .browser-body { height: 540px; }
  .browser-url { display: none; }
}

@media (max-width: 520px) {
  .gets { grid-template-columns: 1fr; }
  .verticals { grid-template-columns: 1fr 1fr; gap: 14px; }
  .browser-body { height: 460px; }
  .step { grid-template-columns: 48px 1fr; padding: 24px; }
  .step-num { font-size: 24px; }
}

/* ==========================================================================
   Sub-pages — Resources hub, guides, FAQ page
   Shared editorial layout that reuses the home site's header/footer + tokens.
   ========================================================================== */

.subpage-main {
  padding-top: 40px;   /* visual air under the sticky header */
}

.container-narrow {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-left: var(--container-x);
  padding-right: var(--container-x);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--grey);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--grey);
  transition: color 200ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.breadcrumb a:hover { color: var(--teal); border-bottom-color: currentColor; }
.breadcrumb span[aria-hidden] { color: var(--grey-300); }

/* Article header */
.article-header {
  padding: 40px 0 24px;
}
.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: 22px;
}
.article-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--teal);
  opacity: 0.55;
}
.article-h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--teal);
  font-weight: 600;
  max-width: 640px;
  margin: 0;
}

/* Article body — editorial prose */
.article-body {
  padding: 32px 0 80px;
}
.article-body h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--teal);
  font-weight: 600;
  margin: 56px 0 18px;
  max-width: 640px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--teal);
  font-weight: 500;
  margin: 40px 0 12px;
}
.article-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 640px;
}
.article-body p:last-child { margin-bottom: 0; }
.article-body strong {
  color: var(--teal);
  font-weight: 500;
}
.article-body em { font-style: italic; }
.article-body a {
  color: var(--teal);
  border-bottom: 1px solid rgba(17, 75, 95, 0.35);
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.article-body a:hover {
  color: var(--teal-700);
  border-bottom-color: var(--purple);
}
.article-body a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 2px;
}
.article-body ol,
.article-body ul {
  padding-left: 0;
  list-style: none;
  counter-reset: article-list;
  margin: 20px 0 24px;
  max-width: 640px;
}
.article-body .article-ol li,
.article-body ol li {
  position: relative;
  padding-left: 48px;
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  counter-increment: article-list;
}
.article-body .article-ol li::before,
.article-body ol li::before {
  content: counter(article-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.article-body ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0.75em;
  width: 8px;
  height: 1.5px;
  background: var(--purple);
}

/* Citation paragraph on the CSIRO guide */
.article-body .citation {
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey);
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 40px;
  max-width: 640px;
}
.article-body .citation a { color: var(--teal); }

/* Related guides */
.article-related {
  padding: 48px 0 32px;
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}
.related-eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--teal);
  opacity: 0.55;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px;
  background: var(--bg);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  transition: transform 240ms var(--ease-out),
              border-color 240ms var(--ease-out),
              box-shadow 240ms var(--ease-out);
  color: var(--teal);
  height: 100%;
}
.related-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0;
}
.related-arrow {
  color: var(--purple);
  font-weight: 500;
  flex-shrink: 0;
  transition: transform 240ms var(--ease-out);
}
.related-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}
.related-card:hover .related-arrow { transform: translateX(4px); }
.related-card:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

/* Bottom CTA on sub-pages (reuses inverse teal styling) */
.article-bottom-cta {
  padding: 80px 0;
  text-align: center;
}
.article-bottom-cta .cta-headline {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 8px auto 16px;
  color: var(--white);
}
.article-bottom-cta .cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  margin: 0 auto 28px;
  max-width: 520px;
}

/* ============ Hub page ============ */
.hub-hero {
  padding: 48px 0 40px;
}
.hub-h1 {
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--teal);
  font-weight: 600;
  max-width: 720px;
  margin: 0 0 32px;
}
.hub-lede {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 22px;
  max-width: 680px;
}

.hub-guides { padding: 24px 0 72px; }
.guide-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: guide-list;
}
.guide-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  grid-template-areas:
    "num title arrow"
    "num desc  arrow";
  column-gap: 24px;
  row-gap: 6px;
  align-items: center;
  padding: 32px 32px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  color: var(--teal);
  transition: transform 240ms var(--ease-out),
              border-color 240ms var(--ease-out),
              box-shadow 240ms var(--ease-out);
}
.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow-2);
}
.guide-card:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}
.guide-card:hover .guide-card-arrow { transform: translateX(4px); }
.guide-card-num {
  grid-area: num;
  font-size: 32px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  align-self: center;
}
.guide-card h2 {
  grid-area: title;
  font-size: 20px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
  align-self: end;
}
.guide-card p {
  grid-area: desc;
  color: var(--grey);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  align-self: start;
}
.guide-card-arrow {
  grid-area: arrow;
  font-size: 14px;
  font-weight: 500;
  color: var(--purple);
  white-space: nowrap;
  transition: transform 240ms var(--ease-out);
  align-self: center;
}

.hub-outro {
  padding: 32px 0 96px;
  border-top: 1px solid var(--grey-200);
}
.hub-outro p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 640px;
}
/* Prose links inside the outro — scoped to <p> so the .btn below
   keeps its own styling (was previously bleeding teal text onto the
   teal button, hiding the "Request a briefing" label). */
.hub-outro p a {
  color: var(--teal);
  border-bottom: 1px solid rgba(17, 75, 95, 0.35);
}
.hub-outro p a:hover { border-color: var(--purple); }

/* ============ FAQ page ============ */
.faq-page-body { padding-bottom: 96px; }
.faq-page-body .container-narrow > .faq-group + .faq-group {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--grey-200);
}
.faq-group-title {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--teal);
  font-weight: 600;
  margin: 0 0 32px;
}
.faq-item {
  margin-bottom: 36px;
  max-width: 640px;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-item h3 {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--teal);
  font-weight: 500;
  margin: 0 0 10px;
}
.faq-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}
.faq-item p em { font-style: italic; }

/* ============ Footer with resource columns ============ */
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
  align-items: flex-start;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.72);
  margin-bottom: 6px;
}
.footer-col a {
  color: rgba(255,255,255,0.72);
  font-size: 13.5px;
  transition: color 200ms var(--ease-out);
  padding: 2px 0;
}
.footer-col a:hover { color: var(--white); }
.footer-col a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Expand footer to accommodate the new column layout */
.site-footer .footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 48px;
  align-items: flex-start;
}
.footer-brand { max-width: 340px; }
.footer-meta { align-self: flex-end; }

@media (max-width: 1080px) {
  .related-grid { grid-template-columns: 1fr; }
  .site-footer .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-meta { grid-column: 1 / -1; margin-top: 20px; }
}
@media (max-width: 640px) {
  .guide-card {
    grid-template-columns: 1fr;
    grid-template-areas: "num" "title" "desc" "arrow";
    row-gap: 10px;
    padding: 24px;
    text-align: left;
  }
  .guide-card-num { font-size: 22px; align-self: start; }
  .guide-card-arrow { justify-self: start; align-self: start; }
  .site-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-links { grid-template-columns: 1fr; gap: 24px; }
  .article-body h2 { margin-top: 44px; }
  .article-header { padding: 24px 0 16px; }
  .hub-hero { padding: 32px 0 24px; }
  .article-bottom-cta { padding: 56px 0; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal { opacity: 1; transform: none; }
}
