:root {
  --navy: #1a1a2e;
  --navy-soft: #26263e;
  --warm-white: #fafaf8;
  --gold: #c9a84c;
  --gold-soft: rgba(201, 168, 76, 0.18);
  --ink: #17171f;
  --muted: #666677;
  --border: rgba(26, 26, 46, 0.1);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 55px rgba(17, 17, 27, 0.12);
  --danger: #b63b3b;
  --warning: #b68b22;
  --success: #297a47;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(201, 168, 76, 0.2), transparent 30%),
    linear-gradient(180deg, #f3f1ea 0%, var(--warm-white) 38%, #f2efe7 100%);
  color: var(--ink);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.landing-header,
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.brand-mark {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.landing-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-nav a:not(.button) {
  color: var(--muted);
}

.hero-card,
.content-card,
.panel {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  border-radius: 28px;
  padding: 40px;
  min-height: 500px;
}

.content-card,
.panel {
  border-radius: 24px;
  padding: 28px;
}

.content-card + .content-card,
.hero-card + .content-card {
  margin-top: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 4.8vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--navy);
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.hero-text,
.app-subtitle,
.pricing-footnote,
.step-card p,
.pricing-panel p,
.list-notes,
.timeline-copy p,
.timeline-copy small {
  color: var(--muted);
}

.hero-actions,
.form-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.button-primary {
  background: var(--navy);
  color: white;
}

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

.button-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--navy);
}

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

.hero-panel {
  background: linear-gradient(160deg, var(--navy) 0%, #23253f 100%);
  color: white;
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-metric,
.hero-timeline-preview,
.step-card,
.stat-card,
.list-card,
.payment-row,
.timeline-card,
.pricing-panel {
  border-radius: 20px;
}

.hero-metric {
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
}

.hero-metric span,
.hero-timeline-preview span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.hero-metric strong {
  display: block;
  margin: 8px 0;
  font-size: 1.35rem;
}

.hero-timeline-preview {
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.hero-timeline-preview div + div {
  margin-top: 14px;
}

.hero-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hero-points li::before {
  content: '•';
  color: var(--gold);
  margin-right: 10px;
}

.steps-grid,
.stats-grid {
  display: grid;
  gap: 16px;
}

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

.step-card,
.stat-card,
.list-card,
.payment-row,
.timeline-card,
.pricing-panel,
.modal-panel {
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.step-card {
  padding: 22px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 18px;
}

.pricing-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
}

.pricing-tier {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--gold);
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 22px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

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

.vendor-form,
.generator-form,
.timeline-manual-form {
  margin-bottom: 24px;
}

.form-grid,
.generator-form,
.timeline-manual-form {
  display: grid;
  gap: 14px;
}

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

.full-width,
.timeline-notes-field {
  grid-column: 1 / -1;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(26, 26, 46, 0.15);
  border-radius: 14px;
  background: white;
  padding: 12px 14px;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(26, 26, 46, 0.15);
  border-radius: 14px;
  background: white;
}

.checkbox-field span {
  margin: 0;
}

.checkbox-field input {
  width: auto;
}

.list-stack {
  display: grid;
  gap: 14px;
}

.list-card,
.payment-row,
.timeline-card {
  padding: 18px;
}

.list-card-heading,
.payment-row,
.timeline-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

.stat-card strong {
  font-size: 1.5rem;
  color: var(--navy);
}

.payment-row-values {
  text-align: right;
}

.payment-row-values strong,
.timeline-time {
  display: block;
  font-size: 1.05rem;
  color: var(--navy);
}

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

.timeline-copy {
  flex: 1;
}

.timeline-copy h3 {
  margin-bottom: 6px;
}

.timeline-time {
  min-width: 84px;
  padding-top: 4px;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-overdue {
  background: rgba(182, 59, 59, 0.12);
  color: var(--danger);
}

.status-soon {
  background: rgba(201, 168, 76, 0.18);
  color: var(--warning);
}

.status-paid {
  background: rgba(41, 122, 71, 0.13);
  color: var(--success);
}

.status-upcoming,
.status-neutral {
  background: rgba(26, 26, 46, 0.08);
  color: var(--navy);
}

.inline-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--success);
}

.inline-message.error {
  color: var(--danger);
}

.plan-badge,
.vendor-limit {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(26, 26, 46, 0.07);
  color: var(--navy);
  padding: 10px 14px;
  font-weight: 700;
}

.empty-state {
  margin: 0;
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 30;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 27, 0.45);
}

.modal-panel {
  position: relative;
  width: min(520px, calc(100% - 24px));
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-card,
  .app-grid,
  .steps-grid,
  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .pricing-panel,
  .landing-header,
  .app-header,
  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card {
    padding: 28px;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
  }

  .landing-nav {
    width: 100%;
    flex-wrap: wrap;
  }

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

  .list-card-heading,
  .payment-row,
  .timeline-card,
  .timeline-tools {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    max-width: none;
  }
}
