/* ------------- Base & theme ------------- */
:root {
  --bg: #f8fafc;
  --bg-soft: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-contrast: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

:root.dark {
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #1f2937;
  --primary: #3b82f6;
  --primary-contrast: #0b1220;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

html {
  scroll-behavior: smooth;
}

.body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

/* ------------- Layout ------------- */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding: 4rem 0;
}

.section-soft {
  padding: 4rem 0;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--bg) 96%, white 4%), var(--bg-soft));
}

.section-border {
  border-top: 1px solid var(--border);
}

/* ------------- Header ------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(10px);
  background: color-mix(in oklab, var(--bg-soft) 92%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  letter-spacing: .2px;
  text-decoration: none;
  color: var(--text);
}

.brand-emoji { font-size: 1.5rem; }
.brand-text { font-size: 1.125rem; }

.main-nav {
  margin-left: auto;
  display: none;
  gap: 1.25rem;
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
}
.main-nav a:hover { text-decoration: underline; }

.header-actions {
  margin-left: 1rem;
  display: flex;
  gap: .5rem;
}

@media (min-width: 768px) {
  .main-nav { display: inline-flex; }
}

/* ------------- Masthead ------------- */
.masthead {
  position: relative;
  border-bottom: 1px solid var(--border);
}
.masthead-img {
  width: 100%;
  /* Half height of original hero: ~200px desktop down to ~96px mobile */
  height: clamp(96px, 18vw, 180px);
  object-fit: cover;
  display: block;
}
.masthead-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, .5), transparent);
  pointer-events: none;
}

/* ------------- Typography & helpers ------------- */
.display {
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}
.accent { color: var(--primary); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.mt { margin-top: 1rem; }
.footnote { margin-top: .5rem; font-size: .85rem; color: var(--muted); }

.prose p { margin: .75rem 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: .4rem 0; }

/* ------------- Grid & cards ------------- */
.grid-2 {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1.2fr 1fr; align-items: center; }
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.cards.three { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
}
.callouts { position: relative; }
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  padding-left: 0;
  list-style: none;
}
.note {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: color-mix(in oklab, var(--primary) 12%, var(--bg));
  border: 1px solid color-mix(in oklab, var(--primary) 30%, var(--border));
}

/* ------------- Buttons ------------- */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: .7rem 1rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .06s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
}
.btn-primary:hover { filter: brightness(0.95); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 25%, transparent); }

.cta-row { display: flex; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }

/* ------------- Table ------------- */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.table thead th {
  text-align: left;
  background: var(--bg-soft);
  padding: .75rem;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: .75rem;
  border-top: 1px solid var(--border);
}

/* ------------- Lists ------------- */
.steps { padding-left: 1.25rem; margin: .5rem 0 0; }
.steps li { margin: .4rem 0; }

/* ------------- Details / FAQ ------------- */
.faq {
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
}
details {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}
details > summary {
  cursor: pointer;
  font-weight: 600;
  outline: none;
}
details[open] { box-shadow: var(--shadow); }

/* ------------- Footer ------------- */
.site-footer {
  border-top: 1px solid var(--border);
}
.footer-inner {
  padding: 2rem 1rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

/* Make all nav links bold */
nav a,
[role="navigation"] a,
.menu a,
.navbar a {
  font-weight: 700; /* or 600 if you prefer */
}
