/* Ported from GB Site (src/styles/tokens.css, fonts.css, Button.astro,
   InsightCard.astro) as of 12 August 2026 — Report_and_Gate_Redesign_Brief_for_Code.md.
   Styles /gate/ and /report/ only. The 8-screen flow stays on the
   disposable styles.css untouched. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --colour-navy: #19234A;
  --colour-accent: #2F4F4F;
  --colour-muted: #696969;
  --colour-bg-light: #F5F6F8;
  --colour-bg-tint: #E8EBF0;
  --colour-white: #FFFFFF;
  --colour-level: #D4853A;

  --font-brand: 'Archivo', Arial, Helvetica, sans-serif;

  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
}

.branded {
  font-family: var(--font-brand);
  background: var(--colour-bg-light);
  color: var(--colour-navy);
  min-height: 100vh;
  margin: 0;
}

.branded-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) 4rem;
}

.branded-card {
  background: var(--colour-white);
  border: 1px solid var(--colour-bg-tint);
  border-radius: 0;
  padding: 2.5rem 2rem;
}

.branded-identity {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 0 var(--space-lg);
}

.branded-logo {
  height: 28px; /* geometry, matches GB Site's nav__brand-logo */
  width: auto;
  /* The PNG carries ~4.1% transparent padding on its left (about 6px at
     this size); pull it back so the wordmark aligns with the text below. */
  margin-left: -6px;
}

.branded-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin: 0 0 var(--space-sm);
}

.branded-header .branded-eyebrow {
  margin: 0;
}

.branded-hint {
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--colour-muted);
  margin: var(--space-sm) 0 0;
}

.branded-eyebrow {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--colour-accent);
  margin: 0 0 var(--space-sm);
}

.branded-heading {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--colour-navy);
  margin: 0 0 var(--space-lg);
}

.branded-body {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--colour-navy);
}

.branded-block {
  margin-bottom: 1.75rem;
}

.branded-block p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--colour-navy);
  margin: 0 0 var(--space-md);
}

.branded-block p:last-child {
  margin-bottom: 0;
}

/* Lead treatment — shared by the opening field (a dek under the heading)
   and the starting-point field (the most commercially important paragraph,
   per Component 3 §3's consolation-prize risk), styled rather than headed,
   per Component 3 §5 (no headers between parts). */
.branded-block--lead p {
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--colour-accent);
}

/* Section panels — value, constraint and start each get a subtle tint so
   the five content parts read as distinct sections at a skim, without
   introducing headers (Component 3 §5 still holds). Colour choice ties
   each panel back to a tint already in use elsewhere on the page rather
   than inventing new hues: value picks up the navy-adjacent bg tint,
   constraint a light echo of the accent colour already used for lead
   text, start a lighter echo of the callout's level-orange treatment
   since both start and points_at are "what to do" signals. Bleed matches
   the callout's, so all three read as one system. */
.branded-block--value,
.branded-block--constraint,
.branded-block--start {
  padding: var(--space-md) var(--space-lg);
  margin: 0 calc(-1 * var(--space-md)) 1.75rem;
}

.branded-block--value {
  background: var(--colour-bg-tint);
}

.branded-block--constraint {
  background: color-mix(in srgb, var(--colour-accent) 11%, var(--colour-white));
}

.branded-block--start {
  background: color-mix(in srgb, var(--colour-level) 5%, var(--colour-white));
}

/* Callout — points_at, the report's "where to start" pointer. A visual
   break via border and tint, not a text label, for the same reason. */
.branded-block--callout {
  border-left: 3px solid var(--colour-level);
  background: color-mix(in srgb, var(--colour-level) 6%, var(--colour-white));
  padding: var(--space-md) var(--space-lg);
  margin-left: calc(-1 * var(--space-md));
}

.branded-message {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--colour-muted);
  margin: 0;
}

/* Waiting-state indicator only (report.js passes spinner:true for the
   initial poll message, not for error/give-up states). Functional, not
   decorative motion — the "no motion system" rule in the redesign brief
   was about marketing-page scroll-reveal, not an async-wait affordance. */
.branded-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--colour-bg-tint);
  border-top-color: var(--colour-accent);
  border-radius: 50%;
  margin: 0 0 var(--space-md);
  animation: branded-spin 800ms linear infinite;
}

@keyframes branded-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .branded-spinner {
    animation: none;
  }
}

/* Form field, gate page */
.branded-field {
  margin: 0 0 var(--space-lg);
}

.branded-field label {
  display: block;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--colour-navy);
  margin: 0 0 var(--space-xs);
}

.branded-field input[type="email"] {
  display: block;
  width: 100%;
  font-family: var(--font-brand);
  font-size: 1rem;
  color: var(--colour-navy);
  background: var(--colour-white);
  border: 1px solid var(--colour-bg-tint);
  border-radius: 0;
  padding: var(--space-sm) var(--space-md);
}

.branded-field input[type="email"]:focus {
  outline: 2px solid var(--colour-accent);
  outline-offset: 2px;
}

.branded-note {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--colour-level);
  margin: var(--space-sm) 0 0;
}

.branded-note[hidden] {
  display: none;
}

/* Primary button, ported from GB Site Button.astro .btn--primary */
.branded-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--colour-navy);
  border-radius: 0;
  padding: var(--space-sm) var(--space-lg);
  background: var(--colour-navy);
  color: var(--colour-white);
  transition: background-color 150ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.branded-btn:hover {
  background: color-mix(in srgb, var(--colour-navy) 82%, var(--colour-accent));
  border-color: color-mix(in srgb, var(--colour-navy) 82%, var(--colour-accent));
}

.branded-btn:focus-visible {
  outline: 2px solid var(--colour-accent);
  outline-offset: 2px;
}

.branded-btn:disabled {
  cursor: not-allowed;
  background: var(--colour-muted);
  border-color: var(--colour-muted);
}

.branded-btn:disabled:hover {
  background: var(--colour-muted);
  border-color: var(--colour-muted);
}

/* Smaller button for secondary placement, e.g. the gate page, where a
   full-size primary button dominates a one-field form. */
.branded-btn--compact {
  font-size: 0.875rem;
  padding: var(--space-xs) var(--space-md);
}

/* Small print under a form's action, e.g. the gate page data note. */
.branded-fineprint {
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--colour-muted);
  margin: var(--space-md) 0 0;
}

.branded-fineprint a,
.lp-friction a {
  color: inherit;
  text-decoration: underline;
}

/* Inverse button, for use on navy surfaces (Landing Page Brief, 9 September
   2026). Combine with .branded-btn for shared padding/geometry/transitions:
   class="branded-btn branded-btn--inverse". */
.branded-btn--inverse {
  background: var(--colour-white);
  border-color: var(--colour-white);
  color: var(--colour-navy);
}

.branded-btn--inverse:hover {
  background: color-mix(in srgb, var(--colour-white) 82%, var(--colour-navy));
  border-color: color-mix(in srgb, var(--colour-white) 82%, var(--colour-navy));
}

/* ==========================================================================
   Landing page (Landing Page Brief, 9 September 2026). Full-width marketing
   page furniture: everything above this point was built for the narrow
   gate/report card shell and stays untouched. A couple of fixed macro
   spacing steps are added here since the flow prototype never needed
   section-level rhythm before now: still fixed values, no clamp()/fluid
   scale, per the redesign's already-settled rule. */

:root {
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --container-max: 1120px;
}

.lp-page {
  font-family: var(--font-brand);
  background: var(--colour-white);
  color: var(--colour-navy);
  margin: 0;
}

.lp-topbar {
  border-bottom: 1px solid var(--colour-bg-tint);
}

.lp-topbar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
}

.lp-logo {
  height: 28px;
  width: auto;
  display: block;
}

.lp-section {
  padding: var(--space-3xl) var(--space-lg);
}

.lp-section--tint {
  background: var(--colour-bg-tint);
}

.lp-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.lp-hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.lp-hero__title {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--colour-navy);
  max-width: 18ch;
  margin: 0;
}

@media (min-width: 768px) {
  .lp-hero__title {
    font-size: 2.75rem;
  }
}

.lp-lead {
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--colour-accent);
  max-width: 60ch;
  margin: 0;
}

.lp-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.lp-friction {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--colour-muted);
  margin: 0;
}

.lp-heading {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--colour-navy);
  max-width: 32ch;
  margin: 0 0 var(--space-md);
}

@media (min-width: 768px) {
  .lp-heading {
    font-size: 1.875rem;
  }
}

.lp-body {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--colour-navy);
  max-width: 65ch;
  margin: 0;
}

.lp-intro {
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--colour-navy);
  margin: 0 0 var(--space-lg);
}

/* Value-card trio, ported treatment (GB Site InsightCard idiom): white
   background, 24px padding, 2px transparent top border resolving to accent
   on hover/focus, subtle tint on hover. Distinct from .branded-card (the
   gate/report page-shell wrapper), which is a different, non-interactive
   treatment. */
.lp-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .lp-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.branded-card--insight {
  background: var(--colour-white);
  border-top: 2px solid transparent;
  padding: var(--space-lg);
  transition: border-color 150ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.branded-card--insight:hover,
.branded-card--insight:focus-within {
  border-top-color: var(--colour-accent);
  background: color-mix(in srgb, var(--colour-accent) 6%, var(--colour-white));
}

.branded-card--insight h3 {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--colour-navy);
  margin: 0 0 var(--space-xs);
}

.branded-card--insight p {
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--colour-muted);
  margin: 0;
}

/* Closing band surface: solid navy background, white heading, body and
   friction-line text at reduced opacity against navy. A design-system
   treatment, not page-specific: reusable anywhere a navy closing moment is
   needed. */
.branded-band--inverse {
  background: var(--colour-navy);
  color: var(--colour-white);
}

.branded-band--inverse .branded-eyebrow {
  color: var(--colour-white);
}

.branded-band--inverse .lp-heading {
  color: var(--colour-white);
}

.branded-band--inverse .lp-body {
  color: color-mix(in srgb, var(--colour-white) 75%, transparent);
}

.branded-band--inverse .lp-friction {
  color: color-mix(in srgb, var(--colour-white) 60%, transparent);
}

.lp-footer {
  background: var(--colour-navy);
  border-top: 1px solid color-mix(in srgb, var(--colour-white) 20%, transparent);
}

.lp-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

.lp-footer__logo {
  height: 24px;
  width: auto;
}

.lp-footer a {
  color: color-mix(in srgb, var(--colour-white) 75%, transparent);
  text-decoration: none;
}

.lp-footer a:hover {
  color: var(--colour-white);
}

.lp-footer__copy {
  font-weight: 400;
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--colour-white) 60%, transparent);
  margin: 0;
}
