:root {
  --cream: #f7efe3;
  --sand: #ead7bd;
  --wood-light: #d3b58f;
  --ink: #2d241b;
  --muted: #66584b;
  --brown: #6f5138;
  --brown-deep: #2d241b;
  --green: #5a8f55;
  --orange: #b98228;
  --red: #a64d3f;
  --blue-gray: #4f7480;
  --glass: rgba(255, 255, 255, 0.28);
  --glass-strong: rgba(255, 255, 255, 0.42);
  --glass-soft: rgba(255, 255, 255, 0.18);
  --line: rgba(255, 255, 255, 0.56);
  --line-dark: rgba(82, 62, 43, 0.12);
  --shadow-section: 0 28px 80px rgba(70, 49, 30, 0.16);
  --shadow-card: 0 18px 48px rgba(70, 49, 30, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(247, 239, 227, 0.92), rgba(234, 215, 189, 0.86) 46%, rgba(218, 204, 182, 0.92)),
    linear-gradient(90deg, rgba(111, 81, 56, 0.1), rgba(90, 143, 85, 0.08));
  background-attachment: fixed;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(247, 239, 227, 0.45);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 12px 34px rgba(70, 49, 30, 0.08);
}

.nav {
  display: flex;
  gap: 12px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px 22px;
  overflow-x: auto;
}

.nav a {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  font-size: 14px;
  line-height: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 28px rgba(70, 49, 30, 0.1);
}

main {
  width: min(1500px, calc(100% - 44px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.section {
  position: relative;
  scroll-margin-top: 92px;
  margin: 0 0 34px;
  padding: clamp(26px, 3vw, 44px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.18));
  backdrop-filter: blur(26px) saturate(135%);
  box-shadow: var(--shadow-section), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}

.hero-section {
  min-height: min(720px, calc(100vh - 96px));
  display: grid;
  align-content: center;
  gap: 30px;
}

.hero-copy {
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brown);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 1060px;
  margin: 0;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 14px;
  font-size: 21px;
  line-height: 1.28;
  letter-spacing: 0;
}

p {
  line-height: 1.65;
}

.hero-intro,
.section-intro {
  max-width: 960px;
  color: var(--muted);
  font-size: 18px;
}

.section-intro {
  margin-top: -12px;
  margin-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card,
.progress-panel,
.total-box,
.missing-list li {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--glass-strong), var(--glass-soft));
  backdrop-filter: blur(20px) saturate(130%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.card {
  min-height: 168px;
  padding: 24px;
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.74);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.22));
  box-shadow: 0 22px 58px rgba(70, 49, 30, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.card p:last-child,
.section p:last-child {
  margin-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brown), var(--brown-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-weight: 900;
  font-size: 13px;
}

.badge.good {
  background: linear-gradient(135deg, var(--green), #3f7043);
}

.badge.wait {
  background: linear-gradient(135deg, var(--orange), #8f651f);
}

.badge.risk {
  background: linear-gradient(135deg, var(--red), #7c382f);
}

.badge.split {
  background: linear-gradient(135deg, var(--blue-gray), #365965);
}

.amount {
  margin: 10px 0 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 14px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--brown), var(--brown-deep));
  box-shadow: 0 14px 30px rgba(45, 36, 27, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-weight: 900;
  transition: box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  background: linear-gradient(135deg, #7d5d42, var(--brown-deep));
  box-shadow: 0 18px 36px rgba(45, 36, 27, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.table-wrap {
  margin-top: 28px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(20px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 15px;
  border-bottom: 1px solid var(--line-dark);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

th {
  background: rgba(255, 255, 255, 0.26);
  color: var(--brown-deep);
  font-size: 14px;
}

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

.total-row td {
  font-weight: 900;
  background: rgba(111, 81, 56, 0.1);
}

.totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 22px;
}

.total-box {
  padding: 22px;
}

.total-box span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.total-box strong {
  display: block;
  margin-top: 9px;
  font-size: 28px;
}

.clean-list,
.missing-list,
.checklist {
  padding-left: 0;
  list-style: none;
}

.clean-list li,
.missing-list li {
  margin: 10px 0;
}

.missing-list {
  display: grid;
  gap: 16px;
  max-width: 960px;
  margin-top: 22px;
}

.missing-list li {
  margin: 0;
  padding: 18px 20px;
}

.progress-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 24px;
  margin-top: 22px;
}

.progress-track {
  height: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 8px rgba(45, 36, 27, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brown), #9b7654);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: width 240ms ease;
}

.progress-number {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.checklist {
  display: grid;
  gap: 14px;
  margin: 0;
}

.checklist label {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.checklist input {
  appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid rgba(111, 81, 56, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.checklist input:checked {
  border-color: var(--brown);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.86) 47% 56%, rgba(255, 255, 255, 0) 57%),
    linear-gradient(45deg, rgba(255, 255, 255, 0) 37%, rgba(255, 255, 255, 0.86) 38% 49%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(135deg, var(--brown), var(--brown-deep));
}

.checklist input:focus-visible {
  outline: 3px solid rgba(111, 81, 56, 0.24);
  outline-offset: 3px;
}

.checklist input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}

@media (max-width: 760px) {
  main {
    width: min(100% - 24px, 1500px);
    padding: 22px 0 46px;
  }

  .nav {
    gap: 9px;
    padding: 12px;
  }

  .nav a {
    min-height: 40px;
    padding: 11px 14px;
  }

  .section {
    margin-bottom: 22px;
    padding: 24px;
    border-radius: 28px;
  }

  .hero-section {
    min-height: auto;
  }

  h1 {
    font-size: 38px;
  }

  .card,
  .progress-panel,
  .total-box,
  .missing-list li {
    border-radius: 24px;
  }

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

  .progress-number {
    font-size: 34px;
  }
}
