:root {
  --background: #fff7ef;
  --text: #2b2b2b;
  --muted: #6b5a4d;
  --primary: #d63b6b;
  --primary-strong: #b91f54;
  --accent: #2faf9e;
  --secondary: #ffd766;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --border: #ead8c7;
  --warm: #fff0d8;
  --shadow: 0 18px 50px rgb(80 42 23 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--border);
  background: rgb(255 247 239 / 92%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--primary);
  font-size: 20px;
  font-weight: 950;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
}

.public-nav a {
  border-radius: 7px;
  padding: 10px 11px;
  color: #463a32;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.public-nav a:hover {
  background: var(--warm);
}

.header-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgb(214 59 107 / 18%);
}

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

.button.secondary {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: #463a32;
  box-shadow: none;
}

.page-section,
.band {
  padding: clamp(44px, 7vw, 76px) clamp(16px, 4vw, 52px);
}

.page-section {
  max-width: 1240px;
  margin: 0 auto;
}

.band {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.hero,
.split,
.form-layout,
.demo-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(26px, 5vw, 52px);
  align-items: center;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  color: var(--primary);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 950;
  line-height: 1.02;
}

h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 950;
  line-height: 1.06;
}

h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 950;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.lead,
.hero-copy p {
  max-width: 640px;
  font-size: 18px;
}

.hero-media {
  min-height: 380px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 30px clamp(16px, 4vw, 52px);
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.stats-band div,
.mini-card {
  min-height: 104px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  padding: 18px;
}

.stats-band strong,
.mini-card b {
  display: block;
  color: var(--primary);
  font-size: 34px;
  font-weight: 950;
}

.stats-band span,
.mini-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.info-tile,
.tag {
  border-radius: 7px;
  background: white;
  padding: 14px 16px;
  color: #493c34;
  font-size: 14px;
  font-weight: 900;
}

.card,
.need-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  padding: 24px;
  box-shadow: var(--shadow);
}

.section-head {
  max-width: 1240px;
  margin: 0 auto 28px;
}

.section-head p {
  max-width: 660px;
}

.need-grid,
.project-grid,
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.need-card {
  box-shadow: none;
}

.need-card span,
.tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  background: var(--warm);
  color: #7a4c08;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.need-card strong {
  display: block;
  margin-top: 18px;
  color: var(--accent);
  font-size: 14px;
}

.progress-row {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 180px) auto;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 850;
}

meter {
  width: 100%;
  height: 12px;
}

.form-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  align-items: start;
}

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

label {
  display: grid;
  gap: 7px;
  color: #493c34;
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fffdf9;
  padding: 12px 13px;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(214 59 107 / 24%);
  outline-offset: 2px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
}

.clean-list,
.check-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  padding: 14px;
}

.clean-list span {
  color: var(--muted);
  font-size: 14px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-weight: 750;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.timeline article {
  border-left: 5px solid var(--accent);
  border-radius: 7px;
  background: white;
  padding: 18px 20px;
}

.timeline time {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 950;
}

.demo-shell {
  align-items: stretch;
}

.demo-sidebar {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffdf9;
  padding: 20px;
}

.demo-tab {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  padding: 12px;
  color: #493c34;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.demo-tab.active,
.demo-tab:hover {
  border-color: var(--border);
  background: white;
  color: var(--primary);
}

.demo-panel {
  min-height: 380px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  padding: 26px;
  box-shadow: var(--shadow);
}

.demo-view {
  display: none;
}

.demo-view.active {
  display: block;
}

table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 13px 10px;
  text-align: left;
}

th {
  color: #493c34;
  font-size: 12px;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 38px clamp(16px, 4vw, 52px);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

code {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
  padding: 2px 5px;
}

@media (max-width: 1050px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .public-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .split,
  .form-layout,
  .demo-shell {
    grid-template-columns: 1fr;
  }

  .stats-band,
  .need-grid,
  .project-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 10px 14px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .button {
    flex: 1;
    padding-inline: 10px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .stats-band,
  .need-grid,
  .project-grid,
  .mini-grid,
  .info-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .progress-row {
    grid-template-columns: 1fr auto;
  }

  .progress-row meter {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
