/* Anchor site. Navy + teal, matching the app icon. Light by default, dark with the system. */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f7;
  --text: #0d1b2e;
  --muted: #56667a;
  --line: #dbe3ec;
  --brand: #0e7c8a;
  --brand-strong: #0a5f6a;
  --brand-soft: #e1f3f5;
  --navy: #0d1f3c;
  --warn: #b5551d;
  --ok: #1f8a4c;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(13 27 46 / 6%), 0 8px 24px rgb(13 27 46 / 8%);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  /* Demo stage */
  --desk: #e8eef4;
  --bezel: #1b2433;
  --screen: #2b4c6f;
  --screen-2: #3a6a8f;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1320;
    --surface: #111c2d;
    --surface-2: #16243a;
    --text: #e8eef6;
    --muted: #9aabbf;
    --line: #23344d;
    --brand: #35b3c2;
    --brand-strong: #5cc8d5;
    --brand-soft: #123441;
    --warn: #f0a46c;
    --ok: #5fd08e;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
    --desk: #0f1a2a;
    --bezel: #05090f;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--brand); margin-bottom: 0.6em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.hint { color: var(--muted); font-size: 0.92rem; }
.accent { color: var(--brand); }

/* Buttons */
.btn {
  /* Small gap: flex turns "Buy for " and the price span into separate items. */
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3em;
  padding: 13px 22px; border-radius: 11px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font: 600 1rem/1.2 var(--font);
  text-decoration: none; cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--brand-strong); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-small { padding: 8px 14px; font-size: 0.92rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 14px; }
.cta-center { justify-content: center; }

/* Header */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.nav-bar { display: flex; align-items: center; gap: 20px; width: min(1120px, 100% - 32px); margin-inline: auto; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span, .nav-menu summary span::before, .nav-menu summary span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; content: ""; }
.nav-menu summary span::before { position: absolute; top: -6px; }
.nav-menu summary span::after { position: absolute; top: 6px; }
.nav-menu-panel { position: absolute; right: 0; top: 48px; min-width: 220px; display: flex; flex-direction: column; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.nav-menu-panel a { padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
.nav-menu-panel a:hover { background: var(--surface-2); }
.stock-strip { margin: 0; padding: 7px 16px; text-align: center; font-size: 0.9rem; background: var(--navy); color: #d9eef2; }
.stock-strip strong { color: #fff; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .nav-actions .btn-ghost { display: none; }
}

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { max-width: 15em; margin-inline: auto; }
.hero .lede { margin-inline: auto; }
.hero-meta { color: var(--muted); font-size: 0.92rem; }

/* Demo stage */
.demo { margin: 36px auto 0; max-width: 1020px; }
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.demo-toggle { display: inline-flex; padding: 4px; gap: 4px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.demo-toggle button { border: 0; background: transparent; color: var(--muted); font: 600 0.92rem var(--font); padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.demo-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 12%); }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, var(--desk), color-mix(in srgb, var(--desk) 80%, #9fb3c6)); }
.screen { position: absolute; border-radius: 1.2% / 2%; background: var(--bezel); padding: 0.7%; transition: opacity 0.45s, transform 0.45s, filter 0.45s; }
.screen-inner { position: relative; width: 100%; height: 100%; border-radius: 0.6% / 1%; overflow: hidden; background: radial-gradient(120% 120% at 20% 10%, var(--screen-2), var(--screen)); }
.menubar { position: absolute; left: 0; right: 0; top: 0; height: 5.5%; min-height: 9px; background: rgb(255 255 255 / 22%); display: flex; justify-content: flex-end; align-items: center; padding-right: 2%; }
.menubar svg { height: 70%; width: auto; color: #fff; }
.menubar .pulse { animation: pulse 0.9s ease-out 2; }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.monitor { left: 40%; top: 7%; width: 55%; height: 61%; }
.monitor-stand { position: absolute; left: 63.5%; top: 68%; width: 8%; height: 12%; background: linear-gradient(90deg, #9aa8b8, #c7d0da, #9aa8b8); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); transition: opacity 0.45s; }
.laptop { left: 5%; top: 37%; width: 30%; height: 36%; }
.laptop-base { position: absolute; left: 2.5%; top: 73%; width: 35%; height: 3.2%; background: linear-gradient(180deg, #c3ccd6, #8e9aa8); border-radius: 0 0 40% 40% / 0 0 100% 100%; }
.cable { position: absolute; left: 35%; top: 70%; width: 30%; height: 14%; transition: opacity 0.35s; }
.cable path { fill: none; stroke: #7b8796; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 0; }
.stage.unplugged .monitor { opacity: 0.18; filter: grayscale(1); transform: scale(0.985); }
.stage.unplugged .monitor-stand { opacity: 0.35; }
.stage.unplugged .cable { opacity: 0; }
.no-signal { position: absolute; inset: 0; display: grid; place-items: center; color: #c8d3df; font-size: clamp(9px, 1.3vw, 14px); font-weight: 600; opacity: 0; transition: opacity 0.3s; }
.stage.unplugged .no-signal { opacity: 1; }

.win { container-type: inline-size; position: absolute; border-radius: 6px; overflow: hidden; background: var(--surface); box-shadow: 0 6px 18px rgb(0 0 0 / 28%); transition: left 0.7s cubic-bezier(.2,.8,.2,1), top 0.7s cubic-bezier(.2,.8,.2,1), width 0.7s cubic-bezier(.2,.8,.2,1), height 0.7s cubic-bezier(.2,.8,.2,1); }
.win-bar { height: 15%; min-height: 8px; max-height: 18px; display: flex; align-items: center; gap: 4%; padding: 0 5%; color: #fff; font-size: clamp(6px, 0.9vw, 11px); font-weight: 600; white-space: nowrap; overflow: hidden; }
.win-bar i { width: clamp(3px, 0.5vw, 6px); height: clamp(3px, 0.5vw, 6px); border-radius: 50%; background: rgb(255 255 255 / 70%); flex: none; }
@container (max-width: 90px) { .win-bar span { display: none; } }
.stage.no-anchor .menubar svg { visibility: hidden; }
.win-body { position: absolute; inset: 15% 0 0; padding: 6%; display: grid; gap: 7%; align-content: start; }
.win-body b { display: block; height: clamp(2px, 0.45vw, 6px); border-radius: 3px; background: var(--line); }
.win-body b:nth-child(2) { width: 80%; } .win-body b:nth-child(3) { width: 60%; } .win-body b:nth-child(4) { width: 70%; }
.demo-status { min-height: 1.6em; margin: 14px 4px 0; color: var(--muted); font-size: 0.98rem; }
.demo-status strong { color: var(--text); }
.toast { position: absolute; right: 3%; bottom: 5%; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgb(13 31 60 / 92%); color: #fff; font-size: clamp(10px, 1.2vw, 14px); font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
.toast svg { width: 1.2em; height: 1.2em; }
.toast.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .win, .screen, .toast, .cable, .monitor-stand { transition: none; }
  .menubar .pulse { animation: none; }
}

/* Steps + features */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; counter-reset: step; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step-card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 14px; }
.step-card p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.feature { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.section-alt .feature { background: var(--bg); }
.feature svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }
@media (max-width: 900px) { .steps-grid, .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps-grid, .features { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

/* Trust / permission callout */
.callout { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.callout svg { width: 30px; height: 30px; color: var(--brand); }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; color: var(--muted); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: 40px; align-items: stretch; }
.price-card { background: var(--surface); border: 2px solid var(--brand); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.price { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ladder { margin: 14px 0 0; font-size: 0.95rem; color: var(--muted); }
.ladder strong { color: var(--warn); }
.checks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 9px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230e7c8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.trial-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; }
.trial-card .btn { margin-top: auto; }
.cb-promo { margin-top: 24px; padding: 18px 22px; border-radius: var(--radius); border: 1px dashed var(--brand); background: var(--surface); }
.cb-promo p { margin: 0; }
@media (max-width: 800px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 36px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* Small pages */
.page { padding: 64px 0 88px; width: min(760px, 100% - 32px); margin-inline: auto; }
.page-center { text-align: center; }
.page-icon { width: 96px; height: 96px; margin-bottom: 16px; }
.page-center .lede { margin-inline: auto; }
.key-box { display: flex; align-items: center; gap: 10px; justify-content: space-between; max-width: 560px; margin: 24px auto 10px; padding: 12px 12px 12px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.key-box code { background: none; padding: 0; font-size: 1rem; overflow-wrap: anywhere; text-align: left; }
.steps { text-align: left; max-width: 440px; margin: 28px auto; padding-left: 1.3em; }
.steps li { margin: 6px 0; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.updated { color: var(--muted); font-size: 0.92rem; }

/* Cashback */
.cb-steps { list-style: none; counter-reset: cb; padding: 0; display: grid; gap: 14px; margin: 40px 0; }
.cb-steps li { counter-increment: cb; display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cb-steps li::before { content: counter(cb); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.cb-steps span { color: var(--muted); }
.cb-h2 { font-size: 1.5rem; margin-top: 48px; }
.cb-note { color: var(--muted); }
.cb-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cb-table [role="row"] { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.cb-table .cb-head { border-top: 0; background: var(--surface-2); font-weight: 700; font-size: 0.92rem; }
.cb-form { display: grid; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cb-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.cb-form input, .cb-form select { font: 400 1rem var(--font); padding: 11px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.cb-form small { font-weight: 400; color: var(--muted); }
.cb-result { margin: 0; padding: 12px 14px; border-radius: 9px; }
.cb-result.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.cb-result.error { background: color-mix(in srgb, var(--warn) 14%, transparent); }
.cb-rules li { margin: 8px 0; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 56px 0 28px; font-size: 0.95rem; }
.footer-grid { width: min(1120px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: 1.5fr 0.9fr 1.4fr 0.9fr 1.2fr; gap: 28px; }
.footer-brand p { color: var(--muted); margin: 12px 0 16px; max-width: 26em; }
.footer-h { font-weight: 700; margin-bottom: 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--text); }
.footer-col small { display: block; font-size: 0.82rem; opacity: 0.8; }
.footer-bottom { width: min(1120px, 100% - 32px); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: inherit; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Guides */
.guide { width: min(780px, 100% - 32px); margin-inline: auto; padding: 40px 0 88px; }
.guide h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.guide-meta { color: var(--muted); font-size: 0.92rem; }
.quick-answer { margin: 26px 0 8px; padding: 20px 22px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.quick-answer p:last-child { margin: 0; }
.guide-body h2 { font-size: 1.5rem; margin-top: 1.8em; }
.guide-body ul, .guide-body ol { padding-left: 1.3em; }
.guide-body li { margin: 7px 0; }
.guide-body ol.steps { text-align: left; max-width: none; margin: 18px 0; }
kbd { white-space: nowrap; font: 600 0.82em ui-monospace, SFMono-Regular, Menlo, monospace; padding: 0.1em 0.45em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table-wrap th, .table-wrap td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.table-wrap thead th { border-top: 0; background: var(--surface-2); font-size: 0.88rem; }
.anchor-callout { display: grid; grid-template-columns: auto 1fr; gap: 18px; margin: 40px 0; padding: 24px; border-radius: 18px; background: var(--surface); border: 2px solid var(--brand); }
.anchor-callout > svg { width: 34px; height: 34px; color: var(--brand); }
.anchor-callout .cta-row { margin: 16px 0 0; }
.guide-faq { margin: 0; max-width: none; }
.guide-faq h2, .related h2 { font-size: 1.4rem; margin-top: 1.4em; }
.related ul, .hub-cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.related a, .hub-cards a { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); }
.related a:hover, .hub-cards a:hover { border-color: var(--brand); color: var(--text); }
.related span, .hub-cards span { font-weight: 700; }
.related small, .hub-cards small { color: var(--muted); font-size: 0.92rem; }
.hub-section { margin-top: 36px; }
.hub-section h2 { font-size: 1.4rem; margin-bottom: 4px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .anchor-callout { grid-template-columns: 1fr; } }

.disclosure { font-size: 0.92rem; color: var(--muted); padding: 12px 16px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 10px 10px 0; }
