/* Landlord Friendly – site styles
   Palette: harbour blue, deep harbour, ink, mist, plus the three
   certificate status colours that run through the whole site. */
:root {
  --harbour: #1f5f8b;
  --harbour-dark: #0f3550;
  --harbour-soft: #e6eff6;
  --ink: #1b2733;
  --muted: #566573;
  --mist: #f2f6f9;
  --line: #d9e2ea;
  --white: #ffffff;
  --ok: #2e9d6a;
  --soon: #d9930d;
  --late: #c8452f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 53, 80, .06), 0 8px 24px rgba(15, 53, 80, .08);
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; }
a { color: var(--harbour); text-underline-offset: 3px; }
a:hover { color: var(--harbour-dark); }
:focus-visible { outline: 3px solid var(--soon); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; color: var(--harbour-dark); }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; margin: 0 0 16px; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 750; margin: 48px 0 14px; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 20px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.bar { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--harbour-dark); text-decoration: none; letter-spacing: -0.01em; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--harbour); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .02em; }
nav.main { display: flex; align-items: center; gap: 22px; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
nav.main a:hover { color: var(--harbour); }
nav.main a.btn { color: #fff; }
details.menu { display: none; }
details.menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
details.menu summary::-webkit-details-marker { display: none; }
details.menu[open] summary { background: var(--mist); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 18px; display: grid; }
.menu-panel a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.menu-panel a.btn { margin-top: 14px; border: 0; text-align: center; color: #fff; }
@media (max-width: 760px) {
  nav.main { display: none; }
  details.menu { display: block; }
}

/* ---------- Page shells ---------- */
main.guide { max-width: 760px; margin: 0 auto; padding: 36px 20px 24px; }
main.wide { max-width: 1120px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.scope { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; background: var(--harbour-soft); color: var(--harbour-dark); border-radius: 999px; padding: 4px 12px; }
.tag.plain { background: var(--mist); color: var(--muted); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--harbour); color: #fff; text-decoration: none; padding: 13px 22px; border-radius: 10px; font: 700 16px/1.2 var(--font); border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--harbour-dark); color: #fff; }
.btn.small { padding: 9px 16px; font-size: 15px; }
.btn.light { background: #fff; color: var(--harbour-dark); }
.btn.light:hover { background: var(--harbour-soft); color: var(--harbour-dark); }
.btn.outline { background: transparent; color: var(--harbour-dark); box-shadow: inset 0 0 0 2px var(--line); }
.btn.outline:hover { box-shadow: inset 0 0 0 2px var(--harbour); background: transparent; }
.btn.wa { background: #1fa855; }
.btn.wa:hover { background: #178a45; }

/* ---------- Status dots (the site's motif) ---------- */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); }
.dot.soon { background: var(--soon); }
.dot.late { background: var(--late); }
.dot.grey { background: #a8b6c3; }

/* ---------- Home: hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 28px 0 40px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.hero .lead { font-size: 1.2rem; margin-bottom: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 18px; }
.hero-note { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 32px; } }

/* Product preview board */
.board { background: var(--harbour-dark); border-radius: 20px; padding: 18px; box-shadow: 0 20px 50px rgba(15,53,80,.25); color: #fff; }
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; color: #c9d9e6; }
.board-head strong { color: #fff; font-size: 16px; }
.preview-label { font-size: 12px; font-weight: 700; background: rgba(255,255,255,.12); color: #fff; padding: 3px 9px; border-radius: 999px; }
.prop { background: #fff; color: var(--ink); border-radius: 12px; padding: 14px 16px; margin-top: 10px; }
.prop-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.prop-name { font-weight: 700; }
.prop-rent { font-size: 14px; color: var(--muted); white-space: nowrap; }
.certs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 14px; }
.certs span { display: inline-flex; align-items: center; gap: 6px; }
.prop .alert { margin-top: 10px; font-size: 14px; background: #fdf4e4; color: #7a4f05; border-radius: 8px; padding: 7px 10px; }

/* ---------- Home: sections ---------- */
.band { background: var(--mist); border-radius: 20px; padding: 32px; margin: 16px 0; }
.band h2:first-child, .band h3:first-child { margin-top: 0; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 18px; }
.rules h3 { margin-top: 0; }
.rules p { color: var(--muted); font-size: 16px; margin: 0; }
@media (max-width: 820px) { .rules { grid-template-columns: 1fr; } .band { padding: 24px 20px; } }

.offer { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, var(--harbour) 0%, var(--harbour-dark) 100%); color: #fff; border-radius: 20px; padding: 32px; margin: 40px 0; }
.offer h2 { color: #fff; margin: 0 0 8px; }
.offer p { color: #dbe8f2; margin-bottom: 10px; }
.offer ul { margin: 0 0 18px; padding: 0; list-style: none; }
.offer li { display: flex; gap: 10px; align-items: baseline; }
.offer li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #8fd6b3; flex: none; transform: translateY(-1px); }
.places { text-align: center; background: rgba(255,255,255,.1); border-radius: 16px; padding: 18px 22px; min-width: 150px; }
.places .n { font-size: 3.2rem; font-weight: 800; line-height: 1; }
.places .l { font-size: 15px; color: #dbe8f2; }
@media (max-width: 700px) { .offer { grid-template-columns: 1fr; padding: 24px 20px; } .places { justify-self: start; } }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 40px; margin-top: 8px; }
.feature { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feature .dot { margin-top: 8px; }
.feature h3 { margin: 0 0 2px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px; }
.stage { border-top: 4px solid var(--line); padding-top: 14px; }
.stage.ok { border-color: var(--ok); }
.stage.soon { border-color: var(--soon); }
.stage h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.stage .when { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.stage ul { margin: 0; padding-left: 1.1em; font-size: 16px; }
@media (max-width: 820px) { .roadmap { grid-template-columns: 1fr; } }

.pricing { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 14px 0; }
.pricing th, .pricing td { border: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; text-align: left; font-size: 16px; }
.pricing tr:last-child td { border-bottom: 0; }
.pricing th { background: var(--mist); color: var(--muted); font-weight: 600; }
.pricing td:first-child { width: 38%; font-weight: 600; }
.pricing .amt { display: block; font-weight: 800; font-size: 1.15rem; color: var(--harbour-dark); }
.pricing .after { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }

.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 40px; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

/* ---------- Guide components ---------- */
.keyfacts { background: var(--harbour-soft); border-radius: var(--radius); padding: 16px 22px; margin: 20px 0; }
.keyfacts ul { margin: 0; }
.keyfacts p { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 16px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; background: var(--mist); }
tr.us td { background: var(--harbour-soft); font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { margin: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }
.note { font-size: 15px; color: var(--muted); }
.how { border-left: 4px solid var(--ok); background: #eef8f2; border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 22px; margin: 28px 0; }
.how h3 { margin: 6px 0 4px; }
.cta { background: linear-gradient(135deg, var(--harbour) 0%, var(--harbour-dark) 100%); color: #fff; border-radius: 20px; padding: 26px 28px; margin: 36px 0; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { color: #dbe8f2; }
.cta .btn { background: #fff; color: var(--harbour-dark); }
.cta .btn:hover { background: var(--harbour-soft); }
.coming { display: inline-block; font-size: 13px; font-weight: 600; background: #fdf4e4; color: #7a4f05; border-radius: 999px; padding: 1px 9px; margin-left: 6px; vertical-align: 2px; }
.faq { margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--harbour-dark); }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.sources { margin-top: 36px; font-size: 15px; }
.sources h2 { font-size: 1.15rem; margin-bottom: 6px; }
.updated { font-size: 14px; color: var(--muted); margin-top: 28px; }
.guide-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.guide-list li { border-bottom: 1px solid var(--line); padding: 14px 0; margin: 0; }
.guide-list a { font-weight: 700; text-decoration: none; }
.guide-list a:hover { text-decoration: underline; }
.guide-list p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .guide-list { grid-template-columns: 1fr; } }

/* Generic grid/card (admin) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 16px 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 2px 0; color: var(--muted); font-size: 15px; }

/* ---------- Forms ---------- */
form.panel { background: var(--mist); border-radius: 20px; padding: 26px; }
form.panel label { display: block; font-weight: 700; margin: 16px 0 6px; font-size: 16px; }
form.panel input[type=text], form.panel input[type=email], form.panel input[type=tel], form.panel input[type=password], form.panel select, form.panel textarea { width: 100%; padding: 13px 14px; border: 1px solid #c4d1dc; border-radius: 10px; font: 400 17px/1.3 var(--font); background: #fff; color: var(--ink); }
form.panel input:focus, form.panel select:focus, form.panel textarea:focus { outline: 3px solid rgba(31,95,139,.25); border-color: var(--harbour); }
form.panel textarea { min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } form.panel { padding: 20px 16px; } }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2px 16px; }
form.panel .checks label, form.panel label.inline { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; }
form.panel input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--harbour); flex: none; }
.hp { position: absolute; left: -9999px; }
.msg { border-radius: 12px; padding: 14px 18px; margin: 14px 0; }
.msg.ok { background: #e7f5ee; border: 1px solid #b6e0c9; }
.msg.err { background: #fbeceA; border: 1px solid #f0c3b9; }

/* ---------- Footer ---------- */
footer.site { background: var(--harbour-dark); color: #c9d9e6; margin-top: 64px; }
footer.site .bar { flex-wrap: wrap; align-items: flex-start; padding: 32px 20px; font-size: 15px; }
footer.site a { color: #fff; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site .who { max-width: 420px; }
footer.site .who strong { color: #fff; }

.wa-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 50; }
