/* buyDips: light + dark themes, no external requests. */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f0f2f5;
  --text: #0f172a; --muted: #5b6676; --line: #e2e6ec;
  --brand: #0f766e; --brand-hover: #0b5f58; --brand-ink: #ffffff; --brand-soft: #e3f4f1;
  --down: #c62828; --down-soft: #fdecec; --ok: #166534; --ok-soft: #e6f6ec; --warn-soft: #fff4d6; --warn: #7a5a00;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14; --surface: #121923; --surface-2: #19222e;
    --text: #e8eef5; --muted: #98a6b5; --line: #243142;
    --brand: #2dd4bf; --brand-hover: #5eead4; --brand-ink: #03211d; --brand-soft: #0f2a2b;
    --down: #ff7b7b; --down-soft: #2b1517; --ok: #6ee7a0; --ok-soft: #10281c; --warn-soft: #2d2410; --warn: #f0d27a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { padding: 18px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 20px; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--brand-ink); }
.nav .who { color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .nav .hide-sm, .nav .who { display: none; } }

/* buttons + inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px;
  padding: 11px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: transparent; color: var(--down); border-color: var(--down); }
.btn-danger:hover { background: var(--down-soft); }
.btn-sm { padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 17px; }
input[type=email], input[type=search], input[type=number] { font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
input[type=email]::placeholder, input[type=search]::placeholder { color: var(--muted); }

/* hero */
.hero { padding: 36px 0 64px; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 99px; margin-bottom: 18px; }
h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }
.signup input[type=email] { flex: 1 1 240px; min-width: 0; padding: 14px 16px; font-size: 17px; }
.fineprint { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 16px; } }

/* example email card */
.mail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mail-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mail-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.mail-tag { margin-left: auto; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mail-body { padding: 18px 20px 20px; font-size: 15px; }
.mail-from { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.mail-subject { font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.mail-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.mail-row b { display: block; }
.mail-row small { color: var(--muted); }
.pill-down { color: var(--down); background: var(--down-soft); font-weight: 700; padding: 2px 10px; border-radius: 99px; height: fit-content; white-space: nowrap; }
.mail-foot { color: var(--muted); font-size: 12.5px; margin-top: 12px; }

/* sections */
.section { padding: 56px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
h2 { font-size: 28px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 10px; }
.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.alt .step { background: var(--bg); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 750; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 99px; font-size: 14.5px; }
.stats { display: flex; gap: 36px; flex-wrap: wrap; margin-bottom: 22px; }
.stat b { display: block; font-size: 34px; letter-spacing: -.02em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

/* faq */
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.faq .section-lead { margin: 0 0 24px; }
.cta { text-align: center; padding: 64px 0 72px; }
.cta p { color: var(--muted); margin: 0 0 24px; }

/* cards / messages */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.center-card { max-width: 520px; margin: 48px auto; text-align: center; }
.center-card h1 { font-size: 28px; margin-bottom: 10px; }
.center-card p { color: var(--muted); }
.icon-badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--brand-soft); color: var(--brand); font-size: 26px; }
.icon-badge.bad { background: var(--down-soft); color: var(--down); }
.notice { background: var(--ok-soft); color: var(--ok); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-weight: 550; }
.warnbox { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }

/* watchlist */
.page-head { padding: 12px 0 8px; }
.page-head h1 { font-size: 32px; margin-bottom: 6px; }
.page-head p { color: var(--muted); margin: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 22px 0 8px; }
.toolbar input[type=search] { flex: 1 1 240px; min-width: 0; }
.group { margin-top: 26px; }
.group h2 { font-size: 17px; letter-spacing: 0; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.group .n { font-size: 13px; color: var(--muted); font-weight: 500; background: var(--surface-2); padding: 1px 9px; border-radius: 99px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 10px; }
.item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; transition: border-color .15s, background .15s; }
.item.is-on { border-color: var(--brand); background: var(--brand-soft); }
.item[hidden] { display: none; }
.item-main { display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; flex: 1 1 180px; }
.item-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.item-name { font-weight: 600; overflow-wrap: anywhere; }
.item-sym { color: var(--muted); font-size: 12.5px; }
input.switch { appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 24px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
input.switch:checked { background: var(--brand); }
input.switch:checked::after { transform: translateX(16px); }
.thr { display: flex; align-items: center; gap: 4px; margin-left: auto; color: var(--muted); font-size: 13px; flex: none; opacity: .45; }
.is-on .thr { opacity: 1; }
.thr input[type=number] { width: 58px; padding: 6px 4px; text-align: center; border-radius: 8px; -moz-appearance: textfield; }
.thr input::-webkit-outer-spin-button, .thr input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: 16px; line-height: 1; }
.stepper:hover { background: var(--surface-2); }
.thr-label { margin-right: 2px; }
.savebar { position: sticky; bottom: 0; z-index: 5; margin-top: 28px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.savebar .container { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.count { color: var(--muted); font-size: 15px; margin-right: auto; }
.count.over { color: var(--down); font-weight: 650; }
.account { margin: 44px 0 56px; }
.account h2 { font-size: 20px; }
.account p { color: var(--muted); }

/* prose (privacy) */
.prose h1 { font-size: 36px; }
.prose h2 { font-size: 21px; margin-top: 34px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 22px; }
.prose strong { color: var(--text); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 13.5px; margin-top: 24px; }
.site-footer .container { display: flex; flex-direction: column; gap: 10px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
