/* =========================================================
   StrideFlow  Landing page
   Warm Editorial palette, Fraunces + Inter typography.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --bg:           #F5EFE6;
  --bg-elev:      #EFE6D6;
  --bg-card:      #FBF6EE;
  --terracotta:   #C8501F;
  --terracotta-d: #B0451A;
  --peach:        #E8B097;
  --peach-soft:   #F2D2BD;
  --ink:          #1A1410;
  --ink-soft:     #4A3F35;
  --ink-mute:     #7C7166;
  --oxblood:      #5C2419;
  --line:         rgba(26, 20, 16, 0.10);
  --line-strong:  rgba(26, 20, 16, 0.18);

  /* Type */
  --font-serif:   'Fraunces', 'Iowan Old Style', 'Apple Garamond', Georgia, serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --container:    1200px;
  --container-narrow: 760px;
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    28px;

  /* Motion */
  --ease:         cubic-bezier(.2, .7, .2, 1);
  --ease-out:     cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

::selection { background: var(--terracotta); color: var(--bg); }

.skip-link {
  position: absolute; top: 16px; left: 16px;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 8px;
  z-index: 100;
  transform: translateY(calc(-100% - 24px));
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.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;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--container-narrow); }

.section-pad { padding: 96px 0; }
@media (min-width: 768px) { .section-pad { padding: 140px 0; } }

.section-head { margin-bottom: 64px; }
@media (min-width: 768px) { .section-head { margin-bottom: 88px; } }

/* ---------- Typography utilities ---------- */
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.display em { font-style: italic; color: var(--terracotta); font-weight: 400; }

.headline-xl {
  font-family: var(--font-serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.headline-xl em { font-style: italic; color: var(--terracotta); font-weight: 400; }

.headline-md {
  font-family: var(--font-serif);
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.lede {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}

.prose {
  font-size: 1.075rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}
.prose + .prose { margin-top: 16px; }
.prose-mute { color: var(--ink-mute); }

.eyebrow,
.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.section-label { margin-bottom: 24px; }

.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(200, 80, 31, 0.18);
}

.micro {
  font-size: 0.92rem;
  color: var(--ink-mute);
  margin-top: 14px;
}

.on-dark { color: var(--bg); }
.section-label-on-dark { color: var(--peach); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--terracotta);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 14px -4px rgba(200, 80, 31, 0.5);
}
.btn-primary:hover { background: var(--terracotta-d); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(26, 20, 16, 0.04); }

.btn-on-dark {
  background: var(--bg);
  color: var(--oxblood);
}
.btn-on-dark:hover { background: #fff; }

.btn-on-dark-primary {
  background: var(--terracotta);
  color: var(--bg);
}
.btn-on-dark-primary:hover { background: var(--terracotta-d); }

.btn-lg {
  padding: 16px 28px;
  font-size: 1.02rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 230, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.brand-mark { color: var(--terracotta); display: inline-flex; }
.brand-mark-img { display: block; }
.brand-footer .brand-mark-img { width: 22px; height: 22px; }
.brand-name { line-height: 1; padding-top: 2px; }

.nav-cta { padding: 10px 18px; font-size: 0.92rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 24px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding: 96px 0 40px; }
}

.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .display { max-width: 18ch; margin: 28px auto 0; }
.hero .lede { margin: 24px auto 0; text-align: center; }

/* Hero badge  sits above the headline. Apple-style pill with iOS icon. */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(26, 20, 16, 0.05);
  border: 1px solid rgba(26, 20, 16, 0.08);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-badge:hover {
  background: rgba(26, 20, 16, 0.09);
  border-color: rgba(26, 20, 16, 0.14);
  transform: translateY(-1px);
}
.hero-badge-icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--ink);
  margin-top: -1px;
}

.hero-cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; }

.hero-stage {
  position: relative;
  margin-top: 64px;
  display: flex;
  justify-content: center;
  padding-bottom: 40px;
}
@media (min-width: 768px) {
  .hero-stage { margin-top: 88px; padding-bottom: 80px; }
}

.stage-glow {
  position: absolute;
  inset: auto 10% 0 10%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 60%, rgba(200, 80, 31, 0.18), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* ---------- Device mockup ---------- */
.device {
  position: relative;
  width: 280px;
  border-radius: 44px;
  background: linear-gradient(180deg, #2A2018 0%, var(--ink) 100%);
  padding: 11px;
  box-shadow:
    0 60px 80px -20px rgba(26, 20, 16, 0.28),
    0 30px 50px -15px rgba(26, 20, 16, 0.18),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.06);
  z-index: 1;
}
.device::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 44px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 30%, transparent 70%, rgba(255,255,255,0.04));
}

.device-screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: var(--peach-soft);
  aspect-ratio: 9 / 19.5;
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Hides the alt text caption shown by browsers on broken images,
     so the placeholder peach screen reads as intentional until the
     real screenshot is dropped into /images/. The alt text remains
     in the DOM for assistive tech. */
  color: transparent;
  font-size: 0;
}
.device-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--peach-soft) 100%);
  z-index: 0;
  pointer-events: none;
}
.device-screen img { position: relative; z-index: 1; }

.device-sm { width: 240px; }
.device-md { width: 270px; }

@media (min-width: 768px) {
  .device { width: 320px; }
  .device-sm { width: 260px; }
  .device-md { width: 300px; }
}
@media (min-width: 1100px) {
  .device { width: 340px; }
  .device-sm { width: 280px; }
  .device-md { width: 320px; }
}

.device-tilt { transition: transform .8s var(--ease-out); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .device-tilt { transition: none !important; transform: none !important; }
}

/* ---------- Problem ---------- */
.problem .narrow { text-align: left; }
.problem .headline-xl { margin-bottom: 32px; }
.problem .prose { font-size: 1.18rem; }

/* ---------- Solution / features ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.feature-row:first-of-type { border-top: 0; padding-top: 0; }

@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 88px 0;
  }
  .feature-row-reverse .feature-copy { order: 2; }
  .feature-row-reverse .feature-visual { order: 1; }
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--oxblood);
  margin-bottom: 14px;
}
.feature-copy .prose { margin-top: 18px; }

.feature-visual {
  display: flex;
  justify-content: center;
}
@media (min-width: 900px) {
  .feature-row .feature-visual { justify-content: flex-end; }
  .feature-row-reverse .feature-visual { justify-content: flex-start; }
}

/* ---------- Social proof / pullquote ---------- */
.pullquote {
  position: relative;
  padding: 8px 0 8px 0;
  text-align: left;
}
.quote-mark {
  position: absolute;
  top: -28px; left: -10px;
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--peach);
  opacity: .9;
  user-select: none;
}
.pullquote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: var(--oxblood);
  letter-spacing: -0.015em;
  max-width: 28ch;
}
.pullquote figcaption {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.waitlist-card {
  margin-top: 64px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 20px 40px -30px rgba(26, 20, 16, 0.25);
}
@media (min-width: 600px) {
  .waitlist-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 36px;
  }
}
.waitlist-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 6px;
}
.waitlist-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.waitlist-sub {
  font-size: 0.96rem;
  color: var(--ink-mute);
  margin-top: 4px;
  max-width: 50ch;
}
.waitlist-card .btn { background: var(--oxblood); color: var(--bg); align-self: flex-start; }
.waitlist-card .btn:hover { background: #4A1D14; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}
.step {
  position: relative;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.step-num {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--oxblood);
  margin-bottom: 24px;
}
.step-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
}
.step-body {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  transition: color .25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--terracotta); }

.faq-q {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.faq-icon {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .35s var(--ease), background .25s var(--ease);
}
.faq-icon::before { width: 9px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 9px; }

.faq-item[open] .faq-icon {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: rotate(180deg);
}
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: var(--bg); }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s var(--ease);
}
.faq-a p {
  padding: 4px 0 28px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 60ch;
}

/* ---------- Final CTA ---------- */
.final-cta { padding: 64px 0; }
@media (min-width: 768px) { .final-cta { padding: 96px 0; } }

.final-cta-panel {
  background: var(--oxblood);
  color: var(--bg);
  border-radius: 32px;
  margin: 0 16px;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.final-cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(232, 176, 151, 0.18), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(200, 80, 31, 0.22), transparent 60%);
  pointer-events: none;
}
@media (min-width: 768px) {
  .final-cta-panel { margin: 0 32px; padding: 96px 0; }
}
@media (min-width: 1100px) {
  .final-cta-panel { margin: 0 auto; max-width: calc(var(--container) - 16px); }
}

.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
@media (min-width: 900px) {
  .final-cta-grid { grid-template-columns: 1.2fr 1fr; gap: 80px; }
}

.final-cta-copy .prose {
  color: rgba(245, 239, 230, 0.78);
  margin-top: clamp(24px, 3vw, 36px);
}

.final-cta-visual { display: flex; justify-content: center; }
@media (min-width: 900px) {
  .final-cta-visual { justify-content: flex-end; }
}

/* ---------- Beta form ---------- */
.beta-form {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 460px;
}
@media (min-width: 520px) {
  .beta-form {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
}

.beta-form input[type="email"] {
  background: rgba(245, 239, 230, 0.08);
  border: 1px solid rgba(245, 239, 230, 0.2);
  color: var(--bg);
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.beta-form input[type="email"]::placeholder { color: rgba(245, 239, 230, 0.5); }
.beta-form input[type="email"]:focus {
  border-color: var(--peach);
  background: rgba(245, 239, 230, 0.12);
}

.beta-form .btn {
  padding: 14px 24px;
  position: relative;
}
.btn-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  animation: spin .8s linear infinite;
}
.beta-form.is-loading .btn-label { opacity: 0; }
.beta-form.is-loading .btn-loading { opacity: 1; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-helper {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: rgba(245, 239, 230, 0.6);
  margin-top: 4px;
}
.form-success {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  color: var(--peach);
  margin-top: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
}

.beta-form.is-success .form-helper { display: none; }

.form-error {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  color: var(--peach-soft);
  margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 64px;
  margin-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
  }
}
.footer-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-mute);
}
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
  background: rgba(200, 80, 31, 0.06);
  transform: translateY(-1px);
}
.footer-social svg {
  width: 16px;
  height: 16px;
  display: block;
}
.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.84rem;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 8px;
}

/* ---------- 404 / Error page ---------- */
.page-error { min-height: 100vh; display: flex; flex-direction: column; }
.page-error main { flex: 1; }

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}
.error-page::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: radial-gradient(ellipse at 50% 100%, rgba(200, 80, 31, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.error-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.error-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(7rem, 18vw, 13rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--oxblood);
  margin-bottom: 8px;
  user-select: none;
}

.error-label { margin: 0 auto 24px; }

.error-title {
  max-width: 22ch;
  margin: 0 auto;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.error-lede {
  margin: 24px auto 0;
  text-align: center;
}

.error-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.error-cta-link {
  font-size: 0.96rem;
  color: var(--ink-soft);
  position: relative;
  transition: color .25s var(--ease);
}
.error-cta-link:hover { color: var(--terracotta); }

/* ---------- Focus states ---------- */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible {
  outline-offset: 4px;
}
