/* WalkAmp guides — shared styles, derived from the landing page design system */
:root {
  --bg: #0f1117; --bg2: #0b0d13;
  --card: #1a1d24; --card-alt: #1c1f27; --border: #2a2d35;
  --accent: #00d4ff; --accent-dim: #0ea5c4;
  --accent-bg: rgba(0,212,255,0.08); --accent-border: rgba(0,212,255,0.35);
  --text: #ffffff; --text-sub: #A0AABB; --text-muted: #6A7A8A;
  --green: #7CFF4F; --pink: #FF3FA4; --orange: #FF9A2E;
  --link: var(--accent);
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; }
.lead { color: var(--text-sub); font-size: 18px; max-width: 640px; }
@media (max-width: 720px) { .lead { font-size: 16px; } }

/* nav */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,17,23,0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42,45,53,0.7);
}
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 600; color: var(--text-sub); }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--link); }
@media (max-width: 820px) { .nav-links { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #3ddfff; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

/* phone frame */
.phone {
  width: 100%; max-width: 300px; margin: 0 auto; background: #06070a; border: 1px solid #2f333d; border-radius: 44px; padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,212,255,0.08), 0 0 90px rgba(0,212,255,0.08);
}
.phone img { border-radius: 32px; width: 100%; aspect-ratio: 9/19.5; object-fit: cover; background: #000; }

/* ============ guides index ============ */
.guides-hero { padding: 84px 0 40px; }
.guides-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; margin: 12px 0 16px; }
@media (max-width: 720px) { .guides-hero { padding: 56px 0 28px; } }

.guide-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 24px 0 96px; }
@media (max-width: 820px) { .guide-cards { grid-template-columns: 1fr; padding-bottom: 64px; } }
.guide-card {
  display: flex; gap: 22px; align-items: center; background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 22px; transition: border-color .15s ease, transform .15s ease;
}
.guide-card:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.guide-card .thumb {
  flex: none; width: 88px; height: 150px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: #000;
}
.guide-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.guide-card .num { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--link); }
.guide-card h2 { font-size: 19px; font-weight: 800; margin: 6px 0 6px; }
.guide-card p { color: var(--text-sub); font-size: 14.5px; }
.guide-card .go { display: inline-block; margin-top: 10px; color: var(--link); font-weight: 700; font-size: 13px; }
.guide-card .go::after { content: " →"; }
@media (max-width: 480px) { .guide-card .thumb { width: 72px; height: 122px; } }

/* ============ guide article ============ */
.crumbs { padding: 28px 0 0; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.crumbs a { color: var(--text-sub); }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 8px; color: var(--text-muted); }

.guide-head { padding: 26px 0 44px; }
.guide-head h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; margin: 12px 0 16px; }

.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; padding-bottom: 40px; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; gap: 44px; } }
.guide-aside { position: sticky; top: 96px; }
@media (max-width: 900px) { .guide-aside { position: static; order: -1; } }
.guide-aside .cap { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 16px; }

/* steps */
.gsteps { display: grid; gap: 16px; counter-reset: gstep; }
.gstep { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px 26px; display: flex; gap: 20px; }
.gstep .num {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-bg);
  border: 1px solid var(--accent-border); color: var(--link); font-weight: 800; font-size: 16px;
}
.gstep h2 { font-size: 19px; font-weight: 800; margin-bottom: 6px; line-height: 1.25; }
.gstep p { color: var(--text-sub); font-size: 15px; }
.gstep p + p { margin-top: 8px; }
.gstep b, .gstep strong { color: var(--text); }
.gstep a { color: var(--link); font-weight: 600; }
@media (max-width: 480px) { .gstep { flex-direction: column; gap: 14px; padding: 20px; } }

/* tip callout */
.tip {
  display: flex; gap: 14px; margin-top: 24px; padding: 18px 20px; border-radius: 16px;
  background: var(--accent-bg); border: 1px solid var(--accent-border); font-size: 14.5px; color: var(--text-sub);
}
.tip .ic { flex: none; font-size: 18px; line-height: 1.4; }
.tip b, .tip strong { color: var(--text); }
.tip a { color: var(--link); font-weight: 600; }

/* related guides */
.related { padding: 56px 0 72px; border-top: 1px solid var(--border); }
.related h2 { font-size: 24px; font-weight: 800; margin-bottom: 22px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px;
  transition: border-color .15s ease, transform .15s ease;
}
.related-card:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.related-card b { display: block; font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.related-card span { color: var(--text-sub); font-size: 13.5px; }

/* bottom CTA */
.guide-cta { text-align: center; padding: 72px 0; background: radial-gradient(ellipse at center, rgba(0,212,255,0.12) 0%, rgba(15,17,23,0) 65%); }
.guide-cta h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; margin-bottom: 12px; }
.guide-cta p { color: var(--text-sub); margin-bottom: 26px; }

/* light theme (?theme=light) — guides only, requested explicitly by the app;
   the public website stays dark */
html.light {
  --bg: #f6f7f9; --bg2: #edeff3;
  --card: #ffffff; --card-alt: #fafbfc; --border: #e3e6eb;
  --accent-bg: rgba(6,122,158,0.07); --accent-border: rgba(6,122,158,0.28);
  --text: #12161c; --text-sub: #4d5a6a; --text-muted: #7d8898;
  --link: #067a9e;
}
html.light nav.top { background: rgba(246,247,249,0.85); border-bottom-color: rgba(227,230,235,0.9); }
html.light .phone { border-color: #d7dbe2; box-shadow: 0 18px 44px rgba(15,23,42,0.16); }
html.light .gstep, html.light .guide-card, html.light .related-card { box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
html.light .guide-cta { background: radial-gradient(ellipse at center, rgba(6,122,158,0.07) 0%, rgba(246,247,249,0) 65%); }

/* embedded mode (?embed=1) — opened from the app's in-app browser:
   hide site chrome and download CTAs, keep just the guide content */
html.embed nav.top,
html.embed .crumbs,
html.embed .guide-cta,
html.embed footer { display: none; }
html.embed .guide-head { padding-top: 32px; }
html.embed .guides-hero { padding-top: 44px; }

footer { border-top: 1px solid var(--border); padding: 34px 0; font-size: 13px; color: var(--text-muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
footer .links a:hover { color: var(--text); }
