:root {
  --ink: #132924;
  --muted: #5d6c68;
  --paper: #f5f3ec;
  --card: #fffdf8;
  --line: #dce3dd;
  --green: #1d6555;
  --green-dark: #12493e;
  --mint: #c8ead9;
  --lime: #dff19b;
  --coral: #ed765f;
  --shadow: 0 18px 54px rgba(20, 52, 45, .10);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 90% 5%, #e7f2d0 0, transparent 27rem), var(--paper); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.hidden { display: none !important; }

.topbar {
  width: min(100% - 32px, 1040px);
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--lime); }
.quiet-button { border: 1px solid var(--line); background: rgba(255,255,255,.55); color: var(--green-dark); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.topnav { display: flex; align-items: center; gap: 8px; }
.topnav a { text-decoration: none; font-size: .9rem; }

main { width: min(100% - 32px, 1040px); min-height: calc(100vh - 150px); margin: 0 auto; }
.shell { max-width: 720px; margin: 0 auto; padding: 24px 0 56px; }
.hero { padding: clamp(38px, 8vw, 84px) 0 70px; display: grid; gap: 36px; }
.catalog { padding: clamp(34px, 7vw, 72px) 0 70px; }
.eyebrow { display: inline-flex; width: fit-content; border: 1px solid #b7cec3; border-radius: 999px; padding: 8px 12px; color: var(--green); font-size: .79rem; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 20px; font-size: clamp(2.55rem, 8vw, 5.4rem); line-height: .98; letter-spacing: -.062em; font-weight: 760; }
h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 5vw, 2.75rem); line-height: 1.05; letter-spacing: -.045em; }
h3 { margin-bottom: 8px; font-size: 1.05rem; }
.lead { max-width: 650px; color: #425650; font-size: clamp(1.06rem, 2vw, 1.28rem); line-height: 1.58; }
.microcopy, .muted { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.hero-actions, .button-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.primary, .secondary, .option {
  min-height: 50px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.primary { padding: 14px 22px; background: var(--green); color: white; font-weight: 720; box-shadow: 0 8px 24px rgba(29,101,85,.18); }
.primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.primary:disabled { opacity: .48; cursor: wait; transform: none; }
.secondary { padding: 13px 18px; border: 1px solid #b9cac2; background: transparent; color: var(--green-dark); font-weight: 680; }
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.product-card { display: flex; min-height: 245px; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.9); box-shadow: var(--shadow); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.product-card:hover { transform: translateY(-2px); border-color: #9fbcb0; }
.product-card h2 { margin: 28px 0 10px; font-size: clamp(1.45rem, 3vw, 2rem); }
.product-card-head, .product-card-foot, .offer-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.product-card-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); color: var(--green-dark); font-weight: 700; }
.product-detail h1 { margin: 24px 0 18px; font-size: clamp(2.5rem, 7vw, 4.7rem); }
.offer-line { margin: 26px 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.offer-line h3 { margin: 4px 0 0; }
.legal-consent { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.legal-consent input { flex: 0 0 auto; margin-top: 3px; }
.legal-consent a { color: var(--green-dark); }
.product-detail > .button-link { margin-left: 8px; }

.cycle { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; }
.cycle li { min-height: 76px; padding: 12px 9px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.54); font-size: .76rem; line-height: 1.25; }
.cycle span { display: block; margin-bottom: 9px; color: var(--coral); font-weight: 800; }

.card { border: 1px solid rgba(202,214,207,.9); border-radius: 24px; background: rgba(255,253,248,.92); box-shadow: var(--shadow); padding: clamp(20px, 5vw, 38px); }
.card + .card { margin-top: 16px; }
.empty-state { max-width: 720px; margin-top: 28px; }
.field-label { display: block; margin-top: 24px; color: var(--green-dark); font-weight: 700; }
.top-note { border-left: 3px solid var(--coral); padding-left: 14px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.step-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.step-count { color: var(--muted); white-space: nowrap; font-size: .86rem; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e3e5de; margin: 0 0 30px; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #65a57e); transition: width .25s ease; }
.question { font-size: clamp(1.35rem, 4.5vw, 2rem); line-height: 1.28; letter-spacing: -.025em; }
.options { display: grid; gap: 10px; margin-top: 26px; }
.option { width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left; padding: 14px 16px; border: 1px solid var(--line); background: white; color: var(--ink); }
.option:hover, .option:focus-visible { border-color: var(--green); background: #f2faf4; outline: none; }
.option span:last-child { color: #9aaba5; }

.result-head { margin-bottom: 26px; }
.dimension { padding: 20px 0; border-top: 1px solid var(--line); }
.dimension:first-of-type { border-top: 0; }
.dimension-line { display: flex; justify-content: space-between; gap: 15px; align-items: baseline; }
.dimension-value { font-size: 1.45rem; font-weight: 780; }
.bar { height: 11px; margin: 12px 0; overflow: hidden; border-radius: 999px; background: #e8e8e1; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--green)); }
.indicators { padding-left: 20px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.caveat { margin: 22px 0; padding: 16px; border-radius: 15px; background: #f0eee6; color: #59645f; font-size: .87rem; line-height: 1.55; }

.protocol-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 26px; }
.chip { padding: 7px 10px; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-size: .8rem; font-weight: 700; }
.stage-list { padding: 0; list-style: none; margin: 22px 0; }
.stage-list li { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 15px 0; border-top: 1px solid var(--line); }
.stage-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #edf1e8; color: var(--green); font-size: .8rem; font-weight: 800; }
.stage-list .done .stage-number { background: var(--green); color: white; }
.stage-list .locked { opacity: .52; }

.activity { padding: 18px 0; border-top: 1px solid var(--line); }
.activity-type { color: var(--coral); font-weight: 760; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
textarea, input[type="text"], .text-input { width: 100%; min-height: 48px; margin: 12px 0; border: 1px solid #cbd5cf; border-radius: 13px; background: white; color: var(--ink); padding: 13px 14px; resize: vertical; }
textarea:focus, input:focus { border-color: var(--green); outline: 3px solid rgba(29,101,85,.1); }
.done-label { color: var(--green); font-weight: 720; }
.progress-number { font-size: clamp(3.6rem, 15vw, 7rem); line-height: .9; letter-spacing: -.07em; font-weight: 790; }
.change-grid { display: grid; gap: 10px; margin: 24px 0; }
.change-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.delta { font-weight: 800; color: var(--green); }
.delta.up { color: var(--coral); }
.empty { text-align: center; padding: 70px 20px; }
.error { border-color: #e5a79b; background: #fff5f1; color: #78372b; }
.loading { min-height: 55vh; display: grid; place-items: center; color: var(--muted); }

footer { width: min(100% - 32px, 1040px); margin: 0 auto; border-top: 1px solid var(--line); padding: 24px 0 34px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
footer p { max-width: 680px; }

@media (max-width: 760px) {
  .cycle { grid-template-columns: repeat(2, 1fr); }
  .cycle li:last-child { grid-column: 1 / -1; }
  .hero { padding-top: 28px; }
  .primary, .secondary { width: 100%; }
  .hero-actions .microcopy { width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .product-detail > .button-link { margin: 10px 0 0; }
  .topbar { width: min(100% - 20px, 1040px); }
  .topnav { gap: 5px; }
  .topnav .quiet-button { padding: 8px 10px; font-size: .8rem; }
}

@media (max-width: 460px) {
  .brand > span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
