:root {
  --black: #050505;
  --charcoal: #141417;
  --charcoal-2: #202126;
  --white: #ffffff;
  --silver: #d9dce1;
  --silver-dark: #8d929b;
  --steel: #eef0f2;
  --red: #d71920;
  --red-bright: #e31b23;
  --red-dark: #9f1018;
  --gray-50: #f5f6f7;
  --gray-100: #e2e4e8;
  --gray-300: #b7bcc5;
  --gray-700: #363941;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--black);
  background:
    radial-gradient(circle at 18% 0, rgba(217, 220, 225, 0.12), transparent 13rem),
    linear-gradient(145deg, rgba(215, 25, 32, 0.16), transparent 19rem),
    linear-gradient(180deg, var(--black) 0 10.5rem, var(--charcoal) 10.5rem 14rem, var(--gray-50) 14rem 100%);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 10px 14px 32px;
}

.hero {
  color: var(--white);
  padding: 8px 2px 12px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  object-position: center;
  padding: 0;
  filter: invert(17%) sepia(100%) saturate(3855%) hue-rotate(348deg) brightness(101%) contrast(103%);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand-pill {
  max-width: 54%;
  padding: 7px 10px;
  color: var(--silver);
  background: rgba(20, 20, 23, 0.82);
  border: 1px solid rgba(217, 220, 225, 0.24);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0 2px;
  max-width: 18rem;
  font-size: clamp(1.75rem, 9vw, 3rem);
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.hero p {
  max-width: 34rem;
  margin: 0;
  color: var(--silver);
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 700;
}

.progress-panel {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 8px 10px;
  color: var(--white);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(180deg, var(--charcoal-2), var(--black));
  border: 1px solid rgba(217, 220, 225, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#progressLabel {
  color: var(--silver);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

#progressPercent {
  color: var(--white);
  font-size: 14px;
  line-height: 1;
}

.progress-track {
  height: 5px;
  margin: 8px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(217, 220, 225, 0.28);
  border-radius: 999px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  border-radius: inherit;
  box-shadow: 0 0 10px rgba(227, 27, 35, 0.48);
  transition: width 180ms ease;
}

.control-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.control-button {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.expand-button {
  color: var(--black);
  background: var(--white);
  border: 1px solid rgba(217, 220, 225, 0.5);
}

.expand-button:hover,
.expand-button:focus-visible {
  border-color: rgba(227, 27, 35, 0.8);
  box-shadow: 0 0 0 2px rgba(227, 27, 35, 0.16);
}

.reset-button {
  color: var(--white);
  background: var(--black);
  border: 1px solid rgba(217, 220, 225, 0.22);
}

.reset-button:hover,
.reset-button:focus-visible {
  border-color: rgba(227, 27, 35, 0.8);
  box-shadow: 0 0 0 2px rgba(227, 27, 35, 0.16);
}

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

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.section {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.section-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  padding: 10px 12px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(215, 25, 32, 0.28), transparent 42%),
    linear-gradient(180deg, var(--charcoal-2), var(--black));
  border: 0;
  border-left: 3px solid var(--red);
  text-align: left;
  cursor: pointer;
}

.section-toggle:hover,
.section-toggle:focus-visible {
  border-left-color: var(--red-bright);
  box-shadow: inset 3px 0 0 rgba(227, 27, 35, 0.2);
}

.section-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.section-meta {
  display: block;
  margin-top: 4px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.section:not(.is-collapsed) .section-meta {
  color: #e7a4a8;
}

.chevron {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--red-bright);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(217, 220, 225, 0.24);
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 900;
  transition: transform 160ms ease;
}

.section.is-collapsed .chevron {
  color: var(--white);
}

.section.is-collapsed .chevron {
  transform: rotate(-90deg);
}

.items {
  display: grid;
  gap: 2px;
  padding: 0 10px 12px;
}

.section.is-collapsed .items {
  display: none;
}

.check-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.check-item:hover {
  background: rgba(215, 25, 32, 0.04);
}

.check-item:last-child {
  border-bottom: 0;
}

.check-item input {
  width: 34px;
  height: 34px;
  margin: 0;
  accent-color: var(--red);
  cursor: pointer;
}

.check-item input:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.item-text {
  color: var(--black);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.28;
}

.check-item:has(input:checked) .item-text {
  color: var(--gray-700);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
}

.check-item:has(input:checked) {
  background: linear-gradient(90deg, rgba(215, 25, 32, 0.1), rgba(215, 25, 32, 0.025));
  border-bottom-color: rgba(215, 25, 32, 0.22);
}

.note {
  color: var(--red);
  font-weight: 900;
}

@media (min-width: 640px) {
  .app-shell {
    padding-top: 16px;
  }

  .hero {
    padding-bottom: 16px;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .progress-panel {
    padding: 10px 12px;
  }

  .control-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding-top: 6px;
  }

  .hero {
    padding: 14px 0;
  }

  .brand-row {
    min-height: 36px;
  }

  .hero h1 {
    max-width: none;
    margin: 6px 0 0;
    font-size: 20px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .hero p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.25;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .brand-pill {
    padding: 5px 8px;
    font-size: 11px;
  }

  .progress-panel {
    padding: 8px 10px;
  }

  #progressPercent {
    font-size: 14px;
  }

  .progress-track {
    height: 5px;
    margin: 7px 0;
  }

  .control-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .control-button {
    min-height: 38px;
    padding: 0 10px;
  }

  .checklist {
    margin-top: 8px;
  }

  .section-toggle {
    min-height: 0;
    padding: 9px 12px;
  }

  .section-title {
    font-size: 14px;
  }

  .section-meta {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
  }

  .chevron {
    width: 30px;
    height: 30px;
  }

  .check-item {
    grid-template-columns: 40px 1fr;
    min-height: 52px;
    padding: 8px 8px;
  }

  .check-item input {
    width: 30px;
    height: 30px;
  }

  .item-text {
    font-size: 15px;
  }
}
