/* Hit Rate Social landing. Same skin as the dashboard (tools/dashboard_template.html):
   Outfit throughout, neutral grey canvas with lighter flat cards, 1px hairlines,
   8px corners, no shadows, colour only in the data and the primary action.
   If a token here disagrees with the dashboard, the dashboard wins. */
:root {
  color-scheme: light;
  --page: #fcfcfc;      /* cards */
  --panel: #f7f7f7;     /* top bar */
  --canvas: #f3f3f4;    /* behind the cards */
  --line: #e0e0e2;
  --rule: #e9e9ea;
  --dashed: #d3dcdf;
  --ink: #132126;
  --ink-2: #4a656c;
  --muted: #7e9499;
  --accent: #2456c9;
  --accent-press: #1d48ad;
  --accent-soft: rgba(36, 86, 201, .08);
  --on-accent: #fcfcfc;
  --r: 8px;
  --font: Outfit, system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #1a1b1e;
    --panel: #141517;
    --canvas: #101113;
    --line: #2c2e33;
    --rule: #26282c;
    --dashed: #3b4045;
    --ink: #eceef0;
    --ink-2: #b2b8bd;
    --muted: #868d93;
    --accent: #5b8bf0;
    --accent-press: #7aa2f5;
    --accent-soft: rgba(91, 139, 240, .16);
    --on-accent: #101113;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--canvas); overflow-x: clip; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r); }
.tnum { font-variant-numeric: tabular-nums; }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* Top bar, as in the dashboard: panel grey with a hairline under it. */
.bar { background: var(--panel); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; height: 56px; }

/* Logo 18C: three short grey bars and one accent bar towering over them,
   on the text baseline at 1.3x the capitals. The name is live Outfit text. */
.brand {
  display: block;
  font: 700 19px/1 var(--font);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand .hrc {
  display: inline-block; height: .9165em; width: auto;
  vertical-align: baseline; margin-right: .26em;
}
.brand .hrc .sb { fill: currentColor; opacity: .28; }
.brand .hrc .sp { fill: var(--accent); }

h1, h2, h3 { font-family: var(--font); font-weight: 600; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 11.5vw, 68px); line-height: 1; letter-spacing: -0.045em; }
h2 { font-size: 24px; line-height: 1.15; }
h3 { font-size: 15px; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }

.hero { padding: 44px 0 4px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.kicker { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.hero .kicker { font-size: clamp(20px, 5.4vw, 26px); line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); margin-bottom: 14px; }
.lede { margin-top: 18px; font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }

/* Cards */
.card {
  margin: 28px 0 0;
  padding: 20px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.card-h { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }

/* Stat tiles, as the dashboard's KPI cards: small label, big number, muted note. */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.kpi { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.kpi .l { font-size: 13px; color: var(--ink-2); }
.kpi .n { margin-top: 4px; font-size: 34px; font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; }
.kpi .n.a { color: var(--accent); }
.kpi .s { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* Chart: the dashboard's per-post bars. Ordinary posts in faint ink,
   hits in the accent, the hit line dashed. */
.chart { margin: 20px 0 0; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .b { fill: var(--ink); opacity: .22; }
.chart .h { fill: var(--accent); }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .hl { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hlt { font: 500 7px var(--font); fill: var(--muted); }
.chart figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; font-size: 13px; color: var(--muted);
}
.legend { display: flex; gap: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.legend i.o { background: var(--ink); opacity: .22; }
@media (prefers-reduced-motion: no-preference) {
  .chart rect { transform-box: fill-box; transform-origin: bottom; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
  .chart rect.h { animation-delay: .25s; }
  @keyframes grow { from { transform: scaleY(0.05); } }
}

/* Buy block */
.buy .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.buy .l { font-size: 13px; color: var(--ink-2); }
.price { display: block; margin-top: 4px; font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.045em; }
.price-note { color: var(--muted); font-size: 13px; text-align: right; line-height: 1.45; }
.fine { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; margin-top: 18px; padding: 12px 20px;
  border-radius: var(--r); border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent);
  font: 600 17px/1.1 var(--font); letter-spacing: -0.01em;
  text-decoration: none; text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--accent-press); border-color: var(--accent-press); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.is-unconnected {
  background: transparent; color: var(--muted);
  border: 1px dashed var(--dashed); cursor: not-allowed;
}
.btn.is-unconnected svg { display: none; }

/* Sections */
section { padding: 48px 0 0; }
section > .kicker { margin-bottom: 8px; }

/* What you get: one card, rows divided by hairlines, each with the
   dashboard's own icon on a soft accent tile. */
.gets { list-style: none; margin: 18px 0 0; padding: 4px 20px; background: var(--page); border: 1px solid var(--line); border-radius: var(--r); }
.gets li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; padding: 16px 0; }
.gets li + li { border-top: 1px solid var(--rule); }
.gets .ic {
  width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.gets .ic svg { width: 17px; height: 17px; }
.gets h3 { padding-top: 1px; }
.gets h3:has(.badge) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.gets .badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.5; white-space: nowrap; vertical-align: 1px;
}
.gets p { color: var(--ink-2); font-size: 14px; margin-top: 3px; }

/* The stack: everything in the audit recapped in the buy card, then the price. */
.stack { list-style: none; margin: 12px 0 18px; padding: 0 0 4px; border-bottom: 1px solid var(--rule); }
.stack li { position: relative; padding: 5px 0 5px 24px; font-size: 15px; color: var(--ink-2); }
.stack li::before {
  content: ""; position: absolute; left: 3px; top: 10px; width: 5px; height: 10px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg);
}
.stack li.bonus { color: var(--ink); font-weight: 500; }
.stack li.bonus .v { display: block; font-size: 13px; font-weight: 400; color: var(--accent); }

/* FAQ: rows like the dashboard's "Your usual" card. */
.faq { margin-top: 16px; padding: 0 20px; background: var(--page); border: 1px solid var(--line); border-radius: var(--r); }
.faq details + details { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 17px 32px 17px 0; position: relative;
  font: 500 16px/1.35 var(--font); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); font-size: 15px; }

footer {
  margin-top: 56px; padding: 20px 0 120px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}

/* Sticky bar (phones) */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky.show { transform: none; }
.sticky .inner { max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.sticky .p { font-size: 24px; font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; }
.sticky .btn { margin: 0; min-height: 48px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .sticky { transition: none; } }
@media (min-width: 900px) { .sticky { display: none; } footer { padding-bottom: 48px; } }

/* Offer page (between Stripe and thanks) */
.offer .btn + .skip { display: block; margin-top: 14px; text-align: center; font-size: 15px; color: var(--muted); }
.offer .gets { margin-top: 18px; }
.price .per { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); margin-left: 4px; }
.price .was { font-size: 24px; font-weight: 500; color: var(--muted); margin-right: 8px; text-decoration-thickness: 2px; }
.terms { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Thanks page: the one next offer, and the referral. */
.next h2 { font-size: 18px; }
.next p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--canvas); border-color: var(--line); }

/* Thanks page */
.steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 4px 20px; background: var(--page); border: 1px solid var(--line); border-radius: var(--r); }
.steps li { counter-increment: s; position: relative; padding: 18px 0 18px 46px; }
.steps li + li { border-top: 1px solid var(--rule); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 16px;
  width: 30px; height: 30px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font: 600 15px/1 var(--font);
}
.steps h2 { font-size: 16px; line-height: 1.3; letter-spacing: -0.02em; padding-top: 4px; }
.steps p { color: var(--ink-2); font-size: 14px; margin-top: 3px; }
.steps .btn { margin-top: 14px; }
.sub-note { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* After-payment form (start.html): Instagram handle and competitors, asked
   here instead of on the Stripe checkout so checkout is email and card only. */
.intake { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field .fl { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; padding: 0; }
.field .opt { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.fi {
  display: flex; align-items: center; height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--page);
}
.fi:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fi .at { color: var(--muted); font-size: 17px; margin-right: 2px; }
.fi input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: 400 17px var(--font); color: var(--ink);
}
.fi input::placeholder { color: var(--muted); opacity: .7; }
.intake .btn { margin-top: 2px; }
.intake .btn:disabled { opacity: .7; cursor: progress; }
.intake .fine { margin-top: -6px; }
.ferr { margin: 0; font-size: 14px; color: #b42318; }
@media (prefers-color-scheme: dark) { .ferr { color: #f97066; } }

/* Offer page: the saving and the one-time nature of the early member price. */
.offer-flag { margin: 0 0 10px; }
.offer .badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: 0;
}
.last-chance { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }

/* One-click offer button */
button.btn:disabled { opacity: .75; cursor: progress; transform: none; }
button.btn.is-unconnected:disabled { opacity: 1; cursor: not-allowed; }
#uerr { margin-top: 12px; text-align: center; }

/* Shown everywhere except the live hostnames (see config.js) */
.test-mode {
  position: fixed; top: 8px; right: 8px; z-index: 20; padding: 4px 10px;
  border-radius: 999px; background: #b54708; color: #fff8f0;
  font: 600 12px/1.4 var(--font); pointer-events: none;
}
