/* PlateClarity public site — dark, restrained, type-led. Unified with the dashboard. */

:root {
  color-scheme: dark;
  --bg: #0a0c0e;
  --surface: #11161a;
  --surface-2: #161d22;
  --surface-3: #1d262c;
  --ink: #eef4f7;
  --ink-2: #c7d1d7;
  --muted: #95a2a9;
  --faint: #69737a;
  --line: #1f272d;
  --line-2: #2b353c;
  --green: #3ecf8e;
  --green-bright: #5ce3a4;
  --green-ink: #04130c;
  --green-soft: rgba(62, 207, 142, 0.12);
  --green-line: rgba(62, 207, 142, 0.34);
  --red: #ef7d70;
  --amber: #e0b24a;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.72);
  --shadow-sm: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(940px 560px at 82% -10%, rgba(62, 207, 142, 0.12), transparent 60%),
    radial-gradient(760px 480px at 4% -4%, rgba(70, 130, 230, 0.08), transparent 55%),
    radial-gradient(1200px 700px at 50% 120%, rgba(62, 207, 142, 0.05), transparent 60%);
}

a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover {
  color: var(--green-bright);
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: var(--green-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--green) 70%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- buttons ---------- */

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--green);
  background-image: linear-gradient(180deg, var(--green-bright), var(--green));
  color: var(--green-ink);
  font: inherit;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

a.button {
  color: var(--green-ink);
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -10px rgba(62, 207, 142, 0.6);
  color: var(--green-ink);
}

button:active,
.button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button + button {
  margin-left: 8px;
}

.button.secondary,
.secondary-button,
button.ghost {
  background: transparent;
  background-image: none;
  border-color: var(--line-2);
  color: var(--ink);
}

.button.secondary:hover,
.secondary-button:hover,
button.ghost:hover {
  border-color: var(--green-line);
  background: var(--surface-2);
  box-shadow: none;
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  background-image: none;
  border-color: var(--line-2);
  color: var(--ink);
}

button.danger {
  background: transparent;
  background-image: none;
  border-color: rgba(239, 125, 112, 0.45);
  color: var(--red);
}

button.danger:hover {
  background: rgba(239, 125, 112, 0.1);
  border-color: var(--red);
  color: var(--red);
  box-shadow: none;
}

/* ---------- layout shells ---------- */

.landing,
.auth,
.settings,
.onboarding,
.admin,
.doc {
  width: min(var(--maxw), calc(100vw - 40px));
  margin: 0 auto;
  padding: 0 0 72px;
}

/* ---------- nav ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
  padding: 16px 4px;
  backdrop-filter: saturate(140%) blur(10px);
}

nav::after {
  content: "";
  position: absolute;
  inset: 0 -50vw;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}

nav > strong,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(150deg, var(--green-bright), #1f9e6e);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.3), 0 6px 16px -8px rgba(62, 207, 142, 0.7);
  display: inline-grid;
  place-items: center;
  color: var(--green-ink);
  flex: none;
}

.brand-mark svg {
  width: 15px;
  height: 15px;
}

nav span,
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  color: var(--ink-2);
  font-weight: 550;
  white-space: nowrap;
}

nav a:not(.button) {
  padding: 7px 11px;
  border-radius: 8px;
}

nav a:not(.button):hover {
  color: var(--ink);
  background: var(--surface-2);
}

nav .button {
  padding: 9px 15px;
}

/* ---------- hero ---------- */

.hero {
  max-width: 760px;
  padding: 56px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 44px;
  padding: 60px 0 36px;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--green-line);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.2);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 680;
  background: linear-gradient(180deg, #ffffff 0%, #cfd8dd 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 .accent {
  background: linear-gradient(180deg, var(--green-bright), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero p,
.lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.actions,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions .button {
  padding: 12px 20px;
  font-size: 15px;
}

.actions a:not(.button),
.hero-actions a:not(.button) {
  color: var(--ink-2);
  font-weight: 550;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row svg {
  width: 15px;
  height: 15px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- hero preview (pure-CSS faux dashboard) ---------- */

.hero-preview {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), #0d1316);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hp-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.hp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}

.hp-title {
  margin-left: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

.hp-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 20px;
  padding: 22px 22px 24px;
}

.hp-ring {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 85%, var(--track, #1f262b) 85% 100%);
  display: grid;
  place-items: center;
}

.hp-ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--surface);
}

.hp-ring-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hp-ring-num {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.hp-ring-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-self: center;
}

.hp-stat {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.hp-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.hp-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.hp-stat.up strong {
  color: var(--green);
}

.hp-bars {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 84px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.hp-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--green), rgba(62, 207, 142, 0.35));
  opacity: 0.92;
}

.hp-bars i:nth-child(2n) {
  background: linear-gradient(180deg, #38506a, rgba(56, 80, 106, 0.4));
}

.hp-bars i:nth-child(1) { height: 52%; }
.hp-bars i:nth-child(2) { height: 74%; }
.hp-bars i:nth-child(3) { height: 40%; }
.hp-bars i:nth-child(4) { height: 88%; }
.hp-bars i:nth-child(5) { height: 63%; }
.hp-bars i:nth-child(6) { height: 96%; }
.hp-bars i:nth-child(7) { height: 48%; }
.hp-bars i:nth-child(8) { height: 80%; }
.hp-bars i:nth-child(9) { height: 58%; }
.hp-bars i:nth-child(10) { height: 70%; }

/* keep the legacy image hidden if present, the CSS preview replaces it */
.hero-visual {
  display: none;
}

/* ---------- section heads ---------- */

.section {
  padding: 44px 0 8px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.03em;
  font-weight: 660;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.features article,
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.features article:hover,
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-line);
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.8);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green);
  margin-bottom: 4px;
}

.feature-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features h2,
.feature-card h2 {
  font-size: 17px;
  font-weight: 640;
}

.features p,
.feature-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), #0d1215);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
}

.step h2 {
  font-size: 16px;
  font-weight: 640;
}

.step p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.step code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

/* ---------- generic panels / forms ---------- */

.panel,
form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel h1,
.panel h2 {
  background: none;
  -webkit-background-clip: border-box;
  color: var(--ink);
}

.panel p {
  color: var(--muted);
}

input,
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-line);
  box-shadow: 0 0 0 3px var(--green-soft);
  background: var(--surface);
}

textarea {
  line-height: 1.5;
  resize: vertical;
}

label {
  color: var(--ink-2);
}

/* ---------- auth ---------- */

.auth {
  max-width: 432px;
  padding-top: 36px;
}

.auth > a:first-child,
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth form {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.auth form h1 {
  margin: 0 0 4px;
  font-size: 26px;
  letter-spacing: -0.03em;
  font-weight: 680;
  background: none;
  color: var(--ink);
}

.auth form > p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-sub {
  margin: 0 0 6px !important;
  color: var(--muted);
  font-size: 14.5px;
}

[data-invite-field][hidden] {
  display: none;
}

.auth form > p a {
  font-weight: 600;
}

.auth button[type="submit"],
.auth form button:not(.ghost) {
  margin-top: 4px;
  width: 100%;
  padding: 12px;
}

#message {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
}

#message:not(:empty) {
  margin-top: 2px;
}

.fine-print {
  margin: 0;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------- pricing ---------- */

.pricing-hero {
  max-width: 760px;
  padding: 48px 0 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 28px;
}

.pricing-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pricing-grid article.popular {
  border-color: var(--green-line);
  background: linear-gradient(180deg, rgba(62, 207, 142, 0.07), var(--surface) 42%);
  box-shadow: 0 30px 60px -34px rgba(62, 207, 142, 0.45);
}

.plan-badge {
  align-self: flex-start;
  margin-bottom: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-grid h2 {
  font-size: 18px;
}

.price {
  margin: 10px 0 8px;
  font-size: 40px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price span {
  font-size: 15px;
  font-weight: 550;
  color: var(--muted);
  letter-spacing: 0;
}

.pricing-grid p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.plan-features {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 14px 0 18px;
  padding: 0;
  width: 100%;
}

.plan-features li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
}

.plan-features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 6px;
  height: 3px;
  border-left: 1.6px solid var(--green);
  border-bottom: 1.6px solid var(--green);
  transform: rotate(-45deg);
}

.pricing-grid .button {
  margin-top: auto;
  width: 100%;
}

/* ---------- onboarding ---------- */

.onboarding {
  max-width: 920px;
  padding-top: 8px;
}

.compact-hero {
  padding: 32px 0 4px;
  margin-bottom: 18px;
}

.compact-hero h1 {
  max-width: 740px;
  font-size: clamp(30px, 4.4vw, 46px);
}

.compact-hero p {
  margin-top: 14px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 16px;
}

.onboarding-form {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 6px;
}

.form-grid label {
  display: grid;
  gap: 7px;
}

.form-grid label span,
.checkbox-line span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-grid textarea {
  min-height: 188px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 10px;
  grid-template-columns: none !important;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--green);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.notice.warn {
  border-color: rgba(224, 178, 74, 0.4);
  background: rgba(224, 178, 74, 0.08);
}

.notice .notice-icon {
  flex: none;
  margin-top: 1px;
  color: var(--amber);
}

.notice .notice-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice button {
  margin-top: 8px;
  padding: 8px 13px;
  font-size: 13px;
}

.notice.ok {
  border-color: var(--green-line);
  background: var(--green-soft);
}

.notice.ok .notice-icon {
  color: var(--green);
}

.sticky-actions {
  position: sticky;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.sticky-actions p {
  margin: 0 auto 0 0;
  color: var(--muted);
  font-weight: 550;
  font-size: 14px;
}

.code-out,
.settings pre {
  margin: 12px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- settings / admin ---------- */

.settings,
.admin {
  display: grid;
  max-width: 920px;
  gap: 16px;
  padding-top: 8px;
}

.admin {
  max-width: 1000px;
}

.settings nav,
.admin nav,
.onboarding nav {
  margin-bottom: 4px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-grid article {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.stat-grid span,
.stat-grid em,
.empty-note {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.stat-grid strong {
  color: var(--ink);
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.admin-table th,
.admin-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.account-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 15px;
}

.account-line .pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 12px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.btn-row button {
  margin-left: 0;
}

/* ---------- doc ---------- */

.doc {
  max-width: 720px;
  padding-top: 28px;
  line-height: 1.7;
  color: var(--ink-2);
}

.doc h1 {
  margin: 10px 0 18px;
  font-size: clamp(32px, 4vw, 46px);
}

.doc h2 {
  margin: 28px 0 8px;
  color: var(--ink);
}

.doc p {
  margin: 0 0 14px;
  color: var(--ink-2);
}

.doc strong {
  color: var(--ink);
}

/* ---------- cta band ---------- */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 52px;
  padding: 32px 34px;
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 200px at 80% 0%, rgba(62, 207, 142, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(62, 207, 142, 0.06), var(--surface));
}

.cta-band h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.03em;
}

.cta-band p {
  margin-top: 6px;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- footer ---------- */

footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

footer a {
  color: var(--muted);
  font-weight: 500;
}

footer a:hover {
  color: var(--ink);
}

footer .footer-brand {
  margin-right: auto;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-preview {
    animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-preview {
    animation-delay: 0.08s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0 24px;
  }

  .features,
  .steps,
  .pricing-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid article.popular {
    order: -1;
  }
}

@media (max-width: 640px) {
  .landing,
  .auth,
  .settings,
  .onboarding,
  .admin,
  .doc {
    width: calc(100vw - 28px);
  }

  nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hp-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .sticky-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sticky-actions p {
    margin: 0 0 4px;
  }
}
