/* ============ Mercer & Lane — Car Accident Lawyers ============ */
:root {
  --bg: #ffffff;
  --soft: #f2f6f3;
  --soft-2: #e7eee9;
  --green: #0f5b3a;
  --green-2: #15784d;
  --green-ink: #093322;
  --green-tint: #dff0e6;
  --yellow: #ffc83d;
  --yellow-2: #ffb703;
  --yellow-tint: #fff4d6;
  --text: #17201b;
  --muted: #5c6a62;
  --line: #e0e7e2;
  --danger: #c0392b;
  --danger-tint: #fdecea;
  --r-lg: 28px;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 2px 6px rgba(9, 51, 34, .05), 0 18px 40px -12px rgba(9, 51, 34, .16);
  --display: "Outfit", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--green-2); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: var(--green-ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: 100px 0; }
.soft { background: var(--soft); }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem; font: 700 .82rem var(--sans); color: var(--green-2);
  background: var(--green-tint); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; }
.lane { height: 6px; background: repeating-linear-gradient(90deg, var(--yellow) 0 38px, transparent 38px 64px); border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent; font: 700 1rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-yellow { background: var(--yellow); color: var(--green-ink); box-shadow: 0 6px 0 -1px var(--yellow-2); }
.btn-yellow:hover { background: #ffd25e; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); box-shadow: 0 10px 24px -8px rgba(15, 91, 58, .6); }
.btn-line { border-color: var(--line); color: var(--green-ink); background: #fff; }
.btn-line:hover { border-color: var(--green); }
.btn-white-line { border-color: rgba(255, 255, 255, .4); color: #fff; background: transparent; }
.btn-white-line:hover { border-color: #fff; }
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.text-btn { background: none; border: 0; padding: 0; font: 600 .9rem var(--sans); color: var(--green-2); cursor: pointer; }
.text-btn:hover { text-decoration: underline; }
.text-btn.danger { color: var(--danger); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0, 0, 0, .2); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--green); display: grid; place-items: center; position: relative; overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; background: repeating-linear-gradient(var(--yellow) 0 7px, transparent 7px 12px); }
.brand-name { font: 800 1.25rem/1 var(--display); color: var(--green-ink); letter-spacing: -.02em; }
.brand-name small { display: block; font: 600 .72rem var(--sans); color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav-links a:hover, .nav-links a.active { color: var(--green-2); }
.nav-links .btn { color: var(--green-ink); }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; }
.nav-phone svg { color: var(--green-2); }
.nav-toggle { display: none; background: var(--soft); border: 0; border-radius: 12px; padding: 8px; cursor: pointer; color: var(--green-ink); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--green-ink); display: grid; place-items: center; font: 800 .8rem var(--display); }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; }
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px 16px 20px; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25); }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 14px; }
  .nav-links a { display: block; padding: 13px 0; }
}

/* ---------- Hero ---------- */
.hero-wrap { padding: 8px 0 0; }
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--green);
  color: #e3f1e9; padding: 72px 56px 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px;
}
.hero::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 61, .22), transparent 65%);
}
.hero h1 { color: #fff; }
.hero h1 mark { background: none; color: var(--yellow); }
.hero .lead { color: #cfe5d8; margin-bottom: 2rem; }
.badge-nofee {
  display: inline-flex; align-items: center; gap: .55rem; background: var(--yellow); color: var(--green-ink);
  font: 800 .85rem var(--display); padding: .45rem .9rem .45rem .5rem; border-radius: 999px; margin-bottom: 1.4rem; text-transform: uppercase; letter-spacing: .04em;
}
.badge-nofee span { background: var(--green-ink); color: var(--yellow); border-radius: 999px; padding: .15rem .5rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.hero-proof { display: flex; align-items: center; gap: 1rem; font-size: .92rem; padding-bottom: 56px; }
.faces { display: flex; }
.faces span { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--green); margin-left: -10px; display: grid; place-items: center; font: 700 .75rem var(--display); color: var(--green-ink); }
.faces span:first-child { margin-left: 0; }
.stars { color: var(--yellow); letter-spacing: 1px; }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: var(--green-ink); }
.road::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: repeating-linear-gradient(90deg, var(--yellow) 0 40px, transparent 40px 72px); animation: drive 2.4s linear infinite; }
@keyframes drive { to { background-position: -72px 0; } }

.quick-card {
  position: relative; align-self: end; background: #fff; color: var(--text); border-radius: 24px 24px 0 0;
  padding: 30px 30px 50px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .15);
}
.quick-card h3 { margin-bottom: .2rem; }
.quick-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; }
.chip {
  display: inline-flex; flex-direction: column; padding: .55rem .85rem; border-radius: var(--r-sm); border: 2px solid var(--line);
  text-decoration: none; color: var(--green-ink); font-weight: 700; font-size: .92rem; line-height: 1.2; transition: border-color .15s, background .15s;
}
.chip small { font-weight: 500; color: var(--muted); font-size: .76rem; }
.chip:hover { border-color: var(--green-2); background: var(--green-tint); }
.quick-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .45rem; font-size: .94rem; }
.quick-list li { display: flex; gap: .55rem; align-items: center; }
.quick-list li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315784d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 48px 24px 0; gap: 8px; }
  .hero-proof { padding-bottom: 28px; }
}
@media (max-width: 480px) { .hero { border-radius: 20px; } .quick-card { padding: 24px 20px 46px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.stat { background: var(--soft); border-radius: var(--r); padding: 26px; }
.stat strong { display: block; font: 800 2.3rem/1.05 var(--display); color: var(--green); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .92rem; font-weight: 500; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- After a crash ---------- */
.after { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.after-list { counter-reset: a; display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.after-list li { counter-increment: a; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.after-list li::before { content: counter(a); width: 48px; height: 48px; border-radius: 14px; background: var(--yellow); color: var(--green-ink); font: 800 1.3rem var(--display); display: grid; place-items: center; }
.after-list h4 { margin: .2rem 0 .15rem; font-size: 1.08rem; }
.after-list p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 900px) { .after { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Case types ---------- */
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.type {
  background: #fff; border-radius: var(--r); padding: 26px 22px; border: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; display: block;
}
.type:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.type .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; margin-bottom: 1rem; transition: background .2s, color .2s; }
.type:hover .ico { background: var(--green); color: var(--yellow); }
.type h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.type p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 960px) { .types { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .types { grid-template-columns: 1fr; } }

/* ---------- Results ---------- */
.results { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.res { border-radius: var(--r); padding: 28px; background: var(--soft); }
.res.big { grid-row: span 2; background: var(--green-ink); color: #cfe5d8; display: flex; flex-direction: column; justify-content: space-between; }
.res .amt { font: 800 2.4rem/1 var(--display); color: var(--green); letter-spacing: -.03em; margin-bottom: .5rem; }
.res.big .amt { font-size: clamp(3rem, 6vw, 4.6rem); color: var(--yellow); }
.res h4 { font-size: 1.05rem; margin-bottom: .3rem; }
.res.big h4 { color: #fff; font-size: 1.3rem; }
.res p { margin: 0; color: var(--muted); font-size: .92rem; }
.res.big p { color: #b7d3c3; }
.fine { font-size: .8rem; color: var(--muted); margin-top: 1.2rem; }
@media (max-width: 900px) { .results { grid-template-columns: 1fr 1fr; } .res.big { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 520px) { .results { grid-template-columns: 1fr; } }

/* ---------- Case check tool ---------- */
.checker { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.checker-form { padding: 40px; }
.checker-out { background: var(--yellow-tint); padding: 40px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.checker-out::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(var(--yellow-2) 0 26px, transparent 26px 44px); }
.meter { height: 14px; background: #fff; border-radius: 999px; overflow: hidden; margin: 1rem 0 .6rem; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow-2), var(--green-2)); border-radius: 999px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.verdict { font: 800 1.9rem/1.1 var(--display); color: var(--green-ink); margin: 0; }
.deadline { margin-top: 1.4rem; background: #fff; border-radius: var(--r-sm); padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.deadline b { font: 800 2rem/1 var(--display); color: var(--green); }
.deadline.urgent b { color: var(--danger); }
.deadline span { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .checker { grid-template-columns: 1fr; } .checker-form, .checker-out { padding: 28px 22px; } }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.how-step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; position: relative; }
.how-step .n { font: 800 .85rem var(--display); color: var(--green-2); background: var(--green-tint); border-radius: 999px; padding: .25rem .7rem; display: inline-block; margin-bottom: 1rem; }
.how-step p { color: var(--muted); margin: 0; font-size: .96rem; }
.how-step.fee { background: var(--green); border-color: var(--green); color: #cfe5d8; }
.how-step.fee h3 { color: #fff; }
.how-step.fee p { color: #cfe5d8; }
.how-step.fee .n { background: var(--yellow); color: var(--green-ink); }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { text-align: center; padding: 34px 26px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.portrait { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font: 800 2.2rem var(--display); color: var(--green-ink); background: var(--yellow); position: relative; }
.portrait::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed var(--green-2); opacity: .45; }
.portrait.g { background: var(--green-tint); }
.portrait.s { background: var(--soft-2); }
.person .role { color: var(--green-2); font-weight: 700; font-size: .88rem; margin-bottom: .6rem; }
.person p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; background: #fff; border-radius: var(--r); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.review blockquote { margin: .6rem 0 1.2rem; font-size: 1.05rem; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--green-ink); font-size: .94rem; }
.review figcaption small { display: block; font-weight: 500; color: var(--muted); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 4px 24px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font: 700 1.08rem var(--display); color: var(--green-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315784d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: var(--yellow); border-radius: var(--r-lg); padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--green-ink) 0 24px, var(--yellow-2) 24px 48px); }
.cta h2 { margin: 0 0 .3rem; }
.cta p { margin: 0; color: #4f4525; }
@media (max-width: 640px) { .cta { padding: 36px 24px 44px; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; }
.contact-cards { display: grid; gap: 12px; margin-top: 1.6rem; }
.contact-card { display: flex; gap: 14px; align-items: center; background: var(--soft); border-radius: var(--r); padding: 16px 18px; }
.contact-card .ico { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--green); display: grid; place-items: center; flex: none; }
.contact-card b { display: block; color: var(--green-ink); }
.contact-card span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Cards & forms ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow); }
.form { display: grid; gap: 1.05rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .card { padding: 22px; } }
.field label, .field .lbl { display: block; font-weight: 700; font-size: .9rem; color: var(--green-ink); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--soft);
  border: 2px solid transparent; border-radius: var(--r-sm); padding: .8rem .95rem; transition: border-color .15s, background .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-2); background: #fff; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.checkbox input { margin-top: .3rem; width: 17px; height: 17px; accent-color: var(--green); flex: none; }
.form-msg { display: none; font-size: .92rem; padding: .8rem 1rem; border-radius: var(--r-sm); }
.form-msg.error { display: block; background: var(--danger-tint); color: var(--danger); }
.form-msg.success { display: block; background: var(--green-tint); color: var(--green); }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label {
  margin: 0; display: flex; align-items: center; gap: .55rem; padding: .7rem .85rem; border-radius: var(--r-sm);
  border: 2px solid var(--line); cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--text); transition: all .15s; background: #fff;
}
.choices label .emoji { font-size: 1.15rem; }
.choices input:checked + label { border-color: var(--green-2); background: var(--green-tint); color: var(--green-ink); }
.choices input:focus-visible + label { box-shadow: 0 0 0 4px rgba(21, 120, 77, .2); }

/* ---------- Page hero ---------- */
.page-hero { padding: 48px 0 36px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: 8px; margin-bottom: 24px; list-style: none; padding: 0; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: .55rem; padding: .45rem .9rem .45rem .45rem; border-radius: 999px; background: var(--soft); font-weight: 700; font-size: .9rem; color: var(--muted); }
.stepper li b { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 800 .8rem var(--display); }
.stepper li.active { background: var(--green); color: #fff; }
.stepper li.active b { background: var(--yellow); color: var(--green-ink); }
.stepper li.done { background: var(--green-tint); color: var(--green); }
.stepper li.done b { background: var(--green-2); color: #fff; }

/* ---------- Booking ---------- */
.booking { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; padding-bottom: 100px; }
@media (max-width: 980px) { .booking { grid-template-columns: 1fr; } }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.cal-head h3 { margin: 0; font-size: 1.5rem; }
.cal-nav { display: flex; gap: 8px; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--soft); color: var(--green-ink); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.round-btn:hover:not([disabled]) { background: var(--green-tint); }
.round-btn[disabled] { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-dow { text-align: center; font-weight: 700; font-size: .78rem; color: var(--muted); padding-bottom: 4px; }
.cal-day {
  aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; cursor: pointer; position: relative;
  font: 700 1rem var(--display); color: var(--green-ink); transition: background .15s, color .15s; padding: 0;
}
.cal-day.avail { background: var(--green-tint); }
.cal-day.avail::after { content: ""; position: absolute; bottom: 14%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--green-2); }
.cal-day.few::after { background: var(--yellow-2); }
.cal-day.avail:hover { background: #c9e6d5; }
.cal-day[disabled] { color: #b9c2bc; cursor: default; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--yellow-2); }
.cal-day.selected { background: var(--green) !important; color: #fff; }
.cal-day.selected::after { background: var(--yellow); }
.cal-day.empty { visibility: hidden; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.2rem; font-size: .84rem; color: var(--muted); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .4rem; vertical-align: 0; }
@media (max-width: 480px) { .cal-grid { gap: 4px; } .cal-day { font-size: .9rem; } }

.slots-title { margin: 0 0 .15rem; font-size: 1.25rem; }
.slots-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.slot-group { margin-bottom: 1.1rem; }
.slot-group .lbl { font-weight: 700; font-size: .8rem; color: var(--muted); margin-bottom: .55rem; display: flex; align-items: center; gap: .4rem; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .55rem .3rem; font: 700 .92rem var(--sans); color: var(--green-ink); cursor: pointer; transition: all .15s; }
.slot:hover:not([disabled]) { border-color: var(--green-2); }
.slot.selected { background: var(--green); border-color: var(--green); color: #fff; }
.slot[disabled] { background: var(--soft); border-color: var(--soft); color: #aab3ad; text-decoration: line-through; cursor: not-allowed; }
.empty-state { text-align: center; color: var(--muted); padding: 28px 10px; }
.empty-state .ico { width: 64px; height: 64px; border-radius: 20px; background: var(--yellow-tint); color: var(--yellow-2); display: grid; place-items: center; margin: 0 auto 14px; }

.picked { display: flex; align-items: center; gap: 14px; background: var(--green-tint); border-radius: var(--r); padding: 14px 16px; margin-bottom: 1.3rem; }
.picked .cal-ico { width: 56px; border-radius: 12px; overflow: hidden; text-align: center; background: #fff; flex: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .06); }
.picked .cal-ico span { display: block; background: var(--green); color: #fff; font: 700 .68rem var(--sans); text-transform: uppercase; padding: 2px 0; letter-spacing: .06em; }
.picked .cal-ico b { display: block; font: 800 1.5rem/1.5 var(--display); color: var(--green-ink); }
.picked strong { display: block; color: var(--green-ink); }
.picked small { color: var(--muted); }
.picked .text-btn { margin-left: auto; }
.step-actions { display: flex; gap: .6rem; justify-content: space-between; flex-wrap: wrap; }
.review-list { display: grid; gap: 0; margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.review-list div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 11px 14px; font-size: .94rem; }
.review-list div:nth-child(odd) { background: var(--soft); }
.review-list dt { color: var(--muted); font-weight: 600; }
.review-list dd { margin: 0; color: var(--green-ink); font-weight: 600; word-break: break-word; }
@media (max-width: 480px) { .review-list div { grid-template-columns: 1fr; gap: 0; } }
.gate { text-align: center; }
.gate p { color: var(--muted); }
.gate .btns { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.done-box { text-align: center; padding: 8px 0; }
.done-ico { width: 80px; height: 80px; border-radius: 50%; background: var(--yellow); color: var(--green-ink); display: grid; place-items: center; margin: 0 auto 16px; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.notice { background: var(--yellow-tint); border-radius: var(--r-sm); padding: .8rem 1rem; font-size: .9rem; color: #5c4d1d; margin-bottom: 1rem; }

/* ---------- Account ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding-bottom: 100px; }
@media (max-width: 880px) { .auth { grid-template-columns: 1fr; } }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--soft); padding: 5px; border-radius: 999px; margin-bottom: 1.6rem; }
.tabs button { border: 0; background: transparent; padding: .7rem; border-radius: 999px; font: 700 .95rem var(--sans); color: var(--muted); cursor: pointer; }
.tabs button.active { background: #fff; color: var(--green-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.side-panel { background: var(--green); color: #cfe5d8; border-radius: var(--r-lg); padding: 40px; position: relative; overflow: hidden; }
.side-panel h3 { color: #fff; font-size: 1.7rem; }
.side-panel ul { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1rem; }
.side-panel li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.side-panel li .ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--yellow); display: grid; place-items: center; }
.side-panel li b { color: #fff; display: block; }
.side-panel .road { position: absolute; }
.side-panel .demo { margin-top: 1.6rem; font-size: .85rem; background: rgba(0, 0, 0, .18); border-radius: var(--r-sm); padding: .8rem 1rem; }

.dash { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; padding-bottom: 100px; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } }
.profile { text-align: center; }
.profile .avatar { width: 76px; height: 76px; font-size: 1.6rem; margin: 0 auto 12px; }
.profile dl { text-align: left; display: grid; gap: .8rem; margin: 1.4rem 0; }
.profile dt { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.profile dd { margin: 0; font-weight: 600; color: var(--green-ink); word-break: break-word; }
.progress { margin-top: 1.4rem; text-align: left; }
.progress .meter { background: var(--soft); margin: .5rem 0 .3rem; height: 10px; }
.progress small { color: var(--muted); }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.dash-head h3 { margin: 0; }
.appt-list { display: grid; gap: 12px; }
.appt { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--soft); }
.appt.past, .appt.cancelled { opacity: .6; }
.appt .picked { margin: 0; padding: 0; background: none; }
.appt h4 { margin: 0 0 .15rem; font-size: 1.02rem; }
.appt p { margin: 0; font-size: .9rem; color: var(--muted); }
.appt-actions { display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; }
.pill { display: inline-block; font: 700 .72rem var(--sans); padding: .2rem .6rem; border-radius: 999px; margin-left: .4rem; vertical-align: 2px; }
.pill.booked { background: var(--green-tint); color: var(--green); }
.pill.cancelled { background: var(--danger-tint); color: var(--danger); }
.pill.past { background: var(--soft-2); color: var(--muted); }
@media (max-width: 560px) { .appt { grid-template-columns: auto 1fr; } .appt-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: 1rem; } }
.todo { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.todo label { display: flex; gap: .75rem; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--soft); cursor: pointer; font-size: .95rem; transition: background .15s; }
.todo input { width: 20px; height: 20px; accent-color: var(--green); margin: 1px 0 0; flex: none; }
.todo input:checked + span { color: var(--muted); text-decoration: line-through; }
.todo label:hover { background: var(--soft-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-ink); color: #a9c4b4; padding: 72px 0 28px; margin-top: 0; font-size: .94rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--yellow) 0 40px, transparent 40px 72px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.site-footer h5 { font: 700 1rem var(--display); color: #fff; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #d3e6da; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name small { color: #8fb09d; }
.legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; font-size: .8rem; color: #84a592; display: grid; gap: .4rem; }
.legal p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); z-index: 100; max-width: calc(100% - 32px); background: var(--green-ink); color: #fff; padding: .9rem 1.3rem .9rem 1rem; border-radius: 999px; font-weight: 600; display: flex; gap: .6rem; align-items: center; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); flex: none; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .road::after, .done-ico { animation: none; }
  html { scroll-behavior: auto; }
}
