:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-strong: #f1f5f9;
  --ink: #172554;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 24px 60px rgba(23, 37, 84, 0.12);
  --font-headline: "Fraunces", serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lh-tight: 1.1;
  --lh-body: 1.6;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 55%)
      no-repeat,
    var(--bg);
  color: var(--ink);
  line-height: var(--lh-body);
  font-weight: 400;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-24) 8vw 0;
  gap: var(--space-16);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  font-weight: 600;
}

.brand-logo {
  width: 260px;
  height: 96px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.nav {
  display: flex;
  gap: var(--space-16);
  font-weight: 500;
  color: var(--muted);
}

.nav a.active {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.cta {
  display: flex;
  gap: var(--space-12);
}

.button {
  padding: var(--space-12) var(--space-24);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(30, 26, 24, 0.1);
}

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

.button.primary:hover {
  background: var(--accent-dark);
}

.button.ghost {
  border: none;
  background: transparent;
  color: var(--accent);
}

main {
  padding: var(--space-48) 8vw 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-32);
  align-items: center;
  margin-top: var(--space-32);
}

.page-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.help-search {
  margin-top: 24px;
}

.search-label {
  display: block;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.search-input {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(23, 37, 84, 0.08);
}

.search-input input {
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
}

.search-hint {
  font-size: 12px;
  color: var(--muted);
}

.help-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.help-card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
  box-shadow: 0 10px 24px rgba(23, 37, 84, 0.08);
}

.help-card h3 {
  margin: 0;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  margin-top: auto;
}

.help-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.help-sidebar {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: var(--card);
  height: fit-content;
}

.help-sidebar h3 {
  margin-top: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
}

.help-sidebar a {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 600;
}

.help-sidebar a.active {
  color: var(--accent);
}

.help-article h2 {
  margin-top: 24px;
}

.help-article ul {
  margin: 8px 0 16px 18px;
  padding: 0;
}

.help-article li {
  margin-bottom: 6px;
}

.faq-section {
  margin-top: 28px;
}

.faq-section h2 {
  margin-bottom: 12px;
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  padding: 12px 16px;
  box-shadow: 0 8px 18px rgba(23, 37, 84, 0.08);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

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

.faq-item summary::after {
  content: "＋";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "－";
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cta-card {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 70%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-card h3 {
  margin: 0 0 6px;
}

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

@media (max-width: 900px) {
  .help-layout {
    grid-template-columns: 1fr;
  }
}

.hero-copy h1 {
  font-family: var(--font-body);
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.2px;
  font-weight: 600;
  max-width: 16ch;
  margin: var(--space-12) 0 var(--space-16);
}

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: var(--lh-tight);
}

h2 {
  font-size: clamp(24px, 3vw, 36px);
}

h3 {
  font-size: clamp(18px, 2.2vw, 24px);
}

h4 {
  font-size: 18px;
}

/* Support pages use neutral sans-serif typography to keep help content calm and utilitarian. */
.help-page {
  font-family: var(--font-body);
}

.help-page h1,
.help-page h2,
.help-page h3,
.help-page h4 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.help-page .lede {
  line-height: 1.6;
}

.help-page .eyebrow,
.help-page .search-label {
  letter-spacing: 0;
  text-transform: none;
}

/* Legal pages use a single sans-serif stack for neutral, readable compliance text. */
.legal-page {
  font-family: var(--font-body);
}

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.1px;
  line-height: 1.3;
}

.legal-page .policy {
  line-height: 1.7;
}

.legal-page .policy h2 {
  margin-top: var(--space-24);
}

.legal-page .policy h3 {
  margin-top: var(--space-16);
}

p {
  margin-top: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: var(--space-16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin: var(--space-16) 0 var(--space-24);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-16);
  color: var(--muted);
}

.meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: var(--muted);
}

.meta-value {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.15px;
}

.hero-card {
  background: var(--card);
  border-radius: 24px;
  padding: var(--space-24);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-weight: 700;
  font-size: 18px;
}

.card-subtitle {
  color: var(--muted);
}

.hero-card-body {
  display: grid;
  gap: var(--space-12);
  margin: var(--space-16) 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

.hero-card-footer {
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
}

.features {
  margin-top: var(--space-64);
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  max-width: 640px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-16);
  margin-top: var(--space-24);
}

.feature-card {
  background: var(--card);
  border-radius: 18px;
  padding: var(--space-24);
  border: 1px solid var(--border);
  min-height: 140px;
}

.feature-card h3 {
  margin-top: 0;
  font-size: 21px;
  letter-spacing: -0.25px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.support-preview {
  margin-top: var(--space-64);
  background: var(--bg-strong);
  padding: var(--space-24);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  flex-wrap: wrap;
  border: 1px solid var(--border);
}

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.contact-card {
  background: var(--card);
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  min-width: 240px;
}

.contact-title {
  font-weight: 700;
  margin-top: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.support-card {
  background: var(--card);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.faq {
  margin-top: 48px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--border);
}

.contact-footer {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.policy {
  display: grid;
  gap: 16px;
  max-width: 780px;
}

.site-footer {
  padding: 20px 8vw 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 18px 40px rgba(23, 37, 84, 0.15);
  z-index: 20;
}

.cookie-title {
  margin: 0;
  font-weight: 700;
}

.cookie-text {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero-card {
    order: -1;
  }

  .hero {
    margin-top: var(--space-24);
  }

  .features {
    margin-top: var(--space-48);
  }

  .support-preview {
    margin-top: var(--space-48);
  }
}
