:root {
  --ground: #fff7f0;
  --blush: #fbe6d8;
  --apricot: #f4c9ad;
  --ink: #1d2a23;
  --body: #3e4a43;
  --muted: #66716a;
  --green: #2e5a47;
  --accent: #d9643b;
  --accent-strong: #b84d28;
  --line: #ecd8c8;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--ground); color: var(--body);
  font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 500; font-variation-settings: "SOFT" 100; letter-spacing: -0.02em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; }
p { margin: 0; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

main > section { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { main > section { padding: 0 16px; } }

/* buttons */
.btn {
  display: inline-block; background: var(--ink); color: var(--ground); border: 0; cursor: pointer;
  font: 500 17px/1 var(--sans); padding: 18px 30px; border-radius: 999px; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--green); transform: translateY(-1px); }
.btn-small { padding: 12px 20px; font-size: 15px; }
.btn-light { background: var(--ground); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--accent-strong); }
.quiet { color: var(--ink); font-size: 16px; }
.quiet-btn { background: none; border: 0; padding: 0; cursor: pointer; font: 500 15px var(--sans); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px; background: rgba(255, 247, 240, 0.88); backdrop-filter: blur(10px);
}
.brand { font: 500 20px var(--serif); color: var(--ink); text-decoration: none; font-variation-settings: "SOFT" 100; }
.brand em { color: var(--accent); }
@media (max-width: 600px) { .nav { padding: 12px 16px; } .brand { font-size: 18px; } }

/* hero */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); padding-top: 20px !important; padding-bottom: 60px !important;
}
.hero h1 { font-size: clamp(48px, 7vw, 92px); line-height: 0.98; }
.hero h1 em { display: block; }
.lede { font-size: clamp(19px, 1.8vw, 22px); margin-top: 28px; max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 40px; }
.hero-copy > :not(h1) { animation: rise .8s ease both; }
.hero-copy > :nth-child(2) { animation-delay: .75s; }
.hero-copy > :nth-child(3) { animation-delay: .9s; }
.w { display: inline-block; animation: word .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d) * .08s); }

.hero { overflow-x: clip; }
.table { width: 100%; max-width: 540px; justify-self: center; overflow: visible; }
.table * { vector-effect: non-scaling-stroke; }
.table-top { fill: var(--blush); }
.table-edge { fill: none; stroke: var(--apricot); stroke-width: 1; }
.chair, .chair-back, .plate, .plate-in, .glass, .cutlery { fill: none; stroke: var(--green); stroke-width: 1.25; stroke-linecap: round; }
.chair { fill: var(--ground); }
.plate { fill: #fffaf5; }
.plate-in, .glass, .cutlery { stroke-width: 1; opacity: .7; }
.table-edge, .seat :is(.chair, .chair-back, .plate, .plate-in, .glass, .cutlery) {
  stroke-dasharray: 1; animation: draw 1.1s ease-out both; animation-delay: calc(.2s + var(--i, 0) * .07s);
}
.seat :is(.chair, .chair-back, .plate) { transition: stroke .3s ease, fill .3s ease; }
.seat:hover :is(.chair, .chair-back, .plate) { stroke: var(--accent); }
/* A short streak of light glides round the table edge and slows into your seat (60deg). */
.trail {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: .07 .93; stroke-dashoffset: -.132; opacity: 0;
  filter: drop-shadow(0 0 5px rgba(217,100,59,.55));
  animation: trail 2s cubic-bezier(.33,.0,.15,1) 1.1s both;
}
.halo { fill: var(--accent); opacity: .12; transform-box: fill-box; transform-origin: center; animation: halo 1.2s ease-out 2.7s both; }
.table-top { animation: fade 1s ease both; }
.table-small, .table-date { animation: fade .8s ease 1s both; }
.yours :is(.chair, .chair-back, .plate, .plate-in, .glass, .cutlery) { stroke: var(--accent); opacity: 1; }
.yours .chair { fill: #fbe0d2; animation: draw 1.1s ease-out both, warm .8s ease 3.1s both; animation-delay: calc(.2s + var(--i) * .07s), 3.1s; }
.table-small { font: italic 400 16px var(--serif); fill: var(--muted); }
.table-date { font: 400 28px var(--serif); fill: var(--ink); letter-spacing: -0.01em; }
.your-label { animation: fade .8s ease 3.3s both; }
.table-wrap { will-change: transform; }
.your-label path { fill: none; stroke: var(--accent); stroke-width: 1; }
.your-label text { font: italic 400 17px var(--serif); fill: var(--accent-strong); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 28px; padding-top: 28px !important; }
  .table { max-width: 360px; order: -1; }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes warm { from { fill: var(--ground); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes word { from { opacity: 0; transform: translateY(.45em); filter: blur(8px); } }
@keyframes trail {
  from { stroke-dashoffset: .618; opacity: 0; }
  12% { opacity: 1; }
  78% { opacity: 1; }
  to { stroke-dashoffset: -.132; opacity: 0; }
}
@keyframes halo { from { opacity: 0; transform: scale(.7); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px); } }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* truth */
.truth { padding-top: 40px !important; padding-bottom: 120px !important; text-align: center; }
.truth p { font: 400 clamp(28px, 3.6vw, 42px)/1.25 var(--serif); font-variation-settings: "SOFT" 100; color: var(--ink); max-width: 24ch; margin: 0 auto; text-wrap: balance; }
.truth strong { font-weight: 500; color: var(--accent); }
.source { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--muted); }

/* program */
.program { padding-bottom: 140px !important; }
.sub { margin-top: 12px; font-size: 19px; color: var(--muted); }
.weeks { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.weeks::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: var(--line); }
.weeks li { position: relative; padding-right: 16px; font: 500 19px/1.3 var(--serif); color: var(--ink); font-variation-settings: "SOFT" 100; }
.weeks span {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%;
  background: var(--ground); border: 2px solid var(--line); font: 500 17px var(--sans); color: var(--green);
  position: relative; transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.weeks li:hover span { background: var(--green); border-color: var(--green); color: var(--ground); }
.week-toggle {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; color: inherit; font-variation-settings: inherit;
}
.week-toggle::after {
  content: "+"; display: inline-block; margin-left: 6px; font: 400 18px var(--sans); color: var(--accent);
  transition: transform .25s ease;
}
.week-toggle[aria-expanded="true"]::after { transform: rotate(45deg); }
.week-toggle:hover { color: var(--accent-strong); }
.week-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.week-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.week-detail > p { overflow: hidden; visibility: hidden; transition: visibility .3s; font: 400 15px/1.5 var(--sans); color: var(--muted); }
.open .week-detail { grid-template-rows: 1fr; }
.open .week-detail > p { padding-top: 8px; visibility: visible; }
.weeks .demo span { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 860px) {
  .weeks { grid-template-columns: 1fr; gap: 14px; }
  .weeks::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; }
  .weeks { gap: 22px; }
  .weeks li { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; padding-right: 0; }
  .weeks span { margin: 0; grid-row: span 2; }
  .week-toggle { padding-top: 10px; }
}
.offer {
  margin-top: 64px; padding: 32px 36px; border-radius: 28px; background: var(--blush);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.price { font: 500 40px/1.1 var(--serif); color: var(--ink); font-variation-settings: "SOFT" 100; }
.price span { font: 400 17px var(--sans); color: var(--muted); margin-left: 8px; }
.fine { margin-top: 8px; font-size: 16px; }
@media (max-width: 600px) { .offer { padding: 26px 22px; } .offer .btn { width: 100%; text-align: center; } .price span { display: block; margin: 6px 0 0; } }

/* check */
.check { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; padding-bottom: 140px !important; }
@media (max-width: 860px) { .check { grid-template-columns: 1fr; gap: 28px; } }
.check-box { background: var(--green); color: var(--ground); border-radius: 28px; padding: 34px; min-height: 380px; }
@media (max-width: 600px) { .check-box { padding: 24px 20px; } }
.quiz-progress { height: 4px; border-radius: 99px; background: rgba(255,255,255,.18); margin-bottom: 26px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--apricot); transition: width .3s ease; }
.q fieldset { border: 0; margin: 0; padding: 0; }
.q-legend { font: 500 24px/1.3 var(--serif); color: var(--ground); margin-bottom: 20px; padding: 0; font-variation-settings: "SOFT" 100; }
.q-options { display: grid; gap: 10px; }
.q-option { cursor: pointer; }
.q-option input { position: absolute; opacity: 0; pointer-events: none; }
.q-option span {
  display: block; padding: 14px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
  font-size: 17px; transition: background .15s ease, color .15s ease;
}
.q-option:hover span { background: rgba(255,255,255,.1); }
.q-option input:checked + span { background: var(--ground); color: var(--ink); }
.q-option input:focus-visible + span { outline: 2px solid var(--apricot); outline-offset: 2px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.quiz-count { margin-left: auto; font-size: 14px; color: rgba(255,247,240,.7); }
.check-box .quiet-btn { color: rgba(255,247,240,.8); }
.result h3 { font-size: 36px; color: var(--ground); margin-bottom: 12px; }
.result p { color: rgba(255,247,240,.85); }
.result-next { margin-top: 14px; color: var(--ground) !important; font-weight: 500; }
.result a { color: var(--apricot); }
.capture { margin: 28px 0 20px; }
.capture label { display: block; font-size: 16px; margin-bottom: 10px; }
.capture-row { display: flex; gap: 10px; }
.capture input { flex: 1; min-width: 0; font: 400 17px var(--sans); padding: 15px 20px; border-radius: 999px; border: 0; color: var(--ink); }
.capture .btn { background: var(--accent); }
.capture .btn:hover { background: var(--accent-strong); }
.capture-done { margin-top: 10px; color: var(--apricot) !important; }
@media (max-width: 480px) { .capture-row { flex-direction: column; } }

/* about */
.about { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: center; padding-bottom: 140px !important; max-width: 980px !important; }
.portrait {
  width: 260px; height: 325px; object-fit: cover; object-position: 50% 25%;
  border-radius: 20px; background: var(--apricot);
}
.about p { margin-top: 18px; font-size: 19px; max-width: 52ch; }
.about .proof { font-size: 16px; color: var(--muted); }
.proof strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 28px; } .portrait { width: 200px; height: 250px; } }

/* ways */
.ways { padding-bottom: 140px !important; }
.ways ul { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.ways a {
  display: grid; grid-template-columns: 260px 1fr auto; gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--body);
}
.ways strong { font: 500 24px var(--serif); color: var(--ink); font-variation-settings: "SOFT" 100; }
.ways i { font-style: normal; font-size: 24px; color: var(--accent); transition: transform .2s ease; }
.ways a:hover i { transform: translateX(6px); }
.ways a:hover strong { color: var(--accent-strong); }
@media (max-width: 700px) { .ways a { grid-template-columns: 1fr auto; gap: 4px 16px; } .ways span { grid-row: 2; } .ways i { grid-row: 1 / 3; grid-column: 2; } }

/* faq */
.faq { max-width: 820px !important; padding-bottom: 140px !important; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 500 21px var(--serif); color: var(--ink); font-variation-settings: "SOFT" 100; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font: 300 30px var(--sans); color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; }

/* final */
.final {
  max-width: none !important; margin: 0 !important; background: var(--green); text-align: center;
  padding: 120px 28px !important; display: grid; justify-items: center; gap: 36px;
}
.final h2 { color: var(--ground); font-size: clamp(40px, 6vw, 72px); }
.final h2 em { color: var(--apricot); }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px 28px; background: var(--ink); color: rgba(255,247,240,.7); font-size: 14px; }
.footer a { color: var(--ground); }

/* timeline draws in when the program scrolls into view */
.weeks::before { transform-origin: left top; }
.in .weeks::before { animation: grow-x 1.6s cubic-bezier(.3,.7,.2,1) .2s both; }
.in .weeks li { animation: pop-in .7s ease both; animation-delay: calc(.15s + var(--i) * .16s); }
.in .weeks .demo span { animation: glow 2.4s ease-in-out 1.4s 2; }
@keyframes glow { 50% { box-shadow: 0 0 0 10px rgba(217,100,59,.18); } }
@media (max-width: 860px) { .in .weeks::before { animation-name: grow-y; } }
.count { display: inline-block; min-width: 1.15em; text-align: right; font-variant-numeric: tabular-nums; }

/* claim dialog */
.claim {
  width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto;
  border: 0; border-radius: 28px; padding: 40px; background: var(--ground); color: var(--body);
  box-shadow: 0 30px 80px rgba(29,42,35,.25);
}
.claim::backdrop { background: rgba(29,42,35,.45); backdrop-filter: blur(4px); }
.claim[open] { animation: rise .35s ease both; }
.claim h2 { font-size: 34px; }
.claim .sub { margin: 6px 0 22px; color: var(--muted); }
.claim label { display: block; font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.claim label b { font-weight: 500; }
.claim label span { font-weight: 400; color: var(--muted); }
.claim :is(input, select, textarea) {
  display: block; width: 100%; margin-top: 6px; font: 400 17px var(--sans); color: var(--ink);
  padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
}
.claim :is(input, select, textarea):focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.claim textarea { resize: vertical; }
.claim .btn { width: 100%; margin-top: 8px; cursor: pointer; border: 0; }
.claim-note { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.claim-error { margin-top: 12px; font-size: 15px; color: var(--accent-strong); }
.claim-done p { margin: 12px 0 24px; }
.claim-close {
  position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
}
.claim-close:hover { background: var(--blush); color: var(--ink); }
@media (max-width: 480px) { .claim { padding: 32px 20px 24px; } }
