: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; height: 100vh; height: 100dvh; 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; }

/* Beat your renewal */
.renewal-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.renewal-copy { position: sticky; top: 110px; }
@media (max-width: 900px) { .renewal-grid { grid-template-columns: minmax(0, 1fr); } .renewal-copy { position: static; } }
.renewal-card { background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.2rem; min-width: 0; max-width: 560px; width: 100%; justify-self: end; }
@media (max-width: 900px) { .renewal-card { justify-self: stretch; max-width: none; } }
.rf-head { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.rf-dots { display: flex; gap: 6px; }
.rf-dots i { width: 22px; height: 6px; border-radius: 99px; background: var(--line); transition: background .2s; }
.rf-dots i.on { background: var(--accent); }
.rf-step { display: grid; gap: 1.1rem; animation: pop .25s ease-out; }
.rf-step[hidden] { display: none; }
.rf-q { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.grid2, .grid3 { display: grid; gap: .9rem; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .grid2 { grid-template-columns: minmax(0, 1fr); } .grid3 { gap: .6rem; } .price-input { flex-wrap: wrap; padding: .6rem; } .price-input .seg { width: 100%; } .price-input .seg label { flex: 1; } }
.renewal-card label, .renewal-card .field { display: grid; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--ink-2); min-width: 0; }
.flabel { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.opt-tag { font-weight: 500; color: var(--mute); }
.renewal-card input:not([type=radio]):not([type=checkbox]):not([type=file]), .renewal-card select {
  font: inherit; font-size: 1rem; font-weight: 500; height: 50px; padding: 0 .95rem; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--bg-2); color: var(--ink); width: 100%; min-width: 0; transition: border-color .15s, background .15s; -moz-appearance: textfield; }
.renewal-card input::-webkit-outer-spin-button, .renewal-card input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.renewal-card select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111114' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; }
.renewal-card input:focus, .renewal-card select:focus { outline: none; border-color: var(--accent); background-color: #fff; }
.renewal-card input::placeholder { color: #b4b4bf; }
.field-pre { position: relative; display: block; }
.field-pre em { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 600; color: var(--mute); }
.renewal-card .field-pre input:not([type=radio]):not([type=checkbox]):not([type=file]) { padding-left: 1.9rem; }
.field-pre em { z-index: 1; pointer-events: none; }

/* Big price input */
.price-input { display: flex; align-items: center; gap: .6rem; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 18px; padding: .5rem .6rem .5rem 1.1rem; }
.price-input:focus-within { border-color: var(--accent); background: #fff; }
.price-input .cur { font-size: 2rem; font-weight: 800; color: var(--mute); }
.renewal-card .price-input input:not([type=radio]):not([type=checkbox]):not([type=file]) { flex: 1; height: 60px; font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; border: 0; background: transparent; padding: 0; }
.renewal-card .price-input input:not([type=radio]):not([type=checkbox]):not([type=file]):focus { background: transparent; }

/* Segmented controls and chip radios */
.seg, .chips-select { display: flex; gap: 4px; }
.seg { background: var(--line); padding: 4px; border-radius: 14px; flex-shrink: 0; }
.seg.wide { height: 50px; }
.seg.wide label { flex: 1; }
.chips-select { flex-wrap: wrap; gap: .5rem; }
.seg input, .chips-select input { position: absolute; opacity: 0; pointer-events: none; }
.renewal-card .seg label { display: grid; place-items: center; padding: .55rem .9rem; border-radius: 10px; font-size: .9rem; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg input:checked + label { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.seg input:focus-visible + label, .chips-select input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.renewal-card .chips-select label { display: inline-block; padding: .6rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.chips-select input:checked + label { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Convictions */
.conv-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .7fr) 36px; gap: .5rem; align-items: end; padding: .8rem; background: var(--bg-2); border-radius: 16px; }
.renewal-card .conv-row input, .renewal-card .conv-row select { background-color: #fff; }
@media (max-width: 520px) { .conv-row { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: .8rem; } .conv-row > label:first-child { grid-column: 1 / -1; padding-right: 40px; } .conv-row .rm { position: absolute; top: .4rem; right: .4rem; height: 36px; } }
.conv-row .rm { width: 36px; height: 50px; border: 0; background: none; color: var(--mute); font-size: 1.1rem; cursor: pointer; border-radius: 10px; }
.conv-row .rm:hover { color: var(--ink); background: #fff; }
#conv-rows { display: grid; gap: .6rem; }
.add-conv { font: inherit; font-weight: 700; font-size: .95rem; height: 50px; border: 1.5px dashed #d4d4dc; border-radius: 14px; background: none; color: var(--ink); cursor: pointer; }
.add-conv:hover { border-color: var(--accent); color: var(--accent); }

/* Screenshot drop zone */
.renewal-card label.drop { position: relative; display: grid; gap: .3rem; place-items: center; text-align: center; padding: 1.4rem 1rem; border: 1.5px dashed #d4d4dc; border-radius: 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.renewal-card label.drop:hover, .renewal-card label.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.renewal-card label.drop.has { border-style: solid; border-color: var(--ok); background: #effaf5; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop strong { font-size: .98rem; color: var(--ink); }
.drop span { font-size: .8rem; font-weight: 500; color: var(--mute); }

.renewal-card label.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; font-weight: 500; color: var(--ink-2); line-height: 1.45; }
.renewal-card label.check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.renewal-card a { color: var(--accent); text-decoration: underline; }
.rf-nav { display: flex; gap: .7rem; }
.rf-nav .btn { flex: 1; padding: 1rem 1.4rem; font-size: 1.05rem; }
.rf-nav .btn-ghost { flex: 0 0 auto; }
.renewal-card .err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.renewal-done { display: grid; gap: 1rem; animation: pop .3s ease-out; }
.renewal-done .price strong { font-size: 2.8rem; }

/* Quote chat: one centred column on wide screens */
.flow { background: var(--bg-2); }
.chat { max-width: 640px; padding: 2.5rem 1.25rem 1rem; gap: .8rem; scroll-behavior: smooth; }
.bubble { font-size: 1.02rem; line-height: 1.45; }
.bubble.bot { position: relative; margin-left: 46px; box-shadow: 0 2px 10px rgba(17,17,20,.04); }
.bubble.bot::before { content: ""; position: absolute; left: -46px; bottom: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--stripe) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Crect x='14' y='-2' width='6' height='38' rx='3' fill='%23fff'/%3E%3C/svg%3E") center/cover; }
.bubble.bot + .bubble.bot::before { display: none; }
.hero-card .bubble.bot { margin-left: 0; } .hero-card .bubble.bot::before { display: none; }
.quote-card { margin-left: 0; }
.composer { background: transparent; border-top: 0; padding: .5rem 1.25rem 1.6rem; }
.composer-inner { max-width: 640px; padding-left: 46px; }
@media (max-width: 560px) { .composer-inner { padding-left: 0; } .bubble.bot { margin-left: 40px; } .bubble.bot::before { left: -40px; width: 30px; height: 30px; } }
.composer .row { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: .4rem .4rem .4rem .6rem; box-shadow: var(--shadow); flex-wrap: nowrap; }
.composer .row:focus-within { border-color: var(--accent); }
.composer .row input, .composer .row select { border: 0; padding: .7rem .5rem; font-size: 1.05rem; background: transparent; }
.composer .row input[type=range] { padding: 0 .5rem; }
.composer .row .btn { padding: .8rem 1.3rem; flex-shrink: 0; }
.composer .row .range-val { padding-right: .4rem; white-space: nowrap; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .55rem; }
.opt { padding: .85rem 1rem; border-radius: 16px; background: #fff; text-align: left; box-shadow: 0 2px 8px rgba(17,17,20,.04); transition: border-color .15s, transform .1s; }
.opt:hover { transform: translateY(-1px); }
.composer .hint { padding-left: .2rem; }
.composer .err:empty { display: none; }
#renewal-form { scroll-margin-top: 90px; }

/* Short screens (phones, keyboard open): less padding so the question fits */
@media (max-height: 700px) { .chat { padding-top: 1rem; } .composer { padding-bottom: .8rem; } }

/* Guide pages (search landing pages) */
.guide { max-width: 760px; }
.guide h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.guide h2 { font-size: clamp(1.35rem, 2.6vw, 1.65rem); margin-top: 2.4rem; }
.guide .lead { max-width: none; }
.guide p, .guide li { color: var(--ink-2); }
.guide ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
.guide p a, .guide li a { color: var(--accent); text-decoration: underline; }
.guide-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0; }
.guide-table th, .guide-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table th { font-weight: 700; color: var(--ink); }
.guide-table td { color: var(--ink-2); }
.guide-table td:first-child { font-weight: 600; color: var(--ink); }
.guide-cta { background: var(--bg-2); border-radius: var(--radius); padding: 1.6rem; margin: 2.5rem 0; display: grid; gap: .9rem; justify-items: start; }
.guide-cta p { margin: 0; }
.guide-cta .btn, .nav a.btn { display: inline-block; }
.nav nav a.btn { color: var(--accent-ink); }
@media (max-width: 720px) { .nav nav a.btn { display: inline-block; } }
.foot-guides { list-style: none; padding: 0; margin: .6rem 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .9rem; }
.foot-guides a { color: var(--ink-2); text-decoration: underline; }
.foot-guides a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }

/* Result actions: buttons wrap instead of overflowing on phones */
.composer .row.result-actions { flex-wrap: wrap; background: transparent; border: 0; box-shadow: none; padding: 0; gap: .5rem; }
.composer .row.result-actions .btn { flex: 1 1 auto; }
