:root {
  color-scheme: dark;
  --guide-bg: #080604;
  --guide-surface: #120f0a;
  --guide-surface-raised: #1b1610;
  --guide-text: #fffaf4;
  --guide-muted: rgba(255, 250, 244, 0.7);
  --guide-line: rgba(255, 250, 244, 0.14);
  --guide-accent: #f7c4b2;
  --guide-accent-strong: #fff;
  --guide-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--guide-bg);
  color: var(--guide-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.guide-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem clamp(1.25rem, 5vw, 4.5rem);
  background: rgba(8, 6, 4, 0.88);
  border-bottom: 1px solid var(--guide-line);
  backdrop-filter: blur(16px);
}

.guide-brand { display: inline-flex; align-items: center; text-decoration: none; }
.guide-brand img { width: 42px; height: 42px; object-fit: contain; }

.guide-nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem; }
.guide-nav-links a {
  padding: 0.38rem 0.65rem;
  color: var(--guide-muted);
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 650;
  text-decoration: none;
}
.guide-nav-links a:hover, .guide-nav-links a[aria-current="page"] { color: var(--guide-text); background: rgba(255,255,255,0.09); }

.guide-main { width: min(760px, calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) 0; }
.guide-hero { max-width: 760px; margin: 0 auto; text-align: center; }
.guide-kicker {
  margin: 0 0 0.8rem;
  color: var(--guide-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--guide-text); line-height: 1.15; }
h1 { max-width: 760px; margin: 0; font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.015em; }
h3 { margin: 0; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; color: var(--guide-muted); }
.guide-lede { max-width: 700px; margin: 1.35rem auto 0; font-size: clamp(1.05rem, 2.1vw, 1.18rem); }
.guide-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.15rem; margin-top: 1.25rem; color: rgba(255,250,244,0.52); font-size: 0.85rem; }

.guide-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  color: var(--guide-text);
  background: rgba(255,255,255,0.05);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}
.guide-button.primary { color: #100b08; background: var(--guide-accent-strong); border-color: var(--guide-accent-strong); }
.guide-button:hover { transform: translateY(-1px); }

.guide-store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.8rem;
}
.guide-store-badges a { display: inline-flex; border-radius: 7px; transition: transform 0.2s ease, opacity 0.2s ease; }
.guide-store-badges a:hover { opacity: 0.9; transform: translateY(-1px); }
.guide-store-badges img { display: block; width: auto; height: 48px; }

.guide-section { margin-top: clamp(3.4rem, 8vw, 5rem); }
.guide-section > header { max-width: 770px; margin-bottom: 1.35rem; }
.guide-section > header p { margin-top: 0.8rem; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.guide-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-card, .guide-callout, .guide-table-wrap, .guide-faq, .guide-source-note {
  border: 1px solid var(--guide-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}
.guide-card { padding: 1.35rem; }
.guide-card p { margin-top: 0.65rem; font-size: 0.96rem; }
.guide-card a { color: var(--guide-text); }
.guide-card .eyebrow { margin-bottom: 0.4rem; color: var(--guide-accent); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; }

.guide-callout { padding: clamp(1.25rem, 3vw, 2rem); background: rgba(255, 255, 255, 0.05); }
.guide-callout p + p { margin-top: 0.85rem; }
.guide-callout strong { color: var(--guide-text); }

.guide-list { display: grid; gap: 0.75rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.guide-list li { position: relative; padding-left: 1.3rem; color: var(--guide-muted); }
.guide-list li::before { content: ""; position: absolute; left: 0; top: 0.6rem; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--guide-accent); }
.guide-list strong { color: var(--guide-text); }

.guide-steps { counter-reset: steps; display: grid; gap: 0.85rem; margin-top: 1.25rem; }
.guide-step { position: relative; padding: 1.1rem 1.15rem 1.1rem 4.2rem; border-left: 1px solid var(--guide-line); background: rgba(255,255,255,0.025); }
.guide-step::before { counter-increment: steps; content: counter(steps); position: absolute; top: 1rem; left: 1.15rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: #16100d; background: var(--guide-accent); font-size: 0.9rem; font-weight: 900; }
.guide-step h3 { font-family: inherit; font-size: 1rem; letter-spacing: 0; }
.guide-step p { margin-top: 0.35rem; font-size: 0.95rem; }

.guide-table-wrap { overflow-x: auto; }
.guide-table { width: 100%; border-collapse: collapse; min-width: 650px; }
.guide-table caption { padding: 1rem 1.25rem 0; color: var(--guide-muted); text-align: left; font-size: 0.88rem; }
.guide-table th, .guide-table td { padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--guide-line); text-align: left; vertical-align: top; }
.guide-table th { color: var(--guide-text); background: rgba(255,255,255,0.045); font-size: 0.84rem; letter-spacing: 0.025em; text-transform: uppercase; }
.guide-table td { color: var(--guide-muted); font-size: 0.94rem; }
.guide-table td:first-child, .guide-table strong { color: var(--guide-text); }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-status { color: var(--guide-text); font-weight: 800; }
.guide-status.note { color: var(--guide-accent); }

.guide-faq { overflow: hidden; }
.guide-faq details + details { border-top: 1px solid var(--guide-line); }
.guide-faq summary { padding: 1.05rem 1.25rem; color: var(--guide-text); font-weight: 800; cursor: pointer; list-style: none; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq p { padding: 0 1.25rem 1.15rem; }

.guide-source-note { padding: 1.1rem 1.25rem; font-size: 0.9rem; }
.guide-source-note p + p { margin-top: 0.7rem; }
.guide-source-note a { color: var(--guide-text); }
.guide-source-note ul { margin: 0.75rem 0 0; padding-left: 1.1rem; color: var(--guide-muted); }
.guide-source-note li + li { margin-top: 0.35rem; }

.guide-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.guide-related a { display: block; min-height: 100%; padding: 1rem; border: 1px solid var(--guide-line); border-radius: 14px; color: var(--guide-text); background: rgba(255,255,255,0.025); font-weight: 750; text-decoration: none; }
.guide-related a span { display: block; margin-top: 0.3rem; color: var(--guide-muted); font-size: 0.88rem; font-weight: 400; }
.guide-related a:hover { border-color: rgba(255,255,255,0.32); }

.guide-footer { padding: 2.6rem 1.25rem 3.4rem; border-top: 1px solid var(--guide-line); color: rgba(255,250,244,0.54); text-align: center; font-size: 0.88rem; }
.guide-footer a { margin: 0 0.45rem; }

@media (max-width: 800px) {
  .guide-grid, .guide-grid.two, .guide-related { grid-template-columns: 1fr; }

  /* Keep the bar one row and let it scroll. Stacking it ate a third
     of a phone screen before any content appeared. */
  .guide-nav { flex-direction: row; align-items: center; gap: 10px; }
  .guide-brand { flex: 0 0 auto; }
  .guide-nav-links {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Fade the right edge so it is obvious there is more to reach */
    mask-image: linear-gradient(to right, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
  }
  .guide-nav-links::-webkit-scrollbar { display: none; }
  .guide-nav-links > * { flex: 0 0 auto; white-space: nowrap; }
}

@media (max-width: 700px) {
  /* Tables stop being tables: a 650px min-width inside a scroller is a
     scroll most people never discover. Each row becomes a labelled block. */
  .guide-table-wrap { overflow-x: visible; }
  .guide-table { min-width: 0; }
  .guide-table, .guide-table tbody, .guide-table tr,
  .guide-table th, .guide-table td { display: block; width: 100%; }
  .guide-table thead { display: none; }
  .guide-table caption { display: block; padding: 0 0 0.9rem; }
  .guide-table tr { padding: 0.95rem 0; border-bottom: 1px solid var(--guide-line); }
  .guide-table tr:last-child { border-bottom: 0; }
  .guide-table th, .guide-table td { padding: 0; border: 0; background: transparent; }
  .guide-table th {
    margin-bottom: 0.35rem;
    color: var(--guide-muted);
    font-size: 0.72rem;
    letter-spacing: 0.09em;
  }
  .guide-table td { font-size: 0.95rem; }
  .guide-table td + td { margin-top: 0.85rem; }
  .guide-table td:first-child { color: var(--guide-text); font-weight: 700; }
  /* Comparison tables drop their header row, so each cell carries its own */
  .guide-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25rem;
    color: var(--guide-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
  }

  /* Numbered steps: the 4.2rem indent leaves ~2 words per line here */
  .guide-step { padding: 0.9rem 0 0.9rem 3.1rem; }
  .guide-step::before { top: 0.85rem; left: 0; width: 1.85rem; height: 1.85rem; }

  .guide-faq summary { padding: 1.05rem 0; }
  .guide-faq p { padding: 0 0 1.1rem; }
  .guide-source-note { padding: 1.1rem 0; }
  .guide-footer { padding: 2.4rem 0 3rem; }
  .guide-footer a { display: inline-block; margin: 0.35rem 0.45rem; }
}

@media (max-width: 480px) {
  .guide-store-badges img { height: 44px; }
}

/* ===== Design refresh: flat, readable, consistent ===== */
.guide-card, .guide-callout, .guide-table-wrap, .guide-faq, .guide-source-note { background: transparent !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; }
.guide-card { padding: 0 !important; }
.guide-callout { padding: 0 !important; }
.guide-step { background: transparent !important; }
.guide-hero h1, h1 { font-weight: 400 !important; }
h2, h3 { font-weight: 400 !important; }
.guide-kicker, .guide-card .eyebrow { font-weight: 600 !important; }
.guide-main { line-height: 1.9 !important; }
.guide-main p { line-height: 1.9 !important; margin-bottom: 1.15rem; }
.guide-list li { line-height: 1.85 !important; }
.guide-nav-links { gap: 0.15rem !important; }
.guide-nav-links a { font-weight: 500 !important; font-size: 0.82rem !important; border-radius: 0 !important; padding: 0.4rem 0.7rem !important; }
.guide-nav-links a:hover, .guide-nav-links a[aria-current="page"] { background: transparent !important; color: var(--guide-text) !important; font-weight: 700 !important; }
