/*
 * Marketing site — landing, pricing, auth. Layered on theme.css, which owns all
 * tokens and the button/input primitives.
 */

body.marketing { background: var(--bg); }

.skip {
  position: absolute; left: -9999px;
  padding: 10px 16px; background: var(--surface); border-radius: var(--radius);
}
.skip:focus { left: 12px; top: 12px; z-index: 100; }

/* ────────────────────────────────── header ─────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head-in {
  display: flex; align-items: center; gap: var(--s5);
  height: 66px;
}
.site-nav { display: flex; gap: var(--s5); margin-left: auto; }
.site-nav a {
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-2);
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); }
.site-cta { display: flex; align-items: center; gap: var(--s2); }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer;
}

.site-head .site-burger { display: none; margin-left: auto; }
.site-drawer { display: none; }
@media (max-width: 860px) {
  .site-nav, .site-cta { display: none; }
  .site-head .site-burger { display: grid; }
  .site-drawer[hidden] { display: none; }
  .site-drawer {
    display: grid; gap: var(--s3);
    padding: var(--s4) var(--s5) var(--s5);
    border-top: 1px solid var(--line);
    background: var(--bg);
  }
  .site-drawer a { font-weight: 600; color: var(--text); text-decoration: none; }
}

/* ─────────────────────────────────── hero ──────────────────────────────── */

.hero { padding: var(--s8) 0 var(--s7); overflow: hidden; }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: var(--s8); align-items: center;
}
.hero h1 { font-size: var(--fs-display); margin: var(--s4) 0 0; text-wrap: balance; }
.lede {
  margin-top: var(--s4); max-width: 46ch;
  font-size: 1.12rem; line-height: 1.6; color: var(--text-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero-note { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--muted); }

.hero-art { position: relative; display: grid; place-items: center; }
.art-glow {
  position: absolute; inset: -12% -6%;
  background: radial-gradient(60% 55% at 50% 45%,
              color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(20px); z-index: -1;
}
.phone {
  width: 100%; max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.phone-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: var(--fs-sm);
}
.phone-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.phone-body { display: grid; gap: 8px; padding: 14px; }
.p-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.p-row.is-low { background: var(--warn-bg); border-color: var(--warn-line); }
.p-row b { display: block; font-size: var(--fs-sm); font-weight: 600; }
.p-row small { font-size: var(--fs-xs); color: var(--muted); }
.p-row.is-low small { color: var(--warn-text); }
.pill {
  flex: none; padding: 4px 10px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 700;
}
.pill-warn { color: var(--warn-text); background: color-mix(in srgb, var(--warn-line) 40%, transparent); }
.pill-ok { color: var(--accent); background: var(--accent-soft); }

@media (max-width: 900px) {
  .hero { padding: var(--s6) 0; }
  .hero-in { grid-template-columns: 1fr; gap: var(--s6); }
  .hero-art { order: -1; }
  .phone { max-width: 300px; }
}

/* ─────────────────────────────────── strip ─────────────────────────────── */

.strip { padding: var(--s5) 0; border-block: 1px solid var(--line); background: var(--bg-alt); }
.strip-in {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5);
  text-align: center;
}
.strip-in div { display: grid; gap: 4px; }
.strip-in b { font-size: 1.9rem; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.strip-in span { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 760px) {
  .strip-in { grid-template-columns: repeat(2, 1fr); gap: var(--s4); text-align: left; }
}

/* ────────────────────────────────── sections ───────────────────────────── */

.section { padding: var(--s9) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-title { margin-top: var(--s2); max-width: 26ch; text-wrap: balance; }
.section-sub {
  margin-top: var(--s4); max-width: 62ch;
  font-size: 1.05rem; color: var(--text-2);
}
@media (max-width: 760px) { .section { padding: var(--s7) 0; } }

/* steps */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5);
  margin: var(--s7) 0 0; padding: 0; list-style: none;
  counter-reset: step;
}
.steps li {
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.step-n {
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: var(--s4);
  font-weight: 700; font-size: var(--fs-sm);
  color: var(--accent-text); background: var(--accent);
  border-radius: 10px;
}
.steps h3 { margin-bottom: var(--s2); }
.steps p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* roles */
.role-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5);
  margin-top: var(--s7);
}
.role { padding: var(--s5); }
.role-feature {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line), var(--shadow);
}
.role-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: var(--s4);
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
}
.role-sub { margin: 6px 0 var(--s4); font-size: var(--fs-sm); color: var(--muted); }
.role ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.role li {
  position: relative; padding-left: 26px;
  font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2);
}
.role li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 15px; height: 9px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.role li.no { color: var(--muted); }
.role li.no::before {
  top: 8px; width: 13px; height: 0;
  border-left: 0; border-bottom: 2px solid var(--faint);
  transform: none;
}
.role-foot {
  margin-top: var(--s5); font-size: var(--fs-sm); color: var(--muted);
}
@media (max-width: 900px) { .role-grid { grid-template-columns: 1fr; } }

/* features */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5);
  margin-top: var(--s7);
}
.feat > svg {
  width: 26px; height: 26px; margin-bottom: var(--s3); color: var(--accent);
}
.feat h3 { margin-bottom: var(--s2); }
.feat p { font-size: var(--fs-sm); line-height: 1.6; color: var(--text-2); }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .feat-grid { grid-template-columns: 1fr; } }

/* ──────────────────────────────────── cta ──────────────────────────────── */

.cta { padding: var(--s8) 0; border-top: 1px solid var(--line); }
.cta-in {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--s5);
  padding: var(--s7);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-xl);
}
.cta h2 { max-width: 18ch; text-wrap: balance; }
.cta p { margin-top: var(--s3); max-width: 46ch; color: var(--text-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (max-width: 700px) { .cta-in { padding: var(--s5); } }

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

.site-foot { padding: var(--s7) 0; border-top: 1px solid var(--line); background: var(--bg-alt); }
.site-foot-in {
  display: flex; flex-wrap: wrap; gap: var(--s5);
  align-items: start; justify-content: space-between;
}
.site-foot .muted { margin-top: var(--s3); font-size: var(--fs-sm); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: var(--s5); }
.site-foot nav a {
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); text-decoration: none;
}
.site-foot nav a:hover { color: var(--accent); }

/* ────────────────────────────────── pricing ────────────────────────────── */

.price-hero { padding: var(--s8) 0 var(--s6); }
.price-hero h1 { margin-top: var(--s2); max-width: 18ch; text-wrap: balance; }
.trial-line {
  margin-top: var(--s4); font-size: var(--fs-sm); font-weight: 600; color: var(--accent);
}

.units-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--s4);
  padding: var(--s4) var(--s5);
}
.units-row .muted { margin-top: 2px; font-size: var(--fs-sm); }

.stepper-inline {
  display: grid; grid-template-columns: 44px 74px 44px; align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden;
}
.stepper-inline button {
  font: 700 20px/1 var(--font); color: var(--text);
  background: var(--surface-2); border: 0; cursor: pointer;
}
.stepper-inline button:hover { background: var(--surface-3); }
.stepper-inline .stepper-value {
  min-width: 0; padding: 12px 4px;
  font: 700 var(--fs-body)/1 var(--font); text-align: center;
  color: var(--text); background: transparent; border: 0;
  -moz-appearance: textfield; font-variant-numeric: tabular-nums;
}
.stepper-inline .stepper-value::-webkit-outer-spin-button,
.stepper-inline .stepper-value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.plan-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4);
  margin-top: var(--s5);
}
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.plan-card.is-best {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.plan-card.is-out { opacity: .55; }
.plan-card h2 { font-size: 1.15rem; }
.plan-flag {
  position: absolute; top: -11px; left: var(--s5);
  padding: 3px 10px;
  font-size: var(--fs-xs); font-weight: 700;
  color: var(--accent-text); background: var(--accent);
  border-radius: 999px;
}
.plan-price { font-size: var(--fs-sm); color: var(--muted); }
.plan-price strong {
  display: block; font-size: 2rem; color: var(--text);
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.plan-tagline { font-size: var(--fs-sm); color: var(--text-2); }
.plan-features {
  display: grid; gap: 9px; margin: var(--s2) 0 var(--s4);
  padding: 0; list-style: none;
}
.plan-features li {
  position: relative; padding-left: 24px;
  font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2);
}
.plan-features li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 13px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan-card .btn { margin-top: auto; justify-content: center; }
.plan-note { font-size: var(--fs-xs); color: var(--muted); }

.price-foot { margin: var(--s5) 0 var(--s8); font-size: var(--fs-sm); }

@media (max-width: 1040px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .plan-grid { grid-template-columns: 1fr; } }

.faq-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--s6) var(--s7); margin-top: var(--s6);
}
.faq-grid h3 { margin-bottom: var(--s2); }
.faq-grid p { font-size: var(--fs-sm); line-height: 1.65; color: var(--text-2); }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; gap: var(--s5); } }
