:root {
  --primary: #5a9b8f;
  --primary-light: #7ab5a8;
  --primary-soft: #ecf5f2;
  --accent: #e8845f;
  --accent-soft: #fde8df;
  --bg: #faf9f7;
  --panel: #ffffff;
  --text: #2d2d2d;
  --muted: #808080;
  --border: #e8e3dc;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #faf9f7 0%, #f3f1ed 100%);
  color: var(--text);
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #f0ede8;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(90, 155, 143, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.site-header .container {
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}

.top-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.5rem 0.9rem;
  row-gap: 0.5rem;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  font-size: 0.94rem;
  transition: color 200ms ease;
}

.nav-toggle-checkbox {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.top-nav a:hover {
  color: var(--primary);
}

.container {
  max-width: 880px;
  margin: 3rem auto;
  padding: 1.5rem;
}

header h1 {
  margin: 0 0 0.6rem;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--primary);
}

header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
}

header p {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.status {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: var(--primary-soft);
  color: #2a6b5f;
  font-weight: 500;
  border-left: 4px solid var(--primary);
}

.status.error {
  background: #fde8e5;
  color: #c54a3d;
  border-left-color: var(--danger);
}

.progress-wrap {
  width: 100%;
  height: 8px;
  background: #ede8e1;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.progress-bar {
  width: 14%;
  height: 100%;
  background: linear-gradient(90deg, #5a9b8f, #e8845f);
  transition: width 220ms ease;
}

.wizard-step,
.card {
  display: none;
  background: var(--panel);
  border: 1px solid #f0ede8;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(90, 155, 143, 0.06);
  transition: box-shadow 200ms ease;
}

.wizard-step:hover,
.card:hover {
  box-shadow: 0 8px 20px rgba(90, 155, 143, 0.1);
}

.wizard-step.active,
.report .card {
  display: block;
}

.show-card {
  display: block;
}

.hero.card {
  background: linear-gradient(135deg, rgba(90, 155, 143, 0.05) 0%, rgba(232, 132, 95, 0.05) 100%);
  border: 2px solid #e0e0e0;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

input,
select,
textarea,
button {
  width: 100%;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid #e0dcd6;
  font-size: 0.98rem;
  font-family: inherit;
  transition: all 200ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(90, 155, 143, 0.1);
}

.validation-error {
  display: none;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.validation-error.show {
  display: block;
}

button {
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--primary), #6fb3a7);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(90, 155, 143, 0.25);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(90, 155, 143, 0.35);
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  align-items: center;
}

.row button {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}

.checkbox-grid {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.checkbox-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #faf9f7;
  border: 1px solid #e8e3dc;
  border-radius: 12px;
  padding: 0.75rem;
  transition: all 200ms ease;
  cursor: pointer;
}

.checkbox-item:hover {
  background: rgba(90, 155, 143, 0.03);
  border-color: var(--primary-light);
}

.checkbox-item input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  cursor: pointer;
  accent-color: var(--primary);
}

.hint {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

pre {
  background: #faf9f7;
  border: 1px solid #e8e3dc;
  border-radius: 12px;
  padding: 1.2rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #2d2d2d;
  font-size: 0.9rem;
  line-height: 1.6;
}

.back-link {
  color: #0c63a6;
  text-decoration: none;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-link {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary), #6fb3a7);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 200ms ease;
  box-shadow: 0 4px 12px rgba(90, 155, 143, 0.25);
}

.btn-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(90, 155, 143, 0.35);
}

.btn-link.btn-secondary {
  background: #f5f3f0;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-link.btn-secondary:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.simple-list {
  margin: 0.8rem 0 0;
  padding-left: 1.5rem;
}

.simple-list li {
  margin: 0.6rem 0;
  color: #3a3a3a;
  line-height: 1.7;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  border: 1px solid var(--border);
  padding: 0.6rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

.admin-table th {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.auth-card {
  max-width: 560px;
  margin: 0 auto;
}

.stack-form {
  display: grid;
  gap: 0.25rem;
}

.checkbox-grid .checkbox-item {
  cursor: pointer;
}

.checkbox-grid .checkbox-item input {
  flex: 0 0 auto;
}

.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pricing-grid .card {
  position: relative;
  overflow: hidden;
}

.pricing-grid .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.price {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.5rem 0 0.3rem;
  color: var(--primary);
}

.stack-form {
  display: grid;
  gap: 0.15rem;
}

.wizard-nav-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.wizard-nav-row .btn-link,
.wizard-nav-row button {
  flex: 1;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.wizard-nav-row button {
  flex: 2;
  margin-top: 0;
}

.wizard-nav-row .btn-link {
  line-height: 1;
}

.site-footer {
  border-top: 1px solid #e8e3dc;
  margin-top: 1.25rem;
  background: #faf9f7;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 200ms ease;
}

.footer-inner a:hover {
  color: var(--primary);
}

.footer-meta {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 1rem 1.25rem 0;
  border-top: 1px solid #e8e3dc;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.faq-item {
  margin-bottom: 2rem;
}

.faq-item h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.7rem;
}

.report {
  background: var(--panel);
}

.report header {
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0ede8;
  margin-bottom: 1.5rem;
}

header.card {
  background: var(--panel);
  border: 1px solid #f0ede8;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(90, 155, 143, 0.06);
}

.cta-card {
  background: linear-gradient(135deg, rgba(232, 132, 95, 0.08) 0%, rgba(90, 155, 143, 0.08) 100%);
  border: 2px solid var(--accent);
  position: relative;
}

.cta-card h2 {
  color: var(--primary);
  margin-top: 0;
}

.cta-card .btn-link {
  margin-top: 0.75rem;
}

.highlight-section {
  background: linear-gradient(135deg, rgba(90, 155, 143, 0.06) 0%, rgba(232, 132, 95, 0.06) 100%);
  border: 2px solid var(--primary-light);
  position: relative;
}

.highlight-section h2 {
  color: var(--primary);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.comparison-table thead {
  background: rgba(90, 155, 143, 0.1);
  border-bottom: 2px solid var(--primary);
}

.comparison-table th {
  padding: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e8e3dc;
  font-size: 0.95rem;
  line-height: 1.6;
}

.comparison-table tbody tr:hover {
  background: rgba(90, 155, 143, 0.02);
}

.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  background: linear-gradient(135deg, var(--primary), #6fb3a7);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 16px rgba(90, 155, 143, 0.2);
  z-index: 100;
}

.sticky-mobile-cta a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: block;
  text-align: center;
  padding: 0.75rem;
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 60px;
  }
  .container {
    padding: 1rem;
    margin: 1.5rem auto;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .nav-toggle {
    display: block;
  }

  .top-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #f0ede8;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 8px rgba(90, 155, 143, 0.1);
  }

  .nav-toggle-checkbox:checked + .nav-toggle + .top-nav {
    display: flex;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.6rem 0.7rem;
    font-size: 0.85rem;
  }

  .comparison-table th {
    font-size: 0.8rem;
  }
}
