/* RivalWatch public site — aligned with SEO Pro v2 (static/style.css) */
:root {
  --bg: #0b1220;
  --bg-elev: #0e192a;
  --bg-card: #111e32;
  --bg-input: #142338;
  --line: #2c3b52;
  --line-strong: #364660;
  --ink: #f2f6ff;
  --muted: #a3b4c9;
  --label: #8ea3c3;
  --accent: #ff8a2a;
  --accent-hot: #f17e29;
  --accent-soft: #ff9c55;
  --accent-text: #111a25;
  --good: #8be3b1;
  --bad: #ff8e88;
  --notice-bg: #15263d;
  --notice-line: #43506a;
  --max: 72rem;
  --narrow: 46rem;
  --radius: 13px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-soft); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; background: var(--accent-hot); color: var(--accent-text);
  padding: 0.5rem 0.8rem; border-radius: 8px; z-index: 30; font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.wrap-narrow { width: min(var(--narrow), calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  background: var(--bg-elev);
  border-bottom: 1px solid #26354d;
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.85rem; padding: 0.85rem 0;
}
.brand { display: flex; align-items: baseline; gap: 0.45rem; text-decoration: none; color: inherit; min-width: 0; }
.brand-mark {
  color: var(--accent); font-size: 1.65rem; font-weight: 800; line-height: 1;
  letter-spacing: 0; flex-shrink: 0;
}
.brand-name {
  font-weight: 800; letter-spacing: 0.08em; font-size: 1rem; text-transform: uppercase;
  white-space: nowrap;
}
.nav { display: flex; gap: 0.15rem 1rem; flex-wrap: wrap; align-items: center; }
.nav a {
  text-decoration: none; color: #b1c0d3; font-size: 0.92rem; font-weight: 650;
  padding: 0.4rem 0.15rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav-toggle {
  display: none; background: var(--bg-input); border: 1px solid var(--line-strong);
  color: var(--ink); border-radius: 8px; padding: 0.45rem 0.7rem; font: inherit; font-weight: 650;
}
.gtm-noscript iframe { display: none; visibility: hidden; }

.hero { padding: 3.4rem 0 2.6rem; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem;
  font-weight: 700; color: var(--label); margin: 0 0 0.7rem;
}
h1, h2, h3, h4 {
  font-family: var(--font);
  letter-spacing: -0.03em; line-height: 1.2; margin: 0 0 0.7rem; color: var(--ink);
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(1.85rem, 5vw, 3rem); max-width: 18ch; font-weight: 800; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 750; }
h3 { font-size: 1.15rem; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 42rem; margin: 0 0 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.05rem; border-radius: 8px; font-weight: 750;
  text-decoration: none; border: 1px solid transparent; font-size: 0.95rem;
  cursor: pointer; font-family: inherit; color: inherit; background: var(--bg-input);
  border-color: var(--line-strong);
}
.btn-primary, button.primary, .btn.btn-primary {
  background: var(--accent-hot); border-color: var(--accent-hot); color: var(--accent-text);
}
.btn-primary:hover, button.primary:hover { color: var(--accent-text); filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent-hot); color: #fff; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.55; pointer-events: none; cursor: not-allowed;
}

.band { padding: 2.4rem 0; }
.band-alt { background: var(--bg-elev); border-top: 1px solid #26354d; border-bottom: 1px solid #26354d; }
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.3rem; box-shadow: var(--shadow); min-width: 0;
}
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.meta { color: var(--muted); font-size: 0.88rem; }
.tag {
  display: inline-block; border: 1px solid #46546a; color: #f0aa73;
  border-radius: 6px; padding: 0.15rem 0.55rem; font-size: 0.72rem; font-weight: 700;
}
.tag-test { border-color: var(--accent); color: var(--accent-soft); }

.prose { padding: 2.2rem 0 3rem; }
.prose .wrap-narrow p, .prose .wrap-narrow li { font-size: 1.02rem; color: #d3dded; }
.prose .wrap-narrow h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.notice {
  background: var(--notice-bg); border: 1px solid var(--notice-line); border-radius: 10px;
  padding: 0.95rem 1rem; margin: 1rem 0 1.4rem; color: #b8cae1; font-size: 0.95rem;
}
.notice strong { color: var(--accent-soft); }
.callout {
  background: var(--notice-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1rem; margin: 1.2rem 0;
}

.form { display: grid; gap: 0.85rem; }
label { font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); display: grid; gap: 0.35rem; }
input, select, textarea {
  font: inherit; padding: 0.7rem 0.8rem; border: 1px solid var(--line-strong);
  border-radius: 8px; background: var(--bg-input); color: var(--ink); width: 100%; max-width: 100%;
}
textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { min-height: 1.4em; font-weight: 650; }
.form-status.ok { color: var(--good); }
.form-status.err { color: var(--bad); }

.faq details {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.75rem 1rem; margin: 0.55rem 0;
}
.faq summary { cursor: pointer; font-weight: 700; }
.site-footer {
  margin-top: auto; border-top: 1px solid #26354d;
  background: var(--bg-elev); padding: 1.6rem 0 2rem; color: #7d93ad; font-size: 0.88rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; }
.footer-nav a { color: #b1c0d3; text-decoration: none; font-weight: 650; }
.footer-nav a:hover { color: var(--accent-soft); }

.tool-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 0.55rem 0.4rem; vertical-align: top; overflow-wrap: anywhere; }
th { color: #aabbd3; font-weight: 650; }
td { color: #d3dded; }
.muted { color: var(--muted); }

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 0.35rem 0 0.6rem; gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.55rem 0; width: 100%; }
  .header-inner { flex-wrap: wrap; }
  h1 { max-width: none; }
}
@media (max-width: 500px) {
  .wrap, .wrap-narrow { width: min(var(--max), calc(100% - 1.25rem)); }
  .hero { padding: 2.2rem 0 1.6rem; }
  .card { padding: 1.1rem 1rem; }
  .brand-name { font-size: 0.92rem; letter-spacing: 0.06em; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-actions, .tool-bar { display: none !important; }
  body { background: #fff; color: #111; }
  .card, .prose { box-shadow: none; }
  a { color: inherit; }
}

#watch-table, #log-table, #snap-list, #meta-out { overflow-x: auto; max-width: 100%; }
#watch-table table, #log-table table, #meta-out table { min-width: 0; }

.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #0e192a; border-top: 1px solid #2c3b52;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.35);
  padding: 1rem;
}
.cookie-inner {
  width: min(72rem, calc(100% - 0.5rem));
  margin: 0 auto;
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-inner p { margin: 0; color: #d3dded; font-size: 0.95rem; max-width: 48rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 500px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { width: 100%; }
}
