/*
  Styles for the static pages: guides, the guides index and About.
  The nav and footer match the app (src/index.css → Site navigation / Site footer).
  If you change one, change the other.
*/
:root {
  color-scheme: dark;
  --bg: #0b0d11;
  --raise: #151922;
  --raise-2: #10131a;
  --ink: #f4f6f8;
  --muted: #a7b0bd;
  --soft: #8391a3;
  --faint: #5d6b7e;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #dff25a;
  --accent-ink: #161a04;
  --live: #ff4b63;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); }
p, li, blockquote, figcaption, dd { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
main { flex: 1; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.03em; font-size: 18px; }
.brand-mark { width: 28px; height: 28px; display: block; }

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, transform 0.14s, box-shadow 0.18s;
}
.lp-btn:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); }
.lp-btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
.lp-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 36px color-mix(in srgb, var(--accent) 25%, transparent); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 11, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: env(safe-area-inset-top);
}
.site-nav-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}
.site-nav-bar > .brand { justify-self: start; }
.site-nav-links { display: flex; align-items: center; gap: 4px; }
.site-nav-links > a, .nav-drop > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #a7b0bd;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s, background 0.15s;
}
.site-nav-links > a:hover, .nav-drop > summary:hover, .nav-drop[open] > summary { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.site-nav-links > a.on { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.site-nav-links > a.on::after { content: ''; width: 6px; height: 6px; margin-left: 1px; border-radius: 50%; background: var(--accent); }
.nav-drop { position: relative; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.nav-drop[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: grid;
  gap: 2px;
  width: 300px;
  padding: 8px;
  border-radius: 18px;
  background: #12151c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.nav-drop-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.nav-drop-menu a:hover { background: rgba(255, 255, 255, 0.06); }
.nav-drop-menu strong { font-size: 14px; font-weight: 650; }
.nav-drop-menu span { color: var(--soft); font-size: 13px; }
.site-nav-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.nav-mobile { display: none; position: static; }
.nav-mobile > summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary svg { width: 20px; height: 20px; }
.site-nav-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: grid;
  gap: 4px;
  padding: 8px clamp(16px, 4vw, 40px) 18px;
  /* Opaque: a see-through menu inside the blurred header lets the page show through in Chrome. */
  background: #090b0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
}
.site-nav-menu a:not(.lp-btn) { color: #a7b0bd; text-decoration: none; font-size: 16px; font-weight: 600; padding: 12px 14px; border-radius: 12px; }
.site-nav-menu a.on { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.site-nav-menu .lp-btn { margin-top: 8px; padding: 12px 16px; font-size: 15px; }
.menu-group { margin: 10px 14px 2px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-align: start; }
@media (max-width: 980px) {
  .site-nav-bar { grid-template-columns: 1fr auto; }
  .site-nav-links, .site-nav-cta { display: none; }
  .nav-mobile { display: block; }
}

/* ── Article ─────────────────────────────────────────────────────────── */
.article-page { padding: clamp(28px, 5vw, 56px) 16px 0; }
.article { max-width: 760px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; color: var(--faint); font-size: 14px; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.kicker { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.article h1 { margin: 0 0 16px; font-size: clamp(34px, 6vw, 56px); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.article .lede { margin: 0; color: #c4ccd6; font-size: clamp(18px, 2.4vw, 21px); line-height: 1.55; text-wrap: pretty; }
.cover { margin: 32px 0 8px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--raise-2); }
.cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }

.prose { font-size: 17px; line-height: 1.7; }
.prose h2 { margin: 44px 0 10px; font-size: 25px; line-height: 1.2; letter-spacing: -0.025em; }
.prose h3 { margin: 22px 0 6px; font-size: 18px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--muted); text-wrap: pretty; }
.prose strong { color: var(--ink); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose .box { margin: 24px 0; padding: 4px 20px; border-radius: 16px; background: var(--raise); border: 1px solid var(--line); }
.prose .cta {
  display: inline-flex;
  margin: 8px 12px 8px 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
}
.prose .cta.quiet { background: transparent; color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.16); }
.prose .pull { margin: 32px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); }
.prose .pull p { margin: 0; color: var(--ink); font-size: clamp(22px, 3vw, 28px); line-height: 1.25; letter-spacing: -0.03em; font-weight: 650; }
.scenes { display: grid; gap: 12px; margin: 18px 0 8px; }
.scenes a { display: grid; gap: 8px; align-content: start; padding: 18px 18px 16px; border-radius: 18px; background: var(--raise); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.scenes a:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.scenes h3 { margin: 0; font-size: 17px; letter-spacing: -0.02em; }
.scenes p { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.5; }
.holds { list-style: none; padding: 0; margin: 16px 0 8px; display: grid; gap: 12px; }
.holds li { margin: 0; padding: 16px 18px; border-radius: 16px; background: var(--raise); border: 1px solid var(--line); }
.holds li::marker { content: ''; }
.holds strong { display: block; margin-bottom: 4px; }
.holds span { color: var(--soft); }
@media (min-width: 720px) {
  .scenes, .holds { grid-template-columns: 1fr 1fr; }
  .scenes a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Screenshots and diagrams inside an article */
.shot { margin: 28px 0; }
.shot img { width: 100%; border-radius: 16px; border: 1px solid var(--line); background: var(--raise-2); }
.shot figcaption { margin-top: 10px; color: var(--soft); font-size: 14px; line-height: 1.5; }
.shot.phone { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 24px; align-items: center; }
.shot.phone img { border-radius: 28px; border: 6px solid #1d222c; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.shot.phone figcaption { margin: 0; font-size: 15px; }
.shot.pair { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 18px; align-items: center; }
.shot.pair img:first-child { border-radius: 26px; border: 6px solid #1d222c; }
.shot.pair figcaption { grid-column: 1 / -1; }
.shot.wide { margin-left: clamp(-80px, -6vw, 0px); margin-right: clamp(-80px, -6vw, 0px); }
@media (max-width: 640px) {
  .shot.phone, .shot.pair { grid-template-columns: 1fr; }
  .shot.phone img, .shot.pair img:first-child { max-width: 240px; margin: 0 auto; }
  .shot.wide { margin-left: 0; margin-right: 0; }
}

.try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin: 48px 0 0;
  padding: clamp(22px, 4vw, 32px);
  border-radius: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--raise-2)), var(--raise-2) 70%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.try p { margin: 0; color: var(--muted); }
.try .kicker { margin-bottom: 6px; }
.try-title { color: var(--ink) !important; font-size: 22px; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 4px !important; }
.try-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.try-actions .lp-btn { padding: 12px 18px; font-size: 15px; }

/* ── Guide cards ─────────────────────────────────────────────────────── */
.related { max-width: 1100px; margin: clamp(56px, 8vw, 96px) auto 0; padding: 0 0; }
.related h2 { margin: 0 0 20px; font-size: 26px; letter-spacing: -0.03em; }
.all-guides { margin: 20px 0 0; }
.all-guides a { font-weight: 650; text-decoration: none; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 20px;
  overflow: hidden;
  background: var(--raise-2);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s, border-color 0.2s;
}
.guide-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.guide-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid var(--line); }
.guide-card-text { display: grid; gap: 8px; align-content: start; padding: 18px 20px 20px; }
.guide-card .kicker { margin: 0; font-size: 11px; }
.guide-card h3 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; }
.guide-card p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.5; }
.guide-card .more { color: var(--accent); font-weight: 650; font-size: 14px; }
.guide-card.featured { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: none; margin-bottom: 16px; }
.guide-card.featured img { aspect-ratio: auto; height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.guide-card.featured .guide-card-text { padding: clamp(22px, 4vw, 40px); align-content: center; gap: 12px; }
.guide-card.featured h3 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.035em; }
.guide-card.featured p { font-size: 16px; }
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-card.featured { grid-template-columns: 1fr; }
  .guide-card.featured img { aspect-ratio: 1200 / 630; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .guide-grid { grid-template-columns: 1fr; }
}

.guides-page { width: min(1100px, 100%); margin: 0 auto; padding: clamp(36px, 6vw, 72px) 16px 0; }
.guides-hero { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.guides-hero h1 { margin: 0 0 14px; font-size: clamp(36px, 6vw, 60px); line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.guides-hero .lede { margin: 0; color: #c4ccd6; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: clamp(64px, 9vw, 112px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(700px 260px at 0% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%), #07090c;
  padding-bottom: env(safe-area-inset-bottom);
}
.sf-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.6fr);
  gap: clamp(32px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 40px) 36px;
}
.sf-brand { display: grid; gap: 16px; align-content: start; }
.sf-brand p { margin: 0; max-width: 30ch; color: var(--soft); font-size: 15px; line-height: 1.55; }
.sf-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sf-cols > div { display: grid; gap: 10px; align-content: start; }
.sf-cols h2 { margin: 0 0 4px; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.sf-cols a { color: var(--soft); text-decoration: none; font-size: 14px; width: fit-content; }
.sf-cols a:hover { color: var(--ink); }
.sf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 40px) 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--faint);
  font-size: 13px;
}
.sf-note { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.sf-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 980px) {
  .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sf-top { grid-template-columns: 1fr; }
  .sf-note { margin-left: 0; }
}
