/* Colours from RentProof/DesignSystem/Colors.swift; fonts match the app and rentproofsg.com. */
:root {
  --ink: #1a1a2e; --navy: #142B4F; --navy-soft: #E6EBF4; --sage: #00A86B; --sage-deep: #0c8a5a;
  --sage-soft: #E6F7F0; --amber: #B97500; --amber-soft: #FFF4E0; --slate100: #ececf0; --slate200: #d1d1d6;
  --slate500: #6b7280; --red: #dc2626; --bg: #f5f5f7; --card: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Geist, system-ui, sans-serif; }
h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.2rem; } h3 { font-size: .95rem; margin: 1.2em 0 .5em; }
a { color: var(--sage-deep); }
.muted { color: var(--slate500); } .small { font-size: .85rem; } .center { text-align: center; }
.error { color: var(--red); } .mono { font-family: 'Geist Mono', monospace; font-size: .8rem; word-break: break-all; }
.boot { text-align: center; margin-top: 30vh; color: var(--slate500); }
.brand { font-family: Fraunces, serif; font-weight: 600; font-size: 1.15rem; color: var(--navy); text-decoration: none; }
.brand span { color: var(--sage-deep); }
.btn { border: 0; border-radius: 10px; padding: .7em 1.2em; font: inherit; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--navy); color: #fff; } .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.apple { background: #000; color: #fff; width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--sage-deep); cursor: pointer; text-decoration: underline; }

/* login */
.login { max-width: 400px; margin: 8vh auto; padding: 0 16px; }
.login h1 { margin-top: 1.2em; }
.login form { display: grid; gap: .9em; margin: 1.5em 0; }
.login label { display: grid; gap: .3em; font-weight: 500; font-size: .9rem; }
.login input { font: inherit; padding: .7em .8em; border: 1px solid var(--slate200); border-radius: 10px; background: #fff; }
.login input:focus { outline: 2px solid var(--sage); border-color: transparent; }
.form-msg { min-height: 1.2em; margin: 0; font-size: .9rem; }
.or { text-align: center; color: var(--slate500); margin: 1em 0; }

/* app */
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--slate100); }
.top nav { display: flex; gap: 16px; align-items: center; font-size: .9rem; }
.top nav a { color: var(--ink); text-decoration: none; }
.who { color: var(--slate500); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; background: var(--amber-soft); color: var(--amber); padding: 10px 16px; font-size: .9rem; }
.page { max-width: 880px; margin: 0 auto; padding: 20px 16px 48px; }
.card { background: var(--card); border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(20,43,79,.06); }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--sage-deep); font-weight: 600; margin: 0 0 .3em; }
.pill { display: inline-block; background: var(--navy-soft); color: var(--navy); border-radius: 99px; padding: 2px 10px; font-size: .8rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.facts dt, .meta dt { font-size: .75rem; color: var(--slate500); } .facts dd, .meta dd { margin: 0; font-weight: 500; }
.progress { height: 8px; background: var(--slate100); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--sage); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0; border-top: 1px solid var(--slate100); display: grid; gap: 2px; }
.list li:first-child { border-top: 0; }
.list a { text-decoration: none; color: inherit; display: grid; gap: 2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.tile { position: relative; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: var(--slate100); aspect-ratio: 4/3; cursor: pointer; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.missing img { display: none; }
.tile.missing::before { content: 'On phone only'; position: absolute; inset: 0; display: grid; place-items: center; font-size: .75rem; color: var(--slate500); }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; font-size: .75rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 6px; }
dialog { border: 0; border-radius: 16px; padding: 20px; max-width: min(720px, calc(100vw - 32px)); width: 100%; }
dialog::backdrop { background: rgba(20,43,79,.55); }
dialog .close { float: right; }
.media img, .media video { width: 100%; max-height: 60vh; object-fit: contain; background: #000; border-radius: 10px; }
.meta { display: grid; gap: 8px; }
.notice { text-align: center; padding: 40px 20px; }
@media (max-width: 520px) { .who { display: none; } h1 { font-size: 1.4rem; } }
.list li > .link { justify-self: start; text-align: left; }
