:root {
  --ink: #18212f;
  --muted: #5b6677;
  --paper: #fbf7ef;
  --surface: #ffffff;
  --line: #d9e0dc;
  --green: #236c5a;
  --green-dark: #174b3e;
  --coral: #e76f51;
  --blue: #2d6cdf;
  --amber: #f2b84b;
  --shadow: 0 14px 36px rgba(24, 33, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(16px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 239, 0.96);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.topnav,
.footer {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.topnav a,
.footer a {
  text-decoration: none;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 34px;
}

.panel,
.board-zone,
.product-band,
.interest-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.controls {
  padding: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.intro,
.product-copy p,
.interest-band p {
  color: var(--muted);
}

.quest-form,
.interest-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

select,
input[type="email"] {
  width: 100%;
  border: 1px solid #bfc9c4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}

.button-row,
.buy-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.button-row.compact {
  justify-content: flex-end;
}

.primary,
.secondary,
.icon-button,
.link-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary {
  color: #fff;
  background: var(--green);
}

.primary:hover {
  background: var(--green-dark);
}

.secondary,
.icon-button {
  color: var(--ink);
  background: #f7faf8;
  border-color: var(--line);
}

.board-zone {
  padding: clamp(16px, 2.5vw, 26px);
}

.board-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.quest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.quest-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-height: 440px;
  border: 2px solid #d4e4dd;
  border-top: 9px solid var(--green);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
}

.quest-card[data-energy="active"] {
  border-top-color: var(--coral);
}

.quest-card[data-energy="calm"] {
  border-top-color: var(--blue);
}

.quest-card[data-energy="social"] {
  border-top-color: var(--amber);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 2px 8px;
  background: #edf4f1;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.quest-section {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.quest-section strong {
  color: var(--ink);
}

.quest-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.done-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.quest-card.done {
  opacity: 0.72;
}

.planner-workbench {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.plan-card {
  display: grid;
  gap: 10px;
  min-height: 360px;
  border: 1px solid #d4e4dd;
  border-top: 8px solid var(--blue);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.day-label {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 9px;
  background: #fff4df;
  color: #7c4d0a;
  font-size: 0.78rem;
  font-weight: 900;
}

.product-band,
.proof-band,
.interest-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 34px;
}

.product-band {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 3vw, 32px);
}

.pack-art {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #eef4f1;
}

.checklist {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.proof-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  padding: clamp(18px, 3vw, 30px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-band p,
.value-list {
  color: var(--muted);
}

.value-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.value-list strong {
  color: var(--ink);
}

.status-note,
.form-message {
  color: var(--muted);
  font-size: 0.92rem;
}

.interest-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  padding: clamp(18px, 3vw, 30px);
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 650;
}

.footer {
  justify-content: center;
  flex-wrap: wrap;
  padding: 24px 16px 36px;
}

.print-only {
  display: none;
}

@media (max-width: 900px) {
  .workbench,
  .product-band,
  .proof-band,
  .interest-band {
    grid-template-columns: 1fr;
  }

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

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

  .quest-card {
    min-height: auto;
  }

  .plan-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .topbar,
  .board-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topnav {
    flex-wrap: wrap;
  }

  .button-row.compact {
    justify-content: flex-start;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .controls,
  .product-band,
  .proof-band,
  .interest-band,
  .footer,
  .board-toolbar .button-row {
    display: none !important;
  }

  .workbench,
  .board-zone {
    display: block;
    width: 100%;
    margin: 0;
    box-shadow: none;
    border: 0;
  }

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

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

  .quest-card {
    break-inside: avoid;
    min-height: 0;
  }

  .plan-card {
    break-inside: avoid;
    min-height: 0;
  }
}
