:root {
  --bg: #eef5ff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5f6b7d;
  --border: #d8e3f2;
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --accent: #f97316;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.12), transparent 45%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.12), transparent 45%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.page-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.page-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.96), rgba(29, 78, 216, 0.92));
  box-shadow: 0 18px 42px rgba(30, 58, 138, 0.2);
}

.sidebar-card + .sidebar-card {
  margin-top: 14px;
}

.sidebar-group + .sidebar-group {
  margin-top: 16px;
}

.sidebar-title {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a {
  display: block;
  padding: 6px 0 6px 10px;
  border-radius: 0;
  border: 0;
  border-left: 3px solid transparent;
  color: #f8fbff;
  font-weight: 600;
  font-size: 0.94rem;
  background: transparent;
}

.sidebar-nav a:hover {
  text-decoration: none;
  border-left-color: var(--accent);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-helper {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.content-stack {
  min-width: 0;
}

.content-stack > .section:first-child,
.content-stack > .hero:first-child {
  margin-top: 0;
}

.content-stack > .hero,
.content-stack > .section {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(216, 227, 242, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.content-stack > .hero {
  background:
    linear-gradient(135deg, rgba(243, 248, 255, 0.98), rgba(255, 247, 237, 0.94));
}

.content-stack > .section:nth-of-type(odd) {
  background:
    linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.content-stack > .section:nth-of-type(even) {
  background:
    linear-gradient(180deg, rgba(244, 248, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
  border-bottom: 1px solid rgba(191, 219, 254, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 8px;
}

.topnav::-webkit-scrollbar {
  display: none;
}

.topnav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 9px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.topnav a:hover {
  background: rgba(219, 234, 254, 0.8);
  text-decoration: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #f8fffd;
  border: 1px solid rgba(29, 78, 216, 0.35);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  color: var(--text);
}

label {
  display: block;
  font-weight: 600;
  margin-top: 12px;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fffdf9;
  font-size: 0.95rem;
}

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

.form-status {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  padding: 12px 0 4px;
}

.hero-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 248, 255, 0.98));
  box-shadow: var(--shadow);
}

.hero-panel h3 {
  margin-top: 0;
}

.hero-trust-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  align-items: start;
}

.hero-trust-item {
  padding-top: 10px;
  border-top: 1px solid rgba(216, 227, 242, 0.9);
}

.hero-trust-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.94rem;
  line-height: 1.3;
}

.hero-trust-item .muted {
  display: block;
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero h1 {
  font-size: clamp(2.55rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 10px 0 14px;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

.pill {
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(219, 234, 254, 0.88);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section {
  margin-top: 20px;
  scroll-margin-top: 120px;
}

.trust-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 24px;
  align-items: start;
}

.trust-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.94);
}

.trust-item strong {
  display: block;
  margin-bottom: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.cta-band {
  margin-top: 24px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 247, 237, 0.94));
  box-shadow: var(--shadow);
}

.cta-band h2,
.cta-band h3 {
  margin-top: 0;
}

.compact-list {
  margin: 12px 0 0 18px;
  padding: 0;
}

.compact-list li + li {
  margin-top: 6px;
}

#home {
  scroll-margin-top: 120px;
}

.section-title {
  margin-bottom: 14px;
  max-width: 760px;
}

.section-title h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 2.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-title p {
  margin: 0;
  font-size: 1.04rem;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.grid-balanced-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.form-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #f8fbff;
  box-shadow: var(--shadow);
}

.form-section + .form-section {
  margin-top: 12px;
}

.form-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.form-section-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.permit-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}

.warning {
  color: #c2410c;
}

.success {
  color: var(--primary-dark);
}

.form-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.form-stepper .stepper-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-height: 0;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.card p,
.card li {
  font-size: 1rem;
  line-height: 1.55;
}

.card.primary {
  border: 1px solid rgba(191, 219, 254, 0.95);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.card.tint-indigo {
  border-color: rgba(147, 197, 253, 0.95);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.card.tint-teal {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.98));
}

.card.tint-sky {
  border-color: rgba(96, 165, 250, 0.7);
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.card.tint-amber {
  border-color: rgba(249, 115, 22, 0.35);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.98));
}

.stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 20px;
  align-items: start;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(248, 251, 255, 0.98);
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 237, 213, 0.9);
  border: 1px solid rgba(249, 115, 22, 0.22);
  color: #c2410c;
  font-size: 0.92rem;
  font-weight: 700;
}

.plan-stack {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

.comparison-table thead th {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(248, 251, 255, 0.98));
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.comparison-table td:first-child,
.comparison-table th:first-child {
  min-width: 220px;
  font-weight: 700;
}

.comparison-table td strong {
  color: var(--text);
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.feature-chip.is-included {
  background: rgba(219, 234, 254, 0.9);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--primary-dark);
}

.feature-chip.is-limited {
  background: rgba(255, 237, 213, 0.94);
  border-color: rgba(249, 115, 22, 0.24);
  color: #c2410c;
}

.feature-chip.is-addon {
  background: rgba(243, 244, 246, 0.96);
  border-color: rgba(148, 163, 184, 0.24);
  color: #475569;
}

.pricing-note {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px 44px;
  background: #ffffff;
  color: var(--muted);
}

@media (max-width: 720px) {
  .grid-balanced-4 {
    grid-template-columns: 1fr;
  }

  .plan-stack {
    grid-template-columns: 1fr;
  }

  .hero-trust-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  main {
    padding: 18px 14px 56px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .content-stack > .hero,
  .content-stack > .section {
    padding: 18px 16px;
  }
}

@media (max-width: 1040px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    position: static;
  }

  .sidebar-nav {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
