/* Future Landlord / Future Homeowner shared brand styles */

:root {
  --ink: #14213D;          /* Midnight Ink */
  --teal: #1FA39A;         /* Future Teal: signature colour, large elements only */
  --teal-text: #13786F;    /* darker teal for small text and links on light backgrounds */
  --mint: #A8EBD5;         /* Fresh Mint */
  --chalk: #F5F3EE;        /* Warm Chalk */
  --slate: #5B6573;        /* Slate */
  --mist: #E3F3EE;         /* soft mint tint, for light sections */
  --warm: #E0926E;         /* Warm Brick: highlight drawn from the terrace brick, Sam's dress and the bar wood */
  --white: #FFFFFF;
  --line: rgba(20, 33, 61, 0.14);
  --radius: 14px;
  --max: 1120px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

a { color: var(--teal-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Wordmark ---------- */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.06em;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .w-light { font-weight: 300; }
.wordmark .w-bold { font-weight: 800; }
.wordmark .chev { width: 0.62em; height: 0.8em; color: var(--teal); flex: none; }
.wordmark .chev path { stroke: currentColor; }
.wordmark:hover { color: var(--ink); }
.wordmark--on-ink { color: var(--chalk); }
.wordmark--on-ink:hover { color: var(--chalk); }
.wordmark--on-ink .chev { color: var(--mint); }
.wordmark--on-teal { color: var(--white); }
.wordmark--on-teal:hover { color: var(--white); }
.wordmark--on-teal .chev { color: var(--ink); }

/* ---------- Key mark: the Future Landlord logo ---------- */

.key-mark { display: inline-block; flex: none; overflow: visible; }
.key-mark .key-bow { fill: none; stroke: var(--ink); stroke-width: 8; }
.key-mark .key-dot { fill: var(--teal); }
.key-mark .key-shaft, .key-mark .key-tick { fill: none; stroke: var(--teal); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.key-mark .key-shaft { stroke-linecap: butt; }
.wordmark .key-mark { width: 1.3em; height: 0.95em; margin-right: 0.28em; transform-origin: 24% 50%; }
.wordmark .key-mark .key-bow, .wordmark .key-mark .key-shaft, .wordmark .key-mark .key-tick { stroke-width: 11; }
.wordmark:hover .key-mark { animation: key-nudge 0.7s ease-in-out; }
.wordmark--on-ink .key-mark .key-bow, .band-ink .key-mark .key-bow { stroke: var(--chalk); }
.wordmark--on-ink .key-mark .key-dot, .band-ink .key-mark .key-dot { fill: var(--mint); }
.wordmark--on-ink .key-mark .key-shaft, .wordmark--on-ink .key-mark .key-tick,
.band-ink .key-mark .key-shaft, .band-ink .key-mark .key-tick { stroke: var(--mint); }
@keyframes key-nudge { 50% { transform: perspective(200px) rotateX(70deg); } }

/* The key after "portfolio." turns as if unlocking, then the tick draws in. */
.hero-key { width: 0.9em; height: 0.66em; margin-left: 0.18em; vertical-align: 0.02em; transform-origin: 50% 50%; }
.hero-key .key-bow, .hero-key .key-shaft, .hero-key .key-tick { stroke-width: 10; }
.tw-ready .hero-key { opacity: 0; }
.tw-ready .hero-key .key-tick { stroke-dasharray: 62; stroke-dashoffset: 62; transition: stroke-dashoffset 0.5s ease 2.6s; }
.tw-ready .hero-key.turn { animation: key-turn 2.9s ease-in-out forwards; }
.tw-ready .hero-key.turn .key-tick { stroke-dashoffset: 0; }
@keyframes key-turn {
  0% { opacity: 0; transform: translateX(-0.4em) perspective(300px) rotateX(0deg); }
  14% { opacity: 1; transform: translateX(0) perspective(300px) rotateX(0deg); }
  32% { opacity: 1; transform: translateX(0) perspective(300px) rotateX(80deg); }
  48% { opacity: 1; transform: translateX(0) perspective(300px) rotateX(0deg); }
  66% { opacity: 1; transform: translateX(0) perspective(300px) rotateX(80deg); }
  86% { opacity: 1; transform: translateX(0) perspective(300px) rotateX(0deg); }
  100% { opacity: 1; transform: translateX(0) perspective(300px) rotateX(0deg); }
}

/* ---------- Header ---------- */

.site-header { background: var(--chalk); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-header .btn { min-height: 42px; padding: 8px 18px; font-size: 15px; white-space: nowrap; gap: 0; }
@media (max-width: 559px) { .site-header .wordmark { font-size: 22px; } .hide-sm { display: none; } }
.site-nav { display: none; }
.site-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.site-nav a:hover { color: var(--teal-text); }
@media (min-width: 960px) { .site-nav { display: block; } }

.menu-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; }
@media (min-width: 960px) { .menu-toggle { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--line); }
.mobile-nav.open { display: block; }
@media (min-width: 960px) { .mobile-nav, .mobile-nav.open { display: none; } }
.mobile-nav ul { list-style: none; max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 16px; }
.mobile-nav a { display: block; padding: 10px 0; color: var(--ink); font-weight: 700; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { display: none; }
@media (min-width: 560px) { .header-actions .btn { display: inline-flex; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--ink { background: var(--ink); color: var(--chalk); }
.btn--ink:hover { color: var(--chalk); background: #0c1730; }
.btn--teal { background: var(--teal); color: var(--ink); }
.btn--teal:hover { color: var(--ink); background: #22b3a9; }
.btn--mint { background: var(--mint); color: var(--ink); }
.btn--mint:hover { color: var(--ink); }
.btn--outline-light { border-color: rgba(245, 243, 238, 0.5); color: var(--chalk); }
.btn--outline-light:hover { color: var(--chalk); border-color: var(--chalk); }
.btn--outline-ink { border-color: var(--ink); color: var(--ink); }
.btn--outline-ink:hover { color: var(--ink); background: rgba(20, 33, 61, 0.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections and bands ---------- */

.section { padding: 64px 0; }
@media (min-width: 720px) { .section { padding: 88px 0; } }

.band-ink { background: var(--ink); color: var(--chalk); }
.band-teal { background: var(--teal); color: var(--ink); }
.band-mint { background: var(--mint); color: var(--ink); }
.band-white { background: var(--white); }
.band-mist { background: var(--mist); }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 16px; color: var(--teal-text); }
.band-ink .eyebrow { color: var(--mint); }
.band-teal .eyebrow, .band-mint .eyebrow { color: var(--ink); }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 16px; }
h1 { font-size: clamp(38px, 8vw, 68px); }
h2 { font-size: clamp(28px, 5vw, 44px); }
h3 { font-size: 21px; letter-spacing: -0.02em; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.55; max-width: 40em; }
.band-ink .lead { color: rgba(245, 243, 238, 0.86); }
.muted { color: var(--slate); }
.nowrap { white-space: nowrap; }
.heart-line { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin: 8px 0 0; }
.heart-line strong { color: var(--teal-text); }
.band-teal .heart-line strong { color: var(--white); }
.section-head { max-width: 46em; margin-bottom: 40px; }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 72px; }
@media (min-width: 720px) { .hero { padding: 96px 0 104px; } }
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.6fr 1fr; align-items: center; gap: 64px; } }
.hero h1 { max-width: 12em; }
.band-teal .hero h1, .hero.band-teal h1 { color: var(--white); }

.hero-panel { border-radius: var(--radius); padding: 24px; }
.band-ink .hero-panel { background: rgba(245, 243, 238, 0.06); border: 1px solid rgba(245, 243, 238, 0.16); }
.hero-panel dl { margin: 0; display: grid; gap: 18px; }
.hero-panel dt { font-size: 13px; font-weight: 700; color: var(--mint); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-panel dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.hero-panel .big { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }

/* Hero with a photo behind a navy tint (Future Landlord).
   Photo: Unsplash, "Row of traditional brick houses along a sidewalk", Unsplash License. */
.hero--photo { position: relative; isolation: isolate; overflow: hidden; background-color: var(--ink); }
/* The photo sits on its own layer so it can drift slowly; the navy tint sits above it. */
.hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("terrace.jpg") center 40% / cover no-repeat;
  transform-origin: 70% 50%;
  animation: hero-drift 26s ease-in-out infinite alternate;
}
.hero--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(20, 33, 61, 0.9) 0%, rgba(20, 33, 61, 0.72) 50%, rgba(20, 33, 61, 0.3) 100%);
}
@media (max-width: 719px) {
  .hero--photo::after { background: linear-gradient(180deg, rgba(20, 33, 61, 0.8) 0%, rgba(20, 33, 61, 0.74) 100%); }
}
/* Leaves in the tree (top right) ripple gently, as if in a breeze.
   A masked copy of the photo, drifting in step with the one below, run through the #leaf-wind filter. */
.hero-leaves {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("terrace.jpg") center 40% / cover no-repeat;
  transform-origin: 70% 50%;
  animation: hero-drift 26s ease-in-out infinite alternate;
  filter: url(#leaf-wind);
  -webkit-mask: url("leaf-mask.png") center 40% / cover no-repeat;
  mask: url("leaf-mask.png") center 40% / cover no-repeat;
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (max-width: 719px) { .hero-leaves { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-leaves { display: none; } }
@keyframes hero-drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.5%, -1%); }
}

/* ---------- Opening animation (hero.js) ---------- */

/* Highlighter stroke under the key word. Drawn by default, so it shows without JavaScript. */
.hl {
  background-image: linear-gradient(var(--mint), var(--mint));
  background-repeat: no-repeat;
  background-position: 0 94%;
  background-size: 100% 0.16em;
  padding-bottom: 0.04em;
}
.tw-ready .hl { background-size: 0% 0.16em; transition: background-size 0.7s cubic-bezier(0.65, 0, 0.35, 1); }
.tw-ready .hl.drawn { background-size: 100% 0.16em; }

.tw-ready .tw-char { opacity: 0; }
.tw-ready .tw-char.on { opacity: 1; }
.tw-caret {
  display: inline-block;
  width: 0.07em;
  height: 0.82em;
  margin-right: -0.07em;
  vertical-align: -0.06em;
  background: var(--mint);
  border-radius: 2px;
  animation: tw-blink 0.9s steps(1) infinite;
}
.tw-caret.gone { animation: none; opacity: 0; transition: opacity 0.4s ease; }
@keyframes tw-blink { 50% { opacity: 0; } }
.band-teal .hl { background-image: linear-gradient(var(--ink), var(--ink)); }
.band-teal .tw-caret { background: var(--ink); }
/* A word typed out when it scrolls into view (site.js) */
.tow-ready .tow-char { opacity: 0; }
.tow-ready .tow-char.on { opacity: 1; }
.heart-line .tw-caret { background: var(--white); }

.hero-anim .hero-points li { opacity: 0; transform: translateY(8px); transition: opacity 0.45s ease, transform 0.45s ease; }
.hero-anim.points-in .hero-points li { opacity: 1; transform: none; }
.hero-anim .hero-points li:nth-child(2) { transition-delay: 0.12s; }
.hero-anim .hero-points li:nth-child(3) { transition-delay: 0.24s; }
.hero-anim .hero-points li:nth-child(4) { transition-delay: 0.36s; }

/* Forward nudge on hover: the chevron moves the way the logo points. */
.card .chev-mark { transition: transform 0.2s ease; }
.card:hover .chev-mark { transform: translateX(3px); }
.card .card-link::after { display: inline-block; transition: transform 0.2s ease; }
.card .card-link:hover::after { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Cards ---------- */

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid--trio { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card .chev-mark { width: 14px; height: 18px; color: var(--teal); flex: none; }
.card .chev-mark path { stroke: currentColor; }
.card p { color: var(--slate); }
.card .card-link { margin-top: auto; font-weight: 800; text-decoration: none; color: var(--teal-text); }
.card .card-link:hover { color: var(--ink); }
.card .card-link::after { content: ' \203A'; }

/* ---------- Steps ---------- */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 960px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.tb-honest { margin: 32px 0; max-width: 46em; }
.hero-aside { margin: 24px 0 0; font-weight: 700; }
.hero-strap { font-size: clamp(20px, 3vw, 28px); font-weight: 300; letter-spacing: -0.02em; margin: -4px 0 20px; color: var(--mint); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 4px 0 0; }
.hero-points li { display: inline-flex; }
.hero-points a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid rgba(245, 243, 238, 0.28); border-radius: 999px; font-size: 15px; font-weight: 700; color: inherit; text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.hero-points a:hover, .hero-points a:focus-visible { border-color: var(--mint); background: rgba(168, 235, 213, 0.14); color: var(--mint); }
.hero-points a::before { content: ''; width: 8px; height: 11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34'%3E%3Cpath d='M6 5 L20 17 L6 29' fill='none' stroke='%23A8EBD5' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.band-teal .hero-aside a { color: var(--ink); }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--chalk); font-weight: 800; margin-bottom: 12px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--slate); font-size: 15px; }

/* ---------- Honest list ---------- */

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2314213D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

.two-col { display: grid; gap: 40px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }

/* ---------- Forms ---------- */

.form-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
@media (min-width: 720px) { .form-card { padding: 32px; } }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field legend { font-weight: 700; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--slate); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--chalk);
  border: 1.5px solid rgba(20, 33, 61, 0.22);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-text); box-shadow: 0 0 0 3px rgba(31, 163, 154, 0.25); }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; font-size: 15px; }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--teal-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; font-weight: 700; min-height: 1.6em; }
.form-status.ok { color: var(--teal-text); }
.form-status.error { color: #A3302A; }
.small-print { font-size: 14px; color: var(--slate); margin-top: 14px; }

.pull-quote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal); }
.pull-quote p { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.45; color: var(--ink); }
.founder-photo { width: 100%; max-width: 280px; height: auto; border-radius: var(--radius); margin-bottom: 20px; }

/* ---------- "People still need homes" ---------- */

.why h2 { font-size: clamp(34px, 6vw, 56px); }
.why-word { color: var(--white); }
.why-word .tw-caret { background: var(--white); }
.why-text { display: grid; gap: 18px; }
.why-text p { margin: 0; font-size: clamp(19px, 2.3vw, 23px); line-height: 1.6; max-width: 34em; }
.why-text .heart-line { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.25; margin-top: 6px; }

/* ---------- Interactive compliance check ---------- */

.cq { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 8px 20px 24px; }
@media (min-width: 720px) { .cq { padding: 12px 32px 32px; } }
.cq-list { list-style: none; margin: 0; padding: 0; }
.cq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.cq-item fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cq-item fieldset::after { content: ''; display: block; clear: both; }
.cq-item legend { float: left; width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 17px; line-height: 1.4; }
.cq-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--chalk); color: var(--ink); font-size: 14px; font-weight: 800; transition: background 0.2s ease, color 0.2s ease; }
.cq-item.is-yes .cq-num { background: var(--teal); color: var(--ink); }
.cq-item.is-flag .cq-num { background: var(--ink); color: var(--mint); }
.cq-opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; padding-left: 40px; }
@media (min-width: 860px) {
  .cq-item legend { width: calc(100% - 310px); margin-bottom: 0; }
  .cq-opts { clear: none; float: right; padding-left: 0; }
}
.cq-opt { position: relative; }
.cq-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cq-opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid rgba(20, 33, 61, 0.25); font-weight: 700; font-size: 15px; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.cq-opt span:hover { border-color: var(--ink); }
.cq-opt input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.cq-opt input[value="yes"]:checked + span { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.cq-opt input[value="no"]:checked + span, .cq-opt input[value="unsure"]:checked + span { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
.cq-more { margin: 10px 0 0 40px; }
.cq-more summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--teal-text); }
.cq-more p { margin: 8px 0 0; color: var(--slate); font-size: 15.5px; max-width: 46em; }
.cq-result { margin-top: 24px; padding: 20px; border-radius: var(--radius); background: var(--chalk); }
.cq-progress { height: 8px; border-radius: 999px; background: rgba(20, 33, 61, 0.1); overflow: hidden; margin-bottom: 14px; }
.cq-bar { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 999px; transition: width 0.3s ease; }
.cq-score { font-weight: 800; font-size: 18px; margin: 0 0 10px; }
.cq-todo { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 4px; }
.cq-todo:empty { display: none; }
.cq-note { margin: 18px 0 0; font-size: 13.5px; color: var(--slate); }

/* Report cards: one per topic flagged */
.cq-report { display: grid; gap: 12px; margin: 4px 0 24px; }
.cq-r-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.cq-r-card summary { cursor: pointer; padding: 16px 20px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cq-r-card summary::-webkit-details-marker { display: none; }
.cq-r-card summary::after { content: '+'; font-size: 24px; font-weight: 500; color: var(--teal-text); line-height: 1; }
.cq-r-card[open] summary::after { content: '\2212'; }
.cq-r-body { padding: 0 20px 20px; display: grid; gap: 14px; }
@media (min-width: 860px) { .cq-r-body { grid-template-columns: 1fr 1fr; column-gap: 32px; } .cq-r-body .cq-r-row:first-child { grid-column: 1 / -1; } }
.cq-r-row h4 { margin: 0 0 4px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-text); }
.cq-r-row p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.cq-r-row ul { margin: 0; padding-left: 18px; font-size: 15.5px; }

/* Next steps: email the report, or book a call */
.cq-next { display: grid; gap: 16px; }
.cq-capture { max-width: 720px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.cq-capture h3 { margin: 0 0 6px; font-size: 20px; }
.cq-capture > p { margin: 0 0 16px; color: var(--slate); font-size: 15.5px; }
.cq-capture .consent { margin: 0 0 12px; }
.cq-capture .btn { margin-top: 6px; }

/* One question at a time (added by compliance.js) */
.cq-review { display: none; }
.cq.is-stepped .cq-stage { max-width: 760px; }
.cq.is-stepped .cq-num { display: none; }
.cq.is-stepped .cq-stage, .cq.is-stepped .cq-result { scroll-margin-top: 96px; }
.cq.is-stepped .cq-count { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-text); }
.cq.is-stepped .cq-stage .cq-progress { margin-bottom: 20px; }
.cq.is-stepped .cq-item { border-bottom: 0; padding: 0; min-height: 140px; outline: none; }
.cq.is-stepped .cq-item legend { float: none; width: 100%; margin-bottom: 18px; font-size: 21px; line-height: 1.35; letter-spacing: -0.01em; }
.cq.is-stepped .cq-opts { float: none; clear: both; padding-left: 0; }
.cq.is-stepped .cq-more { margin-left: 0; }
.cq.is-stepped .cq-item:not([hidden]) { animation: cq-in 0.35s ease both; }
@keyframes cq-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.cq-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.cq-back { background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 700; font-size: 15px; color: var(--teal-text); cursor: pointer; }
.cq-back:disabled { visibility: hidden; }
.cq-forward:disabled { opacity: 0.4; cursor: not-allowed; }
.cq.is-stepped .cq-result { margin-top: 0; }
.cq.is-stepped .cq-review { display: inline-block; background: none; border: 0; padding: 0; margin-bottom: 12px; font: inherit; font-weight: 700; font-size: 15px; color: var(--teal-text); cursor: pointer; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .cq.is-stepped .cq-item:not([hidden]) { animation: none; } }

/* ---------- Let page ---------- */

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.table-wrap { overflow-x: auto; }
.fee-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.fee-table th, .fee-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.fee-table thead th { background: var(--ink); color: var(--chalk); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.fee-table tbody th { font-weight: 600; }
.fee-table td { text-align: right; font-weight: 800; white-space: nowrap; }
.fee-table thead th:last-child { text-align: right; }
.fee-table tbody tr:last-child th, .fee-table tbody tr:last-child td { border-bottom: 0; }

/* Referral hand-off after registering */
.handoff { background: var(--ink); color: var(--chalk); border-radius: var(--radius); padding: 28px; }
.handoff-label { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); }
.handoff-ref { margin: 4px 0 14px; font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.handoff p:not(.handoff-label):not(.handoff-ref) { color: rgba(245, 243, 238, 0.86); margin-bottom: 20px; }

/* ---------- Buy page ---------- */

/* Opening: figures rain down behind the headline, strongest on the right */
.hero--rain { position: relative; overflow: hidden; isolation: isolate; }
.hero--rain > .wrap { position: relative; z-index: 1; }
.figure-rain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; --fall: 700px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.45) 45%, #000 75%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.45) 45%, #000 75%);
}
.rain-drop {
  position: absolute; top: 0; white-space: nowrap; font-weight: 800; letter-spacing: -0.02em;
  color: var(--mint); font-variant-numeric: tabular-nums;
  animation: figure-fall linear infinite;
  will-change: transform;
}
.rain-drop--teal { color: var(--teal); }
.rain-drop--warm { color: var(--warm); }
@keyframes figure-fall {
  from { transform: translateY(-60px); }
  to { transform: translateY(var(--fall)); }
}

/* The key logo draws itself, then a strong tick: "buy right" */
.key-draw { display: block; width: 120px; height: 87px; margin: 0 0 20px -6px; overflow: visible; }
.key-draw .kd-bow { fill: none; stroke: var(--chalk); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: kd-draw 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both; }
.key-draw .kd-dot { fill: var(--mint); transform-origin: 32px 48px; animation: kd-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.95s both; }
.key-draw .kd-line { fill: none; stroke: var(--mint); stroke-width: 9; stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: kd-draw 0.75s cubic-bezier(0.45, 0, 0.2, 1) 1.15s both; }
.key-draw { animation: kd-settle 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s both; transform-origin: 70% 50%; }
@keyframes kd-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes kd-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes kd-settle { 0% { transform: scale(1); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }
/* After the headline types out, the key turns, as on the homepage */
.key-draw.turn { animation: key-twist 2.6s ease-in-out both; transform-origin: 50% 50%; }
@keyframes key-twist {
  0% { transform: perspective(300px) rotateX(0deg); }
  20% { transform: perspective(300px) rotateX(80deg); }
  42% { transform: perspective(300px) rotateX(0deg); }
  64% { transform: perspective(300px) rotateX(80deg); }
  88%, 100% { transform: perspective(300px) rotateX(0deg); }
}

.small-note { font-size: 14px; margin-top: 12px; }
.cost-table td { white-space: normal; }
.form-card h3 { margin: 0 0 16px; font-size: 22px; }

/* Below market value example */
.bmv-example { background: var(--ink); color: var(--chalk); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; font-variant-numeric: tabular-nums; }
.bmv-label { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); }
.bmv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(245, 243, 238, 0.16); font-size: 17px; }
.bmv-row strong { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -0.02em; }
.bmv-total { border-bottom: 0; padding-bottom: 0; }
.bmv-total strong { color: var(--mint); }

/* Strategy diagram: buy, refinance, cash back, keep the equity */
.flow { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 8px; }
@media (min-width: 960px) { .flow { grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr; align-items: stretch; gap: 10px; } }
.flow-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.flow-step--end { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.flow-step.flow-step--end p { color: rgba(245, 243, 238, 0.88); }
.flow-step h3 { font-size: 19px; margin: 12px 0 8px; }
.flow-step p { margin: 0; font-size: 15.5px; color: var(--slate); }
.flow-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: var(--ink); font-weight: 800; }
.flow-step--end .flow-num { background: var(--mint); }
.flow-arrow-wrap { display: flex; align-items: center; justify-content: center; }
.flow-arrow { width: 18px; height: 24px; color: var(--teal-text); transform: rotate(90deg); }
.flow-arrow path { stroke: currentColor; }
@media (min-width: 960px) { .flow-arrow { transform: none; } }

.repeat-note { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 700; width: fit-content; max-width: 100%; }
.repeat-icon { width: 24px; height: 24px; flex: none; color: var(--teal-text); }
.repeat-icon path { stroke: currentColor; }
/* Rinse and repeat: step 4 twists on its axis, then the repeat symbol spins twice */
.flow.play .flow-step--end { animation: step-twist 1.1s cubic-bezier(0.45, 0, 0.25, 1) 0.2s both; }
@keyframes step-twist { from { transform: perspective(900px) rotateY(0deg); } to { transform: perspective(900px) rotateY(360deg); } }
.repeat-note.play .repeat-icon { animation: repeat-spin 1.4s cubic-bezier(0.45, 0, 0.25, 1) 1.2s both; }
@keyframes repeat-spin { from { transform: rotate(0deg); } to { transform: rotate(720deg); } }
@media (max-width: 559px) { .repeat-note { border-radius: var(--radius); } }

.handheld { margin-top: 28px; display: grid; gap: 24px; background: var(--ink); color: var(--chalk); border-radius: var(--radius); padding: 28px; }
@media (min-width: 960px) { .handheld { grid-template-columns: 1fr 1fr; gap: 48px; padding: 36px; align-items: center; } }
.handheld h3 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 12px; }
.handheld p { margin: 0; color: rgba(245, 243, 238, 0.86); }
.handheld a { color: var(--mint); }
.handheld .check-list li::before { background-color: var(--mint); }

/* Equity bar */
.equity-bar { display: flex; height: 56px; border-radius: 12px; overflow: hidden; font-weight: 800; font-size: 15px; }
.equity-seg { display: flex; align-items: center; padding: 0 16px; white-space: nowrap; overflow: hidden; }
.equity-seg--debt { flex: 75; background: var(--ink); color: var(--chalk); }
.equity-seg--equity { flex: 25; background: var(--teal); color: var(--ink); }
.equity-caption { margin: 8px 0 0; font-weight: 700; color: var(--slate); font-size: 15px; }
.equity-seg .short { display: none; }
@media (max-width: 559px) { .equity-bar { font-size: 13px; } .equity-seg { padding: 0 10px; } .equity-seg .long { display: none; } .equity-seg .short { display: inline; } }
.risk-notice { margin-top: 24px; }
.notice { margin: 28px 0 0; padding: 16px 18px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); font-size: 14px; color: var(--slate); max-width: 62em; }

/* Example deals */
.deal-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.deal-tag { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-text); }
.deal-card h3 { margin: 0 0 16px; }
.deal-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.deal-figures dt { font-size: 13px; color: var(--slate); font-weight: 700; }
.deal-figures dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; }
.grid > * { min-width: 0; }
.deal-figures > div { min-width: 0; }
@media (min-width: 1100px) { .deal-figures--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.deal-photo { aspect-ratio: 16 / 10; max-width: 100%; margin: 0 0 20px; border-radius: 10px; background: var(--mist); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.deal-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Learn page ---------- */

/* Opening: photo of Sam and Jon on the right, navy fading across it from the headline side */
.hero--learn { position: relative; isolation: isolate; overflow: hidden; }
.hero--learn::before {
  content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 62%; z-index: -2;
  background: url("learn-sam-jon.jpg") center 22% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.hero--learn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 34%, rgba(20, 33, 61, 0.86) 44%, rgba(20, 33, 61, 0.6) 55%, rgba(20, 33, 61, 0.36) 68%, rgba(20, 33, 61, 0.2) 82%, rgba(20, 33, 61, 0.14) 100%);
}
@media (min-width: 860px) { .hero--learn .wrap > * { max-width: 30rem; } .hero--learn h1 { max-width: 9em; } }
@media (max-width: 859px) {
  .hero--learn::before { width: 100%; background-position: center 20%; -webkit-mask-image: none; mask-image: none; }
  .hero--learn::after { background: linear-gradient(180deg, rgba(20, 33, 61, 0.78) 0%, rgba(20, 33, 61, 0.72) 100%); }
}

.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.price-card h3 { margin: 0 0 8px; }
.price-card .price { margin: 0 0 12px; font-size: 18px; color: var(--slate); }
.price-card .price strong { font-size: clamp(36px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; }
.price-card p:last-child { margin: 0; color: var(--slate); }
.price-card--main { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.price-card--main .price, .price-card--main p:last-child { color: rgba(245, 243, 238, 0.86); }
.price-card--main .price strong { color: var(--mint); }

/* ---------- Connect page ---------- */

.hero--video { position: relative; isolation: isolate; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero--video::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 33, 61, 0.92) 0%, rgba(20, 33, 61, 0.76) 50%, rgba(20, 33, 61, 0.4) 100%);
}
@media (max-width: 719px) { .hero--video::after { background: rgba(20, 33, 61, 0.82); } }

.event-list { display: grid; gap: 10px; margin: 0 0 28px; }
.event-row { display: grid; gap: 4px 24px; align-items: center; background: var(--mist); border-radius: 12px; padding: 16px 20px; }
@media (min-width: 720px) { .event-row { grid-template-columns: 220px 1fr auto; } }
.event-row p { margin: 0; }
.event-date { font-weight: 800; color: var(--teal-text); }
.event-name { font-weight: 700; }
.event-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.ticket-grid .price-card .btn { margin-top: 16px; }

/* "Coming soon" tag */
.soon-tag { display: inline-block; padding: 3px 10px; margin-right: 6px; border-radius: 999px; background: var(--mist); color: var(--teal-text); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 1px; }
.soon-tag--light { background: rgba(168, 235, 213, 0.16); color: var(--mint); margin: 0 0 16px; }

/* Featured listing (Sell page) */
.listing { display: grid; gap: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 32px; }
@media (min-width: 900px) { .listing { padding: 28px 32px; } .listing:has(.listing-photo) { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 32px; } }
.listing-photo { margin: 0; display: grid; gap: 8px; }
.listing-photo img { display: block; width: 100%; height: auto; border-radius: 10px; }
.listing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.listing-grid img { aspect-ratio: 3 / 2; object-fit: cover; }
.photo-credit { margin: 2px 0 0; font-size: 12.5px; color: var(--slate); }
.listing-body h3 { margin: 0 0 16px; }
.listing-features { margin-top: 8px; }
.viewing { display: grid; gap: 32px; max-width: 640px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.viewing h3 { margin: 0 0 8px; font-size: 24px; }
.viewing p { margin: 0; }

/* Let page: the 5% panel bounces in to draw the eye */
.bounce-in { animation: bounce-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s both; transform-origin: 50% 60%; }
@keyframes bounce-in {
  0% { opacity: 0; transform: translateY(30px) scale(0.85); }
  60% { opacity: 1; transform: translateY(-6px) scale(1.04); }
  80% { transform: translateY(2px) scale(0.99); }
  100% { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(245, 243, 238, 0.82); padding: 56px 0 40px; font-size: 15px; }
.site-footer a { color: var(--mint); }
.site-footer .small-print { color: rgba(245, 243, 238, 0.72); }
.site-footer a:hover { color: var(--chalk); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.badges li { border: 1px solid rgba(245, 243, 238, 0.28); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.legal { border-top: 1px solid rgba(245, 243, 238, 0.16); margin-top: 40px; padding-top: 24px; font-size: 13px; color: rgba(245, 243, 238, 0.66); }
.legal p { margin-bottom: 8px; }

/* ---------- Brand differences ----------
   Future Landlord leads with Midnight Ink (light white header, dark photo hero, ink fee card).
   Future Homeowner leads with Future Teal and Fresh Mint (teal hero, mint band, teal footer). */

.site-landlord .site-header { background: var(--chalk); border-bottom: 3px solid var(--mint); }
.band-ink .hero-aside a { color: var(--mint); }
.band-white .hero-panel, .band-mist .hero-panel { background: var(--ink); color: var(--chalk); }

.site-homeowner .site-header { border-bottom: 3px solid var(--teal); }
.site-homeowner .site-footer { background: var(--teal); color: var(--ink); }
.site-homeowner .site-footer a, .site-homeowner .site-footer a:hover { color: var(--ink); }
.site-homeowner .site-footer a:hover { text-decoration-thickness: 2px; }
.site-homeowner .site-footer .small-print { color: var(--ink); }
.site-homeowner .legal { color: rgba(20, 33, 61, 0.82); border-top-color: rgba(20, 33, 61, 0.2); }

/* ---------- Draft placeholders (remove before launch) ---------- */

.ph { background: #FFF2B8; color: #5A4500; border: 1px dashed #B08A00; border-radius: 4px; padding: 0 4px; font-weight: 700; }
.draft-banner { background: #FFF2B8; color: #5A4500; text-align: center; font-size: 14px; font-weight: 700; padding: 8px var(--gutter); }

/* ---------- Simple pages ---------- */

.page { padding: 56px 0 80px; }
.page .wrap { max-width: 780px; }
