/*
 * Anywhere Communications website mockup — shared stylesheet.
 *
 * Static demo only. Translated loosely from the design reference
 * (z_items/z_www_images/Websitedesign.png) for review and refinement.
 */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

:root {
  --navy-900: #071739;
  --navy-800: #02154b;  /* Ink Navy */
  --navy-700: #13306e;
  --blue-600: #0061f6;  /* Primary Blue */
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-100: #e6eefc;
  --ink: #0f172a;
  --muted: #4b5563;
  --line: #dbe3f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --radius: 10px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Icons                                                               */
/* ------------------------------------------------------------------ */

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

/* ------------------------------------------------------------------ */
/* Mockup banner and toast                                             */
/* ------------------------------------------------------------------ */

.mock-banner {
  background: #fff7d6;
  color: #6b5200;
  font-size: 13px;
  text-align: center;
  padding: 6px 16px;
  border-bottom: 1px solid #f0dc8a;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------ */
/* Brand                                                               */
/* ------------------------------------------------------------------ */

/*
 * The company signature, rebuilt from Anywhere Communications Logo I
 * with the "A" from Logo IV. Every size is in em of the signature's
 * font-size, so one value scales the whole lockup. Proportions follow
 * Logo I: the "A" stands about a fifth taller than the capitals, all
 * sit on one baseline and COMMUNICATIONS spans the row above.
 */
.signature {
  --mark-left: #0061f6;   /* Primary Blue */
  --mark-right: #02154b;  /* Ink Navy */
  --mark-bar: #73cff3;    /* Sky */
  --sig-ink: #02154b;
  --sig-accent: #0061f6;
  display: inline-block;
  font-family: "Montserrat", var(--font);
  font-size: 26px;
  line-height: 1;
  color: var(--sig-ink);
}

/* On navy: Frost stands in for the Ink Navy triangle and lettering,
   and Sky for the blue, which is too dark to read on navy. */
.signature--reversed {
  --mark-right: #f4f6f9;
  --sig-ink: #f4f6f9;
  --sig-accent: #73cff3;
}

.sig-row {
  display: flex;
  align-items: baseline;
}

/* An inline SVG's baseline is its bottom edge, so baseline alignment
   puts the foot of the "A" on the letters' baseline. */
.sig-mark {
  flex: none;
  width: 0.909em;
  height: 0.854em;
  margin-right: 0.07em;
}

.sig-word {
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-right: -0.05em;
}

/* Lower tiers take the row's width without widening it. */
.sig-sub,
.sig-rule,
.sig-tag {
  width: 0;
  min-width: 100%;
}

.sig-sub {
  display: flex;
  justify-content: space-between;
  margin-top: 0.14em;
  font-size: 0.38em;
  font-weight: 600;
}

.sig-rule {
  display: block;
  height: 2px;
  margin-top: 0.32em;
  background: var(--sig-accent);
}

.sig-tag {
  display: flex;
  align-items: center;
  gap: 0.3em;
  margin-top: 0.22em;
  color: var(--sig-accent);
}

.sig-clip {
  width: 0.55em;
  height: 0.55em;
  stroke-width: 2;
}

/* Letter-spaced like Logo I; the words then spread to fill the row.
   0.2em leaves the word gaps about two and a half letter gaps wide,
   as in the reference. The last word drops its trailing spacing so
   COLLECT. ends flush with the row. */
.sig-tag-text {
  display: flex;
  flex: 1;
  justify-content: space-between;
  font-size: 0.33em;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.sig-tag-text > span:last-child {
  margin-right: -0.2em;
}

.signature--full {
  font-size: 30px;
}

/* ------------------------------------------------------------------ */
/* Header and navigation                                               */
/* ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  white-space: nowrap;
}

.site-nav a:not(.btn) {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 6px 0;
}

.site-nav a:not(.btn):hover,
.site-nav a.active {
  color: var(--blue-600);
}

.site-nav a.active {
  box-shadow: inset 0 -2px 0 var(--blue-600);
}

.nav-signout {
  display: flex;
  margin: 0;
}

.nav-signout-button {
  padding: 6px 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
}

.nav-signout-button:hover {
  color: var(--blue-600);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy-800);
  cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1.5px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 12px;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-500);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  color: #fff;
}

/* Stand-in for the design's photography. Swapped for real images at
   refinement. */
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0, #000 45%);
}

.hero-photo--columns {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 16px, rgba(255, 255, 255, 0) 16px 40px),
    linear-gradient(180deg, #3a5c9e 0%, #1d3c7c 50%, #0b1f4d 100%);
}

.hero-photo--city {
  background: linear-gradient(180deg, #8fb4e8 0%, #4f7fc4 45%, #2a8aa8 75%, #1b6b86 100%);
}

.hero-photo--office {
  background: radial-gradient(circle at 70% 40%, #4a628f 0, #24365e 45%, #0f1f45 100%);
}

.photo-note {
  position: absolute;
  right: 16px;
  bottom: 12px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.hero-inner {
  position: relative;
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero h1 {
  max-width: 640px;
  margin: 0 0 24px;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.hero h1 .accent {
  display: block;
  color: var(--blue-400);
}

.hero .lead {
  max-width: 520px;
  margin: 0 0 36px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Home hero: copy on the left, client sign-in card on the right. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 380px);
  gap: 56px;
  align-items: center;
}

.signin-card {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 40px rgba(2, 10, 40, 0.35);
  scroll-margin-top: 120px;
}

.signin-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-800);
}

.signin-sub {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.signin-form {
  display: grid;
  gap: 14px;
}

.signin-form .btn {
  justify-content: center;
  width: 100%;
}

.signin-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
  font-size: 13px;
}

.signin-meta a {
  color: var(--blue-600);
}

.signin-meta a:hover {
  text-decoration: underline;
}

.signin-request {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.signin-request a {
  font-weight: 600;
  color: var(--blue-600);
}

.signin-request a:hover {
  text-decoration: underline;
}

.signin-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #b42318;  /* 6.6:1 on white */
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue-400);
}

.hero-page .hero-inner {
  padding-top: 64px;
  padding-bottom: 72px;
}

.hero-page h1 {
  max-width: 560px;
  font-size: clamp(30px, 3.6vw, 42px);
}

.hero-page .lead {
  margin-bottom: 0;
}

.hero-page.has-cards .hero-inner {
  padding-bottom: 128px;
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.section {
  padding: 72px 0;
}

.section-title {
  margin: 0 0 40px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-800);
}

.section-sub {
  max-width: 640px;
  margin: -24px auto 40px;
  text-align: center;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Home: how we operate                                                */
/* ------------------------------------------------------------------ */

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1.7fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

.flow-step {
  text-align: center;
}

.flow-step h3 {
  margin: 14px 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-800);
}

.flow-step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.flow-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
}

.flow-icon .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.flow-icon--solid {
  background: var(--blue-600);
  color: #fff;
}

.flow-arrow {
  color: var(--navy-800);
}

.flow-core {
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 12px 30px rgba(11, 31, 77, 0.25);
}

.flow-core-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flow-core-head .icon {
  color: var(--blue-400);
}

.checklist {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist .icon {
  width: 20px;
  height: 20px;
}

/* ------------------------------------------------------------------ */
/* Navy bands: stats, call-to-action, mission                          */
/* ------------------------------------------------------------------ */

.band {
  padding: 56px 0;
  background: var(--navy-800);
  color: #fff;
}

.band-title {
  margin: 0 0 36px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 8px 24px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.stat .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  stroke-width: 1.3;
}

.stat-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
}

.stat-label {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.cta-band {
  padding: 32px 0;
  background: var(--navy-800);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-inner > .icon {
  width: 46px;
  height: 46px;
  stroke-width: 1.4;
}

.cta-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.cta-title.caps {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-sub {
  margin: 4px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
}

/* ------------------------------------------------------------------ */
/* Home: partners                                                      */
/* ------------------------------------------------------------------ */

.partner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 56px;
}

.partner {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #334155;
}

.partner-more {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Services: cards                                                     */
/* ------------------------------------------------------------------ */

.cards-overlap {
  position: relative;
  margin-top: -88px;
  padding-top: 0;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  flex: 0 1 calc((100% - 40px) / 3);
  padding: 32px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.card .icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  color: var(--navy-700);
  stroke-width: 1.4;
}

.card h3,
.feature h3 {
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-800);
}

.card p,
.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Solutions: list                                                     */
/* ------------------------------------------------------------------ */

.solution-list {
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.solution {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 12px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.solution:hover {
  background: var(--bg-soft);
}

.solution-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--navy-700);
}

.solution-icon .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.5;
}

.solution-body {
  flex: 1;
}

.solution h3 {
  margin: 0 0 6px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-800);
}

.solution h3 small {
  margin-left: 6px;
  font-size: 11px;
  color: var(--blue-600);
}

.solution p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.solution-go {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--blue-600);
  border-radius: 50%;
  color: var(--blue-600);
}

/* ------------------------------------------------------------------ */
/* About: features                                                     */
/* ------------------------------------------------------------------ */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature {
  padding: 8px 28px;
  text-align: center;
}

.feature + .feature {
  border-left: 1px solid var(--line);
}

.feature .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  color: var(--blue-600);
  stroke-width: 1.4;
}

/* ------------------------------------------------------------------ */
/* Contact                                                             */
/* ------------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
}

.contact-title {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy-800);
}

.contact-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
}

.contact-list .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--navy-800);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--blue-400);
  outline-offset: -1px;
  border-color: transparent;
}

/* The consultation form's checks (Stage 8 Phase 1). */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b42318;
}

.form-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #b42318;
  border-radius: 4px;
  background: #fef3f2;
}

.form-alert p {
  margin: 0;
  font-size: 14px;
  color: #b42318;
}

/* The honeypot: never shown, never reached by Tab or a screen reader. */
.form-trap {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  padding: 28px 0;
  background: var(--navy-900);
  color: #fff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a:hover {
  color: #93c5fd;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

/* The header collapses earlier than the page body, so the full menu
   never crowds the signature. */
@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-grid;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 12px 0;
  }

  .site-nav a.active {
    box-shadow: none;
  }

  .site-nav .btn {
    justify-content: center;
    margin-top: 8px;
  }
}

@media (max-width: 960px) {
  .hero-photo {
    width: 100%;
    opacity: 0.35;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .signin-card {
    max-width: 460px;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .stats,
  .features {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }

  .stat:nth-child(3),
  .feature:nth-child(3) {
    border-left: 0;
  }

  .card {
    flex-basis: calc((100% - 20px) / 2);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    min-height: 72px;
  }

  .site-nav {
    padding: 8px 16px 20px;
  }

  .signature {
    font-size: 22px;
  }

  .signature--full {
    font-size: 26px;
  }

  .hero-inner {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .section {
    padding: 56px 0;
  }

  .stats,
  .features {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 28px;
  }

  .feature + .feature {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }

  .card {
    flex-basis: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .partner-row {
    gap: 28px;
  }

  .solution {
    gap: 16px;
    padding: 20px 4px;
  }

  .solution-icon {
    width: 56px;
    height: 56px;
  }

  .cta-inner {
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------------ */
/* Curated landing page                                                */
/* ------------------------------------------------------------------ */

/* index.html: the bar, the hero and a copyright line. The hero fills
   the viewport between the banner and bar and the footer; on narrow
   screens, where the copy and the sign-in card stack, it grows and the
   page scrolls. */
.page-curated {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-curated main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.page-curated .hero {
  display: flex;
  flex: 1;
  align-items: center;
}

.page-curated .hero-inner {
  width: 100%;
}

/* The curated footer holds only the copyright line, so it is slimmer
   than the full one, with the line centred where the full footer has
   it. */
.page-curated .site-footer {
  padding: 16px 0;
}

.page-curated .footer-inner {
  justify-content: center;
}

/* ------------------------------------------------------------------ */
/* Flashed messages and the admin page (Stage 7)                       */
/* ------------------------------------------------------------------ */

.flash {
  background: var(--blue-100);
  border-bottom: 1px solid var(--line);
}

.flash p {
  margin: 0;
  padding: 12px 0;
  font-size: 14px;
  color: var(--navy-800);
}

.admin {
  padding: 48px 0;
}

.admin-inner {
  max-width: 1000px;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin h1 {
  margin: 0 0 16px;
}

.admin-head-links,
form.admin-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
}

.admin-subhead {
  margin: 32px 0 12px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
}

.admin-filters a {
  color: var(--muted);
}

.admin-filters a.active {
  color: var(--blue-600);
  box-shadow: inset 0 -2px 0 var(--blue-600);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.admin-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
  font-size: 14px;
}

.admin-facts dt {
  font-weight: 600;
  color: var(--muted);
}

.admin-facts dd {
  margin: 0;
}

.admin-history {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}

.admin-back,
.admin-note,
.admin-empty {
  font-size: 13px;
  color: var(--muted);
}

.admin-narrow {
  max-width: 560px;
}

.admin-actions {
  margin: 24px 0 0;
}

.admin-alert {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 14px;
}

.admin-alert p {
  margin: 0;
}

.admin-form {
  display: grid;
  gap: 6px;
}

.admin-form label {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
}

.admin-form input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
}

.admin-form input[aria-invalid="true"] {
  border-color: #b91c1c;
}

.admin-field-error {
  margin: 0;
  font-size: 13px;
  color: #b91c1c;
}

.admin-optional {
  font-weight: 400;
  color: var(--muted);
}

.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 14px;
}
