/* Beyond Tech Page template (derived from the Alex Penny pilot).
   The page has one job: sign-ups. Per member, change the tokens in :root first.
   Keep ONE accent colour, reserved for the call to action, so the eye goes to
   the button. Re-check WCAG AA contrast whenever the colours change.
   Inter is self-hosted (OFL, see fonts/). Never load fonts from a third party:
   the CSP blocks it. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* PER MEMBER: brand colours */
  --ink: #1b2a3a;          /* text, headings, dark sections */
  --ink-soft: #4a5a6b;     /* secondary text, labels */
  --accent: #2f5fd0;       /* the one accent: CTAs and highlights only */
  --accent-dark: #244bab;  /* button hover */
  --paper: #ffffff;        /* page background */
  --tint: #f4f5f7;         /* alternate sections */
  --line: #e3e6ea;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --wrap: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--paper);
  padding: .5rem 1rem; border-radius: var(--radius);
  z-index: 10;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.wrap.narrow { max-width: 760px; }

section { padding-block: clamp(3.5rem, 8vw, 6rem); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Header */
.site-header { padding-block: 1.5rem; }
.wordmark {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span {
  display: inline-block;
  margin-left: .25rem;
  padding: .05rem .4rem;
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--paper);
  background: var(--ink);
  border-radius: 4px;
  vertical-align: .15em;
}

/* Hero */
.hero { padding-top: clamp(1.5rem, 4vw, 3rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.lede { font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.byline { font-size: .9375rem; font-weight: 600; color: var(--ink); margin-top: -.25rem; }
.byline span { color: var(--ink-soft); font-weight: 400; }
.sub { color: var(--ink-soft); max-width: 36rem; }

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
  max-width: 34rem;
}
.signup input {
  flex: 1 1 15rem;
  min-width: 0;
  font: inherit;
  padding: .9rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid #8c8478;
  border-radius: var(--radius);
}
.signup input::placeholder { color: #5f6b78; }
.signup input:focus-visible { border-color: var(--accent); outline-offset: 1px; }
.signup button {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 700;
  padding: .9rem 1.4rem;
  color: var(--paper);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s ease;
}
.signup button:hover { background: var(--accent-dark); }
.microcopy { margin-top: .75rem; font-size: .875rem; color: var(--ink-soft); }

/* Offer cover (placeholder visual; swap for a member image) */
.cover { margin: 0; display: grid; place-items: center; }
.cover-card {
  width: min(100%, 340px);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: 14px;
  border-bottom: 10px solid var(--accent);
  box-shadow: 0 24px 48px -24px rgba(27, 42, 58, .45);
}
.cover-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #c9d1da;
}
.cover-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.cover-by { font-weight: 600; color: #c9d1da; }

/* Problem */
.problem { background: var(--tint); }
.problem p { font-size: 1.125rem; color: var(--ink-soft); }
.problem .kicker { color: var(--ink); font-weight: 700; font-size: 1.25rem; margin-top: 1.5rem; }

/* What's inside */
.card-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.card-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card-list li:last-child { border-top-color: var(--accent); }
.card-label {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .5rem;
}
.card-list p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* Quote */
.quote { background: var(--ink); color: var(--paper); }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}
.quote blockquote p::before {
  content: "";
  display: block;
  width: 3rem; height: 4px;
  margin-bottom: 1.5rem;
  background: var(--accent);
  border-radius: 2px;
}
.quote figcaption, .quote cite { display: block; margin-top: 1rem; color: #c9d1da; font-style: normal; }

/* How it works */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
}
.steps li { counter-increment: step; color: var(--ink-soft); }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
}
.steps strong { display: block; color: var(--ink); font-size: 1.125rem; margin-bottom: .25rem; }

/* About */
.about { background: var(--tint); }
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.headshot {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  max-width: 220px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2px dashed #b3ab9f;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 2.5rem;
  font-weight: 800;
}
.about p { color: var(--ink-soft); max-width: 40rem; }
.creds {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.creds li {
  padding: .5rem .9rem;
  background: var(--paper);
  border-radius: 999px;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.creds strong { color: var(--ink); }

/* Final CTA */
.final { text-align: center; }
.final .signup { margin-inline: auto; }
.final p { color: var(--ink-soft); font-size: 1.125rem; }
.final .microcopy { font-size: .875rem; }

/* Footer */
.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-soft);
}
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cover-card { width: min(100%, 280px); }
}
@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr; }
  .headshot { max-width: 140px; }
  .signup button { flex: 1 1 100%; }
}

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