/* ReachClub guides (/guides/). Same language as the landing pages and the app: Geist,
   paper and ink, mono labels, a glass layer over a pink and cyan field in light mode.
   Dark mode is flat black like Instagram or X: no glass, no blur, no glow, hairline borders. */
:root {
    --paper: #F7F6F1;
    --ink: #0B0F14;
    --ink-2: #3A4049;
    --ink-3: #6B7280;
    --orange: #FF5B1F;
    --pink: #FF3D9A;
    --cyan: #13C2E3;
    --glass: rgba(255, 255, 255, .58);
    --glass-strong: rgba(255, 255, 255, .8);
    --glass-border: rgba(255, 255, 255, .9);
    --bar: rgba(255, 255, 255, .88);
    --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 24px 60px -28px rgba(11, 15, 20, .28);
    --blur: blur(22px) saturate(170%);
    --line: rgba(11, 15, 20, .08);
    --hover: rgba(255, 255, 255, .7);
    --frame: #fff;
    --ok: #0f9d58;
    --radius: 24px;
    --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --gutter: clamp(16px, 4vw, 40px);
    --mc: var(--pink);
}
html[data-theme="dark"] {
    color-scheme: dark;
    --paper: #000;
    --ink: #F5F5F5;
    --ink-2: #C9CCD1;
    --ink-3: #8B9099;
    --glass: #000;
    --glass-strong: #000;
    --glass-border: #2A2D33;
    --bar: #000;
    --shadow: none;
    --blur: none;
    --line: #2A2D33;
    --hover: #101114;
    --frame: #000;
    --ok: #34d17f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[x-cloak] { display: none !important; }
::selection { background: rgba(255, 61, 154, .22); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* Ambient colour field, light mode only */
.gd-aura { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.gd-aura span { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .5; }
.gd-aura .a1 { width: 48vw; height: 48vw; left: -14vw; top: -16vw; background: radial-gradient(circle, rgba(255, 61, 154, .5), transparent 65%); }
.gd-aura .a2 { width: 44vw; height: 44vw; right: -12vw; top: 10vh; background: radial-gradient(circle, rgba(19, 194, 227, .45), transparent 65%); }
.gd-aura .a3 { width: 36vw; height: 36vw; left: 30vw; top: 62vh; background: radial-gradient(circle, rgba(255, 91, 31, .2), transparent 65%); }
html[data-theme="dark"] .gd-aura { display: none; }

.gd-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.gd-glass { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.gd-mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.gd-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--mc); flex: none; }

/* Header: the floating pill of the landing pages */
.gd-nav { position: sticky; top: 12px; z-index: 50; margin-top: 12px; }
.gd-bar { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 999px; background: var(--bar); }
.gd-brand { display: flex; align-items: center; gap: 8px; }
.gd-word { font-weight: 800; font-size: 18px; letter-spacing: -.035em; line-height: 1; }
.gd-word em { font-style: normal; color: var(--orange); }
.gd-crumb { font-size: 15px; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.gd-crumb:hover { color: var(--ink); background: var(--hover); }
.gd-gap { flex: 1; }
.gd-icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; }
.gd-icon-btn:hover { color: var(--ink); background: var(--hover); }
.gd-moon, html[data-theme="dark"] .gd-sun { display: none; }
html[data-theme="dark"] .gd-moon { display: block; }
.gd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); white-space: nowrap; transition: transform .2s; }
.gd-btn:hover { transform: translateY(-1px); }
.gd-btn.ink { background: var(--ink); color: var(--paper); }
.gd-btn.ghost { border-color: var(--line); }
.gd-btn.solid { background: var(--orange); border-color: var(--orange); color: #fff; padding: 13px 22px; font-size: 13px; box-shadow: 0 12px 28px -12px rgba(255, 91, 31, .8); }
html[data-theme="dark"] .gd-btn.solid { box-shadow: none; }

.gd-main { padding-top: clamp(32px, 6vw, 72px); padding-bottom: 72px; min-height: 70vh; }

/* Index */
.gd-hero h1, .gd-guide h1 { font-weight: 300; letter-spacing: -.04em; line-height: 1.02; margin: 12px 0 16px; }
.gd-hero h1 { font-size: clamp(38px, 6vw, 76px); }
.gd-hero h1 b, .gd-guide h1 { font-weight: 700; }
.gd-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 640px; margin: 0 0 28px; font-weight: 300; }
.gd-search { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 999px; color: var(--ink-3); background: var(--glass-strong); }
.gd-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; padding: 16px 0; }
.gd-search input::placeholder { color: var(--ink-3); }
.gd-search:focus-within { border-color: var(--pink); }
.gd-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.gd-jump a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); }
.gd-jump a:hover { color: var(--ink); background: var(--hover); }
.gd-jump i { width: 8px; height: 8px; border-radius: 50%; background: var(--mc); }
.gd-group { margin-top: 44px; }
.gd-group-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 4px 12px; }
.gd-group-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; margin: 0; }
.gd-group-head p { margin: 0; color: var(--ink-3); font-size: 15px; }
.gd-faq { list-style: none; margin: 0; padding: 6px; }
.gd-faq li + li { border-top: 1px solid var(--line); }
.gd-faq a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 16px; padding: 16px 14px; border-radius: 18px; }
.gd-faq a:hover { background: var(--hover); }
.gd-q { font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.gd-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.gd-chev { color: var(--ink-3); transition: transform .2s; }
.gd-faq a:hover .gd-chev { transform: translateX(3px); color: var(--mc); }
.gd-empty { margin: 40px 4px; color: var(--ink-2); }

/* Guide */
.gd-guide h1 { font-size: clamp(32px, 4.6vw, 56px); max-width: 18ch; }
.gd-path { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.gd-path a { display: inline-flex; align-items: center; gap: 7px; }
.gd-path a:hover { color: var(--ink); }
.gd-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 36px; }
.gd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.gd-step { padding: clamp(14px, 2.4vw, 24px); scroll-margin-top: 90px; }
.gd-step-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.gd-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--mc); color: #fff; font-weight: 700; font-size: 16px; }
.gd-do { margin: 3px 0 0; font-size: clamp(18px, 1.9vw, 21px); font-weight: 600; letter-spacing: -.015em; line-height: 1.35; }
.gd-expect { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; color: var(--ink-2); font-size: 16px; }
.gd-expect svg { flex: none; margin-top: 4px; color: var(--ok); }
.gd-expect b { color: var(--ink); font-weight: 600; }

/* The screenshot and its click mark. Everything inside .gd-shot-inner is laid out in
   percent of the picture, so the mark sits on the same control at every width. Zooming
   scales .gd-shot-inner around the centre of the mark: that point does not move, and
   since the scale is above 1 the picture always fills the frame. */
.gd-shot { margin: 0; --z: 1; }
.gd-shot-frame { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--frame); aspect-ratio: 1440 / 900; }
.gd-shot-inner { position: absolute; inset: 0; transform-origin: var(--cx) var(--cy); transform: scale(var(--z)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.gd-shot-inner img { width: 100%; height: 100%; }
.gd-mark { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border: calc(3px / var(--z)) solid var(--pink); border-radius: calc(10px / var(--z)); box-shadow: 0 0 0 calc(4px / var(--z)) rgba(255, 61, 154, .22); pointer-events: none; }
.gd-mark::after { content: ""; position: absolute; inset: calc(-3px / var(--z)); border-radius: inherit; border: calc(3px / var(--z)) solid var(--pink); animation: gd-pulse 1.8s ease-out infinite; }
.gd-mark b { position: absolute; z-index: 1; left: 0; top: 0; transform: translate(-50%, -50%) scale(calc(1 / var(--z))); width: 26px; height: 26px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 14px; font-weight: 700; line-height: 26px; text-align: center; box-shadow: 0 0 0 2px #fff; }
@keyframes gd-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.22, 1.5); opacity: 0; } }
.gd-zoom { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px; cursor: pointer; }
.gd-zoom:hover { color: var(--ink); background: var(--hover); }
.gd-zoom-out, .gd-shot.is-flipped .gd-zoom-in, .gd-shot.is-flipped .gd-zoom-plus { display: none; }
.gd-shot.is-flipped .gd-zoom-out { display: inline; }
.gd-shot.is-flipped { --z: 2; }
/* On a phone a 1440px screen is unreadable at full width, so it starts zoomed in on the mark. */
@media (max-width: 720px) {
    .gd-shot { --z: 2.6; }
    .gd-shot.is-flipped { --z: 1; }
    .gd-zoom-in, .gd-zoom-plus { display: none; }
    .gd-zoom-out { display: inline; }
    .gd-shot.is-flipped .gd-zoom-in { display: inline; }
    .gd-shot.is-flipped .gd-zoom-plus { display: block; }
    .gd-shot.is-flipped .gd-zoom-out { display: none; }
    .gd-shot-frame { border-radius: 12px; }
}

.gd-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.gd-pager a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; font-weight: 500; letter-spacing: -.01em; }
.gd-pager a:hover { background: var(--hover); }
.gd-next { text-align: right; align-items: flex-end; }
.gd-back { margin: 22px 4px 0; font-size: 15px; color: var(--ink-3); }
.gd-back a { text-decoration: underline; text-underline-offset: 3px; }

.gd-foot { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-top: 22px; padding-bottom: 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.gd-foot a:hover { color: var(--ink); }
.gd-foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (max-width: 720px) {
    body { font-size: 16px; }
    .gd-faq a { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 10px; }
    .gd-meta { grid-column: 1; grid-row: 2; }
    .gd-chev { grid-column: 2; grid-row: 1 / span 2; }
    .gd-pager { grid-template-columns: 1fr; }
    .gd-next { text-align: left; align-items: flex-start; }
    .gd-crumb { display: none; }
}
@media (max-width: 420px) { .gd-hide-xs { display: none; } .gd-btn { padding: 9px 13px; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .gd-mark::after { animation: none; }
    .gd-shot-inner, .gd-btn, .gd-chev { transition: none; }
}
