:root {
  --bg: #ffffff;
  --bg-alt: #eefbfa;
  --dark-950: #052e2b;
  --dark-900: #0a3d3a;
  --dark-800: #0f4c47;
  --text: #142828;
  --muted: #4f6d69;
  --line: #dcebe9;
  --accent: #4dd8d0;
  --accent-strong: #0a7a82;
  --accent-strong-hover: #085f66;
  --good: #16794f;
  --good-bg: #e8f7f0;
  --warn: #92400e;
  --warn-bg: #fef3e2;
  --danger: #b91c1c;
  --danger-bg: #fdecec;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(6, 36, 33, 0.05), 0 8px 24px rgba(6, 36, 33, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--tight {
  padding: 48px 0;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 16px; }

.text-muted { color: var(--muted); }
.text-center { text-align: center; }

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--accent-strong);
  color: #ffffff;
}
.btn--primary:hover { background: var(--accent-strong-hover); }

.btn--on-dark {
  background: var(--accent);
  color: var(--dark-950);
}
.btn--on-dark:hover { background: #7ce5df; }

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--accent-strong); color: var(--accent-strong); }

.btn--outline-on-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.btn--outline-on-dark:hover { border-color: var(--accent); color: var(--accent); }

.btn--block { width: 100%; }
.btn--sm { padding: 8px 16px; font-size: 0.85rem; }

/* ── Site header / nav ──────────────────────────────────────────────── */

.site-header {
  background: var(--dark-900);
  color: #ffffff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #ffffff;
  line-height: 1.1;
}

.nav__brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav__brand-tag {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #ffffff;
  padding: 8px 10px;
  cursor: pointer;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav__links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
}

.nav__links a:hover { color: var(--accent); }

.nav__cta {
  background: var(--accent);
  color: var(--dark-950) !important;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
}

/* ── Site footer ─────────────────────────────────────────────────────── */

.site-footer {
  background: var(--dark-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 28px;
  margin-top: auto;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  max-width: 320px;
}

.footer__links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__col a {
  display: block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 0;
  font-size: 0.92rem;
}

.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Layout shell ────────────────────────────────────────────────────── */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  background:
    radial-gradient(circle at 15% 0%, #15564f 0%, transparent 45%),
    linear-gradient(180deg, var(--dark-900) 0%, var(--dark-950) 100%);
  color: #ffffff;
  padding: 88px 0 96px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { color: #ffffff; }

.hero .lede { color: rgba(255, 255, 255, 0.75); max-width: 52ch; }

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero__panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px;
}

.hero__stat {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}
.hero__stat:last-child { border-bottom: none; }
.hero__stat strong { color: var(--accent); }
.hero__stat a { color: var(--accent); font-weight: 700; text-decoration: none; }
.hero__stat a:hover { text-decoration: underline; }

/* ── Feature banner ──────────────────────────────────────────────────────
   A light, bordered callout for a featured product on an otherwise plain
   page — deliberately NOT the dark hero treatment, so it reads as its own
   thing rather than a second hero stacked under the first. */

.feature-banner {
  background: linear-gradient(135deg, #eefbfa 0%, #d7f2ef 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.feature-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
}

.feature-panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-panel__stat {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.feature-panel__stat:last-child { border-bottom: none; }
.feature-panel__stat strong { color: var(--accent-strong); }

.inline-link {
  display: inline-block;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.inline-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .feature-banner { padding: 28px; border-radius: 18px; }
}

/* ── Cards / grids ───────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

/* ── Pricing ─────────────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Three-card grids (the simulator's plans). The base rule forces four
   columns, which leaves an empty cell on a page that has three. */
.pricing-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Secondary line under a price -- the annual alternative, or how a band is
   measured. Sits between the price and the description. */
.pricing-card__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
}

.pricing-card--featured {
  border-color: var(--accent-strong);
  box-shadow: 0 2px 4px rgba(14, 116, 144, 0.08), 0 12px 28px rgba(14, 116, 144, 0.14);
}

.pricing-card__ribbon {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.pricing-card__name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.pricing-card__price {
  font-size: 2rem;
  font-weight: 800;
  margin: 8px 0 4px;
}

.pricing-card__price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-card__desc {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.pricing-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.pricing-card li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--line);
}
.pricing-card li:last-child { border-bottom: none; }

.pricing-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
  font-weight: 700;
}

/* ── Forms ───────────────────────────────────────────────────────────── */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-field--full { grid-column: 1 / -1; }

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.form-label .req { color: var(--danger); }

.form-input,
.form-select,
.form-textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--text);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid var(--accent-strong);
  outline-offset: 1px;
  border-color: var(--accent-strong);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* Honeypot field: hidden from sighted users, still in the tab/DOM flow for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Flash messages ──────────────────────────────────────────────────── */

.flash {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  font-weight: 500;
}

.flash--success { background: var(--good-bg); color: var(--good); }
.flash--error { background: var(--danger-bg); color: var(--danger); }
.flash--info { background: var(--bg-alt); color: var(--text); }

/* ── Articles ────────────────────────────────────────────────────────── */

.article-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
}

.article-card__meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-card h3 { margin-bottom: 8px; }

.article-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
}
.article-card__link:hover { text-decoration: underline; }

.article-card--recommended {
  border-left: 4px solid var(--accent-strong);
}

/* ── Admin ───────────────────────────────────────────────────────────── */

.admin-shell { min-height: 100vh; }

.admin-topbar {
  background: var(--dark-900);
  color: #fff;
  padding: 16px 0;
}

.admin-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.admin-topbar__links { display: flex; gap: 20px; font-size: 0.9rem; font-weight: 600; }
.admin-topbar__links a { text-decoration: none; color: rgba(255, 255, 255, 0.82); }
.admin-topbar__links a:hover { color: var(--accent); }

.admin-body { padding: 36px 0 64px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.stat-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-tile__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-tile__value { font-size: 1.8rem; font-weight: 800; }

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th, .data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table th {
  background: var(--bg-alt);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.data-table tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

.badge--new { background: var(--warn-bg); color: var(--warn); }
.badge--reviewed { background: var(--good-bg); color: var(--good); }
.badge--archived { background: var(--bg-alt); color: var(--muted); }
.badge--success { background: var(--good-bg); color: var(--good); }
.badge--partial { background: var(--warn-bg); color: var(--warn); }
.badge--failed { background: var(--danger-bg); color: var(--danger); }
.badge--running { background: var(--bg-alt); color: var(--muted); }

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
}

.admin-login-wrap {
  max-width: 380px;
  margin: 80px auto;
  padding: 0 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.detail-grid dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

.detail-grid dd {
  margin: 2px 0 0;
  font-size: 0.96rem;
}

.pagination {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* ── 404/500 ─────────────────────────────────────────────────────────── */

.error-page {
  text-align: center;
  padding: 120px 0;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }

  .nav__toggle { display: inline-flex; align-items: center; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 20px;
    gap: 6px;
    display: none;
  }

  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 10px 0; }
  .nav__cta { display: inline-block; margin-top: 6px; }

  .nav { position: relative; }

  .footer__top { flex-direction: column; }
}
