:root {
  --ink: #111114;
  --ink-2: #4a4a55;
  --mute: #8a8a96;
  --line: #ececf1;
  --bg: #ffffff;
  --bg-2: #f7f7fa;
  --accent: #ff2d87;      /* hot pink, the Lemonade-ish signature */
  --accent-ink: #ffffff;
  --accent-soft: #ffe6f1;
  --stripe: #111114;      /* skunk black */
  --ok: #10a36b;
  --warn: #d97706;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(17, 17, 20, .08);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--mute); }
.small { font-size: .8rem; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.logo { width: 28px; height: 28px; border-radius: 50%; background: var(--stripe); position: relative; overflow: hidden; }
.logo::after { content: ""; position: absolute; left: 11px; top: -2px; width: 6px; height: 34px; background: #fff; border-radius: 3px; }
.hl { color: var(--accent); }

/* Buttons */
.btn { font: inherit; font-weight: 700; border: 0; cursor: pointer; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: .85rem 1.5rem; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 45, 135, .35); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.1rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { box-shadow: none; border-color: var(--ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 1rem clamp(1rem, 4vw, 3rem); background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav nav { display: flex; align-items: center; gap: 1.5rem; font-weight: 500; }
.nav nav a { color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav nav a { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem); max-width: 1200px; margin: 0 auto; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34ch; }
.cta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; color: var(--ink-2); }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: .6rem; }
.hero-card { background: var(--bg-2); border-radius: 28px; padding: 1.6rem; display: grid; gap: .8rem; box-shadow: var(--shadow); }
.mini-quote { margin-top: .6rem; background: var(--stripe); color: #fff; border-radius: var(--radius); padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; align-items: center; }
.mini-quote strong { font-size: 2rem; }
.mini-quote small { font-size: .9rem; opacity: .7; }

/* Bands */
.band { padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem); max-width: 1200px; margin: 0 auto; }
.band.alt { max-width: none; background: var(--bg-2); }
.band.alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.step span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 1rem; }
.step p { color: var(--ink-2); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1rem; font-weight: 500; }
details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; max-width: 760px; }
summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; }
details p { color: var(--ink-2); }
.foot { padding: 2.5rem clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--line); max-width: 1200px; margin: 0 auto; }

/* Chat bubbles (shared) */
.bubble { max-width: 85%; padding: .85rem 1.1rem; border-radius: 20px; font-size: 1rem; animation: pop .25s ease-out; }
.bubble.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; justify-self: start; }
.bubble.user { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; justify-self: end; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Quote flow overlay */
.flow { position: fixed; inset: 0; z-index: 20; background: var(--bg-2); display: grid; grid-template-rows: auto 1fr auto; }
.flow[hidden] { display: none; }
.flow-top { display: flex; align-items: center; gap: 1.2rem; padding: 1rem clamp(1rem, 4vw, 2rem); background: #fff; border-bottom: 1px solid var(--line); }
.progress { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.x { border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--mute); }
.chat { overflow-y: auto; padding: 2rem clamp(1rem, 4vw, 2rem); display: grid; align-content: start; gap: .7rem; max-width: 720px; width: 100%; margin: 0 auto; }
.typing { display: inline-flex; gap: 4px; padding: 1rem 1.1rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }

.composer { background: #fff; border-top: 1px solid var(--line); padding: 1rem clamp(1rem, 4vw, 2rem) 1.4rem; }
.composer-inner { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.composer input, .composer select { font: inherit; font-size: 1.05rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; flex: 1; min-width: 0; background: #fff; color: var(--ink); }
.composer input:focus, .composer select:focus { outline: none; border-color: var(--accent); }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt { font: inherit; font-weight: 600; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .65rem 1.1rem; cursor: pointer; }
.opt:hover { border-color: var(--accent); color: var(--accent); }
.hint { font-size: .85rem; color: var(--mute); }
.err { color: #d61f4a; font-size: .9rem; min-height: 1.2em; }
.range-val { font-weight: 800; min-width: 4ch; text-align: right; }
input[type=range] { accent-color: var(--accent); padding: 0; border: 0; }

/* Quote result */
.quote-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 1.8rem; display: grid; gap: 1.2rem; animation: pop .35s ease-out; scroll-margin-top: 1rem; }
.price { display: flex; align-items: baseline; gap: .4rem; }
.price strong { font-size: 3.2rem; font-weight: 800; letter-spacing: -.03em; }
.toggle { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 4px; }
.toggle button { font: inherit; font-weight: 600; border: 0; background: none; padding: .45rem 1rem; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.meter { height: 10px; border-radius: 99px; background: linear-gradient(90deg, #10a36b, #f5b301 50%, #ff2d87); position: relative; }
.meter i { position: absolute; top: -5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); transform: translateX(-50%); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.stat { background: var(--bg-2); border-radius: 14px; padding: .9rem 1rem; }
.stat b { display: block; font-size: 1.4rem; }
.stat span { color: var(--ink-2); font-size: .85rem; }
.factors { width: 100%; border-collapse: collapse; font-size: .92rem; }
.factors td { padding: .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.factors td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.factors .up { color: #d61f4a; } .factors .down { color: var(--ok); }
.factors small { color: var(--mute); display: block; }
.notice { background: var(--accent-soft); border-radius: 14px; padding: 1rem 1.1rem; font-size: .92rem; }
.notice.dark { background: var(--ink); color: #fff; }
