/* Palette: navy ink for trust and data (the category standard: Prisync, NetRivals, Visualping),
   amber as the "signal" accent nobody in the category owns, red/green only for price moves. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --text: #0b1630;
  --muted: #55607a;
  --border: #dfe4ee;
  --ink: #0b1b3a;
  --ink-text: #eef2fa;
  --ink-muted: #aab5cd;
  --ink-border: #24365c;
  --accent: #ffb020;
  --accent-hover: #ffc04d;
  --accent-text: #0b1b3a;
  --accent-soft: #fff4dc;
  --link: #2541b2;
  --up: #c0362c;
  --down: #0f8a4f;
  --radius: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1226;
    --bg-soft: #111b33;
    --text: #e9eef8;
    --muted: #9aa6c0;
    --border: #22304f;
    --ink: #060d1d;
    --ink-border: #1c2a48;
    --accent: #ffb84d;
    --accent-hover: #ffc976;
    --accent-text: #0a1226;
    --accent-soft: #33280f;
    --link: #ffc56b;
    --up: #ff7a6e;
    --down: #4fd18b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--link); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.logo span { color: var(--accent); }
.top nav { display: flex; gap: 16px; align-items: center; }
.top nav a:not(.btn) { color: inherit; text-decoration: none; font-weight: 500; }
.top nav a:not(.btn):hover { text-decoration: underline; }

/* Navy hero band */
.hero-band { background: var(--ink); color: var(--ink-text); }
.hero-band .logo { color: var(--ink-text); }
.hero-band a:not(.btn) { color: var(--ink-text); }
.hero-band .lead, .hero-band .note { color: var(--ink-muted); }
.hero-band .note a { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-text);
  padding: 14px 22px; border-radius: 10px;
  font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.secondary:hover { border-color: var(--text); }
.hero-band .btn.secondary { color: var(--ink-text); border-color: var(--ink-border); }
.btn.small { padding: 9px 16px; font-size: .95rem; }

/* Hero */
.hero { padding: 40px 0 64px; display: grid; gap: 48px; grid-template-columns: 1.15fr 1fr; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; }
.lead { font-size: 1.15rem; margin: 0 0 24px; color: var(--muted); }
.note { color: var(--muted); font-size: .9rem; margin-top: 12px; }

/* Checker form */
.checker { display: flex; gap: 10px; flex-wrap: wrap; max-width: 640px; }
.checker input[type=text] {
  flex: 1 1 300px; min-width: 0; padding: 14px; font: inherit; color: #0b1630;
  background: #ffffff; border: 1px solid var(--border); border-radius: 10px;
}
.checker input[type=text]:focus { outline: 3px solid var(--accent); outline-offset: 1px; }

/* Example alert card */
.alert-card {
  background: var(--bg); color: var(--text); border-radius: var(--radius);
  padding: 20px; font-size: .95rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.alert-card .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.alert-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.alert-row:first-of-type { border-top: 0; }
.alert-row .who { color: var(--muted); font-size: .85rem; }
.up { color: var(--up); font-weight: 700; white-space: nowrap; }
.down { color: var(--down); font-weight: 700; white-space: nowrap; }
.example-tag { margin-top: 12px; font-size: .8rem; color: var(--muted); }

/* Results */
.result { max-width: 760px; margin-top: 28px; }
.result .card { margin-bottom: 16px; }
.result h3 { margin: 0 0 4px; font-size: 1.05rem; }
.meta-line { color: var(--muted); font-size: .85rem; word-break: break-all; }
.card.result-card { background: var(--bg); padding: 0; overflow: hidden; box-shadow: 0 1px 2px rgba(11, 27, 58, .06), 0 8px 24px rgba(11, 27, 58, .06); }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: var(--bg-soft); border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.result-site { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-site a { color: var(--text); font-weight: 700; text-decoration: none; }
.result-site a:hover { text-decoration: underline; }
.badge-src { flex: none; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--text); }
.result-title { padding: 14px 20px 0; font-size: .9rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-card > p, .result-card > h3, .none-actions { padding: 0 20px; }
.none-title { padding-top: 16px !important; font-size: 1.2rem !important; }
.result-card > p { margin: 8px 0 0; color: var(--muted); }
.none-actions { margin: 16px 0 20px; }
.result-card > p:last-child { padding-bottom: 20px; }
.result-foot { font-size: .8rem; margin: 0 !important; padding: 12px 20px 16px !important; border-top: 1px solid var(--border); }
.price-list { list-style: none; padding: 4px 20px 8px; margin: 0; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 0; border-top: 1px solid var(--border); }
.price-list li:first-child, .price-group + .price-row { border-top: 0; }
.price-what { min-width: 0; }
.price-label { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.price-sub { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.price-sub.only { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; }
.price-amount { flex: none; display: flex; align-items: baseline; gap: 4px; }
.price-amount .amount { font-weight: 800; font-size: 1.5rem; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-amount .period { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.price-group { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 18px 0 2px; border-top: 1px solid var(--border); }
.price-list .price-group:first-child { padding-top: 12px; border-top: 0; }
.stock { font-size: .8rem; color: var(--muted); }
.status { color: var(--muted); margin-top: 16px; }
.status.error { color: var(--up); }
.watch { border: 2px solid var(--accent); }
.watch form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.watch input[type=email] { max-width: 420px; }
.checker-results { padding-top: 8px; }

/* Sections */
section.block { padding: 64px 0; border-top: 1px solid var(--border); }
section.block h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 12px; letter-spacing: -.01em; }
section.block p.sub { color: var(--muted); margin: 0 0 36px; max-width: 640px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.step-num { display: inline-block; width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 50%; background: var(--ink); color: var(--accent); font-weight: 800; margin-bottom: 12px; }

/* Pricing */
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.plan .badge { align-self: flex-start; background: var(--accent-soft); color: var(--text); font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }
.plan .price { font-size: 2.2rem; font-weight: 800; margin: 8px 0 4px; }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan ul { padding-left: 20px; margin: 16px 0 24px; color: var(--muted); flex: 1; }
.plan li { margin-bottom: 6px; }
.plan .btn { text-align: center; }

.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare th { color: var(--muted); font-weight: 600; }
.compare td:last-child, .compare th:last-child { background: var(--accent-soft); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* Forms */
form.signup { max-width: 560px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.field { margin-bottom: 18px; }
.field label.title, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
input[type=email], select {
  width: 100%; padding: 12px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
}
.choices label { display: block; margin: 4px 0; }
.consent { font-size: .9rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.consent input { margin-top: 5px; }
.plan-chosen { display: none; background: var(--accent-soft); color: var(--text); padding: 8px 12px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; font-size: .95rem; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

details { border-bottom: 1px solid var(--border); padding: 16px 0; max-width: 760px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
footer a { color: var(--muted); margin-right: 16px; }

.legal { padding: 40px 0 80px; max-width: 760px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 32px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .top nav .hide-sm { display: none; }
  .checker .btn { width: 100%; }
  .result-head { flex-wrap: wrap; }
  .price-amount .amount { font-size: 1.25rem; }
}
