@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat Local";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/montserrat.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #F4EAD9;
  --surface: #FBF3E4;
  --surface-2: #EFE2CC;
  --text: #1A1613;
  --muted: #6B6156;
  --accent: #BB0E18;
  --border: #E3D5BE;
  --content: 1160px;
  --shadow: 0 28px 80px rgba(57, 38, 18, .16);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131211;
  --surface: #1E1C1A;
  --surface-2: #2A2724;
  --text: #F4EAD9;
  --muted: #ADA69C;
  --accent: #BB0E18;
  --border: #322E2A;
  --shadow: 0 28px 80px rgba(0, 0, 0, .36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.page-shell {
  width: min(calc(100% - 60px), var(--content));
  margin: 0 auto;
}

.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.site-header__inner,
.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.site-header__inner {
  justify-content: space-between;
  gap: 24px;
}

.brand {
  gap: 10px;
  font-family: "Spline Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
}

.site-nav {
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}

.theme-toggle__moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__moon {
  display: inline;
}

.hero {
  padding: 92px 0 112px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(360px, .86fr);
  gap: 80px;
  align-items: center;
}

.eyebrow,
.section-label,
.phone-stage__label,
.text-note,
.source-note {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
}

.eyebrow,
.section-label {
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: -.055em;
  font-synthesis: none;
}

h1 {
  margin: 20px 0 18px;
  font-size: clamp(50px, 7vw, 94px);
  line-height: .9;
  white-space: nowrap;
}

h1 span {
  color: var(--accent);
}

.hero__subhead {
  margin-bottom: 22px;
  font-family: "Inter", sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -.04em;
}

.hero__lead {
  max-width: 540px;
  color: var(--muted);
  font-size: 19px;
  margin-bottom: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
}

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--primary:hover,
.button--primary:focus-visible {
  filter: brightness(1.1);
}

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

.hero__copy .button {
  display: flex;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.hero__media {
  min-width: 0;
}

.phone-stage {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 28px 24px 24px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-stage__label {
  margin: 0 0 18px 6px;
  color: var(--muted);
  font-size: 10px;
}

.phone-stage img {
  width: 100%;
  border-radius: 20px;
}

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

.section {
  padding: 110px 0;
  border-top: 1px solid var(--border);
}

.section--quiet {
  background: var(--surface);
}

.statement {
  max-width: 880px;
}

.statement h2 {
  margin: 20px 0 28px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
}

.statement h2 em {
  display: inline-block;
  margin-top: 10px;
}

h2 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
}

h2 em {
  color: var(--accent);
  font-style: normal;
}

.statement p:last-child,
.section-heading>p,
.source-grid p,
.listen-grid p,
.closing p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  margin-bottom: 52px;
}

.section-heading h2 {
  margin: 18px 0 0;
  word-spacing: .16em;
}

.section-heading>p {
  max-width: 360px;
  margin: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.step-card__number {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-family: ui-monospace, monospace;
  font-weight: 700;
}

.step-card h3 {
  margin-bottom: 12px;
  font-size: 25px;
  letter-spacing: -.03em;
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

.section--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.listen-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 620px);
  gap: 88px;
  align-items: center;
  justify-content: center;
}

.section--accent .section-label,
.section--accent .text-note {
  color: #1A1613;
}

.section--accent .section-label {
  font-family: "Montserrat Local", "Inter", sans-serif;
  font-size: 20px;
  letter-spacing: .08em;
}

.listen-grid h2 {
  margin: 18px 0 28px;
}

.listen-grid p {
  color: #ffe9dc;
}

.jest-card {
  width: 240px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
  transform: rotate(-7deg);
}

.text-note {
  display: block;
  margin-top: 28px;
  color: #1A1613;
  font-family: "Montserrat Local", "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: .14em;
}

.source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.source-grid h2 {
  margin: 18px 0 0;
}

.source-grid p {
  max-width: 520px;
}

.source-note {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--accent) !important;
  font-size: 11px !important;
}

.section--closing {
  padding: 130px 0;
  background: var(--text);
  color: var(--bg);
  text-align: center;
}

.closing {
  max-width: 820px;
}

.closing img {
  width: 74px;
  height: 74px;
  margin: 0 auto 28px;
  border-radius: 50%;
}

.section--closing .section-label {
  color: var(--accent);
}

.closing h2 {
  max-width: 760px;
  margin: 18px auto 24px;
}

.closing p {
  max-width: 620px;
  margin: 0 auto;
  color: color-mix(in srgb, var(--bg) 72%, transparent);
}

.site-footer {
  padding: 25px 0;
  background: var(--text);
  color: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: 13px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width:800px) {
  .hero {
    padding: 66px 0 82px;
  }

  .hero__grid,
  .listen-grid,
  .source-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero__media {
    max-width: 520px;
    margin: 0 auto;
  }

  .section-heading {
    display: block;
  }

  .section-heading>p {
    margin-top: 24px;
  }

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

  .step-card {
    min-height: 0;
  }

  .step-card__number {
    margin-bottom: 20px;
  }

  .listen-grid {
    justify-items: start;
  }

  .jest-card {
    width: 180px;
    justify-self: center;
  }
}

@media (max-width:560px) {
  .page-shell {
    width: min(calc(100% - 50px), var(--content));
  }

  .site-header {
    padding: 16px 0;
  }

  .site-nav a {
    display: none;
  }

  h1 {
    font-size: clamp(48px, 16vw, 82px);
  }

  .hero__lead {
    font-size: 17px;
  }

  .section {
    padding: 88px 0;
  }

  .phone-stage {
    padding: 18px 16px 16px;
    border-radius: 24px;
  }

  .phone-stage img {
    border-radius: 14px;
  }

  .site-footer__inner {
    display: block;
  }

  .site-footer__inner span {
    display: block;
  }

  .site-footer__inner span+span {
    margin-top: 8px;
  }
}
