:root {
  /* CG Realty brand, from cgrealtygroup.org: near black, charcoal, gold #A08030, Oswald headlines */
  --ground: #1A1A1A;
  --on-ground: #F2F1EC;
  --on-ground-muted: #A9A69E;
  --paper: #F4F3EF;
  --ink: #080808;
  --muted: #55524B;
  --line: #DCD9D1;
  --brass: #A08030;
  --late: #94450A;
  --late-soft: #FBEBDD;
  --tag: #ECE7DA;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --sans: "Lexend", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--on-ground); }
body { font: 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding: 22px 18px 132px; }

/* Today */
.top { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 10px; color: var(--on-ground-muted); font-size: 16px; }
.top strong { color: var(--on-ground); font-weight: 600; }
.pips { display: flex; gap: 6px; margin: 0 4px 18px; }
.pips i { flex: 1; height: 5px; border-radius: 3px; background: rgba(234,243,241,.22); }
.pips i.on { background: var(--brass); }
.focus { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 26px 22px 20px; box-shadow: 0 18px 40px rgba(0,0,0,.5); animation: inR .3s ease-out; }
.focus.out { animation: outL .28s ease-in forwards; }
@keyframes inR { from { transform: translateX(36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes outL { to { transform: translateX(-48px); opacity: 0; } }
.tag { display: inline-block; font-size: 15px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--tag); color: var(--ground); margin: 0 0 14px; }
.tag.late { background: var(--late-soft); color: var(--late); }
.tag.homes { background: #F1E6C8; color: #5E4A14; }
.fname { font-family: var(--display); font-weight: 600; font-size: 50px; line-height: .95; margin: 0 0 12px; letter-spacing: .005em; }
.fwhat { font-size: 24px; line-height: 1.28; margin: 0 0 22px; font-weight: 600; }
.go { width: 100%; min-height: 60px; border: 0; border-radius: 16px; background: var(--brass); color: #FFFFFF; font-weight: 600; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.notnow { width: 100%; min-height: 52px; margin-top: 10px; border-radius: 16px; border: 2px solid var(--line); background: transparent; font-weight: 600; cursor: pointer; color: var(--ink); }
.openlink { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 6px; color: var(--ground); font-weight: 600; text-decoration: none; }
.then { margin: 18px 6px 0; color: var(--on-ground-muted); font-size: 16px; }
.then b { color: var(--on-ground); font-weight: 600; }

.allclear { padding: 40px 6px 0; }
.allclear h1 { font-family: var(--display); font-weight: 600; font-size: 76px; line-height: .9; margin: 0 0 14px; }
.allclear p { font-size: 20px; margin: 0 0 26px; color: var(--on-ground-muted); }
.allclear p b { color: var(--on-ground); font-weight: 600; }
.ghost { min-height: 52px; padding: 0 20px; border-radius: 16px; border: 2px solid rgba(234,243,241,.35); background: transparent; color: var(--on-ground); font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }

/* Shared screen parts */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--on-ground); text-decoration: none; font-weight: 600; min-height: 44px; margin: -8px 0 4px; }
.h-big { font-family: var(--display); font-weight: 600; font-size: 50px; line-height: .95; margin: 0 0 8px; }
.sub { color: var(--on-ground-muted); margin: 0 0 18px; }
.paper { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 22px 20px; }
.paper + .paper { margin-top: 12px; }
.paper h2 { font-size: 16px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.reach { display: flex; gap: 12px; margin: 0 0 22px; }
.reach a, .reach button { flex: 1; text-decoration: none; min-height: 64px; border-radius: 18px; border: 0; background: rgba(234,243,241,.12); color: var(--on-ground); font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 15px; }
.nx { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; }
.nx .fwhat { font-size: 22px; margin-bottom: 18px; }
.notes { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 14px; }
.notes li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; }
.notes .d { color: var(--muted); font-size: 15px; padding-top: 2px; }
.notes .new { animation: glow 1.6s ease-out; border-radius: 8px; }
@keyframes glow { from { background: #FCEBC4; } to { background: transparent; } }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.tools a, .tools button { min-height: 46px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; font-weight: 600; cursor: pointer; }
.small { color: var(--muted); font-size: 15px; margin: 0; }

/* Homes */
.home { border: 2px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.homes { display: flex; flex-direction: column; gap: 10px; margin: 0 0 6px; }
.home .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.home .price { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1; }
.src { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--tag); color: var(--ground); white-space: nowrap; }
.src.hc { background: #F1E6C8; color: #5E4A14; }
.home .t { font-weight: 600; margin: 4px 0 0; }
.home .f { color: var(--muted); font-size: 15px; margin: 0; }
.home .acts { display: flex; gap: 8px; margin-top: 10px; }
.home .acts a, .home .acts button { flex: 1; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); min-height: 46px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; font-size: 15px; }
.home .acts .send { background: var(--ground); color: var(--on-ground); border-color: var(--ground); }

/* Setup guide */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--ground); color: var(--on-ground); font-weight: 600; font-size: 15px; display: grid; place-items: center; }
.check { display: flex; align-items: center; gap: 12px; min-height: 56px; border-radius: 16px; border: 2px solid var(--line); padding: 0 16px; font-weight: 600; cursor: pointer; background: #fff; width: 100%; text-align: left; }
.check .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #9AA8A5; display: grid; place-items: center; flex: none; }
.check.on .box { background: var(--ground); border-color: var(--ground); }
.why { background: var(--tag); border-radius: 16px; padding: 14px 16px; color: var(--ground); font-size: 15px; margin: 0 0 12px; }

/* Phone preview */
.lock { min-height: 100vh; min-height: 100dvh; background: linear-gradient(#2E2C28, #080808 70%); padding: 30px 14px 40px; color: #fff; }
.lock .clock { text-align: center; font-size: 84px; font-weight: 600; line-height: 1; margin: 10px 0 4px; letter-spacing: -.02em; }
.lock .day { text-align: center; font-size: 18px; margin: 0 0 30px; opacity: .85; }
.note { background: rgba(255,255,255,.88); color: #1B1F1F; border-radius: 20px; padding: 12px 14px; margin: 0 0 10px; display: grid; grid-template-columns: 38px 1fr; gap: 10px; text-decoration: none; }
.note .ic { width: 38px; height: 38px; border-radius: 9px; background: var(--ground); display: grid; place-items: center; color: var(--brass); font-family: var(--display); font-weight: 600; font-size: 22px; }
.note .hd { display: flex; justify-content: space-between; font-size: 14px; color: #555; }
.note .hd b { color: #1B1F1F; }
.note p { margin: 2px 0 0; font-size: 15px; line-height: 1.35; }
.quiet { text-align: center; font-size: 15px; opacity: .8; margin: 22px 10px 0; }
.lock .ghost { margin: 18px auto 0; display: flex; width: max-content; }

/* Capture bar and full screens */
.bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--ground) 70%, rgba(26,26,26,0)); }
.bar-inner { max-width: 448px; margin: 0 auto; }
.jot { width: 100%; min-height: 60px; border-radius: 20px; border: 0; background: var(--paper); color: var(--muted); display: flex; align-items: center; gap: 12px; padding: 0 8px 0 20px; text-align: left; cursor: text; }
.jot .t { flex: 1; font-size: 18px; }
.jot .mic { width: 46px; height: 46px; border-radius: 14px; background: var(--brass); display: grid; place-items: center; }
.full { position: fixed; inset: 0; background: var(--paper); color: var(--ink); z-index: 10; overflow: auto; animation: rise .22s ease-out; }
@keyframes rise { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
.full-in { max-width: 480px; margin: 0 auto; padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); }
.full-top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; gap: 12px; }
.full-top h1 { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1; margin: 0; }
.cancel { min-height: 44px; border: 0; background: none; color: var(--ground); font-weight: 600; cursor: pointer; padding: 0 4px; }
.full textarea { width: 100%; min-height: 180px; border: 2px solid var(--line); border-radius: 20px; padding: 16px; font-size: 20px; line-height: 1.4; resize: none; background: #fff; }
.full textarea:focus { border-color: var(--ground); outline: none; }
.linkline { min-height: 48px; display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 10px 0; flex-wrap: wrap; }
.chip { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--ground); color: var(--on-ground); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chips button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ground); color: var(--on-ground); border-color: var(--ground); }
.hint { color: var(--muted); font-size: 15px; margin: 12px 0 0; text-align: center; }
.pick { display: flex; flex-direction: column; gap: 10px; }
.pick button { min-height: 60px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font-weight: 600; font-size: 19px; text-align: left; padding: 0 18px; cursor: pointer; }
.wk ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.wk a { display: block; background: var(--paper); color: var(--ink); text-decoration: none; border-radius: 18px; padding: 14px 16px; }
.wk .n { font-weight: 600; display: block; }
.wk .s { color: var(--muted); font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; z-index: 20; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Real app additions: sign in, loading, errors, reminders. Same tokens as the approved look (look-b3.html). */
.signin { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 28px 22px 60px; max-width: 480px; margin: 0 auto; }
.signin h1 { font-family: var(--display); font-weight: 600; font-size: 56px; line-height: .95; margin: 0 0 8px; }
.signin p { color: var(--on-ground-muted); margin: 0 0 24px; }
.signin form { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.signin label { font-weight: 600; font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.signin input { min-height: 54px; border: 2px solid var(--line); border-radius: 16px; padding: 0 16px; font-size: 18px; background: #fff; }
.signin input:focus { border-color: var(--ink); outline: none; }
.err { color: var(--late); font-weight: 600; margin: 0; min-height: 1.5em; }
.loading { padding: 80px 6px; color: var(--on-ground-muted); text-align: center; }
.problem { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 22px 20px; margin-top: 30px; }
.problem p { margin: 0 0 16px; }
.remind { margin: 18px 4px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--on-ground-muted); font-size: 15px; }
.remind button { min-height: 44px; padding: 0 16px; border-radius: 14px; border: 2px solid rgba(234,243,241,.35); background: transparent; color: var(--on-ground); font-weight: 600; cursor: pointer; flex: none; }
.placeholder-name { font-size: 15px; color: var(--on-ground-muted); margin: -4px 0 14px; }
