/*
 * The teaser's one stylesheet. The tokens are the client's (apps/client/src/styles/tokens.scss),
 * copied rather than imported because this page has no build: Bebas Neue display, Source Sans 3
 * body, discipline black, pickleball yellow, growth green. Yellow is a fill, never text. The bands
 * alternate dark, warm and light as the public pages' Sections do, and the page follows the
 * reader's color scheme.
 */

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/bebas-neue-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin-600-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;

  --brand-black: #1a1a1a;
  --brand-yellow: #c4d600;
  --brand-yellow-strong: #b3c400;
  --brand-green: #2d5a27;
  --brand-brown: #8b4513;
  --brand-blue: #1e4d8c;
  --on-brand-yellow: #1a1a1a;
  --on-brand-black: #ffffff;
  --on-brand-black-muted: #b9b9b4;

  --surface: #ffffff;
  --surface-sunken: #f3f3ef;
  --surface-raised: #ffffff;
  --border: #d8dbe0;
  --border-strong: #9aa0a8;
  --text: #16191d;
  --text-muted: #5b6169;

  --accent: #2d5a27;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --measure: 38rem;
  --page-width: 72rem;
  --radius: 6px;
  --radius-lg: 10px;
  --touch-target: 44px;

  --font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --shadow: 0 1px 2px rgb(0 0 0 / 8%), 0 2px 8px rgb(0 0 0 / 4%);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface: #16191d;
    --surface-sunken: #101316;
    --surface-raised: #1d2126;
    --border: #2f343b;
    --border-strong: #545b64;
    --text: #eef0f2;
    --text-muted: #a3aab3;
    --accent: #8cc97a;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 2px 8px rgb(0 0 0 / 30%);
  }
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

/* Headings are the display face. Bebas Neue has one weight and capitals only, so weight is reset. */
h1,
h2,
h3 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.display-xl {
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  line-height: 0.92;
  margin-bottom: var(--space-4);
}

.display-l {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: var(--space-4);
}

.eyebrow,
.kicker {
  margin: 0 0 var(--space-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kicker {
  margin-bottom: var(--space-2);
}

.lede {
  max-width: var(--measure);
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  padding: var(--space-2) var(--space-4);
  background: var(--brand-yellow);
  color: var(--on-brand-yellow);
  z-index: 10;
}

.skip:focus {
  top: var(--space-2);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: var(--page-width);
  min-height: 4rem;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.625rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-3);
  min-height: 1.75rem;
  border-radius: 999px;
  background: var(--brand-yellow);
  color: var(--on-brand-yellow);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-target);
  padding: 0 var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.button-primary {
  background: var(--brand-yellow);
  color: var(--on-brand-yellow);
}

.button-primary:hover {
  background: var(--brand-yellow-strong);
}

.button-inverse {
  background: transparent;
  color: var(--on-brand-black);
  border-color: var(--on-brand-black-muted);
}

.button-inverse:hover {
  background: rgb(255 255 255 / 8%);
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 2px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Bands */
.band {
  padding: var(--space-16) var(--space-4);
}

.inner {
  max-width: var(--page-width);
  margin: 0 auto;
}

.light {
  background: var(--surface);
}

.warm {
  background: var(--surface-sunken);
}

.dark {
  background: var(--brand-black);
  color: var(--on-brand-black);
  color-scheme: dark;
}

.dark .eyebrow {
  color: var(--brand-yellow);
}

.dark .lede,
.dark .note,
.dark .kicker {
  color: var(--on-brand-black-muted);
}

/* Hero */
.hero {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 64rem) {
  .hero {
    grid-template-columns: 3fr 2fr;
  }
}

.hero-copy {
  max-width: 40rem;
}

.hero-note {
  font-size: 1.0625rem;
  color: var(--on-brand-black);
  padding-left: var(--space-4);
  border-left: 4px solid var(--brand-yellow);
}

.hero-mark {
  display: none;
  justify-content: center;
}

.hero-mark img {
  width: min(100%, 22rem);
  filter: drop-shadow(0 12px 32px rgb(0 0 0 / 45%));
}

@media (min-width: 64rem) {
  .hero-mark {
    display: flex;
  }
}

/* Cards and grids */
.grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 40rem) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .grid-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.stack {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.card {
  padding: var(--space-6);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

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

.card-dark {
  background: rgb(255 255 255 / 6%);
  border-color: rgb(255 255 255 / 14%);
  box-shadow: none;
}

.note {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--brand-yellow);
  color: var(--on-brand-yellow);
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.swatch {
  display: block;
  width: 100%;
  height: 0.5rem;
  margin-bottom: var(--space-4);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.swatch-white {
  background: #ffffff;
}

.swatch-blue {
  background: var(--brand-blue);
}

.swatch-green {
  background: var(--brand-green);
}

.swatch-brown {
  background: var(--brand-brown);
}

.swatch-black {
  background: var(--brand-black);
}

/* Prose */
.prose {
  max-width: var(--measure);
  font-size: 1.0625rem;
  margin-top: var(--space-8);
}

.prose-dark {
  max-width: var(--measure);
  font-size: 1.0625rem;
  margin-top: var(--space-8);
  color: var(--on-brand-black-muted);
}

.split {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

.split .prose {
  margin-top: 0;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 3fr 2fr;
  }
}

/* Testimonials */
.testimonials {
  display: grid;
  gap: var(--space-8);
}

.testimonial {
  margin: 0;
  max-width: 48rem;
}

.testimonial blockquote {
  margin: 0;
  padding-left: var(--space-6);
  border-left: 4px solid var(--brand-yellow);
  font-size: 1.25rem;
  line-height: 1.5;
}

.testimonial blockquote p {
  margin: 0;
}

.testimonial figcaption {
  margin-top: var(--space-3);
  padding-left: var(--space-6);
  font-weight: 600;
}

/* Closer and footer */
.closer .lede {
  margin-bottom: 0;
}

.footer {
  padding: var(--space-8) var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--surface-sunken);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-inner p {
  margin: 0;
}
