/* 1201 Realty Group — client app
   Layout: phone-first single column (max 560px) with a fixed navy top bar and a bottom tab bar. */
:root {
  --ink: #0a1730; --navy: #12274d; --navy-2: #1f3d72;
  --gold: #c9a86a; --gold-light: #e8d3a5; --gold-deep: #8f6f36;
  --ivory: #fbf8f2; --cream: #f5efe3; --card: #ffffff;
  --text: #16223d; --soft: #575247; --line: #e6dcc8;
  --on-dark: #f4efe6; --on-dark-soft: #c8c1b3; --line-dark: rgba(201,168,106,.3);
  --good: #2e6b4a;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --top-h: 64px; --tab-h: 66px;
  --ease: cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--ivory); font-size: 15.5px; line-height: 1.55; font-variant-numeric: lining-nums; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 30; background: var(--ink); color: var(--on-dark);
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line-dark); }
.topbar__in { height: var(--top-h); max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.topbar__back { width: 40px; height: 40px; border: 0; background: rgba(255,255,255,.06); border-radius: 50%; display: grid; place-items: center; color: var(--gold-light); cursor: pointer; flex: none; }
.topbar__back svg { width: 20px; height: 20px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.brand__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand__team { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--gold-light); white-space: nowrap; }
.brand__broker { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--on-dark); }
.topbar__call { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--gold-light); flex: none; }
.topbar__call svg { width: 18px; height: 18px; }

/* ---------- Main ---------- */
main { padding: calc(var(--top-h) + env(safe-area-inset-top, 0px) + 16px) max(16px, env(safe-area-inset-right, 0px)) calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 28px) max(16px, env(safe-area-inset-left, 0px)); }
.view { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; animation: in .35s var(--ease); }
@keyframes in { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }
.view__title { font-size: 32px; color: var(--ink); }
.view__lead { margin: -8px 0 0; color: var(--soft); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin: 0; }
.section-label { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin: 8px 0 -6px; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(120% 120% at 100% 0%, var(--navy-2) 0%, var(--ink) 62%); color: var(--on-dark); border-radius: 20px; padding: 22px 20px 20px; display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; }
.hero img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(201,168,106,.14); }
.hero__script { font-family: var(--script); font-size: 26px; color: var(--gold-light); line-height: 1; margin: 0 0 2px; }
.hero__script b { font-family: var(--display); font-weight: 700; font-size: .78em; }
.hero h1 { font-size: 27px; }
.hero__sub { margin: 4px 0 0; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.hero__lock { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); padding-top: 12px; font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.25; }
.hero__lock span { color: var(--gold-light); }

/* ---------- Quick actions ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.qa svg { width: 24px; height: 24px; color: var(--gold-deep); }
.qa:active { background: var(--cream); }

/* ---------- Feature tiles ---------- */
.feature { display: grid; grid-template-columns: 52px 1fr 20px; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; text-decoration: none; background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, #b8955a 100%); color: var(--ink); box-shadow: 0 14px 30px -18px rgba(143,111,54,.9); border: 0; cursor: pointer; text-align: left; width: 100%; }
.feature .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--gold-light); display: grid; place-items: center; }
.feature .ic svg { width: 26px; height: 26px; }
.feature b { display: block; font-family: var(--display); font-size: 22px; line-height: 1.1; }
.feature span.s { display: block; font-size: 13px; color: #3b3220; margin-top: 2px; }
.feature .chev { width: 18px; height: 18px; }
.feature--dark { background: var(--ink); color: var(--on-dark); box-shadow: none; }
.feature--dark .ic { background: rgba(201,168,106,.16); }
.feature--dark span.s { color: var(--on-dark-soft); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; cursor: pointer; text-align: left; width: 100%; min-height: 112px; }
.tile svg { width: 26px; height: 26px; color: var(--gold-deep); }
.tile b { font-family: var(--display); font-size: 21px; color: var(--ink); line-height: 1.1; }
.tile span { font-size: 12.5px; color: var(--soft); line-height: 1.4; }
.tile:active { background: var(--cream); }

/* ---------- Lists ---------- */
.list { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.row { display: grid; grid-template-columns: 42px 1fr 18px; gap: 12px; align-items: center; padding: 14px 14px; text-decoration: none; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; }
.row + .row { border-top: 1px solid var(--line); }
.row .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--gold-light); display: grid; place-items: center; }
.row .ic svg { width: 20px; height: 20px; }
.row b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.row small { display: block; font-size: 12.5px; color: var(--soft); margin-top: 1px; line-height: 1.4; }
.row .chev { width: 16px; height: 16px; color: var(--gold-deep); }
.row:active { background: var(--cream); }

/* ---------- Cards / text ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.card h2 { font-size: 24px; color: var(--ink); margin-bottom: 6px; }
.card h3 { font-size: 20px; color: var(--ink); margin: 14px 0 4px; }
.card p { margin: 0 0 10px; color: var(--soft); }
.card p:last-child { margin-bottom: 0; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.facts li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 14px; }
.facts li b { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); padding-top: 2px; }
.note { font-size: 12.5px; color: var(--soft); background: var(--cream); border-radius: 12px; padding: 12px 14px; line-height: 1.5; }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 12px; }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f { display: grid; gap: 5px; min-width: 0; }
.f--full { grid-column: 1 / -1; }
.f label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.f .in { position: relative; }
.f input, .f select, .f textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: 500 16px var(--body); color: var(--text); background: #fff; border: 1px solid #cfc4ad; border-radius: 10px; font-variant-numeric: tabular-nums; }
.f textarea { min-height: 96px; resize: vertical; font-weight: 400; }
.f .pre input { padding-left: 26px; } .f .suf input { padding-right: 34px; }
.f .pre::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--soft); font-weight: 500; }
.f .suf::after { content: attr(data-suf); position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--soft); font-size: 14px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(201,168,106,.25); }
.f small { font-size: 11.5px; color: var(--soft); }
.result { background: var(--ink); color: var(--on-dark); border-radius: 18px; padding: 18px; }
.result__label { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin: 0; }
.result__big { font-family: var(--display); font-size: 44px; font-weight: 600; line-height: 1.05; margin: 4px 0 2px; font-variant-numeric: lining-nums tabular-nums; }
.result__sub { font-size: 13px; color: var(--on-dark-soft); margin: 0; }
.breakdown { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-dark); display: grid; gap: 7px; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.breakdown li span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: #fff; }
.breakdown li.minus span:last-child { color: #f0c9a0; }
.breakdown li.total { border-top: 1px solid var(--line-dark); padding-top: 8px; margin-top: 2px; }
.breakdown li.total span { color: var(--gold-light) !important; font-weight: 700; }
.bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin-top: 14px; background: rgba(255,255,255,.08); }
.bar i { display: block; height: 100%; }

/* ---------- Buttons ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; border-radius: 14px; border: 1px solid transparent; font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn--gold { background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, #b8955a 100%); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--gold-light); }
.btn--line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btns { display: grid; gap: 10px; }
.btns--2 { grid-template-columns: 1fr 1fr; }

/* ---------- Checklists ---------- */
.progress { display: flex; align-items: center; gap: 12px; }
.progress__bar { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 99px; transition: width .3s var(--ease); }
.progress span { font-size: 12.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.check { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.check li + li { border-top: 1px solid var(--line); }
.check label { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 16px; cursor: pointer; align-items: start; }
.check input { appearance: none; width: 24px; height: 24px; margin: 0; border: 2px solid #c9bda4; border-radius: 7px; display: grid; place-items: center; background: #fff; cursor: pointer; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--gold-light); border-bottom: 2px solid var(--gold-light); transform: rotate(-45deg) translate(1px,-1px); }
.check b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.check small { display: block; font-size: 12.5px; color: var(--soft); margin-top: 2px; line-height: 1.45; }
.check input:checked + span b { text-decoration: line-through; text-decoration-color: var(--gold-deep); color: var(--soft); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 12px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent { font-size: 11.5px; color: var(--soft); line-height: 1.55; margin: 0; }
.hp { position: absolute; left: -9999px; }
.ok { display: grid; gap: 6px; text-align: center; padding: 22px 16px; background: var(--cream); border-radius: 16px; }
.ok b { font-family: var(--display); font-size: 24px; color: var(--ink); }
.ok span { color: var(--soft); font-size: 14px; }

/* ---------- Social + notices ---------- */
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-light); }
.social svg { width: 19px; height: 19px; }
.legal { text-align: center; font-size: 12px; color: var(--soft); line-height: 1.6; }
.legal a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--gold-deep); }

/* ---------- Install banner ---------- */
.install { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--cream); border: 1px dashed var(--gold-deep); }
.install img { width: 44px; height: 44px; border-radius: 10px; }
.install b { display: block; font-size: 14.5px; color: var(--ink); }
.install span { font-size: 12.5px; color: var(--soft); }
.install .btns { grid-column: 1 / -1; }
.steps { margin: 6px 0 0; padding-left: 20px; font-size: 14px; color: var(--soft); display: grid; gap: 6px; }

/* ---------- Tab bar ---------- */
.tabs { position: fixed; inset: auto 0 0 0; z-index: 30; background: rgba(10,23,48,.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-dark);
  padding: 0 max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px)); }
.tabs__in { max-width: 560px; margin: 0 auto; height: var(--tab-h); display: grid; grid-template-columns: repeat(5, 1fr); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; color: var(--on-dark-soft); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; cursor: pointer; }
.tab svg { width: 23px; height: 23px; }
.tab[aria-current="page"] { color: var(--gold-light); }
.tab[aria-current="page"] svg { filter: drop-shadow(0 0 6px rgba(232,211,165,.35)); }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 14px); transform: translateX(-50%); z-index: 40; background: var(--gold-light); color: var(--ink); padding: 10px 18px; border-radius: 99px; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .3s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; }

@media (max-width: 370px) {
  .brand__team { font-size: 18px; } .brand__broker { font-size: 9.5px; }
  .quick { gap: 6px; } .qa { font-size: 10px; }
  .calc__grid, .form .row2 { grid-template-columns: 1fr; }
}
