/* ============================================================
   NCN: National Compliance Network
   Marketing site stylesheet
   Built on the NCN Brand System v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

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

:root {
  /* Surface and ink */
  --white: #FFFFFF;
  --ink: #1A1D23;

  /* Violet scale */
  --violet-1: #FBFAFF;
  --violet-2: #F4F1FE;
  --violet-3: #EBE4FF;
  --violet-4: #DFD1FF;
  --violet-5: #C8B3FF;
  --violet-6: #A98DEB;
  --violet-7: #8265D6;
  --violet-8: #7458D6;
  --violet-9: #6E56CF;

  /* Grey scale */
  --grey-1: #FAFAFA;
  --grey-2: #F1F1F2;
  --grey-3: #E4E4E7;
  --grey-4: #D1D1D6;
  --grey-5: #9A9AA2;
  --grey-6: #6B6B73;
  --grey-7: #3A3A40;

  /* Semantic */
  --forest: #2F8F5C;
  --amber: #C97914;
  --crimson: #C7372F;

  /* Typography */
  --font-sans: 'Söhne', 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Söhne Mono', 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Type scale */
  --fs-display: clamp(2.5rem, 5.5vw, 4.5rem);
  --fs-h1: clamp(2rem, 3.6vw, 2.75rem);
  --fs-h2: clamp(1.5rem, 2.4vw, 1.875rem);
  --fs-h3: 1.5rem;
  --fs-h4: 1.25rem;
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Layout */
  --max-w: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Reset --------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

a:hover {
  color: var(--violet-9);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--violet-3);
  color: var(--ink);
}

/* --- Typography --------------------------------------------- */

.display,
.h1,
.h2,
.h3,
.h4 {
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  font-weight: 600;
}

.display {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.h4 {
  font-size: var(--fs-h4);
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.lead {
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--grey-7);
  max-width: 56ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-9);
  font-weight: 500;
}

.eyebrow--ink {
  color: var(--grey-6);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-6);
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--violet-9);
}

/* --- Layout primitives -------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--violet {
  background: var(--violet-2);
}

.section--ink {
  background: var(--ink);
  color: var(--white);
}

.section--ink .display,
.section--ink .h1,
.section--ink .h2,
.section--ink .h3,
.section--ink .h4 {
  color: var(--white);
}

.section--ink .lead {
  color: var(--grey-3);
}

.divider {
  height: 1px;
  background: var(--grey-3);
  border: none;
}

/* --- Header / nav ------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--grey-3);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand__lockup {
  width: auto;
  height: 36px;
  flex-shrink: 0;
  display: block;
}

@media (max-width: 540px) {
  .brand__lockup {
    height: 30px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__link {
  font-size: var(--fs-small);
  color: var(--grey-7);
  position: relative;
  padding-block: 0.25rem;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--ink);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 2px;
  background: var(--violet-9);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--grey-3);
  border-radius: 8px;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav__list {
    display: none;
    position: absolute;
    inset: 72px 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-3);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--gutter) 1.5rem;
    gap: 0.5rem;
  }

  .nav__list.is-open {
    display: flex;
  }

  .nav__list .btn {
    margin-top: 0.5rem;
    align-self: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav__link {
    padding-block: 0.625rem;
    font-size: 1rem;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  transition: background-color 160ms var(--ease),
              color 160ms var(--ease),
              border-color 160ms var(--ease),
              transform 160ms var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--violet-9);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--violet-7);
  color: var(--white);
}

.btn--primary:active {
  background: var(--violet-8);
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--grey-3);
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--text {
  padding: 0.5rem 0;
  background: none;
  color: var(--ink);
  border-radius: 0;
}

.btn--text::after {
  content: "→";
  font-family: var(--font-mono);
  margin-left: 0.375rem;
  transition: transform 160ms var(--ease);
}

.btn--text:hover::after {
  transform: translateX(3px);
}

.btn--lg {
  padding: 0.875rem 1.5rem;
  font-size: var(--fs-body);
}

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

.hero {
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.hero__eyebrow {
  margin-bottom: 1.25rem;
}

.hero__title {
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.hero__lead {
  margin-bottom: 2.25rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero__meta {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--grey-3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .hero__meta {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero__meta-key {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-6);
}

.hero__meta-value {
  font-size: var(--fs-body);
  color: var(--ink);
  font-weight: 500;
}

/* Hero visual: stylised certificate / spec-sheet panel */

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--grey-3);
  background: var(--violet-1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(110, 86, 207, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110, 86, 207, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.7;
}

.hero__visual > * {
  position: relative;
  z-index: 1;
}

.hero__cert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--grey-3);
}

.hero__cert-title {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-6);
}

.hero__cert-id {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--violet-9);
}

.hero__ticker {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

.hero__ticker-track {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  animation: ticker 11s linear infinite;
  will-change: transform;
}

.hero__ticker-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--grey-7);
}

.hero__ticker-row .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet-9);
  flex-shrink: 0;
}

.hero__ticker-row .dot--green { background: var(--forest); }
.hero__ticker-row .dot--amber { background: var(--amber); }

.hero__ticker-row .trade {
  color: var(--ink);
  font-weight: 500;
}

.hero__ticker-row .loc {
  color: var(--grey-6);
  font-size: 0.75rem;
  text-align: right;
}

@keyframes ticker {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.hero__cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px dashed var(--grey-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--grey-6);
}

/* --- Trust strip -------------------------------------------- */

.trust-strip {
  border-top: 1px solid var(--grey-3);
  border-bottom: 1px solid var(--grey-3);
  padding-block: 1.25rem;
  background: var(--white);
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-6);
}

.trust-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-strip__item .check {
  color: var(--violet-9);
}

/* --- Pillars / feature grids -------------------------------- */

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  align-items: end;
}

.section-head__title {
  max-width: 18ch;
}

.section-head__intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 50ch;
}

@media (max-width: 760px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-3);
  border: 1px solid var(--grey-3);
}

.pillar {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  min-height: 320px;
  transition: background-color 200ms var(--ease);
}

.pillar:hover {
  background: var(--violet-1);
}

.pillar__num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  color: var(--violet-9);
}

.pillar__title {
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.pillar__body {
  color: var(--grey-7);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.pillar__icon {
  width: 32px;
  height: 32px;
  color: var(--violet-9);
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: 1fr;
  }
  .pillar {
    min-height: auto;
  }
}

/* --- How it works ------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
  position: relative;
}

.step__num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  color: var(--violet-9);
}

.step__title {
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 14ch;
}

.step__body {
  color: var(--grey-7);
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* --- Module list -------------------------------------------- */

.modules {
  display: flex;
  flex-direction: column;
}

.module {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--grey-3);
  align-items: start;
}

.module:last-child {
  border-bottom: 1px solid var(--grey-3);
}

.module__num {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: var(--violet-9);
  font-weight: 500;
  padding-top: 0.4em;
}

.module__head {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.module__name {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.module__lede {
  color: var(--grey-7);
  font-size: var(--fs-body);
  max-width: 36ch;
}

.module__features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--grey-7);
}

.module__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.module__features li::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--violet-9);
  flex-shrink: 0;
  font-weight: 500;
  margin-top: 0.05em;
}

@media (max-width: 860px) {
  .module {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .module__num {
    padding-top: 0;
  }
  .module__features {
    grid-template-columns: 1fr;
  }
}

/* --- CTA banner --------------------------------------------- */

.cta-banner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--white);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: var(--violet-9);
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner .h2 {
  color: var(--white);
  max-width: 16ch;
}

.cta-banner__body {
  color: var(--grey-3);
  margin-top: 1rem;
  max-width: 44ch;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cta-banner .btn--ghost {
  border-color: var(--grey-7);
  color: var(--white);
}

.cta-banner .btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

@media (max-width: 760px) {
  .cta-banner {
    grid-template-columns: 1fr;
  }
}

/* --- Two-lane diagram (network page) ----------------------- */

.lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--grey-3);
  border: 1px solid var(--grey-3);
}

.lane {
  background: var(--white);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lane--violet {
  background: var(--violet-2);
}

.lane__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-9);
}

.lane__title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  max-width: 18ch;
}

.lane__body {
  color: var(--grey-7);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.lane__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--grey-7);
}

.lane__list li {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

.lane__list li::before {
  content: "→";
  font-family: var(--font-mono);
  color: var(--violet-9);
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .lanes {
    grid-template-columns: 1fr;
  }
}

/* --- Verification checks list ------------------------------ */

.checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.check-card {
  border: 1px solid var(--grey-3);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.check-card__label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-6);
}

.check-card__title {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.check-card__body {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--grey-7);
}

@media (max-width: 860px) {
  .checks {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .checks {
    grid-template-columns: 1fr;
  }
}

/* --- Mechanics list (sealed bid etc.) ---------------------- */

.mechanics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}

.mechanic {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--grey-3);
}

.mechanic__num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  color: var(--violet-9);
}

.mechanic__title {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.mechanic__body {
  color: var(--grey-7);
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .mechanics {
    grid-template-columns: 1fr;
  }
}

/* --- Form / waitlist ---------------------------------------- */

.form-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 900px) {
  .form-shell {
    grid-template-columns: 1fr;
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--grey-3);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-6);
}

.form__input {
  width: 100%;
  border: 1px solid var(--grey-3);
  background: var(--white);
  padding: 0.75rem 0.875rem;
  font-size: var(--fs-body);
  color: var(--ink);
  border-radius: 0;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.form__input::placeholder {
  color: var(--grey-5);
}

.form__input:focus {
  outline: none;
  border-color: var(--violet-9);
  box-shadow: 0 0 0 3px var(--violet-3);
}

.form__hint {
  font-size: 0.8125rem;
  color: var(--grey-6);
}

.form__submit {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.form__legal {
  font-size: 0.8125rem;
  color: var(--grey-6);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.form__legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--grey-4);
  text-underline-offset: 3px;
}

.form__success {
  background: var(--violet-2);
  border: 1px solid var(--violet-4);
  padding: 1.25rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

.form__success.is-visible {
  display: flex;
}

.form.is-submitted > .form__row,
.form.is-submitted > .form__legal,
.form.is-submitted > .form__submit {
  display: none;
}

.form__success-title {
  font-size: 1.125rem;
  font-weight: 500;
}

.form__success-body {
  font-size: 0.9375rem;
  color: var(--grey-7);
  line-height: 1.5;
}

/* What happens next sidebar */

.next-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  counter-reset: next;
}

.next-list li {
  counter-increment: next;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.875rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--grey-3);
}

.next-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.next-list li::before {
  content: counter(next, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  color: var(--violet-9);
  padding-top: 0.25em;
}

.next-list h4 {
  font-size: var(--fs-body);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.next-list p {
  font-size: 0.875rem;
  color: var(--grey-7);
  line-height: 1.55;
}

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

.site-footer {
  background: var(--ink);
  color: var(--grey-3);
  padding-block: clamp(3rem, 5vw, 4rem) 2rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 860px) {
  .site-footer .container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .site-footer .container {
    grid-template-columns: 1fr;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 36ch;
}

.footer__brand .brand__lockup {
  height: 44px;
}

.footer__brand .brand {
  color: var(--white);
}

.footer__brand .brand:hover {
  color: var(--white);
}

.footer__copy {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--grey-5);
}

.footer__col h5 {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-5);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__col a {
  color: var(--grey-3);
  font-size: 0.9375rem;
}

.footer__col a:hover {
  color: var(--white);
}

.footer__base {
  border-top: 1px solid var(--grey-7);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-5);
}

.footer__base .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Page header (subpages) -------------------------------- */

.page-head {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--grey-3);
  background: linear-gradient(180deg, var(--violet-1) 0%, var(--white) 100%);
  position: relative;
}

.page-head__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: end;
}

.page-head__title {
  max-width: 14ch;
  margin-bottom: 1rem;
}

.page-head__lede {
  max-width: 50ch;
}

@media (max-width: 760px) {
  .page-head__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Anim helpers ------------------------------------------ */

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rise {
  animation: rise 700ms var(--ease) both;
}

.rise-1 { animation-delay: 60ms; }
.rise-2 { animation-delay: 140ms; }
.rise-3 { animation-delay: 220ms; }
.rise-4 { animation-delay: 300ms; }

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