/* Advocata site styles. Source of truth: DESIGN.md. Light only. */
:root{color-scheme:light;
  --ground:#F3F6F1;--panel:#E4ECE3;--surface:#FFFFFF;--ink:#2A343D;--muted:#66727B;--placeholder:#A3ABB2;--line:#D3DCD3;
  --button:#2A7152;--button-ink:#FFFFFF;--accent:#4F7D66;--accent-soft:#DCE8DE;--accent-pick:#C6DBCB;--error:#A24A3B;
  --shadow:0 2px 6px rgba(42,52,61,.06),0 16px 40px rgba(42,52,61,.08)}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--ink);font:17px/1.55 "DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--accent);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--accent) 40%,transparent);text-underline-offset:3px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
h1,h2,h3{font-family:"Fraunces",Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.012em;text-wrap:balance;margin:0}
p{margin:0 0 12px;max-width:62ch}
.wrap{max-width:1120px;margin:0 auto;padding:28px 24px 64px}
.brand{display:flex;justify-content:space-between;align-items:center;margin-bottom:40px}
.brand .name{font-family:"Fraunces",Georgia,serif;font-weight:500;font-size:1.15rem;display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}
.brand .dot{width:12px;height:12px;border-radius:50%;background:var(--accent);display:inline-block}
.hero{display:grid;grid-template-columns:.9fr 1.1fr;column-gap:44px;align-items:center}
.hero .left{display:grid;gap:4px}
.hero h1{font-size:2.9rem;line-height:1.08}
.period{color:var(--accent)}
.hero .promise{font-size:1.2rem;margin:18px 0 22px;max-width:40ch}
.reassure{display:grid;gap:8px;margin-top:8px;color:var(--muted);font-size:.98rem}
.reassure div{display:grid;grid-template-columns:18px 1fr;gap:10px;align-items:start}
.reassure .tick{width:18px;height:18px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font:700 .75rem/18px "DM Sans",sans-serif;text-align:center;margin-top:3px}
.card{background:var(--surface);border-radius:22px;padding:34px 34px 30px;box-shadow:var(--shadow)}
.card .q{display:block;font-family:"Fraunces",Georgia,serif;font-size:1.8rem;font-weight:500;line-height:1.2;margin:6px 0 20px}
.card .help{color:var(--muted);margin:0 0 18px;font-size:.98rem}
.btn{font:600 1.02rem "DM Sans",sans-serif;background:var(--button);color:var(--button-ink);border:none;border-radius:12px;padding:14px 20px;cursor:pointer;text-decoration:none;display:inline-block}
.btn.big{width:100%;font-size:1.15rem;padding:18px 20px;margin-top:20px;border-radius:14px;text-align:center}
.btn:hover{filter:brightness(1.08)}
.btn.quiet{background:transparent;color:var(--ink);border:1px solid var(--line)}
.btn.loading{opacity:.75;cursor:progress}
.btn.loading::after{content:"";display:inline-block;width:14px;height:14px;margin-left:10px;vertical-align:-2px;border:2px solid rgba(255,255,255,.55);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.price{margin-top:12px;color:var(--muted);font-size:.95rem;text-align:center;font-variant-numeric:tabular-nums}
.fine{color:var(--muted);font-size:.9rem}
.value{margin-top:64px}
.value .lines{font-family:"Fraunces",Georgia,serif;font-size:1.55rem;line-height:1.35;font-weight:400;max-width:34em}
/* example map: a real, quiet base map; the labels carry what each office said */
.value{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.map{margin:0;background:var(--panel);border-radius:22px;padding:18px 18px 16px}
.map-title{font-family:"Fraunces",Georgia,serif;font-size:1.2rem;font-weight:500;margin:0 0 12px}
.map-stage{position:relative;border-radius:14px;overflow:hidden;background:#EEF1EC}
.map-stage img{display:block;width:100%;height:auto;opacity:.92}
.map-stage .pin{position:absolute;z-index:1;width:15px;height:15px;border-radius:50%;transform:translate(-50%,-50%);box-sizing:border-box;box-shadow:0 1px 3px rgba(42,52,61,.25)}
.pin.fit{background:var(--button);border:2px solid #FFFFFF}
.pin.partial{background:#FFFFFF;border:3px solid var(--button)}
.pin.no{background:#FFFFFF;border:2px solid #9AA4AA}
.map-stage .you{position:absolute;z-index:2;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:2px}
.map-stage .you i{width:18px;height:18px;border-radius:50%;background:#FFFFFF;border:3px solid var(--ink);box-sizing:border-box;box-shadow:0 0 0 3px rgba(255,255,255,.7)}
.map-stage .you span{font:600 11px "DM Sans",sans-serif;color:var(--ink);background:rgba(255,255,255,.85);padding:1px 5px;border-radius:5px}
.map-stage .ring{position:absolute;transform:translate(-50%,-50%);border:1.5px dashed var(--accent);border-radius:50%;opacity:.7;pointer-events:none}
.map-stage .ring b{position:absolute;left:50%;top:100%;transform:translate(-50%,-50%);font:500 11px "DM Sans",sans-serif;color:var(--accent);background:rgba(243,246,241,.92);padding:1px 6px;border-radius:5px;white-space:nowrap}
.map-stage .tag{position:absolute;z-index:3;font:600 13px/1.25 "DM Sans",sans-serif;color:var(--ink);background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:8px;padding:5px 9px;white-space:nowrap;box-shadow:0 1px 4px rgba(42,52,61,.14);pointer-events:none}
.map-stage .tag.fit{border-color:var(--button);color:var(--button)}
.map-stage .tag.no{color:var(--muted);font-weight:500}
.map-stage .tag.r{transform:translate(12px,-50%)}
.map-stage .tag.l{transform:translate(calc(-100% - 12px),-50%)}
.map-stage .tag.a{transform:translate(-50%,calc(-100% - 12px))}
.map figcaption{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:12px;font-size:.9rem;color:var(--ink)}
.map figcaption span{display:inline-flex;align-items:center;gap:7px}
.map figcaption .pin{position:static;width:13px;height:13px;transform:none;box-shadow:none;display:inline-block;border-radius:50%;box-sizing:border-box}
.map .map-note{margin:8px 0 0;font-size:.78rem;color:var(--muted);max-width:none}
@media (max-width:1000px){.map-stage .tag{font-size:12px;padding:4px 7px}}
@media (max-width:900px){.map-stage .tag:not(.m){display:none}}
/* search-style question */
.combo{position:relative}
.combo-input{font:1.1rem "DM Sans",sans-serif;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 16px;width:100%;min-height:56px}
.combo-input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px var(--accent-soft)}
.combo-list{display:grid;gap:6px;margin-top:8px}
.combo-list[hidden]{display:none} /* display:grid would otherwise override the hidden attribute and leave an 8px ghost under the field */
.combo-item{text-align:left;font:1.02rem "DM Sans",sans-serif;min-height:46px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 14px;cursor:pointer;width:100%}
.combo-item.on,.combo-item:focus-visible{border-color:var(--accent);background:var(--accent-soft);outline:none}
@media (hover:hover){.combo-item:hover{border-color:var(--accent);background:var(--accent-soft);outline:none}}
.combo-item.free{color:var(--muted)}
.hero .card .combo-list{margin-top:8px}
.hero .card .btn.big{margin-top:20px}
.hero .card .err:empty{display:none} /* the reserved error line pushed the button away from the box (2026-10-07) */
.band{margin:56px -24px 0;padding:44px 24px;background:var(--panel);border-radius:22px}
.band p{font-family:"Fraunces",Georgia,serif;font-size:1.5rem;line-height:1.35;font-weight:400;max-width:26em;margin:0 auto;text-align:center;text-wrap:balance}
.hero .card .step{margin-bottom:6px}
.hero .card .q{font-size:1.55rem}
.hero .card .opt{margin-top:4px}
.hero .card .price{margin-top:16px}
.faq{margin-top:72px;max-width:744px}
.faq .eyebrow{font:500 .8rem/1 "DM Sans",sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 22px}
.faq details{border-top:1px solid var(--line)}
.faq details:last-of-type{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;font-weight:600;font-size:1.125rem;line-height:1.4;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--ink);font-weight:500;font-size:1.1rem;line-height:1;flex:none}
.faq details[open] summary::after{content:"×"}
.faq summary:hover{color:var(--accent)}
.faq .a{font-family:"Fraunces",Georgia,serif;font-weight:400;font-size:1.06rem;line-height:1.6;color:var(--ink);padding:0 0 22px;max-width:62ch}
.faq .a p{margin:0 0 12px;max-width:none}
.faq .a p:last-child{margin-bottom:0}
.faq .a ul{margin:0 0 12px;padding-left:1.2em}
.faq .a li{margin-bottom:6px}
footer{margin-top:64px;padding-top:18px;border-top:1px solid var(--line);color:var(--muted);font-size:.9rem;display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center}
footer a{color:var(--muted)}
/* form (/request) */
.form-wrap{max-width:680px}
.form-card{padding:30px 32px 28px}
.form-card .q{font-family:"Fraunces",Georgia,serif;font-size:1.75rem;font-weight:500;line-height:1.2;margin:0 0 18px}
.form-card .q + .help{margin-top:-14px} /* a screen subtitle stays tight under its title; a first label gets the full 18px */
.form-card .q2{font-family:"Fraunces",Georgia,serif;font-size:1.3rem;font-weight:500;line-height:1.25;margin:22px 0 6px}
.form-card .help{color:var(--muted);margin:0 0 22px;font-size:.98rem}
.form-hint{text-align:center;margin-top:12px}
.cc{display:grid;gap:6px;margin-bottom:6px} /* the step counter belongs to the strip above it */
.cc-line{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:baseline;text-align:left;background:transparent;border:none;border-bottom:1px solid var(--line);padding:6px 2px 8px;cursor:pointer;font:400 .95rem "DM Sans",sans-serif;color:var(--ink);width:100%}
.cc-line .lab{color:var(--muted)}.cc-line .ans{font-weight:500}.cc-line .edit{color:var(--muted);font-size:.8rem}
.cc-line:hover .ans,.cc-line:focus-visible .ans{color:var(--accent)}.cc-line:focus-visible{outline:none}
.opt-btn{text-align:left;font:1.08rem "DM Sans",sans-serif;min-height:56px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:13px 16px;cursor:pointer;display:flex;align-items:center;gap:12px;width:100%;text-decoration:none}
/* Hover is gated on a real pointer: a phone keeps :hover on the last row tapped, so an untouched row kept the hover tint after being unticked (2026-09-15). */
.opt-btn:not(.on):focus-visible{border-color:var(--accent);background:var(--accent-soft);outline:none}
@media (hover:hover){.opt-btn:not(.on):hover{border-color:var(--accent);background:var(--accent-soft);outline:none}}
/* A chosen row reads as chosen from across the screen: deeper fill, the button green on the border and the mark (2026-09-15). */
/* Every answered control reads the same: the --ground tint, a plain border, and the mark carrying the green. Two levels only, white for empty (2026-09-15). */
.opt .opt-btn.on,.opt-btn.on{border-color:var(--line);background:var(--ground);outline:none;box-shadow:none}
.opt-btn .mark{flex:none;width:22px;height:22px;border:1.5px solid var(--line);background:var(--ground);display:flex;align-items:center;justify-content:center;font:700 .82rem "DM Sans",sans-serif;color:var(--button-ink)}
.opt-btn .mark.many{border-radius:6px}
.opt-btn .mark.one{border-radius:50%}
.opt-btn .mark.on{background:var(--button);border-color:var(--button)}
.opt-btn .mark.one.on::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--button-ink)}
@media (hover:hover){.opt-btn:hover .mark{border-color:var(--accent)}}
.opt-btn .key{font:600 .78rem "DM Sans",sans-serif;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:2px 7px;background:var(--surface);flex:none}
.nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}
.nav-right{display:flex;gap:10px;align-items:center}
.brand .exit{margin-left:auto;font-size:.92rem;color:var(--muted)}
.form-card textarea{font:1.05rem/1.45 "DM Sans",sans-serif;color:var(--ink);background:var(--ground);border:1px solid var(--line);border-radius:10px;padding:12px 14px;width:100%;min-height:88px;resize:vertical}
.form-card .field input:focus,.form-card textarea:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px var(--accent-soft)}
.rank-btn .key.rank{min-width:26px;text-align:center;color:var(--button-ink);background:var(--button);border-color:var(--button)}
.rank-btn:not(.on) .key.rank{background:var(--surface);border-color:var(--line);color:transparent}
.note-line{margin-top:14px;padding:12px 14px;background:var(--panel);border-radius:12px;font-size:.98rem;max-width:none}
.other{margin-top:14px}
.summary{margin:0 0 16px;border-top:1px solid var(--line)}
.sum-title{font-weight:600;padding:12px 0 4px}
.sum-row{display:grid;grid-template-columns:120px 1fr;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:.95rem}
.sum-row .lab{color:var(--muted)}
.consent{display:grid;grid-template-columns:18px 1fr;gap:10px;align-items:start;font-size:.95rem;margin:14px 0 4px;cursor:pointer}
.consent input{width:18px;height:18px;accent-color:var(--accent);margin:3px 0 0}
@media (max-width:820px){.form-card{padding:22px 16px 20px}.form-card .q{font-size:1.5rem}.opt-btn{min-height:60px;font-size:1.1rem}.sum-row{grid-template-columns:1fr}}

/* peek arrows: look through the questions before answering, Typeform-style pill at the bottom right */
.arrows{position:fixed;right:22px;bottom:22px;display:flex;gap:2px;z-index:5;border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}
.arrows button{width:52px;height:48px;border:none;background:var(--button);color:var(--button-ink);font-size:.95rem;cursor:pointer}
.arrows button:hover{filter:brightness(1.08)}
.arrows button:disabled{opacity:.4;cursor:default;filter:none}
@media (max-width:820px){.arrows{right:12px;bottom:12px}.arrows button{width:46px;height:44px}}
.step .resume{color:var(--muted)}.step .resume a{color:var(--accent)}
/* the Other row is a text box styled like the option rows above it */
.other-row{padding:6px 16px 6px 16px;cursor:text}
.other-row .other-input{flex:1;font:1.08rem "DM Sans",sans-serif;color:var(--ink);background:transparent;border:none;outline:none;min-height:40px;padding:0}
/* A placeholder is an example, never an answer: iOS will not open the keyboard for a programmatic focus, so a dark placeholder read as a filled field (2026-09-15). */
input::placeholder,textarea::placeholder{color:var(--placeholder);opacity:1}
.other-row .other-input::placeholder{color:var(--muted);opacity:1} /* here the placeholder is the option's label, so it keeps label weight */
/* Three levels: white is empty, --ground is an answer already given, --accent-pick is a choice the visitor made. The answered tint lands when the box loses focus, not on the first keystroke (2026-09-15). */
.field input.filled,.field textarea.filled,.combo-input.filled{background:var(--ground)}
.other-row:focus-within{border-color:var(--accent)}
/* Referral capture (2026-09-18): a dashed box, camera first, a file link and typing as the fallbacks; a picked photo shows as a thumbnail with Retake and Remove. */
.referral-block{margin-top:22px} /* the block follows the Yes/No rows and takes the gap any field takes after option rows */
.capture{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:16px;display:grid;gap:12px;justify-items:center;text-align:center;position:relative}
.capture .file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.capture-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;width:100%;font-size:1.02rem}
.capture-btn svg{width:20px;height:20px;flex:none}
.capture-links{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;font-size:.94rem;color:var(--muted)}
.capture-links.row{flex-direction:row}
.link-btn{background:transparent;border:none;padding:0;color:var(--accent);font:500 .94rem "DM Sans",sans-serif;cursor:pointer;text-decoration:underline}
.capture textarea{width:100%;text-align:left;min-height:88px}
.capture-file{display:flex;align-items:center;gap:12px;width:100%;text-align:left;flex-wrap:wrap}
.capture-lead{margin:0;color:var(--muted);font-size:.94rem}
.capture-meta{flex:1;display:grid;gap:4px;justify-items:start;min-width:0}
.capture-meta .file-name{white-space:normal}
.capture-meta .capture-links{justify-content:flex-start}
.capture-thumb{width:56px;height:56px;object-fit:cover;border-radius:8px;border:1px solid var(--line);flex:none}
.capture-pdf{width:56px;height:56px;border-radius:8px;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font:600 .8rem "DM Sans",sans-serif;color:var(--muted);flex:none}
.capture .file-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* A sub-question label with no help line under it sits on its rows; give it the room the help line would have taken. */
.field.sub-q + .opt{margin-top:10px}
/* Friends mode (2026-09-27): extra-visit blocks on the confirm screen. */
.form-card .extra-visit{margin-top:16px;padding-top:4px;border-top:1px solid var(--line)}
.form-card .link-btn{background:transparent;border:none;padding:0;color:var(--accent);font:500 .94rem "DM Sans",sans-serif;cursor:pointer;text-decoration:underline}
.form-card .add-visit{display:block;margin:6px 0 22px}
.form-card .opt ~ .extra-visit{margin-top:22px}
.hero .card .btn.quiet.alt-cta{display:block;width:100%;text-align:center;margin-top:12px;padding:12px 16px;font-size:1.02rem} /* standard size under the one big primary, so the hierarchy holds */
.form-card .referral-check{display:flex;align-items:center;gap:10px;margin:-10px 0 22px;font-size:1rem;color:var(--ink);cursor:pointer}
.form-card .referral-check input{width:20px;height:20px;accent-color:var(--button);margin:0}
/* Three levels on every form screen: the question (serif), labels (sans 600 1rem), subtext (muted) directly under its label or question, then the control. 14px from one block to the next label. */
.form-card .help.sub-help{font-size:.94rem;line-height:1.4}
.field.sub-q{margin:0}
.field.sub-q + .help.sub-help{margin:0 0 8px}
.field .help.sub-help{margin:-6px 0 0}
.form-card .opt ~ .field{margin-top:22px}
.form-card .field + .field{margin-top:0} /* only the first field after a row group gets the extra room */
.form-card .err:empty{display:none}
.sub-fields{margin-top:16px}
.form-card .opt + .err:empty{display:none}
/* legacy form classes */
.step{color:var(--muted);font-size:.85rem;margin-bottom:16px;font-variant-numeric:tabular-nums}
.field{display:grid;gap:6px;margin-bottom:22px}
.field label{font-weight:600;font-size:1.05rem;line-height:1.3}
.field input,.field select,.field textarea{font:1.05rem "DM Sans",sans-serif;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px 14px;width:100%;min-height:50px}
.opt{display:grid;gap:10px}
.opt button,.opt label.choice{text-align:left;font:1.08rem "DM Sans",sans-serif;min-height:56px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:13px 16px;cursor:pointer;display:flex;align-items:center;gap:12px;width:100%}
.opt .key{font:600 .78rem "DM Sans",sans-serif;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:2px 7px;background:var(--surface);flex:none}
.opt button:not(.on):focus-visible,.opt label.choice:has(input:checked){border-color:var(--accent);background:var(--accent-soft);outline:none}
@media (hover:hover){.opt button:not(.on):hover,.opt label.choice:not(.on):hover{border-color:var(--accent);background:var(--accent-soft);outline:none}}
.err{color:var(--error);font-size:.92rem;margin-top:8px;min-height:1.2em}
.legal{max-width:72ch}
.legal h1{font-size:2rem;margin-bottom:8px}
.legal h2{font-size:1.25rem;margin:28px 0 8px}
.legal p,.legal li{line-height:1.6}
.legal .updated{color:var(--muted);font-size:.9rem;margin-bottom:24px}
@media (max-width:820px){
  .hero{grid-template-columns:1fr;grid-template-areas:"lead" "card" "reassure";row-gap:0}.hero .left{display:contents}.hero .lead{grid-area:lead}.hero .reassure{grid-area:reassure}.hero .card{grid-area:card}.value{grid-template-columns:1fr}.wrap{padding:22px 16px 56px}.brand{margin-bottom:26px}
  .hero h1{font-size:2.15rem}.hero .promise{font-size:1.05rem;margin:14px 0 6px}
  .hero .card{padding:22px 16px 18px;margin:12px -4px 0}.hero .reassure{margin-top:22px}.hero .card .q{font-size:1.4rem}
  .band{margin:44px -16px 0;padding:32px 20px;border-radius:18px}.band p{font-size:1.25rem}
  .card .btn.big{margin-top:16px;font-size:1.2rem;padding:18px}
  .value{grid-template-columns:1fr;gap:24px}.value .lines{font-size:1.35rem}.map{padding:14px 12px 12px;margin:0 -4px}
}
@media (prefers-reduced-motion: no-preference){.btn,.opt button,.opt label.choice{transition:background .15s,border-color .15s,filter .15s}}
