/* ---------- Tokens ---------- */
:root {
  --bg: #FAF7F4;
  --bg-elev: rgba(255, 255, 255, 0.55);
  --bg-hero-blob-1: rgba(168, 155, 201, 0.35);
  --bg-hero-blob-2: rgba(232, 221, 201, 0.55);
  --text: #2A2433;
  --text-muted: #6B6478;
  --accent: #A89BC9;
  --accent-hover: #8C7DB2;
  --accent-soft: rgba(168, 155, 201, 0.18);
  --cream: #E8DDC9;
  --border: rgba(42, 36, 51, 0.10);
  --border-strong: rgba(42, 36, 51, 0.18);
  --shadow-sm: 0 1px 2px rgba(42, 36, 51, 0.06), 0 4px 16px rgba(42, 36, 51, 0.05);
  --shadow-md: 0 8px 32px rgba(42, 36, 51, 0.10);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --maxw: 1100px;

  --step-h1: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  --step-h2: clamp(1.6rem, 1.15rem + 1.9vw, 2.4rem);
  --step-h3: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
  --step-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --space-xs: clamp(0.5rem, 0.4rem + 0.3vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.6rem + 0.5vw, 1rem);
  --space-md: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
  --space-lg: clamp(2rem, 1.4rem + 2vw, 3.5rem);
  --space-xl: clamp(3rem, 2rem + 3vw, 5.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1622;
    --bg-elev: rgba(40, 33, 54, 0.55);
    --bg-hero-blob-1: rgba(168, 155, 201, 0.22);
    --bg-hero-blob-2: rgba(232, 221, 201, 0.10);
    --text: #EDE7F5;
    --text-muted: #ADA4BD;
    --accent: #B7AAD8;
    --accent-hover: #D2C7EA;
    --accent-soft: rgba(168, 155, 201, 0.14);
    --cream: #6B5E48;
    --border: rgba(237, 231, 245, 0.10);
    --border-strong: rgba(237, 231, 245, 0.18);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
}
h1 { font-size: var(--step-h1); font-weight: 700; }
h2 { font-size: var(--step-h2); font-weight: 650; }
h3 { font-size: var(--step-h3); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: var(--step-h3); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-sm); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

main { padding-block: 0 var(--space-xl); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-elev);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex: none;
  display: block;
}
.site-nav ul {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.4rem 0.2rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--accent);
}

@media (max-width: 480px) {
  .site-header .container { flex-wrap: wrap; row-gap: 0.5rem; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: var(--space-xl) var(--space-lg);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero::before {
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  top: -20%; left: -10%;
  background: var(--bg-hero-blob-1);
}
.hero::after {
  width: 50vw; height: 50vw;
  max-width: 600px; max-height: 600px;
  top: 10%; right: -15%;
  background: var(--bg-hero-blob-2);
}
.hero-inner { text-align: center; max-width: 760px; margin-inline: auto; }
.hero h1 { margin-bottom: var(--space-sm); }
.hero .lede {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  color: var(--text-muted);
  margin-inline: auto;
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-block: var(--space-md) var(--space-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #1A1622;
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}

.hero-shot {
  margin-top: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-lg); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto var(--space-lg); }
.section-header p { color: var(--text-muted); }

/* ---------- Feature groups & grid ---------- */
.feature-group + .feature-group {
  margin-top: var(--space-lg);
}
.feature-group-title {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.feature-group-title::before,
.feature-group-title::after {
  content: "";
  display: inline-block;
  width: clamp(1.5rem, 4vw, 3rem);
  height: 1px;
  background: var(--border-strong);
  vertical-align: middle;
  margin: 0 0.75rem;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}
.feature-grid > .card {
  flex: 1 1 100%;
  max-width: 100%;
}
@media (min-width: 640px) {
  .feature-grid > .card {
    flex: 1 1 calc(50% - var(--space-md) / 2);
    max-width: calc(50% - var(--space-md) / 2);
  }
}
@media (min-width: 960px) {
  .feature-grid > .card {
    flex: 0 1 calc((100% - 2 * var(--space-md)) / 3);
    max-width: calc((100% - 2 * var(--space-md)) / 3);
  }
}

.card {
  background: var(--bg-elev);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card h3, .card h4 { margin-bottom: 0.4rem; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

/* ---------- Article (support / privacy) ---------- */
.prose {
  max-width: 70ch;
  margin-inline: auto;
}
.prose h2 { margin-top: var(--space-lg); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- FAQ details ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: var(--bg-elev);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.6rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--accent-hover);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p,
.faq details > div { padding-bottom: 0.75rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--space-xl);
  padding-block: var(--space-lg);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: center;
}
.site-footer ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

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