:root {
  --ink: #1a1a2e;
  --ink-soft: #6b6b6b;
  --bg: #f5f6fa;
  --bg-muted: transparent;
  --surface: #ffffff;
  --brand: #b1241a;
  --brand-dark: #8b1512;
  --brand-orange: #f39c12;
  --accent: #27ae60;
  --warn: #f39c12;
  --border: #e3e2ea;
  --radius: 14px;
  --shadow: 0 12px 30px -12px rgba(139, 21, 18, 0.2);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(26, 26, 46, 0.16) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  line-height: 1.55;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }

p { margin: 0 0 16px; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 250, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 21px;
  color: var(--brand);
  letter-spacing: -0.01em;
}

.nav__brand .logo-mark {
  width: 26px;
  height: 26px;
  color: var(--brand);
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

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

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(177, 36, 26, 0.55);
}

.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(177, 36, 26, 0.6); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--sm { padding: 9px 18px; font-size: 14px; }

.btn--block { width: 100%; }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Hero */
.hero { padding: 96px 0 72px; }

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(177, 36, 26, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 { font-size: 42px; }

.hero__lead { font-size: 17px; max-width: 520px; }

.hero__cta { display: flex; gap: 14px; margin: 28px 0 40px; flex-wrap: wrap; }

.hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__stats div { display: flex; flex-direction: column; }

.hero__stats strong { font-size: 20px; color: var(--ink); }

.hero__stats span { font-size: 13px; color: var(--ink-soft); }

.hero__art { display: flex; justify-content: center; }

.mock-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.mock-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
}

.mock-card__row:last-of-type { border-bottom: none; }

.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot--ok { background: var(--accent); }
.dot--warn { background: var(--warn); }

.tag {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(39, 174, 96, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

.tag--warn { color: var(--warn); background: rgba(243, 156, 18, 0.14); }

.mock-card__foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--ink-soft);
}

/* Sections */
.section { padding: 88px 0; }

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

.section__title { font-size: 30px; text-align: center; }

.section__subtitle {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.grid { display: grid; gap: 24px; }

.grid--4 { grid-template-columns: repeat(4, 1fr); }

.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 { font-size: 17px; }

.card p { font-size: 14px; margin-bottom: 0; }

.shot-card__img {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}

.step__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

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

.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.pricing-grid .pricing-card {
  max-width: none;
  margin: 0;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(177, 36, 26, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.pricing-card__plan h3 { font-size: 22px; margin-bottom: 4px; }

.pricing-card__calc {
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-card__amount {
  margin-top: 18px;
  font-size: 40px;
  font-weight: 800;
  color: var(--ink);
}

.pricing-card__amount .currency {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
}

.pricing-card__original {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.pricing-card__note {
  font-size: 13px;
  margin: 8px 0 0;
}

/* Auth forms */
.auth-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding: 48px 0;
}

.auth-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.auth-card h1 { font-size: 24px; }

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}

.form-field input:focus {
  outline: none;
  border-color: var(--brand);
}

.form-field .helptext { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

.form-errors, .form-field ul.errorlist {
  list-style: none;
  margin: 0 0 12px;
  padding: 10px 14px;
  background: rgba(177, 36, 26, 0.08);
  border: 1px solid rgba(177, 36, 26, 0.25);
  border-radius: 10px;
  color: var(--brand);
  font-size: 14px;
}

.form-field ul.errorlist { margin: 6px 0 0; padding: 8px 12px; }

.auth-card .form-footnote { margin-top: 18px; font-size: 14px; text-align: center; }

.plan-picker { display: grid; gap: 10px; margin-bottom: 16px; }

.plan-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
}

.plan-option:has(input:checked) { border-color: var(--brand); background: rgba(177, 36, 26, 0.05); }

.plan-option__name { font-weight: 600; color: var(--ink); }

.plan-option__price { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }

/* Dashboard */
.dashboard-page { padding: 48px 0 72px; }

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

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

.dashboard-card h2 { font-size: 18px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.status-pill--active { background: rgba(39, 174, 96, 0.12); color: var(--accent); }
.status-pill--inactive { background: rgba(107, 107, 107, 0.12); color: var(--ink-soft); }
.status-pill--canceled { background: rgba(177, 36, 26, 0.1); color: var(--brand); }

.dashboard-card .amount { font-size: 32px; font-weight: 800; margin: 12px 0; }
.dashboard-card .amount .currency { font-size: 15px; font-weight: 600; color: var(--ink-soft); }

.test-mode-note {
  font-size: 13px;
  background: rgba(243, 156, 18, 0.12);
  color: #8a5a00;
  border: 1px solid rgba(243, 156, 18, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

/* CTA */
.cta { text-align: center; }

.cta h2 { font-size: 28px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: flex; }
  .nav .btn--sm { display: none; }
  .hero h1 { font-size: 32px; }
  .grid--4 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
