:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #102033;
  --muted: #5f6b7a;
  --border: #d8e0ea;
  --primary: #2144d8;
  --primary-hover: #1b36ad;
  --secondary: #e9eef7;
  --secondary-hover: #dde6f4;
  --danger: #9f2b2b;
  --danger-bg: #fbeaea;
  --info-bg: #eef5ff;
  --info-border: #bcd1ff;
  --error-bg: #fff0f0;
  --error-border: #f1b3b3;
  --shadow: 0 8px 24px rgba(16, 32, 51, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(243, 246, 251, 0.96)),
    var(--bg);
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--primary-hover);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 18px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-form {
  margin: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: transparent;
}

.nav-link:hover {
  background: var(--secondary);
  color: var(--text);
}

button.nav-button {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
}

button.nav-button:hover {
  background: var(--secondary);
  color: var(--text);
}

.page-content {
  display: grid;
  gap: 16px;
}

.card,
.card-grid > .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid.tight {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inline-form {
  margin: 0;
}

.compact-form {
  gap: 10px;
}

.danger-zone {
  display: flex;
  align-items: flex-start;
}

.textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.checkbox-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.form-help,
.muted {
  color: var(--muted);
}

.input,
input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.input:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(33, 68, 216, 0.18);
  outline-offset: 1px;
  border-color: rgba(33, 68, 216, 0.5);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: var(--secondary-hover);
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.button-secondary {
  background: var(--secondary);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--secondary-hover);
}

.button-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.button-danger:hover {
  background: #f7dada;
  color: var(--danger);
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.alert-info {
  background: var(--info-bg);
  border-color: var(--info-border);
}

.alert-error {
  background: var(--error-bg);
  border-color: var(--error-border);
}

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

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.table th {
  background: var(--surface-alt);
  color: var(--muted);
  font-weight: 700;
}

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

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.table-actions form {
  margin: 0;
}

.empty-state {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e9eef7;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.badge-muted {
  background: #eef2f7;
  color: var(--muted);
}

.badge-success {
  background: #e6f5ea;
  color: #21613b;
}

.stack {
  display: grid;
  gap: 12px;
}

.section-title {
  margin: 0 0 8px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(33, 68, 216, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(240, 245, 253, 0.98));
}

.landing-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 68, 216, 0.18), rgba(33, 68, 216, 0));
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.hero-copy {
  max-width: 68ch;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-text,
.section-note,
.price-panel p,
.faq-item p,
.value-card p {
  margin: 0;
}

.hero-actions .button,
.final-cta .button {
  min-width: 180px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.96);
}

.core-idea-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(33, 68, 216, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 253, 0.98));
}

.core-idea-panel::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 68, 216, 0.16), rgba(33, 68, 216, 0));
  pointer-events: none;
}

.core-idea-copy {
  position: relative;
  z-index: 1;
  max-width: 74ch;
}

.core-idea-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.12;
}

.core-idea-copy p {
  margin: 0;
  font-size: 1.04rem;
}

.core-idea-copy p + p {
  color: var(--muted);
}

.section-copy {
  max-width: 76ch;
}

.value-card,
.faq-item {
  align-content: start;
}

.check-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.check-list li {
  color: var(--text);
}

.step-card {
  position: relative;
  padding-top: 18px;
}

.step-card .badge {
  width: fit-content;
}

.price-panel {
  background:
    radial-gradient(circle at top right, rgba(33, 68, 216, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 246, 251, 0.98));
}

.price-panel .section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 20px 18px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .final-cta .button {
    width: 100%;
  }
}
