/*
 * LQ Sweeps store. One stylesheet, written phone-first: most visitors arrive
 * from an ad on a phone.
 * Order: tokens, base, header, buttons and the buy form, hero, sections, footer.
 */

:root {
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --tint: #f5f7fb;
  --navy: #0b1a3a;
  --brand: #1e40af;
  --brand-strong: #1e3a8a;
  --brand-soft: #e9effd;
  --bsl: #e5484d;
  --ssl: #0f9d7a;
  --spark: #fbbf24;
  --radius: 14px;
  --shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 14px 32px rgba(15, 23, 42, 0.09);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.03rem/1.62 var(--font); -webkit-font-smoothing: antialiased; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0 0 0.5em; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); font-weight: 800; line-height: 1.06; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.2rem); font-weight: 800; line-height: 1.15; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p, ul { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 0.18em; }
strong { color: var(--ink); font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid #93aeff; outline-offset: 2px; border-radius: 4px; }
.small { font-size: 0.86rem; color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.up { color: var(--ssl); font-weight: 600; }
.down { color: var(--bsl); font-weight: 600; }

.container { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 720px; }
.eyebrow { display: block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }

/* ---------- Header ---------- */

.header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.2rem var(--display); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo__mark rect { fill: var(--brand); }
.logo__mark path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.logo__mark path:first-of-type { stroke: var(--spark); stroke-width: 1.6; }

/* ---------- Buttons and the buy form ---------- */

.button { display: inline-flex; align-items: center; justify-content: center; font: 600 1rem/1.2 var(--font); padding: 15px 22px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease; }
.button:hover { background: var(--brand-strong); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(30, 64, 175, 0.28); }
.button:active { transform: none; box-shadow: none; }
.button--small { padding: 10px 16px; font-size: 0.92rem; }

.buy { margin-top: 26px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.buy__label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.buy__row { display: grid; gap: 10px; }
.buy__input { font: inherit; width: 100%; padding: 14px; border: 1px solid #cbd5e1; border-radius: 10px; color: var(--ink); background: var(--paper); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.buy__input:focus-visible { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.buy__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.buy__note { margin: 10px 0 0; font-size: 0.84rem; color: var(--muted); }
@media (min-width: 560px) { .buy__row { grid-template-columns: 1fr auto; } }

/* ---------- Hero ---------- */

.hero { padding-block: 44px 56px; background: radial-gradient(900px 480px at 90% 0%, #dfe8fd 0%, transparent 62%), linear-gradient(180deg, #f3f6fd 0%, var(--paper) 100%); overflow: hidden; }
.hero__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 940px) { .hero { padding-block: 72px 88px; } .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }
.lead { font-size: 1.14rem; line-height: 1.55; max-width: 56ch; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2315803d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6'/%3E%3C/svg%3E") center / 20px no-repeat; }

.window { border-radius: 16px; background: linear-gradient(160deg, #0b1a3a 0%, #142c66 70%, #1e40af 100%); box-shadow: 0 22px 48px rgba(11, 26, 58, 0.32); padding: 14px 16px 16px; color: #c7d6ff; animation: rise 0.8s var(--ease) backwards 0.1s; }
.window__bar { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; margin-bottom: 6px; }
.window__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.window__bar span { margin-left: 8px; font-weight: 600; letter-spacing: 0.02em; }
.window__caption { margin: 6px 4px 0; font-size: 0.86rem; line-height: 1.45; color: #dbe6ff; }

/* ---------- Charts ---------- */

.chart { display: block; width: 100%; height: auto; }
.chart__level { stroke-width: 1.6; stroke-dasharray: 4 5; }
.candle line { stroke-width: 1.8; }
.candle--up line { stroke: var(--ssl); }
.candle--up rect { fill: var(--ssl); }
.candle--down line { stroke: var(--bsl); }
.candle--down rect { fill: var(--bsl); }
.chart__mark text { font: 700 14px var(--font); }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes candle-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes level-in { from { stroke-dashoffset: 420; opacity: 0; } }
@keyframes mark-in { 0% { opacity: 0; transform: translateY(-10px) scale(0.6); } 70% { transform: translateY(0) scale(1.15); } }

/* The hero chart plays once: candles arrive, the level appears, the sweep is marked. */
.chart--live .candle { animation: candle-in 0.4s var(--ease) backwards; animation-delay: calc(0.5s + var(--i) * 0.16s); }
.chart--live .candle:nth-of-type(1) { --i: 0; } .chart--live .candle:nth-of-type(2) { --i: 1; } .chart--live .candle:nth-of-type(3) { --i: 2; }
.chart--live .candle:nth-of-type(4) { --i: 3; } .chart--live .candle:nth-of-type(5) { --i: 4; } .chart--live .candle:nth-of-type(6) { --i: 5; }
.chart--live .candle:nth-of-type(7) { --i: 6; } .chart--live .candle:nth-of-type(8) { --i: 9; } .chart--live .candle:nth-of-type(9) { --i: 12; }
.chart--live .candle:nth-of-type(10) { --i: 13; }
.chart--live .chart__level { animation: level-in 0.7s ease-out backwards 1.1s; }
.chart--live .chart__mark { transform-box: fill-box; transform-origin: center bottom; animation: mark-in 0.55s var(--ease) backwards 2.3s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */

.section { padding-block: 60px; }
.section--tint { background: var(--tint); }
.section__head { max-width: 680px; margin-bottom: 28px; }
.section__head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
@media (min-width: 940px) { .section { padding-block: 84px; } }

.cards { display: grid; gap: 16px; }
@media (min-width: 780px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--paper); transition: transform 0.25s var(--ease), box-shadow 0.25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin: 12px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; background: var(--tint); color: var(--muted); }
.tag--bsl { background: #fdecec; color: #c62f35; }
.tag--ssl { background: #e5f6f1; color: #0b7d62; }

.pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.pages img { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); transition: transform 0.3s var(--ease); }
.pages img:hover { transform: translateY(-6px) rotate(-0.6deg); }
@media (min-width: 780px) { .pages { gap: 22px; max-width: 860px; margin-inline: auto; } }

.figures { display: grid; gap: 16px; }
@media (min-width: 780px) { .figures { grid-template-columns: 1fr 1fr; } }
figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 14px 16px 16px; }
figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 6px; }
.aside { margin: 22px 0 0; padding: 14px 16px; border-left: 3px solid #e0a100; background: #fffaeb; border-radius: 0 10px 10px 0; font-size: 0.96rem; }

.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 0.85fr; gap: 56px; } }
.plain { padding-left: 1.1em; }
.plain li { margin-bottom: 8px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); padding: 8px 0 14px; overflow: hidden; }
.panel .small { margin: 12px 18px 0; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; font-weight: 600; color: var(--ink); padding: 10px 18px 12px; }
th, td { text-align: left; padding: 12px 18px; border-top: 1px solid var(--line); }
thead th { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--tint); }
tbody th { font-weight: 600; color: var(--ink); }

.fit { display: grid; gap: 16px; }
@media (min-width: 780px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit__col { border-radius: var(--radius); padding: 22px 22px 10px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--ssl); }
.fit__col--no { border-top-color: var(--bsl); }
.fit__col ul { padding-left: 1.1em; }
.fit__col li { margin-bottom: 8px; }

details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); margin-bottom: 10px; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
details[open], details:hover { border-color: #d3defa; box-shadow: var(--shadow); }
summary { cursor: pointer; padding: 16px 18px; font-weight: 600; color: var(--ink); }
summary::marker { color: var(--brand); }
details p { margin: 0; padding: 0 18px 16px; }
details[open] p { animation: rise 0.3s var(--ease); }

.cta { background: linear-gradient(160deg, #0b1a3a 0%, #142c66 70%, #1e40af 100%); color: #dbe6ff; text-align: center; }
.cta h2 { color: #fff; }
.cta .buy { text-align: left; margin-top: 22px; }

.prose h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.recover { margin: 14px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }

.notice { padding: 18px 20px; border-radius: var(--radius); border: 1px solid #cdeedb; background: #ecfdf3; margin-bottom: 22px; }
.notice--bad { border-color: #f6cfcb; background: #fef2f2; }
.notice > :last-child { margin-bottom: 0; }
.download { display: grid; gap: 14px; justify-items: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
.download .button { font-size: 1.06rem; padding: 17px 26px; }
.steps { padding-left: 1.2em; }
.steps li { margin-bottom: 8px; }

/* ---------- Ad measurement notice (added by track.js) ---------- */

.measure { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; max-width: 720px; margin-inline: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); font-size: 0.9rem; animation: rise 0.4s var(--ease); }
.measure p { margin: 0; flex: 1 1 240px; }
.measure div { display: flex; gap: 8px; }
.measure button { font: 600 0.9rem var(--font); padding: 9px 14px; border-radius: 9px; border: 1px solid #cbd5e1; background: var(--paper); color: var(--ink); cursor: pointer; }
.measure .measure__ok { background: var(--brand); border-color: var(--brand); color: #fff; }
.link-button { font: inherit; padding: 0; border: 0; background: none; color: var(--brand); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.link-button:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* ---------- Footer ---------- */

.footer { background: var(--navy); color: #a9b9de; padding-block: 36px; font-size: 0.86rem; }
.footer a { color: #dbe6ff; }
.footer strong { color: #fff; }
.footer__risk { max-width: 96ch; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer__row nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
