/* RelayLeads Help — same dark surfaces and gold accent as relayleads.io */
:root {
  --gold: #ecaa1f;
  --gold-soft: rgba(236, 170, 31, 0.12);
  --bg: #0a0a0b;
  --panel: #131316;
  --panel-2: #1a1a1f;
  --ink: #f4f4f6;
  --muted: #9a9aa4;
  --line: rgba(255, 255, 255, 0.09);
  --radius: 12px;
  --top: 64px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: var(--top); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { height: 26px; width: auto; flex: none; }
.brand span { color: var(--gold); font-weight: 600; font-size: 15px; padding-left: 12px; border-left: 1px solid var(--line); }
.top-nav { display: flex; gap: 20px; font-size: 14px; }
.top-nav a { color: var(--muted); text-decoration: none; }
.top-nav a:hover { color: var(--ink); }

.hero { padding: 56px 0 8px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.hero p { margin: 0; color: var(--muted); font-size: 18px; }
.hero a { color: var(--gold); }
.search { margin-top: 24px; }
.search input { width: 100%; max-width: 560px; height: 50px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; outline: none; }
.search input:focus { border-color: var(--gold); }
.search input::placeholder { color: var(--muted); }

.results { padding-top: 28px; }
.results h2, .group h2, .related h2 { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.hit { display: flex; gap: 14px; align-items: flex-start; padding: 14px; margin-bottom: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.hit:hover { border-color: var(--gold); }
.hit img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.hit b { display: block; }
.hit small { display: block; color: var(--muted); font-size: 13px; }
.hit span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.hit mark { background: var(--gold-soft); color: var(--gold); border-radius: 3px; padding: 0 2px; }
.none { color: var(--muted); }

.group { padding-top: 44px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.thumb { position: relative; display: block; aspect-ratio: 1; background: var(--panel-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.time { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.75); font-size: 12px; font-weight: 600; }
.card-title { display: block; padding: 12px 14px 14px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.more { margin: 16px 0 0; }
.more a { color: var(--gold); text-decoration: none; font-weight: 600; }

.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 11px; color: var(--gold); font-size: 20px; font-weight: 400; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0; padding: 0 16px 14px; color: #d4d4da; }
.faq .faq-see { font-size: 14px; color: var(--muted); }
.faq-see a { color: var(--gold); text-decoration: none; }

.crumb { padding: 28px 0 0; color: var(--muted); font-size: 14px; }
.crumb a { color: var(--gold); text-decoration: none; }
.crumb span { margin: 0 8px; }
.how { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 48px; align-items: start; padding: 24px 0 16px; }
.how-video { position: sticky; top: 24px; }
.how-video video { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }
.sheet-grab { display: none; }
.how-text h1 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; }
.lead { margin: 0 0 20px; color: var(--muted); font-size: 18px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr) 54px; gap: 14px; align-items: center; width: 100%; padding: 12px 8px 12px 0; background: none; border: 0; border-left: 3px solid transparent; padding-left: 10px; text-align: left; cursor: pointer; }
.step:hover { background: rgba(255, 255, 255, 0.03); }
.step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.step-t > b { display: block; font-weight: 600; }
.step-t > span { display: block; color: var(--muted); font-size: 14.5px; }
.step img { width: 54px; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.pill { display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--gold); color: #111; font-weight: 700; font-size: 0.9em; }
.steps li.on .step { border-left-color: var(--gold); background: var(--gold-soft); }
.steps li.on .step-n { background: var(--gold); border-color: var(--gold); color: #111; }
.outro { margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-weight: 600; }
.related { padding-top: 36px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 36px 0 40px; }
.pager a { display: block; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--gold); }
.pager a.next { text-align: right; }
.pager small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-bottom: 2px; }

.foot { margin-top: 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 32px; }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 760px) {
  /* closed, the drawer sits right under the square video, so the first steps already show */
  :root { --top: 54px; --vid: min(100vw, calc(100dvh - var(--top) - 150px)); --peek: calc(100dvh - var(--top) - var(--vid)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pager { grid-template-columns: 1fr; padding-bottom: 8px; }
  .pager a.next { text-align: left; }

  /* A how-to on a phone behaves like the app: the video fills the screen and the steps sit in a
     drawer that pulls up from the bottom. */
  body.is-howto { overflow: hidden; height: 100dvh; }
  .is-howto .foot, .is-howto .crumb { display: none; }
  .is-howto .how-wrap { padding: 0; }
  .is-howto .how { display: block; padding: 0; }
  .is-howto .how-video { position: fixed; top: var(--top); left: 0; right: 0; height: var(--vid); display: grid; place-items: center; background: #000; }
  .is-howto .how-video video { width: var(--vid); height: var(--vid); border: 0; border-radius: 0; }
  .sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(100dvh - var(--top) - 10px); display: flex; flex-direction: column;
    background: var(--panel); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -18px 40px -12px rgba(0, 0, 0, 0.8);
    transform: translateY(calc(100% - var(--peek))); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; }
  .sheet[data-snap="full"] { transform: translateY(0); }
  .sheet.dragging { transition: none; }
  .sheet-grab { display: block; flex: none; width: 100%; height: 84px; padding: 0 20px; background: none; border: 0; text-align: left; cursor: grab; touch-action: none; position: relative; }
  .sheet-grab i { position: absolute; top: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255, 255, 255, 0.28); }
  .sheet-peek { display: block; padding-top: 14px; }
  .sheet-peek b { display: block; font-size: 16px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sheet-peek span { display: block; color: var(--gold); font-size: 13px; font-weight: 600; }
  .sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 20px calc(var(--hidden, calc(100dvh - var(--top) - 10px - var(--peek))) + 24px); border-top: 1px solid var(--line); }
  .is-howto .how-text h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }  /* the drawer handle already shows it */
  .is-howto .lead { padding-top: 16px; }
  .is-howto .lead { font-size: 16px; }
  .step { grid-template-columns: 28px minmax(0, 1fr) 44px; gap: 12px; }
  .step img { width: 44px; }
}
