/* The homeowner page. The concept's styles (page-final.html) made real: the 390 by 720
   mock frame became a full-height column, the mock boxes became real buttons and
   inputs. Colors are CSS variables set by /settings.js before the first paint, so this
   file holds no brand color of its own. The few fixed colors below are states the
   concept never drew (an error, a filled field) and the gold of the stars. */

*{box-sizing:border-box;margin:0;padding:0}
html,body{background:#fff;color:var(--ink);font:18px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
button,input{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
[hidden]{display:none !important}

.frame{width:100%;max-width:430px;margin:0 auto;min-height:100vh;min-height:100dvh;padding:14px 20px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;background:#fff}

/* ---- the big top: screen 1 only ---- */
.brand{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.mark{width:38px;height:38px;border-radius:10px;background:var(--blue);color:#fff;display:grid;place-items:center;font:italic 800 19px Georgia,serif;flex:none}
.brand b{display:block;font:800 16px/1.1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--blue-deep)}
.brand small{display:block;font-size:12px;color:var(--mid);margin-top:2px}
.trust{font-size:13px;color:var(--mid);margin-bottom:14px}
.trust .stars{color:#e0a100;letter-spacing:-1px;font-size:14px}
.h1{font:800 26px/1.12 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;letter-spacing:-.01em;margin-bottom:4px}
.lede{color:var(--mid);font-size:15px;margin-bottom:16px}

/* ---- the slim bar and the progress dots ---- */
.top{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--mid);margin:4px 0 22px}
.top b{color:var(--blue-deep);font-size:14px}
/* Screens 2 to 5: Back, then the name, on the left; the dots stay where the concept put
   them, on the right, at the concept's size. (Three layouts were rendered side by side;
   a centered name crowds the dots at 390 wide.) The button is 44 tall for a thumb; the
   negative margins keep the bar the concept's height. */
.top.nav{justify-content:flex-start}
.top.nav > b{margin-left:4px}
.top.nav > .prog{margin-left:auto}
.back{display:inline-flex;align-items:center;gap:7px;min-height:44px;margin:-12px 0 -12px -10px;padding:0 10px;border:0;border-radius:10px;background:none;color:var(--mid);font-size:14px;font-weight:600}
.prog{display:flex;gap:5px}
.prog i{width:20px;height:5px;border-radius:3px;background:var(--line)}
.prog i.on{background:var(--blue)}

/* ---- a question ---- */
.q{font:800 30px/1.1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;letter-spacing:-.015em;margin-bottom:8px}
.q:focus,.top b:focus{outline:0}
.hint{color:var(--mid);font-size:15px;margin-bottom:18px}
.big{display:flex;flex-direction:column;gap:10px}
.big button{width:100%;min-height:64px;border:2px solid var(--line);border-radius:16px;display:flex;align-items:center;padding:0 18px;font-weight:700;font-size:19px;background:#fff;text-align:left;color:var(--ink)}
.big button.on{border-color:var(--blue);background:var(--blue-tint);color:var(--blue-deep)}
.big button span{margin-left:auto;font-weight:400;font-size:13px;color:var(--mid)}

/* ---- the bottom of every screen ---- */
.spacer{flex:1;min-height:16px}
.next{width:100%;height:56px;border:0;border-radius:16px;background:var(--blue);color:#fff;font:800 18px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.next.send{background:var(--yellow);color:var(--yellow-ink)}
.next[disabled]{opacity:.75;cursor:default}
.small{text-align:center;font-size:13px;color:var(--mid);margin-top:10px}
.small a,.small b{color:var(--blue-deep);font-weight:700;text-decoration:none}
.small a{display:inline-block;padding:6px 2px;margin:-6px -2px}

/* ---- typing: the address, the name, the number ---- */
.in{display:block;width:100%;height:56px;border:2px solid var(--line);border-radius:16px;padding:0 16px;font-size:17px;color:var(--ink);background:#fff;margin-bottom:10px;outline:0;-webkit-appearance:none;appearance:none}
/* The concept drew placeholders in #98a1ab, which is 2.6 to 1 on white and fails the
   contrast bar. They take the page's own grey instead (6 to 1). Recorded in the README. */
.in::placeholder{color:var(--mid);opacity:1}
.in:not(:placeholder-shown){border-color:#cfd6de}
.in:focus{border-color:var(--blue)}
.in.bad{border-color:#b3261e}
.err{color:#8c1d18;font-size:14px;font-weight:600;margin:2px 2px 10px}
.err a{color:inherit;text-decoration:underline}

/* ---- the optional photos ---- */
.photos{position:relative;display:flex;align-items:center;gap:12px;border:2px dashed var(--blue);border-radius:16px;padding:12px 14px;margin-top:2px;background:var(--blue-tint)}
.photos svg{flex:none}
.photos b{display:block;font-size:15px;color:var(--blue-deep)}
.photos small{display:block;font-size:12px;color:var(--mid)}
/* The real file input lies over the whole box, invisible. A finger lands on the input
   itself, which is the one kind of tap every in-app browser passes through. */
.photos input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0}
.photos.full input{display:none}
.photos:focus-within{border-style:solid}
.thumbs{display:flex;gap:8px;margin-top:10px}
.thumbs figure{position:relative;width:72px;height:56px;border-radius:10px;overflow:hidden;background:var(--line);flex:none}
.thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.thumbs button{position:absolute;top:0;right:0;width:32px;height:32px;border:0;border-radius:0 0 0 10px;background:rgba(17,24,39,.78);color:#fff;font-size:18px;line-height:1;display:grid;place-items:center}
.note{font-size:13px;color:var(--mid);margin-top:10px}
.note a{color:var(--blue-deep);font-weight:700;text-decoration:none}

/* ---- after Send ---- */
.done{text-align:center;padding-top:40px}
.done .ok{width:80px;height:80px;border-radius:50%;background:#e6f4ea;color:var(--green);display:grid;place-items:center;margin:0 auto 20px;font-size:38px;font-weight:800}
.done h2{font:800 28px/1.15 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;margin-bottom:12px}
.done h2:focus{outline:0}
.done p{color:var(--mid);font-size:16px;line-height:1.5}
.done p b,.done p b a{color:var(--ink);text-decoration:none}
.done .missed{margin-top:18px;font-size:14px}
.done .missed a{color:var(--blue-deep);font-weight:700;text-decoration:none}

/* ---- for a screen reader, and for a robot ---- */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.trap{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

button:focus-visible,a:focus-visible{outline:3px solid var(--blue-deep);outline-offset:2px}
.photos:focus-within{outline:3px solid var(--blue-deep);outline-offset:2px}
