:root {
  --bg: #f6f8fb;
  --bg-elev: #ffffff;
  --bg-soft: #eef2f7;
  --ink: #1a2433;
  --muted: #5b6b80;
  --line: rgba(26, 36, 51, 0.1);
  --accent: #047857;
  --accent-2: #0284c7;
  --danger: #dc2626;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(26, 36, 51, 0.08);
  --font: "Roboto", sans-serif;
  --sans: "Roboto", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(4, 120, 87, 0.12) 0%, transparent 50%),
              radial-gradient(900px 500px at 100% 0%, rgba(2, 132, 199, 0.1) 0%, transparent 45%),
              var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow-col { width: min(760px, calc(100% - 40px)); }
.skip-link {
  position: absolute; left: -999px;
}
.skip-link:focus { left: 16px; top: 16px; background: #fff; color: #111; padding: 8px 12px; }

.site-header, .admin-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(246, 248, 251, 0.86);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -0.03em; min-width: 0; }
.logo-text { white-space: nowrap; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff; font-size: 12px; font-weight: 800;
}
.logo-text span { color: var(--muted); font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.nav a { color: var(--ink); font-size: 0.95rem; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.site-header.is-open .nav-toggle-bar { background: transparent; }
.site-header.is-open .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #ffffff; font-weight: 700; border: 0; border-radius: 999px;
  padding: 12px 20px; cursor: pointer; box-shadow: var(--shadow);
}
.btn:hover { color: #ffffff; filter: brightness(1.06); }
.btn:focus, .btn:active, a.btn:visited { color: #ffffff; font-weight: 700; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover, .btn-ghost:focus, .btn-ghost:active, a.btn-ghost:visited { color: var(--ink); filter: none; }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.link-button { background: none; border: 0; color: var(--accent-2); cursor: pointer; padding: 0; font: inherit; }

.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
h1, h2, h3 { font-family: var(--font); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.lead { font-size: 1.15rem; color: #3d4d63; max-width: 46ch; }
.lead.narrow, .narrow { max-width: 88ch; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--accent); margin-bottom: 10px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-card, .card, .price-card, .form-card, .login-card {
  background: linear-gradient(180deg, #ffffff, var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.muted { color: var(--muted); }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.risk-grid, .pricing-grid, .post-grid, .stats-grid {
  display: grid; gap: 18px; margin-top: 28px;
}
.risk-grid { grid-template-columns: repeat(3, 1fr); }
.pricing-grid, .post-grid { grid-template-columns: repeat(3, 1fr); }
.stats-grid { grid-template-columns: repeat(3, 1fr); }
.price { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin: 8px 0 12px; }
.price-kicker { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; }
.price-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
}
.price-card .btn { margin-top: auto; }
.price-card.featured { outline: 1px solid rgba(4, 120, 87, 0.5);  }
.price-card ul, .plain-list { padding-left: 18px; color: var(--muted); }
.cta-band {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 28px; padding: 32px;
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.prose-page { padding: 56px 0 80px; }
.prose p { margin: 0 0 1rem; color: #3d4d63; }
.cta-inline { margin-top: 32px; }
.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field input, .field textarea, .field select {
  width: 100%; background: #ffffff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; font: inherit;
}
.checkbox { display: flex; align-items: center; gap: 8px; }
.form-errors { background: rgba(220, 38, 38, 0.08); border: 1px solid rgba(220,38,38,0.25); padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.flash { padding: 12px 0; }
.flash-notice { background: rgba(4, 120, 87, 0.12); }
.flash-alert { background: rgba(220,38,38,0.08); }
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer-copy { margin-top: 28px; font-size: 0.85rem; }

.admin { min-height: 100vh; }
.admin-main { padding: 32px 0 64px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; }
.admin-split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 28px; margin-top: 28px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.actions { display: flex; gap: 12px; }
.stat { font-size: 2rem; font-weight: 800; margin: 0; }
.admin-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); }
.meta-list { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; }

@media (max-width: 900px) {
  .container, .narrow-col { width: min(1120px, calc(100% - 28px)); }
  .hero { padding: 40px 0 24px; }
  .section { padding: 48px 0; }
  .hero-grid, .risk-grid, .pricing-grid, .post-grid, .form-layout, .footer-grid, .admin-split, .stats-grid {
    grid-template-columns: 1fr;
  }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .price-card.featured { transform: none; }
  .section-head, .admin-toolbar, .hero-actions { flex-direction: column; align-items: flex-start; }
  .meta-list { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 14px 16px;
    background: rgba(246, 248, 251, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-header.is-open .nav { display: flex; }
  .nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav a.btn {
    margin-top: 12px;
    border-bottom: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container, .narrow-col { width: min(1120px, calc(100% - 20px)); }
  .hero-card, .card, .price-card, .form-card, .login-card { padding: 18px; }
  .prose-page { padding: 32px 0 56px; }
}
