/* CommentWatchdog marketing site — same tokens as the product. */
:root {
  --canvas: #f8fafc;
  --surface: #ffffff;
  --line: #e2e8f0;
  --line-soft: #eef2f6;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --ink-4: #94a3b8;
  --accent: #0e7a57;
  --accent-ink: #0a5c41;
  --accent-soft: #e8f4ee;
  --accent-line: #bfe0d2;
  --danger-soft: #fef2f2;
  --danger-ink: #b91c1c;
  --warn-soft: #fef7e8;
  --warn: #b45309;
  --info-soft: #eff4ff;
  --info: #2563eb;
  --shadow-lift: 0 1px 3px rgb(15 23 42 / 0.07), 0 1px 2px rgb(15 23 42 / 0.04);
  --shadow-pop: 0 8px 24px rgb(15 23 42 / 0.1), 0 1px 2px rgb(15 23 42 / 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.011em;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ── header ── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(248 250 252 / 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; align-items: center; }
.nav-links a:not(.btn) { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: 0;
  transition: background-color 0.15s, border-color 0.15s, transform 0.06s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-4); color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ── hero ── */
.hero { padding: 88px 0 48px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08; letter-spacing: -0.035em; font-weight: 800;
  max-width: 760px; margin: 0 auto;
}
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero .sub {
  margin: 22px auto 0; max-width: 620px;
  font-size: 18px; color: var(--ink-3); line-height: 1.65;
}
.hero .cta-row { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .cta-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-4); }

/* ── product mock ── */
.mock {
  margin: 64px auto 0; max-width: 880px; text-align: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-pop); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-title { margin-inline-start: 8px; font-size: 12.5px; color: var(--ink-4); font-weight: 500; }
.mock-row { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.mock-row:last-child { border-bottom: 0; }
.mock-ava {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.mock-body { min-width: 0; flex: 1; }
.mock-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mock-time { font-size: 12px; color: var(--ink-4); font-weight: 400; }
.mock-text { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.chip { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.chip-danger { background: var(--danger-soft); color: var(--danger-ink); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-ok { background: var(--accent-soft); color: var(--accent-ink); }
.chip-info { background: var(--info-soft); color: var(--info); }

/* ── sections ── */
section { padding: 72px 0; }
.section-kicker { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.section-title { text-align: center; font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; }
.section-sub { text-align: center; color: var(--ink-3); max-width: 560px; margin: 14px auto 0; font-size: 16.5px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow-lift); }
.step-n {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 15px;
}
.step h3 { margin-top: 16px; font-size: 17px; letter-spacing: -0.015em; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--ink-3); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-lift); }
.feature svg { color: var(--accent-ink); }
.feature h3 { margin-top: 14px; font-size: 16px; letter-spacing: -0.01em; }
.feature p { margin-top: 6px; font-size: 14px; color: var(--ink-3); line-height: 1.55; }

/* pricing */
.toggle { display: flex; justify-content: center; margin-top: 36px; }
.toggle-inner { display: inline-flex; background: var(--line-soft); border-radius: 11px; padding: 4px; }
.toggle-inner button {
  border: 0; background: transparent; padding: 8px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; font-family: inherit;
}
.toggle-inner button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lift); }
.toggle-save { color: var(--accent-ink); font-weight: 700; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; box-shadow: var(--shadow-lift); display: flex; flex-direction: column; }
.plan.popular { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-lift); position: relative; }
.plan .pop-tag { position: absolute; top: -11px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 15px; font-weight: 700; }
.plan .price { margin-top: 12px; font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.plan .price small { font-size: 14px; color: var(--ink-4); font-weight: 500; letter-spacing: 0; }
.plan .quota { margin-top: 4px; font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.plan ul { list-style: none; margin: 18px 0 22px; display: grid; gap: 9px; }
.plan li { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { flex: none; margin-top: 3px; color: var(--accent-ink); }
.plan .btn { margin-top: auto; width: 100%; }

/* band */
.band { background: var(--surface); border-block: 1px solid var(--line-soft); }
.band .wrap { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.band p { font-size: 14px; color: var(--ink-3); font-weight: 500; }

/* CTA panel */
.cta-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 56px 32px; text-align: center; box-shadow: var(--shadow-lift);
}

/* footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 40px 0 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.foot-brand img { width: 24px; height: 24px; }
.foot-tag { font-size: 13px; color: var(--ink-4); margin-inline-start: 8px; font-weight: 400; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.foot-links a:hover { color: var(--ink); }
.foot-legal { width: 100%; font-size: 12.5px; color: var(--ink-4); }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-size: 34px; letter-spacing: -0.03em; }
.legal .updated { color: var(--ink-4); font-size: 14px; margin-top: 8px; }
.legal h2 { font-size: 20px; letter-spacing: -0.015em; margin: 40px 0 10px; }
.legal p, .legal li { font-size: 15px; color: var(--ink-2); }
.legal ul { padding-inline-start: 22px; margin-top: 8px; display: grid; gap: 6px; }
.legal a { color: var(--accent-ink); font-weight: 500; }
.legal a:hover { text-decoration: underline; }
.legal .callout { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; padding: 18px 20px; margin-top: 14px; }

@media (max-width: 900px) {
  .steps, .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 56px; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .nav-links a.hide-sm { display: none; }
}
