/* Vivorena — brand colors from Vivorena_Guide: lime #D0FA3F, emerald #0CB076, dark green #031913 */
:root {
  --ink: #031913;
  --ink-soft: #1d2f29;
  --text: #33433d;
  --muted: #66766f;
  --emerald: #0cb076;
  --emerald-text: #087a52;
  --lime: #d0fa3f;
  --lime-hover: #c2ee2a;
  --bg: #ffffff;
  --bg-alt: #f3f5f1;
  --line: #e1e6df;
  --danger: #b4321f;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.center { text-align: center; }
.section-title { display: grid; gap: 10px; margin-bottom: 44px; }
.section-title.center { justify-items: center; }
.section-title p:not(.kicker) { max-width: 640px; color: var(--muted); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 6px; border: 1.5px solid transparent;
  font-family: var(--serif); font-size: 1.12rem; font-weight: 500; text-transform: uppercase; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }
.btn-line { background: #fff; border-color: #c9d1cc; color: var(--ink); font-family: var(--sans); font-size: .85rem; font-weight: 700; }
.btn-line:hover { border-color: var(--ink); }
.btn-line-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; font-family: var(--sans); font-size: .85rem; font-weight: 700; }
.btn-line-light:hover { border-color: #fff; }
.btn-lg { min-height: 56px; padding: 0 30px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 78px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 40px; height: auto; }
.logo b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1; color: var(--ink); letter-spacing: -.01em; }
.logo small { display: block; font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--lime); }
.header-cta { display: flex; gap: 18px; align-items: center; }
.header-phone { font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.header-cta .btn { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 6px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
@media (max-width: 1100px) {
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -16px rgba(0,0,0,.25); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .menu-btn { display: grid; place-items: center; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 640px) {
  .header-phone, .logo small { display: none; }
  .site-header .wrap { gap: 12px; height: 68px; }
  .nav { top: 68px; }
  .logo b { font-size: 1.45rem; }
}
@media (max-width: 560px) { .hide-sm { display: none !important; } }

section { padding: clamp(64px, 8vw, 104px) 0; }
.alt { background: var(--bg-alt); }
.dark { background: var(--ink); color: #c9d6d0; }
.dark h2, .dark h3 { color: #fff; }

/* Hero */
.hero { position: relative; padding: 0; min-height: 640px; display: grid; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 34%, rgba(255,255,255,.55) 56%, rgba(255,255,255,0) 72%); }
.hero .wrap { position: relative; z-index: 1; padding: 72px 0; }
.hero-copy { max-width: 600px; }
.hero h1 { margin-bottom: 26px; }
.ticks { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 9px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.ticks li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 3px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23031913' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-badges div { display: flex; align-items: center; gap: 10px; font-size: .82rem; line-height: 1.35; }
.hero-badges b { display: block; color: var(--ink); font-size: .88rem; }
.hero-badges svg { width: 30px; height: 30px; color: var(--emerald); flex: none; }
@media (max-width: 860px) {
  .hero { min-height: 0; display: block; }
  .hero-img { position: relative; height: 260px; }
  .hero-img::after { background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 40%); }
  .hero .wrap { padding: 8px 0 48px; }
}

/* Quote quiz band */
.quiz { padding: 0; background: var(--ink); }
.quiz .wrap { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: none; }
.quiz-img img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: 15% 50%; }
.quiz-body { padding: clamp(40px, 6vw, 80px); color: #c9d6d0; display: grid; align-content: center; gap: 16px; max-width: 640px; }
.quiz-body h2 { color: #fff; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 6px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: grid; justify-items: center; gap: 8px; padding: 18px 8px; border: 1.5px solid rgba(255,255,255,.22); border-radius: 6px; color: #fff; font-weight: 600; font-size: .88rem; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.choice svg { width: 42px; height: 42px; color: var(--lime); }
.choice input:checked + span { border-color: var(--lime); background: rgba(208,250,63,.08); }
.choice input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.quiz-note { font-size: .82rem; }
@media (max-width: 900px) { .quiz .wrap { grid-template-columns: 1fr; } .quiz-img img { min-height: 240px; max-height: 300px; } }
@media (max-width: 420px) { .choice-grid { grid-template-columns: 1fr 1fr; } }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.svc { display: grid; grid-template-rows: auto 1fr; text-decoration: none; }
.svc figure { margin: 0; aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; background: var(--bg-alt); }
.svc figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.svc:hover figure img { transform: scale(1.04); }
.svc-body { padding: 18px 2px 0; display: grid; gap: 6px; align-content: start; }
.svc-body p { font-size: .92rem; color: var(--muted); }
.svc-body .from { font-weight: 700; color: var(--ink); font-size: .9rem; }
.svc-body .more { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-top: 6px; border-bottom: 2px solid var(--lime); justify-self: start; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .svc-grid { grid-template-columns: 1fr; } .svc figure { aspect-ratio: 4/3; } }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px 22px; display: grid; gap: 8px; align-content: start; }
.price-card h3 { font-size: 1.35rem; }
.price-card .sub { font-size: .82rem; color: var(--muted); }
.price-card .amt { font-family: var(--serif); font-size: 2.3rem; color: var(--ink); line-height: 1; margin: 10px 0 4px; }
.price-card .amt small { font-family: var(--sans); font-size: .78rem; color: var(--muted); font-weight: 600; margin-right: 4px; }
.price-card ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: .88rem; display: grid; gap: 6px; }
.price-card li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.price-card li b { color: var(--ink); white-space: nowrap; }
.included { margin-top: 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.box h3 { font-size: 1.3rem; margin-bottom: 14px; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .94rem; }
.list-check li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.list-check li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 3px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23031913' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.addon-rows { display: grid; gap: 0; font-size: .94rem; }
.addon-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.addon-rows div:first-child { border-top: 0; padding-top: 0; }
.addon-rows b { color: var(--ink); white-space: nowrap; }
.fine { font-size: .84rem; color: var(--muted); margin-top: 20px; }
@media (max-width: 1000px) { .price-grid { grid-template-columns: 1fr 1fr; } .included { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .price-grid { grid-template-columns: 1fr; } }

/* Stains */
.stain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stain { padding: 30px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.stain svg { width: 36px; height: 36px; color: var(--emerald); }
.stain h3 { font-size: 1.25rem; }
.stain p { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .stain-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stain-grid { grid-template-columns: 1fr; } }

/* Process */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.process-img img { border-radius: 4px; width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.steps { list-style: none; padding: 0; margin: 26px 0 30px; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--lime); color: var(--lime); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.steps b { color: #fff; display: block; font-weight: 600; }
.steps span { font-size: .9rem; }
.steps a { color: var(--lime); }
@media (max-width: 900px) { .process { grid-template-columns: 1fr; } }

/* Agreement promo */
.agree { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.doc-mock { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; box-shadow: 0 24px 50px -30px rgba(3,25,19,.35); font-size: .86rem; }
.doc-mock h3 { font-size: 1.2rem; margin-bottom: 12px; }
.doc-mock .lines span { display: block; height: 8px; border-radius: 4px; background: var(--bg-alt); margin: 9px 0; }
.doc-mock .sig { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.doc-mock .sig i { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-style: italic; }
@media (max-width: 860px) { .agree { grid-template-columns: 1fr; } }

/* Areas */
.areas { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.zip-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 10px; }
.zip-form input { flex: 1 1 180px; min-height: 54px; padding: 0 18px; border-radius: 6px; border: 1.5px solid #c9d1cc; background: #fff; font-size: 1.05rem; }
.zip-form input:focus { outline: none; border-color: var(--ink); }
.zip-result { min-height: 26px; font-weight: 600; font-size: .95rem; }
.zip-result.ok { color: var(--emerald-text); }
.zip-result.warn { color: #8a5a00; }
.zip-result.no { color: var(--danger); }
.counties { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.county h3 { font-size: 1.2rem; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid var(--lime); }
.county ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .9rem; }
.county li span { color: var(--muted); font-size: .82rem; margin-left: 6px; }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .counties { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 880px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-family: var(--sans); font-size: 1.6rem; font-weight: 300; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 0 22px; color: var(--text); max-width: 760px; }

/* Final CTA + contact */
.final { position: relative; padding: 0; overflow: hidden; }
.final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final::after { content: ""; position: absolute; inset: 0; background: rgba(3,25,19,.78); }
.final .wrap { position: relative; z-index: 1; padding: clamp(64px, 8vw, 100px) 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; color: #d4e0da; }
.final h2 { color: #fff; margin-bottom: 14px; }
.final .hero-actions { margin-top: 28px; }
.contact-card { background: #fff; color: var(--text); border-radius: 8px; padding: 28px; display: grid; gap: 14px; font-size: .95rem; }
.contact-card h3 { font-size: 1.4rem; }
.contact-card dl { margin: 0; display: grid; gap: 12px; }
.contact-card dt { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-card dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.contact-card a { text-decoration: none; }
@media (max-width: 860px) { .final .wrap { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 30px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Mobile sticky bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .mobile-bar .btn { min-height: 48px; padding: 0 10px; }
  body.has-bar { padding-bottom: 76px; }
}

/* ===== Booking (shared widgets) ===== */
.qrow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.qrow b { display: block; font-weight: 600; color: var(--ink); line-height: 1.3; }
.qrow small { color: var(--muted); font-size: .82rem; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid #c9d1cc; border-radius: 6px; }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; }
.stepper button:hover:not(:disabled) { background: var(--bg-alt); }
.stepper button:disabled { color: #b8c2bd; cursor: default; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.book-page { background: var(--bg-alt); min-height: 100vh; }
.book-shell { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; padding: 36px 0 80px; }
@media (max-width: 960px) { .book-shell { grid-template-columns: 1fr; } }
.progress { display: flex; gap: 6px; margin: 0 0 22px; list-style: none; padding: 0; }
.progress li { flex: 1; display: grid; gap: 8px; font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.progress li::before { content: ""; height: 4px; border-radius: 4px; background: #d5dcd7; }
.progress li.done::before, .progress li.current::before { background: var(--ink); }
.progress li.current { color: var(--ink); }
@media (max-width: 640px) { .progress li span { display: none; } .progress li.current span { display: inline; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 3.5vw, 40px); }
.panel h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.panel > p.lead { color: var(--muted); margin-bottom: 22px; }
.panel-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.group-title { font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 24px 0 4px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field legend { font-weight: 600; font-size: .9rem; color: var(--ink); padding: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 6px; border: 1.5px solid #c9d1cc; background: #fff; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--muted); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: .82rem; font-weight: 600; }
.field.invalid .err { display: block; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 6px; border: 1.5px solid #c9d1cc; background: #fff; font-weight: 600; font-size: .88rem; cursor: pointer; }
.pill input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill input:focus-visible + span { outline: 3px solid var(--emerald); outline-offset: 2px; }
.dates { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.date-btn { border: 1.5px solid #c9d1cc; background: #fff; border-radius: 6px; padding: 10px 4px; cursor: pointer; display: grid; gap: 1px; text-align: center; }
.date-btn small { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.date-btn b { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.1; color: var(--ink); }
.date-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.date-btn[aria-pressed="true"] b, .date-btn[aria-pressed="true"] small { color: #fff; }
.date-btn:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 560px) { .dates { grid-template-columns: repeat(4, 1fr); } }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.slot { border: 1.5px solid #c9d1cc; background: #fff; border-radius: 6px; padding: 14px 10px; cursor: pointer; font-weight: 700; color: var(--ink); text-align: center; }
.slot small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.slot[aria-pressed="true"] { background: var(--lime); border-color: var(--ink); }
@media (max-width: 480px) { .slots { grid-template-columns: 1fr; } }

.summary { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.summary h2 { font-size: 1.5rem; margin-bottom: 14px; }
.summary ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.summary li { display: flex; justify-content: space-between; gap: 12px; }
.summary li span:last-child { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.summary .empty { color: var(--muted); }
.summary .meta { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; display: grid; gap: 6px; font-size: .88rem; }
.summary .meta b { color: var(--ink); }
.summary .total { display: flex; justify-content: space-between; align-items: end; border-top: 2px solid var(--ink); margin-top: 14px; padding-top: 14px; font-weight: 600; }
.summary .total strong { font-family: var(--serif); font-weight: 500; font-size: 2.2rem; color: var(--ink); line-height: 1; }
.summary .min { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.summary .help { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; }
.summary .help a { font-weight: 700; color: var(--ink); }
@media (max-width: 960px) { .summary { position: static; order: -1; } }

.agreement-box { max-height: 360px; overflow: auto; border: 1.5px solid #c9d1cc; border-radius: 6px; padding: 18px 20px; background: #fbfcfa; font-size: .88rem; }
.agreement-box h3 { font-family: var(--sans); font-size: .95rem; font-weight: 700; margin: 16px 0 6px; }
.agreement-box h3:first-child { margin-top: 0; }
.agreement-box ul { padding-left: 20px; margin: 6px 0; }
.agreement-box .callout { background: #f3fbe0; padding: 10px 12px; border-left: 3px solid var(--emerald); margin: 8px 0; }
.scroll-hint { font-size: .82rem; color: var(--muted); margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; }
.scroll-hint.done { color: var(--emerald-text); font-weight: 600; }
.ack { display: grid; gap: 10px; margin-top: 18px; }
.ack label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 6px; border: 1.5px solid var(--line); cursor: pointer; font-size: .9rem; }
.ack label:has(input:checked) { border-color: var(--emerald); background: #f3fbf6; }
.ack input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.ack b { display: block; color: var(--ink); }
.ack .opt { display: block; color: var(--muted); font-size: .8rem; }
.sig-wrap { margin-top: 20px; display: grid; gap: 14px; }
.sig-pad { position: relative; border: 1.5px dashed #9aa8a1; border-radius: 6px; background: #fff; height: 170px; touch-action: none; }
.sig-pad canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.sig-pad .sig-line { position: absolute; left: 20px; right: 20px; bottom: 40px; border-bottom: 1px solid var(--line); pointer-events: none; }
.sig-pad .sig-x { position: absolute; left: 20px; bottom: 44px; font-weight: 700; color: var(--muted); pointer-events: none; }
.sig-pad .sig-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.sig-pad.signed .sig-placeholder { display: none; }
.sig-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .82rem; color: var(--muted); }
.linkbtn { background: none; border: 0; color: var(--ink); font-weight: 700; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.form-error { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 6px; background: #fdecea; color: var(--danger); font-weight: 600; font-size: .9rem; }
.form-error.show { display: block; }

.confirm-hero { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 6px 0 16px; }
.confirm-hero .badge { width: 68px; height: 68px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.confirm-hero .badge svg { width: 32px; height: 32px; }
.confirm-hero .lead { color: var(--muted); max-width: 520px; }
.receipt { border: 1px solid var(--line); border-radius: 8px; margin: 20px 0 0; }
.receipt-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: .92rem; }
.receipt-row:first-child { border-top: 0; }
.receipt-row dt { color: var(--muted); font-weight: 600; }
.receipt-row dd { margin: 0; font-weight: 600; color: var(--ink); }
.receipt-row img { max-width: 260px; height: auto; }
@media (max-width: 560px) { .receipt-row { grid-template-columns: 1fr; gap: 2px; } }

/* Agreement page */
.doc { max-width: 860px; }
.doc h1 { margin: 10px 0 12px; }
.doc .meta { color: var(--muted); font-size: .92rem; }
.doc-toc { columns: 2; column-gap: 32px; padding: 22px 26px 22px 46px; background: var(--bg-alt); border-radius: 8px; margin: 28px 0 40px; font-size: .92rem; }
.doc-toc a { text-decoration: none; font-weight: 600; color: var(--ink); }
.doc-toc a:hover { text-decoration: underline; }
.doc-toc li { margin: 3px 0; break-inside: avoid; }
@media (max-width: 600px) { .doc-toc { columns: 1; } }
.doc-body h2 { font-size: 1.6rem; margin: 40px 0 12px; scroll-margin-top: 100px; }
.doc-body p, .doc-body li { margin: 0 0 10px; }
.doc-body ul { padding-left: 22px; }
.doc-body .callout { background: #f3fbe0; border-left: 4px solid var(--emerald); padding: 14px 18px; margin: 14px 0; }

@media print {
  .site-header, .site-footer, .mobile-bar, .panel-actions, .no-print { display: none !important; }
  body, .book-page { background: #fff; }
  .panel { border: 0; padding: 0; }
  .agreement-box { max-height: none; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .svc figure img { transition: none; } }
.book-shell > * { min-width: 0; }
@media (max-width: 520px) {
  .panel-actions { flex-direction: column-reverse; }
  .panel-actions .btn { width: 100%; white-space: normal; }
}
