/* ---------------------------------------------------------------------------
   Static stylesheet. Colors, fonts, and radius come from CSS custom properties
   injected per page from src/config/site.config.ts (themeTokensCss). Edit those
   tokens to re-skin; edit this file for structural styling.
   --------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-family: var(--font-body);
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover {
  background: var(--brand-dark);
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--border);
  cursor: not-allowed;
}
.btn:disabled:hover {
  background: var(--surface);
  transform: none;
}
.btn-sm {
  padding: 9px 16px;
  font-size: 0.92rem;
}
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--brand-dark);
}

/* --- Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  line-height: 0;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.96rem;
}
.site-nav a:hover {
  color: var(--brand);
  text-decoration: none;
}
.site-nav a.btn {
  color: #fff;
}

.nav-toggle,
.nav-burger {
  display: none;
}
.nav-burger {
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(900px 360px at 75% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 800;
  max-width: 16ch;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 60ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* --- Sections -------------------------------------------------------------- */

.section {
  padding: 64px 0;
}
.section-surface {
  background: var(--surface);
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  max-width: 22ch;
}
.section-intro {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
  margin-bottom: 36px;
}

/* --- Grids & cards --------------------------------------------------------- */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar h3 {
  font-size: 1.25rem;
}
.pillar p {
  color: var(--muted);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.section-surface .card {
  background: #fff;
}
.card h3 {
  font-size: 1.12rem;
}
.card p {
  color: var(--muted);
  margin: 0;
}
.card-link {
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.card-link:hover {
  text-decoration: none;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.4);
}
.card-arrow {
  margin-top: 14px;
  color: var(--brand);
  font-weight: 600;
}

/* --- Check list ------------------------------------------------------------ */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 5px;
  height: 9px;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* --- CTA band -------------------------------------------------------------- */

.cta-band {
  text-align: center;
  padding: 24px 0;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.cta-band p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* --- Pricing --------------------------------------------------------------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 880px;
  margin: 0 auto;
}
.tier {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tier-selfserve {
  border-color: var(--brand);
  box-shadow: 0 18px 50px -28px color-mix(in srgb, var(--brand) 70%, transparent);
}
.tier-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #1f2937;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
}
.tier h3 {
  font-size: 1.4rem;
  margin: 0;
}
.tier-tagline {
  color: var(--muted);
  margin: 0;
}
.tier-price {
  display: flex;
  flex-direction: column;
}
.tier-amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}
.tier-note {
  color: var(--muted);
  font-size: 0.92rem;
}
.tier .btn {
  width: 100%;
}
.pricing-foot {
  text-align: center;
  color: var(--muted);
  margin-top: 32px;
}

/* --- Comparison table ------------------------------------------------------ */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare-table th,
.compare-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table thead th {
  background: var(--surface);
  font-family: var(--font-heading);
  font-size: 1rem;
}
.compare-table thead th:nth-child(2) {
  color: var(--brand);
}
.compare-table tbody th {
  font-weight: 600;
  width: 26%;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.cell-yes {
  background: color-mix(in srgb, var(--brand) 6%, transparent);
}
.prose {
  max-width: 70ch;
  color: var(--text);
}

/* --- Footer ---------------------------------------------------------------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 0 28px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand {
  display: flex;
  gap: 14px;
  max-width: 360px;
}
.footer-product {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-tagline {
  color: var(--footer-muted);
  margin: 4px 0 0;
  font-size: 0.95rem;
}
.footer-links {
  display: flex;
  gap: 56px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  color: var(--footer-text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
}
.footer-col a {
  color: var(--footer-muted);
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--footer-text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  color: var(--footer-muted);
  font-size: 0.9rem;
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom a {
  color: var(--footer-text);
}

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 860px) {
  .pillar-grid,
  .feature-grid,
  .audience-grid,
  .tier-grid {
    grid-template-columns: 1fr;
  }
  .nav-burger {
    display: flex;
  }
  .site-nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }
  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .site-nav a.btn {
    margin-top: 12px;
    border-bottom: none;
  }
  .footer-links {
    gap: 36px;
  }
}
