:root {
  --ink: #0c0a09;
  --muted: #57534e;
  --soft: #78716c;
  --line: #d6d3d1;
  --line-soft: #e7e5e4;
  --paper: #ffffff;
  --canvas: #f5f5f4;
  --emerald: #047857;
  --emerald-dark: #065f46;
  --emerald-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --rose: #be123c;
  --radius: 8px;
  --shadow: 0 20px 55px rgba(28, 25, 23, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; letter-spacing: 0; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(4, 120, 87, 0.35); outline-offset: 3px; }
.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--paper);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 30;
  min-height: 72px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.97);
}
.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand strong { display: block; font-size: 17px; line-height: 1.1; }
.brand span { display: block; color: var(--soft); font-size: 12px; line-height: 1.25; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta { color: var(--paper); }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--emerald-dark);
  color: var(--paper);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.button:hover { background: #064e3b; }
.button:active { transform: translateY(1px); }
.button--small { min-height: 40px; padding: 8px 13px; }
.button--light { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button--light:hover { background: var(--canvas); }

.hero {
  position: relative;
  height: min(700px, calc(100svh - 112px));
  min-height: 580px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #e7e5e4;
}
.hero__screen {
  position: absolute;
  inset: 0;
  background-image: url('/assets/screenshots/admin-audit-overview.png');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero__panel {
  position: absolute;
  inset: auto 0 0;
  padding-block: 30px 28px;
  border-top: 1px solid rgba(214, 211, 209, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.hero h1 { margin: 0; font-size: 56px; line-height: 1; font-weight: 780; }
.hero__lead { max-width: 850px; margin: 15px 0 0; color: var(--muted); font-size: 18px; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; padding: 15px 0 0; border-top: 1px solid var(--line-soft); list-style: none; color: var(--muted); font-size: 13px; }
.hero__proof li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--emerald); }

.proof-band { border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.proof-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-band__item { min-height: 126px; padding: 24px 24px 22px 0; border-right: 1px solid var(--line-soft); }
.proof-band__item + .proof-band__item { padding-left: 24px; }
.proof-band__item:last-child { border-right: 0; }
.proof-band strong { display: block; font-size: 23px; line-height: 1.15; }
.proof-band span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.band { padding-block: 88px; border-bottom: 1px solid var(--line-soft); }
.band--soft { background: var(--canvas); }
.band--dark { background: #1c1917; color: #fff; }
.section-head { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr); gap: 72px; align-items: end; margin-bottom: 46px; }
.section-head--single { grid-template-columns: 1fr; }
.section-head h2, .band h2 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 760; }
.section-head p { max-width: 650px; margin: 0; color: var(--muted); font-size: 17px; }
.band--dark .eyebrow { color: #6ee7b7; }
.band--dark p { color: #d6d3d1; }

.feature-list { border-top: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: 270px 1fr; gap: 54px; padding-block: 31px; border-bottom: 1px solid var(--line); }
.feature-row h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.feature-row p { max-width: 760px; margin: 0; color: var(--muted); }
.feature-row__label { color: var(--emerald); font-size: 12px; font-weight: 800; text-transform: uppercase; }

.showcase { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.showcase img { width: 100%; height: auto; background: var(--paper); }
.showcase figcaption { padding: 12px 16px; border-top: 1px solid var(--line-soft); color: var(--soft); font-size: 13px; }
.showcase--compact { align-self: center; box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28); }

.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rule { min-height: 178px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.rule strong { display: block; font-size: 17px; }
.rule p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.rule small { display: inline-block; margin-bottom: 14px; color: var(--emerald); font-weight: 800; }

.split-proof { display: grid; grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr); gap: 58px; align-items: center; }
.split-proof > div > p:not(.eyebrow) { max-width: 580px; margin: 18px 0 0; }
.clean-list { margin: 22px 0 0; padding: 0; list-style: none; }
.clean-list li { position: relative; padding: 8px 0 8px 23px; border-top: 1px solid var(--line-soft); color: var(--muted); }
.clean-list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.clean-list--dark li { border-color: #44403c; color: #e7e5e4; }
.clean-list--dark li::before { background: #6ee7b7; }

.price-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr); gap: 72px; align-items: center; }
.price-layout > div > p:not(.eyebrow) { max-width: 520px; color: var(--muted); font-size: 17px; }
.price-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.price-card--main { border: 2px solid var(--emerald-dark); }
.price-badge { display: inline-flex; margin-bottom: 15px; padding: 4px 9px; border-radius: 6px; background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 750; }
.price-card h3 { margin: 0; font-size: 20px; }
.price { margin-top: 18px; font-size: 40px; font-weight: 780; line-height: 1; }
.price span { color: var(--muted); font-size: 14px; font-weight: 600; }
.price-card p { color: var(--muted); }
.price-card .button { width: 100%; margin-top: 24px; }

.permission-table { border-top: 1px solid var(--line); }
.permission-table > div { display: grid; grid-template-columns: 190px 1fr; gap: 30px; padding-block: 23px; border-bottom: 1px solid var(--line); }
.permission-table strong { font-size: 15px; }
.permission-table span { color: var(--muted); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 23px 44px 23px 0; font-size: 17px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; color: var(--emerald); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 780px; margin: -5px 0 23px; color: var(--muted); }

.cross-promo { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cross-promo h2 { font-size: 33px; }
.cross-promo p { max-width: 760px; margin: 13px 0 0; }
.cross-promo .button--light { border-color: #fff; }

.site-footer { padding-block: 34px; background: var(--paper); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; color: var(--soft); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover { color: var(--ink); }

/* Documentation and legal pages */
.page-intro { padding-block: 54px 44px; border-bottom: 1px solid var(--line-soft); background: var(--canvas); }
.page-intro h1 { max-width: 880px; margin: 0; font-size: 44px; line-height: 1.1; }
.page-intro p { max-width: 760px; margin: 15px 0 0; color: var(--muted); font-size: 17px; }
.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; padding-block: 56px 90px; }
.docs-nav { position: sticky; top: 28px; align-self: start; padding-right: 24px; border-right: 1px solid var(--line); }
.docs-nav strong { display: block; margin-bottom: 10px; font-size: 13px; text-transform: uppercase; }
.docs-nav a { display: block; padding: 7px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.docs-nav a:hover { color: var(--emerald); }
.docs-content section { padding: 0 0 54px; margin-bottom: 54px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.docs-content section:last-child { margin-bottom: 0; }
.docs-content h2 { margin: 0 0 16px; font-size: 29px; line-height: 1.2; }
.docs-content h3 { margin: 27px 0 8px; font-size: 18px; }
.docs-content p { max-width: 780px; margin: 0 0 14px; color: var(--muted); }
.docs-content ol, .docs-content ul { max-width: 780px; padding-left: 22px; color: var(--muted); }
.docs-content li { margin-block: 8px; }
.docs-content a { color: var(--emerald-dark); }
.step-label { display: inline-block; margin-bottom: 12px; color: var(--emerald); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.docs-figure { margin: 25px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
.docs-figure img { width: 100%; height: auto; object-fit: contain; object-position: top; background: var(--paper); }
.docs-figure--narrow img { width: auto; max-width: 100%; max-height: 720px; margin-inline: auto; }
.docs-figure figcaption { padding: 11px 14px; border-top: 1px solid var(--line-soft); color: var(--soft); font-size: 13px; }
.note { max-width: 780px; margin: 20px 0; padding: 15px 17px; border: 1px solid #a7f3d0; border-radius: var(--radius); background: var(--emerald-soft); color: #064e3b; }
.note--warning { border-color: #fcd34d; background: var(--amber-soft); color: #78350f; }
.status-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.status-table th, .status-table td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.status-table th { background: var(--canvas); }
.legal { padding-block: 52px 90px; }
.legal h1 { margin: 0; font-size: 39px; line-height: 1.15; }
.legal .updated { margin: 9px 0 32px; color: var(--soft); }
.legal h2 { margin: 34px 0 10px; font-size: 20px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--emerald-dark); }
.legal-box { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }

@media (max-width: 900px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .section-head, .split-proof, .price-layout { grid-template-columns: 1fr; gap: 28px; }
  .proof-band__grid { grid-template-columns: repeat(2, 1fr); }
  .proof-band__item:nth-child(2) { border-right: 0; }
  .proof-band__item:nth-child(3), .proof-band__item:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .rule-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; gap: 28px; }
  .docs-nav { position: static; padding: 0 0 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .docs-nav a { display: inline-block; margin-right: 18px; }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 28px, 1180px); }
  .site-header, .site-header__inner { min-height: 64px; }
  .site-header__inner { gap: 12px; }
  .brand img { width: 34px; height: 34px; }
  .brand > span > span { display: none; }
  .site-nav { gap: 8px; }
  .site-nav .nav-cta { min-height: 40px; padding: 8px 11px; }
  .hero { height: min(690px, calc(100svh - 96px)); min-height: 570px; }
  .hero__screen {
    background-image: url('/assets/screenshots/admin-panel-mobile-viewport.png');
    background-position: center top;
    background-size: 390px auto;
    background-color: #fafaf9;
  }
  .hero__panel { padding-block: 22px 20px; }
  .hero h1 { font-size: 39px; }
  .hero__lead { margin-top: 11px; font-size: 15px; line-height: 1.45; }
  .hero__actions { margin-top: 15px; }
  .hero__actions .button { flex: 1; min-width: 0; padding-inline: 12px; }
  .hero__proof { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 13px; padding-top: 11px; }
  .proof-band__grid { grid-template-columns: 1fr; }
  .proof-band__item, .proof-band__item + .proof-band__item { min-height: auto; padding: 19px 0; border-right: 0; border-top: 1px solid var(--line-soft); }
  .proof-band__item:first-child { border-top: 0; }
  .proof-band strong { font-size: 21px; }
  .band { padding-block: 62px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2, .band h2 { font-size: 31px; }
  .section-head p { font-size: 16px; }
  .feature-row { grid-template-columns: 1fr; gap: 10px; padding-block: 25px; }
  .rule-grid { grid-template-columns: 1fr; }
  .rule { min-height: auto; }
  .price-card { padding: 23px 19px; }
  .price { font-size: 35px; }
  .permission-table > div { grid-template-columns: 1fr; gap: 5px; }
  .cross-promo { grid-template-columns: 1fr; gap: 25px; }
  .cross-promo h2 { font-size: 29px; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
  .page-intro { padding-block: 40px 34px; }
  .page-intro h1 { font-size: 34px; }
  .page-intro p { font-size: 16px; }
  .docs-layout { padding-block: 36px 62px; }
  .docs-content section { padding-bottom: 40px; margin-bottom: 40px; }
  .docs-content h2 { font-size: 25px; }
  .docs-figure--narrow img { max-height: 560px; }
  .status-table { display: block; overflow-x: auto; }
  .legal h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
