/* RentUK: light, airy frosted glass floating over soft colour. One brand colour (indigo), one warm accent.
   No external fonts or assets. */
:root {
  --bg: #eef1fc;
  --glass: linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58));
  --glass-strong: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.8));
  --glass-line: rgba(99, 102, 241, 0.16);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 1);
  --blur: blur(22px) saturate(180%);
  --float: 0 14px 32px -14px rgba(67, 56, 202, 0.32), 0 2px 6px rgba(67, 56, 202, 0.06);
  --tint: rgba(79, 70, 229, 0.07);
  --tint-2: rgba(79, 70, 229, 0.13);
  --text: #14183a;
  --muted: #565d82;
  --brand: #6366f1;
  --brand-text: #4338ca;
  --brand-solid: linear-gradient(135deg, #4f46e5, #6d5ef7);
  --warm: #f59e0b;
  --warm-2: #ea580c;
  --ok: #059669;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 24px;
  --radius-sm: 16px;
  /* names kept for older parts (wizard, share card) */
  --dark: #14183a; --light: #f4f6ff; --gray: #565d82; --primary: #6366f1; --accent: #a5b4fc;
  --danger: #ef4444; --warning: #f59e0b; --success: #10b981;
  --gradient-primary: var(--brand-solid); --shadow-xl: var(--float);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, #f4f5ff 0%, #e9f1fb 100%);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* Soft light behind the glass: indigo from the icon, a little teal, a touch of warm. Drifts slowly. */
body::before {
  content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 30% at 82% 12%, rgba(129, 140, 248, 0.5), transparent 70%),
    radial-gradient(36% 30% at 12% 58%, rgba(125, 211, 252, 0.5), transparent 70%),
    radial-gradient(34% 26% at 82% 86%, rgba(244, 184, 196, 0.42), transparent 70%);
  filter: blur(30px);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.06); } }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
svg { flex-shrink: 0; }

/* One glass recipe for every surface */
.glass, .hero, .next, .contact-card, .tile, .row, .stat, .big-stat, .panel, .note, .seg, .prop-chip, .tabbar, .pick, .usp li, .pager-btn, .icon-btn {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--glass-hi), var(--float);
}
.hero, .next, .contact-card, .tile, .row, .pick { transition: transform 0.18s ease, border-color 0.2s, background 0.2s; }
@media (hover: hover) {
  .hero:hover, .next:not(:disabled):hover, .contact-card:hover, .tile:hover, button.row:hover, .row:has(.row-text:hover), .pick:hover {
    transform: translateY(-2px); border-color: rgba(99, 102, 241, 0.4);
  }
}
.hero:active, .next:active, .contact-card:active, .tile:active, .row:active, .pick:active { transform: scale(0.985); }

/* ---- Shell ---- */
#app {
  height: 100vh; height: 100dvh; max-width: 520px; margin: 0 auto;
  display: flex; flex-direction: column; position: relative;
  padding-top: env(safe-area-inset-top);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; margin: 0; }
.brand img { border-radius: 9px; box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.8); }
.prop-chip {
  display: flex; align-items: center; gap: 4px; max-width: 60%;
  min-height: 40px; padding: 8px 10px 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
}
.prop-chip[hidden] { display: none; }
.prop-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop-chip svg { width: 18px; height: 18px; transform: rotate(90deg); color: var(--muted); }

.screen {
  flex: 1; min-height: 0; overflow-y: auto; outline: none; position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 6px 16px 100px;
  animation: rise 0.3s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Floating tab bar */
.tabbar {
  position: absolute; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 26px;
  background: var(--glass-strong);
}
.tabbar[hidden] { display: none; }
.tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 54px; border-radius: 20px; color: var(--muted); font-size: 0.7rem; font-weight: 600;
  transition: color 0.2s, background 0.25s;
}
.tabbar button.active { color: var(--brand-text); background: var(--tint-2); }
.tabbar button.active svg { color: var(--brand-text); }

/* Floating add button */
.fab {
  position: fixed; z-index: 5; width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center;
  right: max(20px, calc(50vw - 240px)); bottom: calc(max(12px, env(safe-area-inset-bottom)) + 84px);
  background: var(--brand-solid); color: #fff;
  box-shadow: 0 16px 34px -10px rgba(79, 70, 229, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.18s;
}
.fab svg { width: 26px; height: 26px; }
.fab:hover { transform: translateY(-2px); }
.fab:active { transform: scale(0.94); }

/* ---- Type ---- */
h1, h2, h3 { letter-spacing: -0.02em; }
.hello p { color: var(--muted); font-size: 0.95rem; }
.hello h2 { font-size: 1.7rem; font-weight: 800; line-height: 1.15; }
.screen-h { font-size: 1.5rem; font-weight: 800; }
.sub-h { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.fine { color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.empty { color: var(--muted); text-align: center; padding: 28px 12px; line-height: 1.5; }
.tone-ok { color: var(--ok); } .tone-warn { color: var(--warn); } .tone-bad { color: var(--bad); }
.grow { flex: 1; min-width: 0; }

/* ---- Home ---- */
.hero, .next, .contact-card { border-radius: var(--radius); display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; }
.hero { padding: 18px 16px; }
.hero-text, .next-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-text small, .next-text small, .tile small, .stat small, .big-stat small {
  color: var(--muted); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.hero-text strong { font-size: 1.3rem; }
.hero-text span, .next-text span { color: var(--muted); font-size: 0.9rem; }
.hero > svg, .next > svg, .contact-card > svg { color: var(--muted); }
.next, .contact-card { padding: 16px; }
.next:disabled { cursor: default; }
.next-text strong { font-size: 1.08rem; }
.next-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.16), 0 0 18px rgba(52, 211, 153, 0.7); flex-shrink: 0; margin: 0 4px; }
.next.tone-warn .next-dot { background: var(--warn); box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.16), 0 0 18px rgba(251, 191, 36, 0.7); }
.next.tone-bad .next-dot { background: var(--bad); box-shadow: 0 0 0 5px rgba(248, 113, 113, 0.18), 0 0 18px rgba(248, 113, 113, 0.7); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(248, 113, 113, 0.06), 0 0 22px rgba(248, 113, 113, 0.9); } }
.next.tone-bad strong { color: var(--text); }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--brand-solid); font-weight: 800; font-size: 1.15rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.contact-go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(52, 211, 153, 0.18); font-size: 1.2rem; }
.privacy-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.82rem; margin-top: auto; justify-content: center; text-align: left; }
.privacy-line svg { width: 18px; height: 18px; color: var(--ok); }

/* ---- Tiles (More) ---- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { border-radius: var(--radius); min-height: 92px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 8px; text-align: left; }
.tile-wide { flex-direction: column; }
.tile-wide > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.tile-wide strong { font-size: 1.02rem; }
.tile-wide small { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.82rem; }
.tile-emoji { font-size: 1.6rem; line-height: 1; }

/* ---- Lists and pager ---- */
.screen-head { display: flex; align-items: center; gap: 14px; }
.screen-head h2 { font-size: 1.35rem; font-weight: 800; }
.screen-head p { color: var(--muted); font-size: 0.86rem; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 7px 12px; border-radius: var(--radius-sm); text-align: left; width: 100%; box-shadow: var(--glass-hi); }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; padding: 4px 0; }
.row-text strong { font-size: 0.98rem; line-height: 1.25; }
.row-text small { color: var(--muted); font-size: 0.82rem; }
.row.done .row-text strong { color: var(--muted); text-decoration: line-through; }
.amount { font-weight: 700; }
.cat { font-size: 1.3rem; width: 28px; text-align: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--muted); }
.dot-ok { background: var(--ok); box-shadow: 0 0 10px rgba(52, 211, 153, 0.7); }
.dot-soon { background: var(--warn); box-shadow: 0 0 10px rgba(251, 191, 36, 0.7); }
.dot-expired { background: var(--bad); box-shadow: 0 0 10px rgba(248, 113, 113, 0.8); }
.check-row.status-expired { border-color: rgba(248, 113, 113, 0.45); }
.check-row.status-soon { border-color: rgba(251, 191, 36, 0.4); }
.check-toggle, .yn, .check-pill {
  min-width: 56px; min-height: 40px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center;
  background: var(--tint-2); border: 1px solid var(--glass-line); font-weight: 700; font-size: 0.85rem; white-space: nowrap;
}
.check-toggle.on, .yn.on { background: #059669; border-color: #059669; color: #fff; }
.check-pill.add { background: var(--brand-solid); border-color: transparent; color: #fff; }
.tick-btn { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; position: relative; color: transparent; }
.tick-btn::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(79, 70, 229, 0.3); transition: background 0.2s; }
.tick-btn.on::before { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 14px rgba(52, 211, 153, 0.6); }
.tick-btn.on { color: #fff; }
.tick-btn svg { width: 18px; height: 18px; position: relative; }
.auto-badge { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; font-size: 1.1rem; }

.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.pager-btn { display: flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 600; box-shadow: var(--glass-hi); }
.pager-btn svg { width: 18px; height: 18px; }
.pager-btn:disabled { opacity: 0.35; cursor: default; }
.pager-dots { display: flex; gap: 6px; }
.pager-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(79, 70, 229, 0.2); transition: width 0.25s; }
.pager-dots i.on { background: var(--brand); width: 20px; border-radius: 4px; }
.list-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-top: 4px; }
.list-head .link-btn { min-height: 32px; }

/* ---- Money ---- */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; }
.seg button { min-height: 40px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s; }
.seg button.on { background: var(--brand-solid); color: #fff; box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.8); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats-2 { grid-template-columns: 1fr 1fr; }
.stat { padding: 12px; border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 4px; }
.stat small { font-size: 0.66rem; }
.stat strong { font-size: 1.08rem; }
.stat-hi strong { color: var(--ok); }
.big-stat { padding: 20px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 4px; }
.big-stat strong { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }
.panel { padding: 14px 16px; border-radius: var(--radius-sm); }
.panel p { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
.bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bands span { display: flex; flex-direction: column; font-size: 0.78rem; color: var(--muted); }
.bands strong { font-size: 1.15rem; color: var(--text); }
.note { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.note.tone-ok { border-color: rgba(52, 211, 153, 0.4); }
.note.tone-warn { border-color: rgba(251, 191, 36, 0.45); }
.link-btn { display: flex; align-items: center; gap: 8px; color: var(--brand-text); font-weight: 600; min-height: 44px; }
.link-btn svg { width: 20px; height: 20px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px; border-radius: 999px;
  background: var(--brand-solid); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 12px 26px -12px rgba(79, 70, 229, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25); transition: transform 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-big { min-height: 56px; font-size: 1.08rem; width: 100%; }
.btn-ghost { background: var(--glass); color: var(--brand-text); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), var(--float); }
.btn-quiet { background: transparent; box-shadow: none; color: var(--bad); }
.btn-danger { background: #b91c1c; color: #fff; box-shadow: none; }
.btn-foot { margin-top: auto; width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }

/* ---- Welcome ---- */
.screen-welcome { justify-content: center; padding-bottom: 24px; }
.welcome { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 22px 18px; border-radius: 30px; }
.welcome-logo { border-radius: 28px; box-shadow: 0 24px 50px -18px rgba(99, 102, 241, 0.9); width: 104px; height: 104px; }
.welcome-h { font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.welcome-h span { background: linear-gradient(135deg, var(--warm), var(--warm-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome-sub { color: var(--muted); font-size: 1.05rem; line-height: 1.5; max-width: 340px; margin-bottom: 6px; }
.welcome .btn { width: 100%; }
.welcome .privacy-line { margin-top: 6px; }

/* ---- Sheets ---- */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(34, 38, 90, 0.34); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade 0.2s ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: calc(100% - 16px); max-width: 504px; max-height: 92dvh; overflow-y: auto; margin-bottom: max(8px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px; padding: 20px 18px;
  background: var(--glass-strong); border: 1px solid var(--glass-line); border-radius: 30px;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--glass-hi), 0 -10px 60px -20px rgba(49, 46, 129, 0.45);
  animation: up 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 600px) { .sheet-overlay { align-items: center; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field span { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field input {
  width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--glass-line); color-scheme: light; font-size: 1rem;
}
.field-row { display: flex; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--tint); border: 1px solid var(--glass-line); font-weight: 600; font-size: 0.9rem; }
.chip.on { background: var(--brand-solid); color: #fff; border-color: transparent; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.sheet-actions .btn:last-child { flex: 1; }
.sheet-error { color: var(--bad); font-weight: 600; }
.sheet-lead { display: flex; gap: 10px; color: var(--muted); line-height: 1.5; }
.sheet-lead svg { color: var(--ok); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack .btn { width: 100%; }
.story { color: var(--muted); line-height: 1.6; }
.usp { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.usp li { padding: 12px 14px; border-radius: var(--radius-sm); line-height: 1.45; color: var(--muted); box-shadow: var(--glass-hi); }
.usp strong { color: var(--text); display: block; }
.tagline { text-align: center; font-weight: 800; font-size: 1.1rem; background: linear-gradient(135deg, var(--warm), var(--warm-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border-radius: var(--radius-sm); text-align: left; box-shadow: var(--glass-hi); }
.pick strong { flex: 1; }
.pick.on { border-color: var(--brand); background: rgba(99, 102, 241, 0.22); }
.pick svg { color: var(--ok); }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.way {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px;
  border-radius: 20px; text-decoration: none; color: var(--text); font-weight: 700;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), var(--float); transition: transform 0.15s;
}
.way span { font-size: 1.6rem; }
.way:active { transform: scale(0.96); }

/* ---- Score ring ---- */
.score-ring {
  --c: var(--bad);
  width: var(--size); height: var(--size); border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.97) 80%, transparent 81%),
    conic-gradient(var(--c) calc(var(--p) * 1%), rgba(79, 70, 229, 0.12) 0);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--c) 45%, transparent));
}
.score-ring.level-fair { --c: var(--warn); }
.score-ring.level-great { --c: var(--ok); }
.score-num { font-size: calc(var(--size) * 0.34); font-weight: 800; }

/* ---- Setup wizard and confirm dialogs ---- */
.wizard-overlay { position: fixed; inset: 0; z-index: 10000; padding: 16px; background: rgba(34, 38, 90, 0.38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; }
.wizard {
  position: relative; width: 100%; max-width: 460px; max-height: 92dvh; overflow-y: auto;
  background: var(--glass-strong); border: 1px solid var(--glass-line); border-radius: 30px;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  padding: 28px 22px 20px; color: var(--text); box-shadow: var(--glass-hi), var(--float);
}
.wizard h3 { font-size: 1.4rem; margin: 4px 0 14px; color: var(--text); }
.wizard p { color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
.wizard input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 16px; margin-bottom: 8px; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--glass-line); color-scheme: light; }
.wizard input.invalid { outline: 2px solid var(--danger); }
.wizard-progress { height: 4px; background: var(--tint-2); border-radius: 4px; margin-bottom: 16px; }
.wizard-progress span { display: block; height: 100%; background: var(--brand-solid); border-radius: 4px; transition: width 0.3s; }
.wizard-kicker { color: #b45309; font-size: 0.85rem; font-weight: 700; }
.wizard-label { display: block; margin: 10px 0 6px; font-weight: 600; }
.wizard-label small, .yn-row small { display: block; color: var(--muted); font-weight: 400; }
.wizard-hint { color: var(--muted); font-size: 0.9rem; margin: 6px 0 10px; }
.wizard-close { position: absolute; top: 10px; right: 12px; color: var(--muted); font-size: 1.6rem; min-width: 44px; min-height: 44px; }
.yn-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--glass-line); }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 12px; }
.wizard-back { color: var(--muted); font-size: 1rem; min-height: 44px; padding: 0 8px; }
.wizard-score { display: grid; place-items: center; margin: 10px 0; }
.wizard-todo { list-style: none; padding: 0; }
.wizard-todo li { padding: 4px 0; }
#delete-all-dialog label { display: block; margin-top: 12px; }
#delete-all-dialog input { width: 100%; margin-top: 6px; }

/* ---- Demo, splash, install bar ---- */
.demo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 8px 16px 0; padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  background: rgba(251, 191, 36, 0.26); border: 1px solid rgba(217, 119, 6, 0.4); color: #7c2d12;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.demo-exit { color: #7c2d12; font-weight: 800; white-space: nowrap; }
#splash {
  position: fixed; inset: 0; z-index: 20000; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; transition: opacity 0.3s ease;
}
#splash img { border-radius: 22px; }
#splash p { font-size: 1.6rem; font-weight: 800; color: var(--text); }
#splash.hide { opacity: 0; pointer-events: none; }
.pwa-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 10500; width: calc(100% - 32px); max-width: 488px;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px;
  background: var(--glass-strong); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--glass-hi), var(--float); color: var(--text);
}
.pwa-bar p { flex: 1; margin: 0; font-size: 0.95rem; }
.pwa-bar .btn { padding: 0 16px; min-height: 44px; }
.pwa-close { color: var(--text); font-size: 1.4rem; min-width: 44px; min-height: 44px; }

/* ---- Accessibility ---- */
:focus-visible { outline: 3px solid #4f46e5; outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10001; background: var(--warm); color: #1c1917; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
/* Browsers without glass: solid surfaces so text stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero, .next, .contact-card, .tile, .row, .stat, .big-stat, .panel, .note, .seg, .prop-chip, .tabbar, .pick, .sheet, .wizard { background: #ffffff; }
}
/* Short screens: tighten so everything still fits without scrolling */
@media (max-height: 700px) {
  .hello p { display: none; }
  .hello h2 { font-size: 1.4rem; }
  .hero { padding: 14px; }
  .screen { gap: 10px; }
}

.pill-btn { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 0.88rem;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), var(--float); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.pill-btn svg { width: 18px; height: 18px; color: var(--brand-text); }
.screen-more .tiles { grid-auto-rows: minmax(140px, auto); }
.screen-more .tile-emoji { font-size: 2rem; }
.screen-home .hero { padding: 22px 18px; }

/* ---- Home dashboard: one bold hero and four tiles that fill the screen ---- */
.screen-home { gap: 10px; }
.screen-home .hello h2 { font-size: 1.6rem; }
.bento { flex: 1; min-height: 0; min-width: 0; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(112px, 1fr)) auto; gap: 12px; }
.bento .hero { grid-column: 1 / -1; padding: 20px 18px; color: #fff; border-color: transparent;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 55%), linear-gradient(135deg, #4338ca 0%, #6554f0 55%, #8467f4 100%);
  box-shadow: 0 22px 40px -18px rgba(79, 70, 229, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.bento .hero .hero-text small, .bento .hero .hero-text span, .bento .hero > svg { color: rgba(255, 255, 255, 0.96); }
.bento .hero .hero-text strong { color: #fff; font-size: 1.35rem; }
.bento .hero .score-ring { --c: #fecaca;
  background: radial-gradient(closest-side, #5d4ff2 80%, transparent 81%), conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, 0.3) 0);
  filter: drop-shadow(0 4px 14px rgba(30, 27, 120, 0.35)); }
.bento .hero .score-ring.level-fair { --c: #fde68a; }
.bento .hero .score-ring.level-great { --c: #a7f3d0; }
.bento .hero .score-num { color: #fff; }
.bento .tile { min-height: 0; padding: 16px; justify-content: space-between; }
.tile-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; width: 100%; }
.tile-body strong { font-size: 1.05rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile-body > span { color: var(--muted); font-size: 0.84rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-big { font-size: 2rem !important; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05 !important; display: block !important; }
.t-next { background: linear-gradient(150deg, rgba(220, 252, 231, 0.95), rgba(255, 255, 255, 0.6)); }
.t-next.tone-warn { background: linear-gradient(150deg, rgba(254, 243, 199, 0.98), rgba(255, 255, 255, 0.6)); }
.t-next.tone-bad { background: linear-gradient(150deg, rgba(254, 226, 226, 0.98), rgba(255, 255, 255, 0.6)); }
.t-money { background: linear-gradient(150deg, rgba(204, 251, 241, 0.95), rgba(255, 255, 255, 0.6)); }
.t-tenant { background: linear-gradient(150deg, rgba(224, 231, 255, 0.98), rgba(255, 255, 255, 0.6)); }
.t-dates { background: linear-gradient(150deg, rgba(255, 237, 213, 0.98), rgba(255, 255, 255, 0.6)); }
.t-next .next-dot { margin: 2px 0; }
.ways-mini { display: flex; gap: 6px; }
.ways-mini i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.85); box-shadow: 0 2px 6px rgba(67, 56, 202, 0.15); font-size: 0.95rem; }
.screen-home .privacy-line { margin-top: 2px; }
@media (max-height: 700px) { .bento .hero { padding: 14px; } .bento { grid-template-rows: repeat(2, minmax(96px, 1fr)) auto; gap: 10px; } .t-big { font-size: 1.6rem !important; } }
.avatar { color: #fff; }
.t-next.tone-warn .next-dot { background: var(--warn); box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.16), 0 0 16px rgba(217, 119, 6, 0.5); }
.t-next.tone-bad .next-dot { background: var(--bad); box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.16), 0 0 16px rgba(220, 38, 38, 0.5); animation: pulse 2.4s ease-in-out infinite; }
.t-next.tone-ok .next-dot { background: var(--ok); }
.screen-home > * { min-width: 0; }
.screen-more .tile:nth-child(1) { background: linear-gradient(150deg, rgba(224, 231, 255, 0.98), rgba(255, 255, 255, 0.6)); }
.screen-more .tile:nth-child(2) { background: linear-gradient(150deg, rgba(204, 251, 241, 0.95), rgba(255, 255, 255, 0.6)); }
.screen-more .tile:nth-child(3) { background: linear-gradient(150deg, rgba(255, 237, 213, 0.98), rgba(255, 255, 255, 0.6)); }
.screen-more .tile:nth-child(4) { background: linear-gradient(150deg, rgba(252, 231, 243, 0.98), rgba(255, 255, 255, 0.6)); }
@media (max-height: 700px) { .ways-mini { display: none; } .bento .tile-emoji { font-size: 1.3rem; } .bento .avatar { width: 38px; height: 38px; font-size: 1rem; } .bento .tile { padding: 14px; } }

/* Three colours on home: blue (brand), light blue (calm) and a very light maroon (needs a look) */
.t-next, .t-next.tone-ok { background: linear-gradient(150deg, rgba(219, 234, 254, 0.98), rgba(255, 255, 255, 0.62)); }
.t-next.tone-warn, .t-next.tone-bad { background: linear-gradient(150deg, rgba(250, 228, 233, 0.99), rgba(255, 255, 255, 0.62)); }
.t-money, .t-tenant { background: linear-gradient(150deg, rgba(219, 234, 254, 0.98), rgba(255, 255, 255, 0.62)); }
.t-dates { background: linear-gradient(150deg, rgba(250, 228, 233, 0.99), rgba(255, 255, 255, 0.62)); }
.t-next.tone-warn strong, .t-next.tone-bad strong { color: #9f1239; }
.t-next.tone-warn .next-dot, .t-next.tone-bad .next-dot { background: #be123c; box-shadow: 0 0 0 5px rgba(190, 18, 60, 0.14), 0 0 16px rgba(190, 18, 60, 0.45); }
.t-next.tone-ok .next-dot { background: #2563eb; box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.14), 0 0 16px rgba(37, 99, 235, 0.4); }
.screen-more .tile:nth-child(1), .screen-more .tile:nth-child(4) { background: linear-gradient(150deg, rgba(219, 234, 254, 0.98), rgba(255, 255, 255, 0.62)); }
.screen-more .tile:nth-child(2), .screen-more .tile:nth-child(3) { background: linear-gradient(150deg, rgba(250, 228, 233, 0.99), rgba(255, 255, 255, 0.62)); }
.bento .hero { padding: 16px 18px; }
.tagline-line { color: var(--brand-text); font-weight: 700; letter-spacing: 0.01em; }
.tagline-line svg { color: var(--brand-text); }
.bento .hero .score-ring, .bento .hero .score-ring.level-fair, .bento .hero .score-ring.level-great { --c: #ffffff; }

/* ---- Vibrant palette (Nov 2026): indigo brand, vivid sky blue, rich maroon ---- */
body::before {
  background:
    radial-gradient(38% 30% at 82% 10%, rgba(99, 102, 241, 0.45), transparent 70%),
    radial-gradient(38% 32% at 10% 55%, rgba(56, 189, 248, 0.5), transparent 70%),
    radial-gradient(34% 26% at 85% 88%, rgba(190, 18, 60, 0.2), transparent 70%);
}
.tile-sky, .bento .tile.tile-sky, .screen-more .tile.tile-sky {
  color: #08223f; border-color: rgba(255, 255, 255, 0.6);
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.45), transparent 55%), linear-gradient(150deg, #38bdf8 0%, #60c8fa 45%, #a5e0fd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 16px 32px -16px rgba(2, 132, 199, 0.65);
}
.tile-maroon, .bento .tile.tile-maroon, .screen-more .tile.tile-maroon {
  color: #fff; border-color: rgba(255, 255, 255, 0.2);
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.22), transparent 55%), linear-gradient(150deg, #7f1235 0%, #9f1239 45%, #c81e4a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 16px 32px -16px rgba(136, 19, 55, 0.75);
}
.tile-sky small, .tile-sky .tile-body > span, .tile-sky .tile-wide small, .screen-more .tile-sky small { color: #0b3a5e !important; }
.tile-maroon small, .tile-maroon .tile-body > span, .screen-more .tile-maroon small { color: rgba(255, 255, 255, 0.9) !important; }
.bento .tile.tile-maroon strong, .bento .t-next.tile-maroon strong, .screen-more .tile-maroon strong { color: #fff; }
.bento .tile.tile-sky strong { color: #08223f; }

/* Icon chips: one crisp line icon in a rounded square */
.ichip { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.ichip svg { width: 22px; height: 22px; stroke-width: 2; }
.ichip-sm { width: 34px; height: 34px; border-radius: 11px; }
.ichip-sm svg { width: 18px; height: 18px; }
.ichip-indigo { background: linear-gradient(135deg, #4f46e5, #7c6af7); box-shadow: 0 6px 14px -6px rgba(79, 70, 229, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.ichip-sky { background: linear-gradient(135deg, #0284c7, #38bdf8); box-shadow: 0 6px 14px -6px rgba(2, 132, 199, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.ichip-maroon { background: linear-gradient(135deg, #881337, #c81e4a); box-shadow: 0 6px 14px -6px rgba(136, 19, 55, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.ichip-glass { background: rgba(255, 255, 255, 0.28); border: 1px solid rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 14px -8px rgba(0, 0, 0, 0.25); }
.tile-sky .ichip-glass { color: #075985; background: rgba(255, 255, 255, 0.6); }
.bento .avatar { background: linear-gradient(135deg, #4f46e5, #0ea5e9); box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.bento .avatar svg { width: 22px; height: 22px; }
.ways-mini i { width: 32px; height: 32px; background: rgba(255, 255, 255, 0.75); color: #075985; }
.ways-mini i svg { width: 16px; height: 16px; stroke-width: 2; }
.way { gap: 8px; }
.way .ichip { width: 46px; height: 46px; }
.btn svg { width: 20px; height: 20px; }
.thumb-down svg { transform: rotate(180deg); }
.chip svg { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
.icon-btn svg { width: 22px; height: 22px; color: var(--brand-text); }
.screen-more .tile .ichip { margin-bottom: 4px; }
.auto-badge { width: 44px; }

/* Tab bar with life: each section has its colour; the open one glows */
.tabbar { padding: 7px; }
.tabbar button { color: var(--muted); }
.tabbar button svg { width: 24px; height: 24px; transition: transform 0.2s; }
.tabbar button[data-tab="home"] svg, .tabbar button[data-tab="dates"] svg { color: #4f46e5; }
.tabbar button[data-tab="checks"] svg { color: #be123c; }
.tabbar button[data-tab="money"] svg, .tabbar button[data-tab="more"] svg { color: #0284c7; }
.tabbar button.active { color: #fff; background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 55%, #0ea5e9 100%);
  box-shadow: 0 10px 22px -10px rgba(59, 130, 246, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.tabbar button.active svg { color: #fff; transform: translateY(-1px) scale(1.06); }
.tabbar button:not(.active):hover svg { transform: translateY(-2px); }
@media (max-height: 700px) {
  .bento .ichip, .bento .avatar { width: 30px; height: 30px; border-radius: 10px; }
  .bento .avatar { border-radius: 50%; font-size: 0.9rem; }
  .bento .ichip svg { width: 16px; height: 16px; }
  .bento .tile { gap: 2px; padding: 12px 14px; }
  .bento .tile-body strong { font-size: 0.98rem; -webkit-line-clamp: 1; }
  .bento .tile-body small { font-size: 0.66rem; }
}

/* ---- Two-colour system (17 Nov 2026): deep indigo = needs a look, sky blue = calm. Urgency is shown by an amber cue, not a third colour. ---- */
body::before {
  background:
    radial-gradient(38% 30% at 82% 10%, rgba(99, 102, 241, 0.42), transparent 70%),
    radial-gradient(38% 32% at 10% 55%, rgba(56, 189, 248, 0.45), transparent 70%),
    radial-gradient(34% 26% at 85% 88%, rgba(129, 140, 248, 0.3), transparent 70%);
}
.tile-deep, .bento .tile.tile-deep, .screen-more .tile.tile-deep {
  color: #fff; border-color: rgba(255, 255, 255, 0.16);
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.16), transparent 55%), linear-gradient(150deg, #1e1b4b 0%, #312e81 50%, #3f3cbb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 32px -16px rgba(30, 27, 75, 0.8);
}
.tile-deep small, .tile-deep .tile-body > span, .screen-more .tile-deep small { color: rgba(255, 255, 255, 0.86) !important; }
.bento .tile.tile-deep strong, .screen-more .tile-deep strong { color: #fff; }
.ichip-warn { color: #fbbf24 !important; border-color: rgba(251, 191, 36, 0.55) !important; box-shadow: 0 0 18px -2px rgba(251, 191, 36, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important; }
.tabbar button[data-tab="checks"] svg { color: #0284c7; }
.tabbar button[data-tab="money"] svg { color: #4f46e5; }
.tabbar button.active svg { color: #fff; }

/* Checks: light green when done, light amber when it needs doing */
.check-row.status-ok { background: linear-gradient(150deg, rgba(220, 252, 231, 0.95), rgba(240, 253, 244, 0.85)); border-color: rgba(34, 197, 94, 0.3); }
.check-row.status-soon, .check-row.status-expired, .check-row.status-missing { background: linear-gradient(150deg, rgba(254, 243, 199, 0.95), rgba(255, 251, 235, 0.88)); border-color: rgba(245, 158, 11, 0.38); }
.check-row.status-expired { border-color: rgba(220, 38, 38, 0.45); }
.dates-head { margin-top: 6px; min-height: 44px; }
.dates-head .pill-btn { min-height: 40px; }

/* More: four big tiles fill most of the screen */
.screen-more .tiles { flex: 1; min-height: 0; grid-template-rows: 1fr 1fr; grid-auto-rows: auto; gap: 16px; }
.screen-more .tile { justify-content: space-between; padding: 20px 18px; }
.screen-more .tile .ichip { width: 52px; height: 52px; border-radius: 16px; }
.screen-more .tile .ichip svg { width: 26px; height: 26px; }
.screen-more .tile-wide strong { font-size: 1.15rem; }
.screen-more .tile-wide small { font-size: 0.88rem; }
.tabbar { grid-template-columns: repeat(4, 1fr); }
.screen-checks .fine { padding-right: 76px; }
.screen-more { padding-bottom: 88px; }

/* ---- More (17 Nov 2026): four smaller tiles and two long cards, spaced evenly ---- */
.screen-more .more-stack { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-evenly; gap: 12px; }
.screen-more .tiles { flex: none; grid-template-rows: repeat(2, 150px); gap: 14px; }
.screen-more .tile { padding: 14px 16px; }
.screen-more .tile .ichip { width: 42px; height: 42px; border-radius: 14px; }
.screen-more .tile .ichip svg { width: 22px; height: 22px; }
.more-wide { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: var(--radius); color: #fff; border-color: transparent;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 55%), linear-gradient(135deg, #4338ca 0%, #6554f0 55%, #8467f4 100%);
  box-shadow: 0 18px 34px -18px rgba(79, 70, 229, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.more-wide .hero-text small, .more-wide .hero-text span, .more-wide > svg { color: rgba(255, 255, 255, 0.96); }
.more-wide .hero-text strong { color: #fff; font-size: 1.12rem; }
.more-wide .ichip { width: 46px; height: 46px; }
@media (max-height: 700px) { .screen-more .tiles { grid-template-rows: repeat(2, 118px); } .more-wide { padding: 12px 16px; } }

/* Resources */
.res-link { text-decoration: none; color: var(--text); }
.res-link strong { font-size: 0.95rem; font-weight: 600; }
.res-link > svg { width: 18px; height: 18px; color: var(--muted); }

/* Ask RentUK chat */
.chat-log { display: flex; flex-direction: column; gap: 8px; height: min(46dvh, 420px); overflow-y: auto; padding: 4px 2px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; font-size: 0.95rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-user { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #4f46e5, #0ea5e9); border-bottom-right-radius: 6px; }
.bubble-assistant { align-self: flex-start; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--glass-line); border-bottom-left-radius: 6px; }
.bubble-error { align-self: flex-start; background: #fef3c7; color: #78350f; border: 1px solid rgba(245, 158, 11, 0.45); }
.bubble-wait { color: var(--muted); font-style: italic; }
.chat-opt { display: flex; gap: 8px; align-items: flex-start; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.chat-opt input { margin-top: 2px; width: 18px; height: 18px; flex-shrink: 0; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea { flex: 1; min-height: 50px; max-height: 120px; resize: none; padding: 12px 14px; border-radius: 16px; font: inherit; color: var(--text);
  background: rgba(255, 255, 255, 0.9); border: 1px solid var(--glass-line); }
.chat-input .btn { min-height: 50px; width: 50px; padding: 0; border-radius: 16px; }
.chat-foot { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; text-align: center; }
.chat-foot .link-btn { min-height: 36px; font-size: 0.85rem; }
.sheet .fine a { color: var(--brand-text); font-weight: 600; }
.more-wide .hero-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sky .ichip-warn { color: #fff !important; background: linear-gradient(135deg, #f59e0b, #d97706) !important; border-color: rgba(255, 255, 255, 0.6) !important; box-shadow: 0 6px 16px -6px rgba(217, 119, 6, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important; }
@media (max-height: 700px) { .screen-more .tiles { grid-template-rows: repeat(2, 100px); gap: 10px; } .screen-more .more-stack { gap: 8px; } .screen-more .tile .ichip { width: 34px; height: 34px; } .more-wide { padding: 10px 14px; } .more-wide .ichip { width: 38px; height: 38px; } }
@media (max-height: 700px) { .screen-more .tile-wide small { display: none; } }

/* ---- Ask: assistant avatar in the tab bar ---- */
.tabbar { grid-template-columns: repeat(5, 1fr); }
.tab-ask { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; color: var(--brand-text); font-size: 0.7rem; font-weight: 700; }
.tab-ask img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; transform: translateY(-6px); margin-bottom: -6px;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.75), 0 8px 18px -6px rgba(79, 70, 229, 0.8); transition: transform 0.2s; }
.tab-ask:hover img { transform: translateY(-8px) scale(1.04); }

/* ---- Full-screen chat ---- */
.chat-screen { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; max-width: 520px; margin: 0 auto;
  background: linear-gradient(180deg, #f4f5ff 0%, #e9f1fb 100%); animation: up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  padding-top: env(safe-area-inset-top); }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--glass-line);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.chat-top h3 { font-size: 1.02rem; font-weight: 800; }
.chat-top p { font-size: 0.78rem; color: var(--muted); }
.chat-avatar { border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(14, 165, 233, 0.6); }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-screen .chat-log { flex: 1; height: auto; padding: 14px 14px 8px; }
.chat-dock { padding: 8px 12px max(12px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px;
  background: var(--glass-strong); border-top: 1px solid var(--glass-line); }
.chat-intro { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 28px 22px; }
.chat-intro h2 { font-size: 1.35rem; font-weight: 800; }
.chat-intro p { color: var(--muted); line-height: 1.5; }
.chat-intro .field, .chat-intro .btn { width: 100%; text-align: left; }
.chat-intro .fine svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--ok); }
.chat-avatar-lg { border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(14, 165, 233, 0.5), 0 18px 34px -12px rgba(79, 70, 229, 0.6); }
.bubble-note { align-self: center; max-width: 94%; font-size: 0.85rem; color: #0b3a5e; background: #e0f2fe; border: 1px solid rgba(2, 132, 199, 0.3); }
.chat-mic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; color: #0284c7;
  background: rgba(255, 255, 255, 0.9); border: 1px solid var(--glass-line); }
.chat-mic svg { width: 22px; height: 22px; }
.chat-mic.on { color: #fff; background: linear-gradient(135deg, #0ea5e9, #4f46e5); animation: pulse-mic 1.2s ease-in-out infinite; }
@keyframes pulse-mic { 50% { box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.18); } }
.chat-send svg { width: 22px; height: 22px; }

/* Chat: voice and video are coming soon */
.soon-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.soon-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: #0b3a5e;
  background: linear-gradient(150deg, rgba(186, 230, 253, 0.9), rgba(255, 255, 255, 0.8)); border: 1px dashed rgba(2, 132, 199, 0.45); }
.soon-pill svg { width: 16px; height: 16px; color: #0284c7; }
.soon-pill em { font-style: normal; font-weight: 600; color: #4338ca; }
.soon-big { font-weight: 800; font-size: 1.05rem; color: var(--brand-text) !important; }
.own-key { width: 100%; text-align: left; margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.own-key summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; font-weight: 600; text-align: center; list-style: none; }
.own-key[open] { padding: 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--glass-line); }
.own-key .fine svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--ok); }
.chat-dock .soon-row { justify-content: flex-start; }
.chat-foot .fine svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; }
/* Keep the install hint out of the way while setup, a sheet, a dialog or the chat is open. */
body:has(.wizard-overlay, .sheet-overlay, #chat-screen, #custom-alert) :is(#pwa-install, #backup-nudge) { display: none; }

/* ---- Install help ---- */
.pwa-bar-icon { width: 36px; height: 36px; border-radius: 9px; flex: none; }
#pwa-guide {
  position: fixed; inset: 0; z-index: 11000; background: rgba(20, 24, 58, 0.45);
  display: flex; align-items: flex-end; justify-content: center; padding: 16px 16px calc(84px + env(safe-area-inset-bottom));
}
.pwa-guide-card {
  width: 100%; max-width: 420px; padding: 20px; border-radius: 24px; text-align: center;
  background: var(--glass-strong); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--glass-hi), var(--float); color: var(--text);
}
.pwa-guide-card img { border-radius: 14px; }
.pwa-guide-card h2 { font-size: 1.15rem; margin: 8px 0 12px; }
.pwa-guide-card ol { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; text-align: left; }
.pwa-guide-card li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; line-height: 1.35; }
.pwa-guide-card small { display: block; color: var(--gray); font-size: 0.8rem; }
.pwa-step-icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint-2, rgba(99, 102, 241, 0.15)); color: var(--brand-text); font-weight: 800;
}
.pwa-step-icon svg { width: 22px; height: 22px; }
.pwa-inline svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--brand-text); }
.pwa-guide-card .btn { width: 100%; }
.pwa-guide-arrow {
  position: absolute; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.8rem; font-weight: 800; line-height: 1; color: #fff; background: var(--brand-solid); box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.9);
  animation: pwa-bounce 1.2s ease-in-out infinite;
}
@keyframes pwa-bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }
@media (prefers-reduced-motion: reduce) { .pwa-guide-arrow { animation: none; } }
.pwa-add {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; margin-right: 2px; border-radius: 999px;
  background: var(--brand-solid); color: #fff; font-weight: 800; font-size: 0.95rem; vertical-align: middle;
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, 0.8); flex: none;
}
.pwa-add-line { display: flex; align-items: center; gap: 10px; line-height: 1.3; font-weight: 600; }

/* ---- Iteration 1: Property tab, menu, nation ---- */
.topbar .prop-chip { margin-left: auto; max-width: 52%; }
.menu-btn { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; flex: none; }
.menu-btn[hidden] { display: none; }
.menu-btn svg { width: 22px; height: 22px; color: var(--brand-text); }
.menu-item { width: 100%; text-align: left; }
.menu-item .grow { display: flex; flex-direction: column; min-width: 0; }
.menu-item small { color: var(--muted); font-size: 0.82rem; }
.menu-item > svg:last-child { color: var(--muted); width: 18px; height: 18px; }
.prop-head { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: var(--radius); }
.prop-head .grow { flex: 1; min-width: 0; }
.prop-head h2 { font-size: 1.3rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.prop-head p { color: var(--muted); font-size: 0.9rem; margin: 2px 0 8px; overflow-wrap: anywhere; }
.nation-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 6px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--brand-text); background: var(--tint-2); }
.nation-pill svg { width: 15px; height: 15px; }
.muted { color: var(--muted); }
.screen-property { display: flex; flex-direction: column; gap: 14px; }
/* Property (19 Nov 2026): the six panes share the free height, with more air between them */
.screen-property .tiles { flex: 1; min-height: 0; grid-template-rows: repeat(3, 1fr); gap: clamp(14px, 2.4vh, 22px); }
.seg-2 { grid-template-columns: 1fr 1fr; }
.field select, .wizard select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--glass-line); color-scheme: light;
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.wizard select { margin-bottom: 8px; }

/* ---- Iteration 2: rent tracking ---- */
.rent-card { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; border-radius: var(--radius); }
.rent-card .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rent-card small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rent-card strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.rent-card span { color: var(--muted); font-size: 0.86rem; }
.rent-card .btn { min-height: 48px; font-size: 0.98rem; gap: 6px; }
.rent-card .btn svg { width: 18px; height: 18px; }
.rent-card.tone-bad { border-color: rgba(220, 38, 38, 0.35); background: linear-gradient(150deg, rgba(254, 242, 242, 0.95), rgba(255, 255, 255, 0.7)); }
.rent-card.tone-bad strong, .t-bad { color: var(--bad); }
.rent-card.tone-ok strong { color: var(--ok); }
.amount-in { color: var(--ok); font-weight: 700; }
.empty-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 18px; border-radius: var(--radius); }
.empty-card h2 { font-size: 1.2rem; font-weight: 800; }
.empty-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.screen-money { display: flex; flex-direction: column; gap: 12px; }

/* ---- Iteration 3: repairs ---- */
.screen-property .screen-head .icon-btn { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; flex: none; }
.issue-row .prio { width: 10px; align-self: stretch; border-radius: 999px; flex: none; background: var(--muted); opacity: 0.35; }
.prio-urgent { background: var(--bad) !important; opacity: 1 !important; }
.prio-soon { background: var(--warn) !important; opacity: 1 !important; }
.st { font-weight: 700; }
.st-warn { color: #b45309; }
.st-info { color: var(--brand-text); }
.st-ok { color: var(--ok); }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg-4 { grid-template-columns: repeat(4, 1fr); }
.seg-4 button { font-size: 0.82rem; padding: 0 2px; }
.field textarea {
  width: 100%; padding: 10px 14px; border-radius: 16px; resize: none; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--glass-line); color-scheme: light;
}
.field > .seg { margin-top: 2px; }

/* ---- Iteration 4: action-first Home ---- */
.screen-home { display: flex; flex-direction: column; gap: 12px; }
.home-stats .stat { text-align: left; color: inherit; }
.home-stats .stat span { color: var(--muted); font-size: 0.78rem; }
.attn-row > svg:last-child { width: 18px; height: 18px; color: var(--muted); }
.attn-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--brand); }
.attn-row.tone-bad .attn-dot { background: var(--bad); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15); }
.attn-row.tone-warn .attn-dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15); }
.screen-home .pager { margin-top: 0; }
.screen-home .hello h2 { font-size: 1.55rem; }
.all-clear { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); }
.all-clear strong { font-size: 1.1rem; }
.all-clear p { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.screen-home .tagline-line { margin-top: auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---- Iteration 5: nation-aware checks ---- */
.dot-na { background: #cbd5e1 !important; }
.dot-unverified { background: #a78bfa !important; }
.dot-action { background: var(--bad) !important; }
.st-expired, .st-action { color: var(--bad) !important; }
.st-soon, .st-missing, .st-unverified { color: #b45309 !important; }
.st-ok { color: var(--ok); }
.st-na { color: var(--muted); }
.gp { font-style: normal; font-weight: 600; font-size: 0.7rem; color: var(--muted); background: var(--tint); padding: 1px 6px; border-radius: 999px; vertical-align: 2px; }
.kind-badge { display: inline-block; width: fit-content; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.kind-badge.legal { background: rgba(79, 70, 229, 0.12); color: var(--brand-text); }
.kind-badge.good { background: rgba(5, 150, 105, 0.12); color: #047857; }
.status-line { font-size: 0.92rem; }
.link-btn.inline { display: inline; min-height: 0; padding: 0; font-size: inherit; text-decoration: underline; }
.check-row.status-na .row-text strong { color: var(--muted); }
.tpanel { display: flex; flex-direction: column; gap: 12px; }
.tpanel[hidden] { display: none; }
.dep-live:empty { display: none; }

/* ---- Iteration 9: short phones keep everything on one screen ---- */
@media (max-height: 760px) {
  .screen-property .tiles { gap: 8px; }
  .screen-property .tile { flex-direction: row; align-items: center; min-height: 0; padding: 10px 12px; gap: 10px; }
  .screen-property .tile .ichip { width: 36px; height: 36px; }
  .screen-property .tile-body > span { display: none; }
  .screen-property .prop-head { padding: 12px 14px; }
  .screen-property .prop-head h2 { font-size: 1.15rem; }
  .screen-money { gap: 8px; }
  .rent-card { padding: 12px 14px; gap: 8px; }
  .rent-card strong { font-size: 1.4rem; }
  .screen-money .stat { padding: 9px 10px; }
}
.measuring, .measuring * { animation: none !important; transition: none !important; }
@media (max-height: 700px) {
  .screen-home { gap: 8px; }
  .screen-home .hello h2 { font-size: 1.35rem; }
  .home-stats .stat { padding: 8px 10px; gap: 2px; }
  .home-stats .stat span { display: none; }
}
/* Very small phones (iPhone SE first generation): compact further; anything left can scroll rather than be cut off. */
@media (max-height: 620px) {
  .screen { gap: 8px; }
  .screen-money .fine, .empty-card p, .screen-property .prop-head p { display: none; }
  .rent-card { flex-direction: row; align-items: center; }
  .rent-card .btn { min-height: 44px; padding: 0 12px; font-size: 0.88rem; }
  .rent-card strong { font-size: 1.2rem; }
  .screen-money .stat small { font-size: 0.6rem; }
  .screen-money .stat strong { font-size: 0.95rem; }
  .screen-property .tile { padding: 8px 10px; }
  .screen-property .tile .ichip { width: 30px; height: 30px; border-radius: 10px; }
  .screen-property .tile .ichip svg { width: 18px; height: 18px; }
  .screen-property .tile-body strong { font-size: 0.92rem; }
  .screen-property .nation-pill { margin-top: 4px; }
  .empty-card { padding: 14px; gap: 6px; }
  .bands span { font-size: 0.8rem; }
}

/* ---- Calm Home (one thing at a time) ---- */
.screen-home { gap: 16px; }
.hero-task { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; width: 100%;
  padding: 22px 22px 18px; border-radius: 28px; color: var(--text); border: 1px solid var(--glass-line); position: relative; overflow: hidden; }
.hero-task::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand); }
.hero-task.tone-bad::before { background: var(--bad); }
.hero-task.tone-warn::before { background: var(--warn); }
.hero-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hero-task.tone-bad .hero-label { color: #b91c1c; }
.hero-task.tone-warn .hero-label { color: #b45309; }
.hero-task strong { font-size: 1.35rem; line-height: 1.25; font-weight: 800; }
.hero-task small { color: var(--muted); font-size: 0.98rem; }
.hero-go { margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 10px 18px; border-radius: 999px;
  background: var(--brand-solid); color: #fff; font-weight: 700; font-size: 0.98rem; }
.hero-go svg { width: 16px; height: 16px; }
.more-btn { align-self: center; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 10px 14px; min-height: 44px;
  color: var(--brand-text); font: inherit; font-weight: 700; font-size: 0.98rem; cursor: pointer; }
.more-btn svg { width: 16px; height: 16px; }
.quiet-sum { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--glass-line); padding-top: 14px; margin-top: auto; }
.quiet-sum button { display: flex; flex-direction: column; align-items: center; gap: 1px; background: none; border: 0; padding: 4px; min-height: 44px; color: var(--text); font: inherit; cursor: pointer; }
.quiet-sum button + button { border-left: 1px solid var(--glass-line); }
.quiet-sum small { font-size: 0.72rem; color: var(--muted); }
.quiet-sum strong { font-size: 1.1rem; font-weight: 800; }
.quiet-sum span { font-size: 0.72rem; color: var(--muted); }
.screen-home .tagline-line { margin-top: 0; }
.list-top { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.list-top h2 { font-size: 1.45rem; font-weight: 800; }
.list-top h2 span { font-size: 0.9rem; color: var(--muted); font-weight: 700; margin-left: 4px; }
.back-btn { display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; padding: 8px 4px; min-height: 44px; color: var(--brand-text); font: inherit; font-weight: 700; cursor: pointer; }
.back-btn svg { width: 18px; height: 18px; }
.welcome-demo { font-weight: 700; color: var(--brand-text); padding: 10px; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-height: 700px) {
  .hero-task { padding: 16px 18px 14px; }
  .hero-task strong { font-size: 1.2rem; }
  .hero-go { margin-top: 6px; padding: 8px 16px; }
  .screen-home .tagline-line { display: none; }
}
@media (max-height: 620px) {
  .welcome { gap: 10px; padding: 16px 16px; }
  .welcome-logo { width: 72px; height: 72px; border-radius: 20px; }
  .welcome-h { font-size: 1.8rem; }
  .welcome-sub { font-size: 0.95rem; }
}

/* ---- Landing: show first, ask nothing (19 Nov 2026) ---- */
.screen-welcome { justify-content: center; }
.landing { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 4px 6px 8px; isolation: isolate; }
.land-glow { position: absolute; inset: -40px -60px auto; height: 420px; z-index: -1; filter: blur(46px); opacity: 0.75;
  background: radial-gradient(40% 45% at 30% 40%, rgba(99, 102, 241, 0.55), transparent 70%),
              radial-gradient(35% 40% at 72% 55%, rgba(56, 189, 248, 0.45), transparent 70%),
              radial-gradient(30% 35% at 55% 20%, rgba(245, 158, 11, 0.35), transparent 70%);
  animation: land-drift 14s ease-in-out infinite alternate; }
@keyframes land-drift { to { transform: translate3d(12px, 18px, 0) rotate(8deg) scale(1.08); } }
.land-kicker { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-text); }
.land-h { font-size: 2.35rem; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.land-h span { color: #4f46e5; }
.land-sub { color: var(--text); font-weight: 600; font-size: clamp(0.86rem, 4.3vw, 1.08rem); line-height: 1.4; white-space: nowrap; }
.land-stage { position: relative; width: min(100%, 330px); height: 156px; margin: 6px 0 4px; perspective: 900px; }
.land-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px;
  padding: 18px 20px 18px 26px; border-radius: 26px; text-align: left; overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72)); border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 60px -28px rgba(67, 56, 202, 0.55), 0 0 0 1px rgba(99, 102, 241, 0.12), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; animation: land-cycle 10.5s infinite; }
.land-card.lc-2 { animation-delay: 3.5s; }
.land-card.lc-3 { animation-delay: 7s; align-items: center; text-align: center; padding-left: 20px; }
@keyframes land-cycle {
  0% { opacity: 0; transform: translateY(18px) rotateX(14deg) scale(0.96); filter: blur(4px); }
  7%, 30% { opacity: 1; transform: none; filter: none; }
  37%, 100% { opacity: 0; transform: translateY(-16px) rotateX(-10deg) scale(0.97); filter: blur(4px); }
}
.lc-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand); }
.lc-bar.warn { background: var(--warn); } .lc-bar.ok { background: var(--ok); }
.land-card small { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.land-card strong { font-size: 1.22rem; font-weight: 800; color: var(--text); }
.land-card span { font-size: 0.92rem; color: var(--muted); }
.land-card em { margin-top: 8px; font-style: normal; display: inline-flex; align-items: center; gap: 2px; padding: 7px 14px; border-radius: 999px;
  background: var(--brand-solid); color: #fff; font-weight: 700; font-size: 0.86rem; }
.land-card em svg { width: 14px; height: 14px; }
.lc-tick { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(5, 150, 105, 0.7); margin-bottom: 4px; }
.lc-tick svg { width: 22px; height: 22px; }
.land-go { width: min(100%, 330px); gap: 6px; }
.land-go svg { width: 18px; height: 18px; }
.land-setup { color: var(--brand-text); font-weight: 700; min-height: 44px; padding: 8px 14px; }
.landing .privacy-line { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .land-glow { animation: none; }
  .land-card { animation: none; } .land-card.lc-1 { opacity: 1; }
}
@media (max-height: 700px) {
  .landing { gap: 8px; }
  .land-h { font-size: 2rem; }
  .land-sub { font-size: 0.95rem; }
  .land-stage { height: 138px; }
}
@media (max-height: 620px) {
  .land-kicker { display: none; }
  .land-h { font-size: 1.7rem; }
  .land-stage { height: 120px; margin: 2px 0; }
  .land-card { padding: 12px 16px 12px 22px; }
  .land-card em { display: none; }
}

/* Landing spacing: spread the sections evenly down the screen, signature line at the bottom */
.screen-welcome .landing { flex: 1; justify-content: space-between; gap: 12px; padding-top: 3vh; padding-bottom: 0; }
.landing .land-sign { margin-top: 4px; }
.land-group { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.land-cta { gap: 4px; }
