:root {
  --base: #121214;
  --surface-1: #1c1c1f;
  --surface-2: #2a2a2e;
  --surface-3: #3a3a3f;
  --border-subtle: #2a2a2e;
  --border-default: #3a3a3f;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --success: #22c55e;
  --blue-light: #60a5fa;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--base);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  color: var(--text-primary);
  font-weight: 650;
  line-height: 1.16;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
}

h3 {
  font-size: 1.15rem;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 700;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  background: var(--surface-2);
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: var(--base);
  border-color: var(--amber);
}

.btn-primary:hover {
  background: var(--amber-light);
}

.btn-secondary:hover {
  background: var(--surface-3);
}

.hero {
  padding: 96px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero p {
  margin-top: 22px;
  font-size: 1.18rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  color: var(--text-tertiary);
  font-size: 0.92rem;
}

.proof-strip span {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-1);
}

.panel {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.panel-title {
  color: var(--text-primary);
  font-weight: 700;
}

.pill {
  color: var(--success);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.mini-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.mini-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}

.mini-list i {
  color: var(--success);
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--surface-1);
}

.section-header {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  margin-top: 14px;
  font-size: 1.05rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

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

.section-alt .card {
  background: var(--base);
}

.card i {
  color: var(--amber);
  width: 24px;
  height: 24px;
  margin-bottom: 14px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p,
.card li {
  font-size: 0.95rem;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface-1);
}

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

th {
  color: var(--text-primary);
  background: var(--surface-2);
}

td strong {
  color: var(--text-primary);
}

tr:last-child td {
  border-bottom: 0;
}

.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--surface-1);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--base);
  background: var(--amber);
  font-weight: 800;
}

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

.price {
  color: var(--text-primary);
  font-size: 2.6rem;
  font-weight: 800;
  margin: 12px 0 2px;
}

.price span {
  color: var(--text-tertiary);
  font-size: 1rem;
  font-weight: 500;
}

.featured {
  border-color: var(--amber);
}

.faq {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--surface-1);
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.compare-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.compare-card {
  display: grid;
  gap: 14px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
}

.section-alt .compare-card {
  background: var(--base);
}

.compare-card h3 {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.compare-card p {
  font-size: 0.96rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.verdict-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.verdict {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
}

.section-alt .verdict {
  background: var(--base);
}

.verdict h3 {
  margin-bottom: 12px;
}

.verdict ul,
.source-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.verdict li,
.source-list li {
  font-size: 0.95rem;
}

.source-list a {
  color: var(--blue-light);
}

.comparison-table td:first-child,
.comparison-table th:first-child {
  width: 25%;
}

.winner {
  color: var(--success);
  font-weight: 800;
}

.neutral {
  color: var(--text-tertiary);
}

.note {
  color: var(--text-tertiary);
  font-size: 0.92rem;
}

.callout {
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 8px;
  padding: 22px;
}

.callout strong {
  color: var(--text-primary);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.proof-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 22px;
}

.section-alt .proof-card {
  background: var(--base);
}

.proof-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.proof-card h3 {
  margin-bottom: 6px;
}

.proof-card p {
  font-size: 0.94rem;
}

.sample-output {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-2);
  overflow: hidden;
}

.sample-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  font-size: 0.88rem;
}

.sample-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sample-row strong {
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.sample-row span {
  color: var(--text-tertiary);
  overflow-wrap: anywhere;
}

.timeline-sample {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
}

.timeline-item span:first-child {
  color: var(--text-tertiary);
  font-weight: 700;
}

.timeline-bar {
  min-width: 0;
  color: var(--text-primary);
  background: rgba(96, 165, 250, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 8px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
}

.estimate-sample {
  display: grid;
  gap: 8px;
}

.estimate-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  font-size: 0.88rem;
}

.estimate-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.estimate-line strong {
  color: var(--text-primary);
}

.evaluation-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: evaluation-step;
}

.evaluation-step {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
}

.section-alt .evaluation-step {
  background: var(--base);
}

.evaluation-step::before {
  counter-increment: evaluation-step;
  content: counter(evaluation-step, decimal-leading-zero);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.evaluation-step h3 {
  font-size: 1rem;
}

.evaluation-step p {
  font-size: 0.92rem;
}

.proof-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  padding: 18px;
  background: rgba(245, 158, 11, 0.08);
}

.proof-cta p {
  margin: 0;
  font-size: 0.95rem;
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}

.tool-shell > * {
  min-width: 0;
}

.tool-form,
.output-panel {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  min-width: 0;
}

.section-alt .tool-form,
.section-alt .output-panel {
  background: var(--base);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.checkbox-field {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--amber);
}

.tool-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tool-meta {
  margin-top: 14px;
  color: var(--text-tertiary);
  font-size: 0.88rem;
}

.output-panel[hidden] {
  display: none;
}

.output-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.metric {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-2);
}

.metric span {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 5px;
  color: var(--text-primary);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.locked-actions {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
}

#estimate-output table {
  min-width: 100%;
}

#estimate-output th,
#estimate-output td {
  overflow-wrap: anywhere;
}

.locked-actions p {
  margin-bottom: 14px;
}

.notice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.08);
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.notice i {
  color: var(--blue-light);
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.cta {
  padding: 76px 0;
  text-align: center;
}

.cta p {
  max-width: 640px;
  margin: 14px auto 28px;
  font-size: 1.08rem;
}

.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-1);
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer h4 {
  margin-bottom: 12px;
  font-size: 0.86rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer p,
.footer a,
.footer li {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .hero-grid,
  .tool-shell,
  .grid-2,
  .grid-3,
  .compare-cards,
  .verdict-grid,
  .proof-grid,
  .evaluation-steps,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 72px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 18px;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .btn {
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }

  .hero-actions .btn,
  .proof-cta .btn,
  .cta .btn {
    width: 100%;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .output-summary {
    grid-template-columns: 1fr;
  }

  .sample-row,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .proof-cta {
    align-items: stretch;
    flex-direction: column;
  }

  #schedule-output table,
  #schedule-output thead,
  #schedule-output tbody,
  #schedule-output tr,
  #schedule-output th,
  #schedule-output td,
  #estimate-output table,
  #estimate-output thead,
  #estimate-output tbody,
  #estimate-output tr,
  #estimate-output th,
  #estimate-output td {
    display: block;
    min-width: 0;
  }

  #schedule-output thead,
  #estimate-output thead {
    display: none;
  }

  #schedule-output tbody,
  #estimate-output tbody {
    display: grid;
    gap: 12px;
  }

  #schedule-output tr,
  #estimate-output tr {
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-1);
  }

  #schedule-output td,
  #estimate-output td {
    display: grid;
    grid-template-columns: minmax(88px, 0.48fr) 1fr;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 14px;
  }

  #schedule-output td:last-child,
  #estimate-output td:last-child {
    border-bottom: 0;
  }

  #schedule-output td::before,
  #estimate-output td::before {
    color: var(--text-tertiary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  #schedule-output td:nth-child(1)::before { content: "Activity"; }
  #schedule-output td:nth-child(2)::before { content: "Start"; }
  #schedule-output td:nth-child(3)::before { content: "Finish"; }
  #schedule-output td:nth-child(4)::before { content: "Duration"; }
  #schedule-output td:nth-child(5)::before { content: "Owner"; }
  #estimate-output td:nth-child(1)::before { content: "Category"; }
  #estimate-output td:nth-child(2)::before { content: "Allocation"; }
  #estimate-output td:nth-child(3)::before { content: "Amount"; }
}
