:root {
  --bg-screen:        #070707;
  --bg-elevated:      #111111;
  --bg-card:          #171717;
  --bg-card-muted:    #262626;

  --text-primary:     #FFFFFF;
  --text-secondary:   #B2B2B2;
  --text-tertiary:    #7D7D7D;

  --btn-primary-bg:   #F3F3F3;
  --btn-primary-fg:   #000000;

  --accent:           #FFFFFF;
  --highlight:        #FF0000;

  --divider:          rgba(255,255,255,0.10);
  --border:           rgba(255,255,255,0.15);

  --card-highlight:   rgba(255,255,255,0.03);
  --card-shadow:      rgba(0,0,0,0.31);

  --shadow-small:   inset 6px 6px 6px var(--card-highlight),  inset -6px -6px 6px var(--card-shadow);
  --shadow-regular: inset 10px 10px 10px var(--card-highlight), inset -10px -10px 10px var(--card-shadow);

  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: "Times New Roman", Times, serif;

  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-screen);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; }
a:hover { color: var(--text-primary); }

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 7, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--divider);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
}
.wordmark .dot { color: var(--highlight); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: color 200ms ease;
}
.nav-link:hover { color: var(--text-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  line-height: 1;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: var(--shadow-small);
  transition: transform 180ms ease;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-primary-fg); }
.btn .apple { width: 16px; height: 16px; flex: 0 0 16px; }

/* ── Article ── */
main { padding: 56px 0 40px; }

.crumb {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 18px;
}
.crumb a { color: var(--text-tertiary); text-decoration: none; }
.crumb a:hover { color: var(--text-secondary); }

article h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 8px;
}
.lead strong { color: var(--text-primary); font-weight: 600; }

article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

article h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 28px 0 8px;
}

article p {
  color: var(--text-secondary);
  margin: 0 0 16px;
}
article p strong, article li strong { color: var(--text-primary); font-weight: 600; }
article em { color: var(--text-primary); }

article ul, article ol {
  color: var(--text-secondary);
  margin: 0 0 16px;
  padding-left: 22px;
}
article li { margin-bottom: 8px; }

article blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 18px;
  border-left: 2.5px solid var(--highlight);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
}

article hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 40px 0;
}

/* ── FAQ details ── */
article details {
  border-bottom: 1px solid var(--divider);
}
article details:first-of-type { border-top: 1px solid var(--divider); }
article summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
article summary::-webkit-details-marker { display: none; }
article summary::after {
  content: "+";
  color: var(--text-tertiary);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 20px;
  line-height: 1;
  flex: none;
  transition: transform 200ms ease;
}
article details[open] summary::after { transform: rotate(45deg); }
article details p { padding: 0 2px 16px; }

/* ── CTA box ── */
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-small);
  padding: 24px;
  margin: 48px 0 0;
}
.cta-box .cta-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 10px;
}
.cta-box p {
  color: var(--text-secondary);
  margin: 0 0 16px;
  font-size: 15.5px;
}
.cta-box p a { color: var(--text-primary); }

/* ── Related ── */
.related { margin-top: 48px; }
.related h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 14px;
}
.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15.5px;
}
.related a:hover { color: var(--text-primary); }
.related a::before { content: "→ "; color: var(--highlight); }

/* ── Guides index ── */
.index-head { margin-bottom: 8px; }
.index-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 48px);
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 12px;
}
.index-head p { color: var(--text-secondary); margin: 0; max-width: 52ch; }
.index-group { margin-top: 40px; }
.index-group h2 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 6px;
  font-family: var(--font-ui);
}
.index-group ul { list-style: none; margin: 0; padding: 0; }
.index-group li { border-bottom: 1px solid var(--divider); }
.index-group a {
  display: block;
  padding: 14px 2px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  transition: color 150ms ease;
}
.index-group a:hover { color: var(--text-secondary); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--divider);
  margin-top: 72px;
  padding: 28px 0 40px;
  color: var(--text-tertiary);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 200ms ease; }
.footer-links a:hover { color: var(--text-primary); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 560px) {
  .wm-sub { display: none; }
  .nav-right { gap: 12px; }
}
