:root {
  --navy-950: #10233d;
  --navy-900: #173458;
  --navy-800: #1f3a5f;
  --teal-600: #3f979a;
  --teal-500: #4fa3a5;
  --sky-100: #eef5fb;
  --paper: #fbfdff;
  --ink: #203043;
  --muted: #66788a;
  --line: #c4d2df;
  --line-strong: #9bb1c4;
  --success: #17795d;
  --shadow: 0 18px 44px rgba(17, 41, 72, 0.12);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --page-max: 980px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(79, 163, 165, 0.18), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(31, 58, 95, 0.12), transparent 28%),
    linear-gradient(180deg, #f4f8fc 0%, #edf4fb 100%);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.launcher-shell,
.checklist-shell {
  width: min(var(--page-max), calc(100% - 28px));
  margin: 24px auto 48px;
}

.brand-hero {
  display: grid;
  gap: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(155, 177, 196, 0.7);
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-hero-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 28px 0;
}

.brand-mark {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--navy-950);
  background: #ffffff;
  border: 1px solid rgba(155, 177, 196, 0.72);
  box-shadow: 0 14px 30px rgba(16, 35, 61, 0.08);
  overflow: hidden;
  padding: 8px;
  text-decoration: none;
}

.brand-logo-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.brand-hero h1,
.checklist-title h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

.hero-copy {
  padding: 0 28px 8px;
  display: grid;
  gap: 16px;
}

.hero-copy p,
.support-copy,
.hint-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 0 28px 28px;
}

.week-card,
.summary-card,
.section-card,
.signoff-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(155, 177, 196, 0.72);
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(16, 35, 61, 0.08);
}

.week-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.week-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 163, 165, 0.72);
  box-shadow: 0 16px 30px rgba(16, 35, 61, 0.12);
}

.week-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 11px;
  border-radius: 999px;
  background: #edf7f7;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-card h2,
.section-card h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.1rem;
  line-height: 1.2;
}

.week-card p,
.section-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.week-card strong {
  color: var(--navy-950);
}

.launcher-footer-note {
  padding: 0 28px 28px;
  color: var(--muted);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.launcher-footer-note a {
  color: var(--navy-900);
  font-weight: 700;
}

.checklist-topbar {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.checklist-header {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(155, 177, 196, 0.68);
  border-radius: 30px;
  box-shadow: var(--shadow);
  position: relative;
}

.checklist-title {
  display: flex;
  align-items: start;
  gap: 18px;
}

.checklist-title .brand-mark {
  flex: 0 0 auto;
}

.support-copy {
  max-width: 70ch;
  font-size: 0.98rem;
}

.dog-tag {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  min-width: 168px;
  padding: 12px 14px;
  border: 1.5px solid rgba(16, 35, 61, 0.5);
  border-radius: 18px;
  background: linear-gradient(180deg, #f5f9fc, #ebf1f6);
  color: var(--navy-950);
}

.dog-tag::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 35, 61, 0.42);
  background: #fff;
}

.dog-tag small,
.dog-tag strong,
.dog-tag span {
  display: block;
}

.dog-tag small {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
  font-weight: 800;
}

.dog-tag strong {
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.1;
}

.dog-tag span {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

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

.meta-stack {
  display: grid;
  gap: 12px;
}

.intake-section {
  border: 1px solid rgba(155, 177, 196, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  padding: 12px;
}

.intake-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.intake-section-hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.intake-toggle {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(155, 177, 196, 0.9);
  background: #fff;
  color: var(--navy-900);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

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

.intake-fields {
  margin-top: 10px;
}

.intake-section.is-collapsed .intake-fields {
  display: none;
}

.signoff-card.is-collapsed .signoff-grid {
  display: none;
}

.field-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(155, 177, 196, 0.64);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,247,252,0.92));
}

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

.field-label {
  margin: 0;
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field-card input,
.field-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  font-size: 0.96rem;
}

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

.controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.progress-stack {
  display: grid;
  gap: 6px;
}

.progress-label {
  color: var(--navy-950);
  font-weight: 800;
  font-size: 0.96rem;
}

.progress-bar {
  width: min(280px, 100%);
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #ebf1f7;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-600), var(--navy-800));
  transition: width 220ms ease;
}

.saved-note {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.btn {
  appearance: none;
  border: 1px solid var(--navy-800);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-950));
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 18px;
  cursor: pointer;
}

.btn.secondary {
  background: #fff;
  color: var(--navy-900);
  border-color: rgba(155, 177, 196, 0.9);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.76);
  color: var(--navy-900);
  border-color: rgba(79, 163, 165, 0.42);
}

.summary-card {
  padding: 16px 18px;
}

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

.summary-block {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f5fafc;
  border: 1px solid rgba(155, 177, 196, 0.55);
}

.summary-block span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--teal-600);
}

.summary-block strong {
  color: var(--navy-950);
  font-size: 1rem;
}

.section-stack {
  display: grid;
  gap: 12px;
}

.section-card {
  overflow: hidden;
}

.section-card-head {
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, #f4fbfb 0%, #f9fcfe 100%);
  border-bottom: 1px solid rgba(155, 177, 196, 0.55);
}

.section-card-head h2 {
  margin-bottom: 6px;
}

.section-list {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
}

.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(155, 177, 196, 0.66);
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, transform 140ms ease;
}

.check-item input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--teal-600);
}

.check-item label {
  line-height: 1.42;
  color: var(--ink);
  font-size: 0.97rem;
}

.check-item.is-complete {
  border-color: rgba(63, 151, 154, 0.72);
  background: linear-gradient(180deg, rgba(240, 252, 250, 0.96), rgba(249, 255, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(79, 163, 165, 0.08);
}

.check-item.is-complete label {
  color: #173458;
}

.signoff-card {
  padding: 18px;
}

.signoff-card h2 {
  margin: 0 0 8px;
  color: var(--navy-900);
}

.signoff-note {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
}

.print-only {
  display: none;
}

@media (max-width: 840px) {
  .checklist-shell,
  .launcher-shell {
    width: min(var(--page-max), calc(100% - 18px));
    margin-top: 12px;
  }

  .meta-grid,
  .intake-fields,
  .summary-grid,
  .signoff-grid,
  .launcher-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-hero-head,
  .hero-copy,
  .launcher-grid,
  .launcher-footer-note,
  .checklist-header,
  .intake-section,
  .summary-card,
  .signoff-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .checklist-title {
    flex-direction: column;
    gap: 12px;
  }

  .controls-row {
    align-items: start;
  }

  .dog-tag {
    position: static;
    display: block;
    min-width: 0;
  }

  .action-row .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
