.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.nav { position: sticky; top: 0; z-index: 20; background: rgb(250 246 238 / 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--t-md)/1 var(--font-display); color: var(--ink); text-decoration: none; }
.nav nav { display: flex; gap: 4px; }
.nav nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-pill); color: var(--roast); font-size: var(--t-sm); font-weight: 500; text-decoration: none; transition: background var(--d-state); }
.nav nav a:hover { background: var(--crema); }

main > section { display: grid; align-items: center; padding-block: clamp(64px, 12vh, 120px); scroll-margin-top: 64px; }
main > .hero { min-height: calc(100svh - 64px); padding-block: var(--s-7); }
.band { background: var(--crema); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink h2, .band--ink h3 { color: var(--paper); }
h2 { font-size: var(--t-3xl); margin-bottom: var(--s-5); }
h3 { font-size: var(--t-lg); }
.eyebrow { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--copper-deep); font-weight: 600; margin-bottom: var(--s-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.sub { font-size: var(--t-md); color: var(--roast); max-width: 46ch; margin-bottom: var(--s-6); }
.hint { color: var(--muted); font-size: var(--t-sm); }
.small { font-size: var(--t-sm); color: var(--muted); }

/* hero */
.hero__in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); align-items: center; }
.hero h1 { font-size: var(--t-4xl); letter-spacing: -0.02em; max-width: 12ch; margin-bottom: var(--s-5); }
.lede { font-size: var(--t-md); color: var(--roast); max-width: 44ch; margin-bottom: var(--s-6); }
[data-enter] { animation: rise var(--d-enter) calc(var(--i, 0) * 110ms) var(--ease-pour) both; }
.hero__demo { position: relative; display: grid; justify-items: center; gap: var(--s-4); }
.steam { position: absolute; top: -52px; left: 50%; margin-left: -32px; stroke: var(--copper); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.steam path { stroke-dasharray: 60; animation: steam 3.4s var(--ease-pour) infinite; }
.steam path + path { animation-delay: 1.2s; }
.phone { width: min(100%, 340px); background: var(--milk); border: 8px solid var(--ink); border-radius: 34px; box-shadow: var(--shadow-2); overflow: hidden; }
.phone__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-display); }
.phone__bar span:last-child { margin-left: auto; font: 500 var(--t-xs)/1 var(--font-body); color: var(--muted); }
.phone__body { position: relative; height: 380px; }
.panel { position: absolute; inset: 0; padding: 20px 18px; display: grid; align-content: start; gap: 10px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity var(--d-state) var(--ease-pour), transform var(--d-enter) var(--ease-pour); }
.panel.on { opacity: 1; transform: none; pointer-events: auto; }
.panel h2 { font-size: var(--t-lg); margin: 0 0 4px; }
.opt, .bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; transition: all var(--d-state) var(--ease-pour); }
.opt b, .bar b { display: block; line-height: 1.2; } .opt small, .bar small { display: block; color: var(--muted); font-size: var(--t-xs); }
.bar em { margin-left: auto; font-style: normal; min-height: 26px; padding: 0 10px; font-size: var(--t-xs); }
.av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--copper); color: #fff; font-weight: 600; flex: none; }
.av--b { background: var(--roast); } .av--c { background: var(--leaf); }
.panel.on .opt:first-of-type, .panel.on .bar:first-of-type { animation: pick 500ms 900ms var(--ease-pour) forwards; }
.panel.on .opt:first-of-type small { color: inherit; opacity: 0.8; }
.month { font-weight: 600; font-size: var(--t-sm); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: var(--t-xs); }
.cal span { display: grid; place-items: center; height: 34px; border-radius: 50%; color: var(--roast); }
.cal .h { color: var(--muted); font-weight: 600; height: 22px; }
.cal .sel { background: transparent; }
.panel.on .cal .sel { animation: pick-d 450ms 700ms var(--ease-pour) forwards; }
.tick { stroke: var(--leaf); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; justify-self: center; margin-top: 12px; }
.tick circle { stroke-dasharray: 150; stroke-dashoffset: 150; } .tick path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.panel.on .tick circle { animation: draw 700ms var(--ease-pour) forwards; } .panel.on .tick path { animation: draw 500ms 500ms var(--ease-pour) forwards; }
.panel[data-i="3"] { text-align: center; } .panel[data-i="3"] h2 { font-size: var(--t-xl); }
.phone__dots { display: flex; justify-content: center; gap: 2px; padding: 4px 0 8px; }
.phone__dots button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.phone__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: all var(--d-state) var(--ease-pour); }
.phone__dots button[aria-selected="true"]::before { width: 24px; border-radius: 99px; background: var(--copper); }

/* quote */
.quote { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); align-items: center; }
.qform { display: grid; gap: var(--s-5); max-width: 460px; }
.qform legend { font-weight: 600; font-size: var(--t-sm); padding: 0; margin-bottom: 6px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
input[type="range"] { accent-color: var(--copper); width: 100%; height: 44px; }
.chip[disabled] { opacity: 0.4; cursor: not-allowed; }
.receipt { display: grid; gap: var(--s-4); padding: var(--s-6); }
.receipt__total { font: 600 clamp(2.4rem, 1.5rem + 3vw, 3.6rem)/1 var(--font-display); }
.receipt dl { margin: 0; display: grid; gap: 8px; }
.receipt dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); font-size: var(--t-sm); }
.receipt dt { color: var(--muted); } .receipt dd { margin: 0; font-weight: 600; }
.receipt .btn { justify-self: start; }
.setup-hint { margin-top: 8px; }

/* setups */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.setup { display: grid; gap: var(--s-3); color: inherit; text-decoration: none; align-content: start; padding: var(--s-6); }
.setup svg { width: 100%; height: auto; max-height: 150px; stroke: var(--roast); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; background: var(--crema); border-radius: 10px; padding: 14px; transition: background var(--d-state); }
.setup:hover svg { background: #ecdcc1; }
.setup:hover svg * { stroke: var(--copper-deep); }
.setup svg * { transition: stroke var(--d-state); }
.setup p { color: var(--roast); }
.setup .meta { font-size: var(--t-sm); font-weight: 600; color: var(--copper-deep); margin-top: var(--s-2); }

/* how */
.steps { list-style: none; margin: 0 0 var(--s-7); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.steps li { display: grid; gap: var(--s-3); align-content: start; border-top: 1.5px solid rgb(250 246 238 / 0.3); padding-top: var(--s-5); }
.steps .n { font: 600 var(--t-4xl)/1 var(--font-display); color: var(--steam); }
.steps p { color: #e6d9c4; max-width: 34ch; }

/* manage */
.manage { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); align-items: center; }
.appt { display: grid; gap: var(--s-4); }
.appt .booking { box-shadow: none; }
.actions { gap: var(--s-2); }
.toast[hidden], .slots[hidden] { display: none; }
.slots { display: grid; gap: 8px; animation: rise var(--d-state) var(--ease-pour); }
.toast { animation: rise var(--d-state) var(--ease-pour); }
.appt.is-cancelled .booking { opacity: 0.6; }

/* close */
.close { background: var(--copper-deep); color: #fff; text-align: center; }
.close h2 { color: #fff; font-size: var(--t-4xl); margin-bottom: var(--s-6); }
.close .row { justify-content: center; }
.close .btn { --bg: var(--paper); --fg: var(--ink); }
.close .btn:hover { --bg: var(--crema); }
.close .btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.close .btn--ghost:hover { --bg: #fff; --fg: var(--copper-deep); }
.foot { padding: var(--s-6) 0; }
.foot__in { display: grid; justify-items: start; gap: 12px; }
.foot p { color: var(--muted); font-size: var(--t-sm); }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes steam { 0% { stroke-dashoffset: 60; opacity: 0; } 30% { opacity: 1; } 100% { stroke-dashoffset: -60; opacity: 0; } }
@keyframes pick { to { background: var(--ink); color: var(--paper); border-color: var(--ink); } }
@keyframes pick-d { to { background: var(--copper); color: #fff; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
  .nav nav { display: none; }
  main > .hero { min-height: 0; }
  .hero__in, .quote, .manage, .cards3, .steps { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero__demo { margin-top: var(--s-7); }
  .hero h1 { max-width: 14ch; }
  .btn { width: auto; }
}
@media (max-width: 520px) {
  .row .btn { width: 100%; }
  .row .btn--sm { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  [data-enter] { opacity: 1; transform: none; }
  .panel { transform: none; }
  .opt:first-of-type, .bar:first-of-type { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .cal .sel { background: var(--copper); color: #fff; }
  .tick circle, .tick path { stroke-dashoffset: 0; }
  .steam path { stroke-dashoffset: 0; opacity: 0.7; }
}

@media (pointer: coarse), (max-width: 900px) {
  .chip, .btn--sm { min-height: 44px; }
}
