/* ---------------------------------------------------------------------------
   offrampd — guide page styles
   Shared stylesheet for all static SEO guide pages. Mirrors the main app's
   dark glass aesthetic so guides feel like part of the same product.
--------------------------------------------------------------------------- */

/* Inter font — same as main app */
@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0a0b10;
  --surface: #161922;
  --surface-2: #1d212c;
  --border: #2a2f3c;
  --text: #eef1f6;
  --muted: #9aa3b5;
  --accent: #6c8cff;
  --accent-hover: #8aa3ff;
  --accent-soft: #28335e;
  --accent-glow: rgba(108, 140, 255, 0.5);
  --good: #34d399;
  --good-soft: #103a30;
  --warn: #f5a623;
  --glass-bg: rgba(24, 28, 38, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.04);
  --glass-blur: blur(18px) saturate(1.4);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  font-family: "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv05", "ss01";
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 10% -12%, rgba(108, 140, 255, 0.2), transparent 60%),
    radial-gradient(820px 600px at 102% 2%, rgba(150, 110, 255, 0.14), transparent 55%),
    radial-gradient(700px 700px at 50% 118%, rgba(52, 211, 153, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

.guide-page {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-5) calc(var(--space-7) + var(--space-5));
}

/* ── Header / Nav ───────────────────────────────────────────────────────── */

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-7);
}

.guide-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text);
}

.guide-brand:hover {
  text-decoration: none;
}

.guide-brand .wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.guide-nav {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.guide-nav a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 140ms ease;
}

.guide-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.guide-hero {
  margin-bottom: var(--space-7);
}

.guide-hero h1 {
  margin: 0 0 var(--space-4);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  background: linear-gradient(98deg, #fff 38%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.guide-hero .subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 56ch;
  margin: 0;
}

/* Updated badge — the "last updated" chip */
.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: var(--space-4);
  padding: 4px 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--glass-highlight);
}

/* ── Glass panel ────────────────────────────────────────────────────────── */

.panel {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5) var(--space-6);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.65), 0 4px 12px rgba(0, 0, 0, 0.35);
  margin-bottom: var(--space-6);
}

/* ── Article content ────────────────────────────────────────────────────── */

.guide-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: var(--space-7) 0 var(--space-4);
  color: var(--text);
}

.guide-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: var(--space-6) 0 var(--space-3);
  color: var(--text);
}

.guide-content p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 var(--space-4);
}

.guide-content ul,
.guide-content ol {
  color: var(--muted);
  line-height: 1.75;
  padding-left: var(--space-5);
  margin: 0 0 var(--space-4);
}

.guide-content li {
  margin-bottom: var(--space-2);
}

.guide-content strong {
  color: var(--text);
  font-weight: 600;
}

.guide-content em {
  color: var(--accent-hover);
  font-style: normal;
  font-weight: 500;
}

/* ── Steps ──────────────────────────────────────────────────────────────── */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
}

.steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--muted);
  line-height: 1.65;
}

.steps li:last-child {
  border-bottom: none;
}

.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  margin-top: 2px;
}

/* ── Info / callout boxes ───────────────────────────────────────────────── */

.callout {
  border-left: 3px solid var(--accent);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
  background: var(--glass-highlight);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.callout.warn {
  border-left-color: var(--warn);
}

.callout.good {
  border-left-color: var(--good);
}

/* ── FAQ section ────────────────────────────────────────────────────────── */

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-list li {
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-4) 0;
}

.faq-list li:last-child {
  border-bottom: none;
}

.faq-q {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--space-2);
  font-size: 1rem;
}

.faq-a {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

/* ── CTA ────────────────────────────────────────────────────────────────── */

.cta-section {
  text-align: center;
  margin: var(--space-7) 0;
}

.cta-section p {
  color: var(--muted);
  margin: 0 0 var(--space-5);
  font-size: 1.1rem;
}

.cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow:
    0 8px 22px -8px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 140ms ease, box-shadow 240ms ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 30px -8px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  text-decoration: none;
  color: #fff;
}

.cta-button:active {
  transform: translateY(0) scale(0.985);
}

/* ── Platform chips ─────────────────────────────────────────────────────── */

.platform-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  white-space: nowrap;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-5);
}

/* ── Comparison table ───────────────────────────────────────────────────── */

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0 var(--space-5);
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
}

.compare-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-table td {
  color: var(--text);
}

.compare-table tbody tr:hover {
  background: var(--glass-highlight);
}

.check {
  color: var(--good);
}

.cross {
  color: #ff6b6b;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.guide-footer {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.guide-footer p {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.7;
  margin: 0 0 var(--space-2);
}

.guide-footer a {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.guide-footer a:hover {
  color: var(--accent);
}

.guide-footer .disclaimer {
  max-width: 55ch;
  margin: 0 auto var(--space-3);
}

/* ── Guide index links ──────────────────────────────────────────────────── */

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.guide-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease;
}

.guide-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

/* Tables: horizontal scroll on small screens instead of layout-breaking overflow */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-4) calc(-1 * var(--space-4));
  padding: 0 var(--space-4);
}

.table-scroll .compare-table {
  min-width: 480px;
}

/* Prevent horizontal page overflow */
html, body {
  overflow-x: hidden;
}

@media (max-width: 640px) {
  .guide-page {
    padding: var(--space-5) var(--space-4);
  }

  .guide-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .guide-nav {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .guide-hero h1 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    line-height: 1.12;
  }

  .guide-hero .subtitle {
    font-size: 0.95rem;
  }

  .panel {
    padding: var(--space-4);
    border-radius: var(--radius);
  }

  .guide-content h2 {
    font-size: 1.25rem;
    margin-top: var(--space-6);
  }

  .guide-content h3 {
    font-size: 1.05rem;
  }

  /* Steps: tighter layout on mobile */
  .steps li {
    gap: var(--space-3);
    padding: var(--space-3) 0;
  }

  .steps li::before {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
  }

  /* Tables: smaller text, scroll wrapper handles overflow */
  .compare-table {
    font-size: 0.78rem;
  }

  .compare-table th,
  .compare-table td {
    padding: var(--space-2) var(--space-2);
    white-space: nowrap;
  }

  .compare-table th {
    font-size: 0.68rem;
  }

  /* CTA: full width on mobile */
  .cta-section {
    margin: var(--space-6) 0;
  }

  .cta-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  /* Guide links: stack vertically */
  .guide-links {
    flex-direction: column;
  }

  .guide-link {
    justify-content: center;
  }

  /* Callout: tighter padding */
  .callout {
    padding: var(--space-3) var(--space-4);
  }

  /* Platform chips: smaller on mobile */
  .platform-chip {
    font-size: 0.78rem;
    padding: 3px 10px;
  }

  .platform-list {
    gap: var(--space-1);
  }
}

/* Extra-small screens (< 380px, e.g. iPhone SE) */
@media (max-width: 380px) {
  .guide-page {
    padding: var(--space-4) var(--space-3);
  }

  .guide-hero h1 {
    font-size: 1.4rem;
  }

  .guide-hero .subtitle {
    font-size: 0.88rem;
  }

  .panel {
    padding: var(--space-3);
    border-radius: var(--radius-sm);
  }

  .guide-content h2 {
    font-size: 1.1rem;
  }

  .steps li::before {
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
  }
}

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

