/* The guide pages (help.html, events.html): the navigation, the page head, the
   sections, the quick start, the guide cards, the FAQ and the contact callout.
   Loaded before theme.css, site.css and help.css. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 103%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable",
               "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: .005em;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* GP3S is not shown or promoted (no submission API; user, 2026-10-19): the
   blocks marked data-gp3s stay hidden. Delete this rule to show them again. */
[data-gp3s] { display: none !important; }

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-icon { width: 36px; height: 36px; border-radius: 9px; }
.nav-brand span { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--link); }

/* ─── LANGUAGE SWITCH ─────────────────────────────────── */
.lang-switch {
  position: fixed; top: 72px; right: 24px; z-index: 99;
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--float-bg); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px var(--float-shadow);
}
.lang-switch a { color: var(--muted); font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { color: var(--link); }
.lang-switch .sep { color: var(--border); }

/* ─── PAGE HEADER ─────────────────────────────────────── */
.pagehead {
  text-align: center;
  padding: 76px 24px 48px;
}
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--link);
  margin-bottom: 12px;
}
.pagehead h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.1;
}
.pagehead .tagline {
  margin: 16px auto 0; max-width: 640px;
  font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--body);
}
.jump-links {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 30px;
}
.jump-links a {
  background: var(--card); border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--body); text-decoration: none; transition: border-color .2s, color .2s;
}
.jump-links a:hover { border-color: var(--button); color: var(--link); }

/* ─── SECTION SHARED ──────────────────────────────────── */
section { padding: 76px 24px; }
.container { max-width: 1080px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.18; margin-bottom: 14px;
}
.section-body { font-size: 1.02rem; color: var(--body); max-width: 640px; }
.alt { background: var(--surface); }

/* ─── QUICK START: the step list, one phone beside it playing the
   selected step's clip ─── */
.tour {
  display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: start;
  margin-top: 44px;
}
.tour-list { display: grid; gap: 8px; }
.tour-step {
  border: 1px solid transparent; border-radius: var(--radius); padding: 14px 20px;
  transition: background .2s;
}
.tour-step:not(.active):hover { background: var(--hover); }
.tour-step.active { background: var(--card); border-color: var(--border); }
.step-num {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--tint);
  border: 1px solid var(--tint-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: var(--link); margin-bottom: 16px;
}
.tour-step h3 { font-size: 1.05rem; font-weight: 700; }
.tour-head {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 0;
  background: none; border: 0; color: inherit; font: inherit; text-align: left;
  cursor: pointer;
}
.tour-step.active .tour-head { cursor: default; }
.tour-head:focus-visible { border-radius: 8px; }
.tour-head .step-num { margin: 0; flex-shrink: 0; }
.tour-body { display: none; padding: 8px 0 0 50px; }
.tour-step.active .tour-body { display: block; }
.tour-step p { font-size: .95rem; color: var(--body); }
.tour-step code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--tint); border: 1px solid var(--tint-border);
  padding: 1px 6px; border-radius: 6px; font-size: .85em; color: var(--link);
}
/* How far the clip has played. */
.tour-bar { height: 3px; border-radius: 2px; background: var(--border); margin-top: 14px; overflow: hidden; }
.tour-bar i { display: block; height: 100%; width: 0; background: var(--link); }
/* The clips (landing/clips/README.md): a phone's screen, 390 x 844. */
.tour-media { position: sticky; top: 90px; }
.qs-phone {
  width: 280px; aspect-ratio: 390 / 844; border-radius: 30px; overflow: hidden;
  border: 7px solid #232d44; background: #0d1220;
  box-shadow: 0 12px 28px var(--float-shadow);
}
.qs-phone video { width: 100%; height: 100%; display: block; object-fit: cover; }
.store-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border);
  padding: 10px 20px; border-radius: 14px; text-decoration: none; color: var(--text);
  transition: border-color .2s;
}
.btn-store:hover { border-color: var(--button); }
.btn-store .store-logo { width: 24px; height: 24px; flex-shrink: 0; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-text small { font-size: 11px; color: var(--muted); letter-spacing: .03em; }
.store-text strong { font-size: 15px; font-weight: 700; }

/* ─── GUIDE CARDS ─────────────────────────────────────── */
.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 48px;
}
.guide-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px;
  transition: border-color .2s, transform .2s;
}
.guide-card:hover { border-color: var(--button); transform: translateY(-3px); }
.guide-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.guide-card p { font-size: .93rem; color: var(--body); }
.guide-card p + p { margin-top: 8px; }
.guide-card a {
  color: inherit; text-decoration-color: var(--link);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.guide-card a:hover { color: var(--text); }

/* ─── FAQ ──────────────────────────────────────────────── */
.faq-group { margin-top: 44px; }
.faq-group:first-of-type { margin-top: 48px; }
.faq-group h3 {
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--link); margin-bottom: 14px;
}
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px; font-size: .98rem; font-weight: 650; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex-shrink: 0; font-size: 20px; font-weight: 400; color: var(--link);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a {
  padding: 0 22px 20px; font-size: .93rem; color: var(--body); max-width: 760px;
}
.faq-item .faq-a code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--tint); border: 1px solid var(--tint-border);
  padding: 1px 6px; border-radius: 6px; font-size: .85em; color: var(--link);
}
.faq-item .faq-a a {
  color: inherit; text-decoration-color: var(--link);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.faq-item .faq-a a:hover { color: var(--text); }

/* ─── CONTACT CALLOUT ─────────────────────────────────── */
.contact-callout {
  background: var(--tint);
  border: 1px solid var(--tint-border); border-radius: var(--radius);
  padding: 40px 36px; margin-top: 8px;
  display: flex; align-items: center; gap: 24px;
}
.contact-callout .c-icon { font-size: 40px; flex-shrink: 0; }
.contact-callout h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.contact-callout p  { font-size: .95rem; color: var(--body); }
.contact-callout a {
  color: inherit;
  text-decoration-color: var(--link);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.contact-callout a:hover { color: var(--text); }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 720px) {
  nav { padding: 12px 20px; }
  .lang-switch { top: 60px; right: 14px; padding: 5px 11px; }
  .contact-callout { flex-direction: column; text-align: center; }
  .tour { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .tour-media { position: static; order: -1; }
  .qs-phone { width: 230px; margin: 0 auto; }
  .tour-body { padding-left: 0; }
  /* Less room between the blocks, so a gap doesn't look like the page's end. */
  .pagehead { padding: 44px 24px 16px; }
  section { padding-top: 40px; padding-bottom: 40px; }
  .guide-grid { margin-top: 28px; }
  .faq-group, .faq-group:first-of-type { margin-top: 32px; }
}
