/* Simple Renting
   Headings, logo and interface: TeX Gyre Adventor (bold geometric).
   Reading text: Lora (warm serif).
   Colours: change the theme block below to restyle the whole site.
   --tenant is the tenant colour, --landlord the landlord colour, --accent the highlight. */

@font-face { font-family: "Adventor"; src: url("/assets/fonts/texgyreadventor-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Adventor"; src: url("/assets/fonts/texgyreadventor-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-latin.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-italic-latin.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --paper: #FFFFFF;
  --ink: #1B2430;
  --ink-soft: #55606E;
  --rule: #E2E5E9;
  --shade: #F5F7F8;
  /* theme: deep teal (tenants) and sage (landlords) */
  --tenant: #1E4646;
  --tenant-dark: #163636;
  --tenant-tint: #ECF2F0;
  --tenant-sub: #C5D9D6;
  --landlord: #B9C6B0;
  --landlord-dark: #AAB9A0;
  --landlord-text: #16262A;
  --accent: #D7E3CE;
  --accent-text: #16262A;
  --highlight: #E4EBDE;
  --night: #16262A;
  --night-2: #213538;
  --night-text: #C3D0CD;
  --link: #1F5F8B;
  --display: "Adventor", "Avant Garde", "Century Gothic", "Futura", system-ui, sans-serif;
  --body: "Lora", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.7; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #E0A800; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 6px 10px; z-index: 10; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 740px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: 46px; margin: 0 0 14px; }
h2 { font-size: 30px; margin: 44px 0 12px; }
h3 { font-size: 21px; margin: 26px 0 6px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
.quiet { color: var(--ink-soft); }
mark { background: var(--highlight); color: inherit; padding: 0 2px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 25px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.brand .mark { flex: none; display: block; }
.brand small { font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--ink-soft); margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--rule); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-family: var(--display); font-size: 16px; font-weight: 700; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.main-nav a:hover { color: var(--tenant); }
.main-nav a[aria-current="page"] { color: var(--tenant); box-shadow: inset 0 -3px 0 var(--tenant); }

/* Notice */
.notice { background: var(--highlight); font-family: var(--display); font-size: 15px; line-height: 1.5; }
.notice p { margin: 0; padding: 10px 0; }
.notice a { color: var(--ink); font-weight: 700; }

/* Buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--tenant); color: #fff; font-family: var(--display); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--tenant-dark); color: #fff; }
.btn-yellow { background: var(--accent); color: var(--accent-text); }
.btn-yellow:hover { filter: brightness(0.94); color: var(--accent-text); }
input[type="email"], input[type="text"], select { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 14px; font-family: var(--display); font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #9AA3AE; border-radius: 10px; }
input:focus, select:focus { border-color: var(--tenant); }

/* ---------- Homepage ---------- */
.hero { padding: 56px 0 8px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.02; letter-spacing: -0.035em; max-width: 900px; margin-bottom: 18px; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--highlight) 62%); padding: 0 4px; margin: 0 -4px; }
.hero .lede { font-size: 21px; max-width: 640px; color: var(--ink-soft); margin: 0; }

/* Two choices: tenant and landlord */
.choose { margin: 44px 0 0; }
.choose .sides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.side { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 240px; padding: 36px 40px; border-radius: 22px; text-decoration: none; transition: background-color 0.15s; }
.side.renters { background: var(--tenant); color: #fff; }
.side.landlords { background: var(--landlord); color: var(--landlord-text); }
.side:hover.renters { background: var(--tenant-dark); color: #fff; }
.side:hover.landlords { background: var(--landlord-dark); color: var(--landlord-text); }
.side-title { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.6vw, 52px); line-height: 1; letter-spacing: -0.035em; }
.side-line { font-size: 18px; line-height: 1.5; max-width: 380px; opacity: 0.9; }
.side:hover .side-title, .side:focus-visible .side-title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }

/* Register countdown */
.register { margin-top: 64px; background: var(--night); color: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 44px); }
.register-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 28px; }
.countdown { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.countdown .num { font-family: var(--display); font-weight: 700; font-size: clamp(64px, 10vw, 112px); line-height: 0.9; letter-spacing: -0.05em; color: var(--accent); }
.countdown .what { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.25; max-width: 460px; letter-spacing: -0.01em; }
.register-top p { color: var(--night-text); font-size: 16px; margin: 8px 0 0; max-width: 520px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--night-2); border-radius: 12px; padding: 14px 16px; }
.tile strong { display: block; font-family: var(--display); font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; }
.tile span { display: block; font-size: 15px; color: var(--night-text); }
.tile em { display: block; font-family: var(--display); font-style: normal; font-weight: 700; font-size: 13px; margin-top: 4px; min-height: 1em; color: var(--night-text); }
.tile.is-next, .tile.is-open { background: var(--accent); color: var(--accent-text); }
.tile.is-next span, .tile.is-open span, .tile.is-next em, .tile.is-open em { color: var(--accent-text); }
.tile.is-closed { opacity: 0.55; }
.register .source { font-size: 14px; color: var(--night-text); margin: 16px 0 0; }
.register .source a { color: #fff; }

/* Sign-up */
.signup { margin: 64px 0 0; background: var(--tenant-tint); border-radius: 22px; padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-start; }
.signup > div { flex: 1 1 340px; }
.signup h2 { margin: 0 0 8px; font-size: 32px; }
.signup p { color: var(--ink-soft); }
.signup form { flex: 1 1 380px; }
.signup fieldset { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 0 22px; font-family: var(--display); font-size: 16px; }
.signup legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.signup label.radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.signup input[type="radio"] { width: 19px; height: 19px; margin: 0; accent-color: var(--tenant); }
.signup .email-label { display: block; font-family: var(--display); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.signup .row { display: flex; flex-wrap: wrap; gap: 8px; }
.signup .consent { font-size: 15px; margin: 12px 0 0; }
.form-message { font-family: var(--display); font-size: 16px; font-weight: 700; margin: 12px 0 0; color: var(--tenant-dark); }

/* Lists used on hub pages */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.link-list a { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.link-list li span { display: block; font-size: 16px; color: var(--ink-soft); line-height: 1.5; }
.link-list .soon { font-family: var(--display); font-weight: 700; color: var(--ink-soft); }
.link-list .soon span { font-family: var(--body); font-weight: 400; }

/* Articles */
.article-head { padding: 40px 0 6px; }
.crumbs { font-family: var(--display); font-size: 15px; margin: 0 0 14px; color: var(--ink-soft); }
.article-head .sub { font-size: 21px; color: var(--ink-soft); margin: 0 0 10px; }
.meta-line { font-family: var(--display); font-size: 14px; color: var(--ink-soft); margin: 0; }
.prose { padding-top: 8px; padding-bottom: 48px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.summary-box { background: var(--tenant-tint); border-radius: 14px; padding: 18px 24px 8px; margin: 18px 0 28px; }
.summary-box h2 { font-size: 20px; margin: 0 0 6px; }
.callout { background: var(--highlight); border-radius: 14px; padding: 16px 22px; margin: 24px 0; }
.callout.teal { background: var(--shade); }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.sources { font-size: 15px; color: var(--ink-soft); border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 14px; }
.sources a { word-break: break-word; }
table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 12px 0 10px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.table-scroll { overflow-x: auto; }

/* Tool */
.tool { background: var(--shade); border-radius: 16px; padding: 24px 26px; margin: 6px 0 14px; }
.tool label { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.tool .hint { font-size: 16px; color: var(--ink-soft); margin: 0 0 10px; }
.tool .row { display: flex; flex-wrap: wrap; gap: 8px; }
.tool .or { margin: 18px 0 6px; font-family: var(--display); font-size: 16px; font-weight: 700; }
.result { margin-top: 20px; padding: 18px 22px 6px; background: #fff; border: 1px solid var(--rule); border-left: 5px solid var(--tenant); border-radius: 10px; }
.result[hidden] { display: none; }
.result.warn { background: #FFF6D6; border-left-color: #C9A227; }
.result .for { font-family: var(--display); font-size: 15px; color: var(--ink-soft); margin: 0; }
.result h2 { font-size: 28px; margin: 0 0 10px; }
.result dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 16px; margin: 0 0 12px; }
.result dt { font-family: var(--display); font-size: 15px; color: var(--ink-soft); padding-top: 3px; }
.result dd { margin: 0; font-weight: 700; }
.result .status { font-weight: 700; }
.error { font-family: var(--display); font-size: 16px; color: #9A2B1E; font-weight: 700; margin: 8px 0 0; }

/* Footer */
.site-footer { background: var(--night); color: var(--night-text); margin-top: 72px; font-size: 15px; }
.footer-inner { padding-top: 32px; padding-bottom: 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 16px; font-family: var(--display); font-weight: 700; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-note { max-width: 780px; line-height: 1.6; }
.footer-note a { color: #fff; }
.footer-copy { margin: 0; color: #8C98A6; font-family: var(--display); font-size: 14px; }

@media (max-width: 820px) {
  .choose .sides { grid-template-columns: 1fr; gap: 14px; }
  .side { min-height: 0; padding: 28px 24px; border-radius: 18px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 34px; }
  .hero { padding-top: 36px; }
  .hero .lede { font-size: 19px; }
  .brand small { display: none; }
  .tiles { grid-template-columns: 1fr; }
}

/* ---------- Page layouts ---------- */
.page-head { background: var(--shade); padding: 44px 0 36px; }
.page-head.tenant { background: var(--tenant); color: #fff; }
.page-head.landlord { background: var(--landlord); color: var(--landlord-text); }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.04; letter-spacing: -0.03em; max-width: 860px; margin-bottom: 14px; }
.page-head .sub { font-size: 21px; max-width: 700px; margin: 0 0 12px; opacity: 0.9; }
.page-head .crumbs { font-family: var(--display); font-size: 15px; margin: 0 0 16px; opacity: 0.85; }
.page-head .crumbs a, .page-head .meta-line { color: inherit; }
.page-head .meta-line { font-family: var(--display); font-size: 14px; margin: 0; opacity: 0.8; }
.page-head.tenant a { color: #fff; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; padding-top: 40px; }
.article-grid .prose { max-width: 720px; padding-top: 0; }
.prose > h2:first-child, .prose > .facts:first-child { margin-top: 0; }
.toc { position: sticky; top: 24px; border-left: 3px solid var(--rule); padding: 4px 0 4px 18px; font-family: var(--display); }
.toc p { font-weight: 700; font-size: 14px; margin: 0 0 8px; color: var(--ink-soft); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 8px; line-height: 1.35; }
.toc a { color: var(--ink); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--tenant); text-decoration: underline; }

/* Key facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 32px; }
.fact { background: var(--tenant-tint); border-radius: 16px; padding: 18px 18px 16px; }
.fact strong { display: block; font-family: var(--display); font-size: 30px; line-height: 1.05; letter-spacing: -0.03em; color: var(--tenant); }
.fact span { display: block; font-size: 15px; line-height: 1.4; margin-top: 6px; color: var(--ink-soft); }
.landlord-page .fact { background: #EEF2EA; }

/* Checklist with ticks */
.checklist { list-style: none; padding: 0 !important; margin: 0 0 18px; display: grid; gap: 8px; }
.checklist li { position: relative; padding: 10px 14px 10px 46px; margin: 0 !important; background: var(--shade); border-radius: 10px; }
.checklist li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--tenant) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

/* Numbered steps (only for real sequences) */
.steps { list-style: none; padding: 0 !important; margin: 0 0 18px; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 62px; margin: 0 !important; border: 1px solid var(--rule); border-radius: 12px; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--night); color: #fff; font-family: var(--display); font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }

/* Penalties and warnings */
.warn-list { list-style: none; padding: 0 !important; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.warn-list li { margin: 0 !important; padding: 14px 16px; border-radius: 12px; background: #F7EEEC; border-left: 4px solid #A8473A; }
.warn-list strong { display: block; font-family: var(--display); }

/* Cards on hub pages */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0 0 18px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; border-radius: 16px; background: var(--shade); color: var(--ink); text-decoration: none; min-height: 170px; }
a.card:hover { background: var(--tenant-tint); }
.card h3 { margin: 0; font-size: 22px; }
.card p { margin: 0; font-size: 16px; color: var(--ink-soft); line-height: 1.5; }
.card .go { margin-top: auto; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--tenant); }
.card.feature { background: var(--tenant); color: #fff; }
.card.feature p { color: var(--tenant-sub); }
.card.feature .go { color: #fff; }
a.card.feature:hover { background: var(--tenant-dark); }
.card.soon { background: transparent; border: 1.5px dashed #C7CDD3; }
.card.soon .go { color: var(--ink-soft); font-weight: 400; }

/* Renter stages */
.stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 24px; }
.stage { background: var(--shade); border-radius: 18px; padding: 24px 24px 10px; scroll-margin-top: 20px; }
.stage .num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--tenant); color: #fff; font-family: var(--display); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; }
.stage h2 { margin: 0 0 10px; font-size: 26px; }
.stage ul { padding-left: 20px; margin: 0 0 14px; }
.stage li { margin: 0 0 10px; font-size: 17px; line-height: 1.55; }

/* Region tiles on light pages */
.tiles.light .tile { background: var(--shade); color: var(--ink); }
.tiles.light .tile span, .tiles.light .tile em { color: var(--ink-soft); }
.tiles.light .tile small { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 6px; line-height: 1.4; }
.tiles.light .tile.is-next, .tiles.light .tile.is-open { background: var(--tenant); color: #fff; }
.tiles.light .tile.is-next span, .tiles.light .tile.is-open span, .tiles.light .tile.is-next em, .tiles.light .tile.is-open em, .tiles.light .tile.is-next small, .tiles.light .tile.is-open small { color: var(--tenant-sub); }
.tiles.light { margin: 8px 0 16px; }

@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 720px) {
  .stage-grid { grid-template-columns: 1fr; }
  .page-head { padding: 32px 0 28px; }
  .page-head .sub { font-size: 19px; }
}

.page-head + .narrow.prose, .page-head + .narrow { padding-top: 36px; }

/* Sitemap page */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 40px; padding-top: 36px; }
.sitemap-grid h2 { font-size: 18px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--tenant); }
.sitemap-grid ul { list-style: none; margin: 0; padding: 0; }
.sitemap-grid li { margin: 0 0 8px; line-height: 1.4; }
.sitemap-grid a { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
.sitemap-grid a:hover { color: var(--tenant); text-decoration: underline; }
