:root {
  --bg: #15120e;
  --bg-raised: #1b1712;
  --card: #1e1a14;
  --card-hover: #241f18;
  --line: rgba(242, 234, 217, 0.14);
  --line-strong: rgba(242, 234, 217, 0.32);
  --paper: #f2ead9;
  --paper-soft: #d9d2c2;
  --paper-dim: #b0a793;
  --accent: #ffc94b;
  --accent-soft: rgba(255, 201, 75, 0.12);
  --pencil-red: #ff6f5b;
  --pencil-blue: #7fb4ff;
  --pencil-green: #7fe3a8;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Comic Sans MS', cursive;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sketch: 255px 15px 225px 15px / 15px 225px 15px 255px;

  color-scheme: dark;
  font-family: var(--font-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--paper);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(242, 234, 217, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  overflow-x: hidden;
}

main {
  flex: 1;
}

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

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

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

::selection {
  background: rgba(255, 201, 75, 0.35);
}

.container {
  width: min(880px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(21, 18, 14, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  font-family: var(--font-hand);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-7deg) scale(1.06);
}

.brand-dot {
  color: var(--accent);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--paper-dim);
  padding: 7px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--paper);
  background: rgba(242, 234, 217, 0.06);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(56px, 9vw, 96px) 0 48px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pencil-green);
  box-shadow: 0 0 0 4px rgba(127, 227, 168, 0.15);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 17ch;
}

.underlined {
  position: relative;
  display: inline-block;
}

.squiggle {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 10px;
  color: var(--pencil-red);
  pointer-events: none;
}

.hero-lead {
  margin-top: 22px;
  max-width: 56ch;
  font-size: clamp(16px, 2vw, 18px);
  color: var(--paper-soft);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sketch);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-solid {
  color: #171309;
  background: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 4px 4px 0 rgba(255, 201, 75, 0.24);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(255, 201, 75, 0.3);
}

.btn-line {
  color: var(--paper);
  background: var(--card);
  border: 1.5px solid var(--line-strong);
}

.btn-line:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.response-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--paper-dim);
}

/* ---------- sections ---------- */

.section {
  padding: 40px 0;
}

.section-label {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

/* ---------- help cards ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 234, 217, 0.05);
  border: 1px solid var(--line);
  color: var(--card-accent, var(--accent));
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14.5px;
  color: var(--paper-dim);
  line-height: 1.6;
}

.card-link {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- faq ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--line-strong);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--paper-soft);
  line-height: 1.65;
}

.faq-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- contact box ---------- */

.contact-box {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-box h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.contact-box p {
  font-size: 15px;
  color: var(--paper-soft);
}

.email-pill {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.email-pill:hover {
  border-color: var(--accent);
}

.checklist {
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 18px 20px;
}

.checklist-title {
  font-family: var(--font-hand);
  font-size: 21px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.checklist ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--paper-soft);
}

.checklist li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.checklist li::before {
  content: '→';
  color: var(--pencil-red);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- legal prose pages ---------- */

.prose {
  max-width: 700px;
  padding: clamp(44px, 7vw, 72px) 0 64px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--paper-dim);
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--paper);
}

.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.prose .squig {
  width: 210px;
  height: 13px;
  margin: 10px 0 8px;
  color: var(--pencil-red);
}

.updated {
  color: var(--paper-dim);
  font-size: 14px;
  margin-bottom: 32px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 10px;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.prose p {
  color: var(--paper-soft);
  font-size: 15.5px;
  margin-bottom: 12px;
}

.prose ul {
  padding-left: 20px;
  margin: 8px 0 14px;
  color: var(--paper-soft);
  font-size: 15.5px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
  color: var(--paper-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--paper);
}

/* ---------- responsive ---------- */

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

  .contact-box {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .brand-name {
    display: none;
  }

  .section {
    padding: 32px 0;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(880px, 100% - 32px);
  }

  .nav {
    min-height: 58px;
    gap: 10px;
  }

  .brand-mark {
    font-size: 28px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    font-size: 13.5px;
    padding: 7px 10px;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .faq-item summary {
    padding: 16px;
    font-size: 15px;
  }

  .faq-body {
    padding: 0 16px 16px;
    font-size: 14.5px;
  }

  .email-pill {
    width: 100%;
    justify-content: center;
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .site-footer {
    padding: 24px 0 calc(32px + env(safe-area-inset-bottom));
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .prose {
    padding: 36px 0 48px;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
