/* Komlive Homes & Properties — site styles
   Brand tokens from the Komlive Brand Guidelines 2026 v1.0 */
:root {
  --raisin: #212121;      /* KHP Raisin Black */
  --graphite: #303030;    /* KHP Deep Graphite */
  --grey-mid: #999999;    /* KHP Medium Grey */
  --grey-light: #CCCCCC;  /* KHP Light Grey */
  --white: #FFFFFF;       /* KHP Pure White */
  --banana: #FFDE76;      /* KHP Top Banana: accent, use sparingly */
  --banana-soft: #FFF6D6;
  --paper: #F7F7F6;
  --ink-soft: #5b5b5b;
  --line-dark: rgba(255,255,255,.14);
  --line-light: #E1E1E1;

  --serif: "Cinzel", "Times New Roman", serif;
  --sans: "Poppins", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--raisin);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--banana); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.measure { max-width: 62ch; }
.grid > *, .split > * { min-width: 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: .02em; text-wrap: balance; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.2rem; }
h4 { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; margin: 0 0 6px; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
.muted { color: var(--ink-soft); }

/* Komlive name: always in brand colour */
.km { font-weight: 700; color: var(--raisin); background: var(--banana); padding: 0 .22em; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dark .km, .hero .km, .page-hero .km, footer .km, .compare thead .rec .km { color: var(--banana); background: none; padding: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: .95rem; line-height: 1.3;
  padding: 14px 26px; border-radius: 3px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--banana); color: var(--raisin); }
.btn-gold:hover { background: #ffe89c; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--raisin); color: var(--white); }
.btn-dark:hover { background: var(--graphite); }
.btn-line { border-color: var(--raisin); color: var(--raisin); background: transparent; }
.btn-line:hover { background: var(--raisin); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { font-weight: 500; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { width: 34px; height: auto; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word b { font-weight: 700; font-size: 1.3rem; letter-spacing: .01em; }
.logo-word span { font-weight: 500; font-size: .6rem; letter-spacing: .04em; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 24px; white-space: nowrap; font-size: .9rem; font-weight: 400; }
.nav a { text-decoration: none; opacity: .8; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"] { box-shadow: 0 1px 0 var(--banana); }
.nav .btn { opacity: 1; padding: 10px 18px; box-shadow: none; }
.menu-btn { display: grid; background: none; border: 1px solid rgba(255,255,255,.35); color: var(--white); border-radius: 3px; width: 44px; height: 40px; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; margin: auto; }
.menu-panel { background: var(--raisin); border-top: 1px solid var(--line-dark); }
.menu-panel .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 32px; padding-block: 24px 32px; }
.menu-panel a { text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line-dark); font-size: .95rem; }
.menu-panel a[aria-current="page"] { color: var(--banana); }
@media (max-width: 960px) {
  .nav a:not(.btn) { display: none; }
  .menu-panel .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .nav .btn { display: none; }
  .logo-word b { font-size: 1.1rem; }
  .menu-panel .wrap { grid-template-columns: 1fr; }
}

/* ---------- Heroes ---------- */
.hero, .page-hero {
  position: relative;
  background: radial-gradient(120% 90% at 85% 10%, #2c2c2c 0%, var(--raisin) 55%);
  color: var(--white);
  overflow: hidden;
}
.hero { padding: clamp(120px, 13vw, 150px) 0 clamp(56px, 7vw, 80px); }
.page-hero { padding: clamp(128px, 14vw, 168px) 0 clamp(56px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-grid > * { min-width: 0; }
.kicker { display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--grey-light); margin: 0 0 24px; }
.kicker::before { content: ""; width: 36px; height: 1px; background: var(--banana); flex: none; }
.kicker a { text-decoration: none; }
.kicker a:hover { color: var(--white); }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); font-weight: 400; line-height: 1.14; letter-spacing: .015em; }
.hero h1 span.line2 { display: block; font-weight: 700; margin-top: .15em; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 600; max-width: 22ch; }
.lede { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--grey-light); margin: 24px 0 34px; max-width: 54ch; }
.page-hero .lede { margin-bottom: 0; }
.page-hero .btn-row { margin-top: 32px; }

.hero-photo { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 420px; }
.hero-photo::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid rgba(255,222,118,.45); pointer-events: none; }
.hero-photo img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; filter: saturate(.9) brightness(1.25) contrast(1.05); }
.hero-card { position: absolute; left: -44px; bottom: 32px; width: min(280px, 80%); background: var(--white); color: var(--raisin); padding: 22px 24px; box-shadow: 0 24px 48px rgba(0,0,0,.35); }
.hero-card small { display: block; font-size: .8rem; color: var(--ink-soft); line-height: 1.4; }
.hero-card strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; line-height: 1.2; margin: 4px 0 6px; }
.hero-card span { display: block; font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: center; max-width: 360px; margin: 24px 0 0 18px; }
  .hero-card { left: -18px; }
}

.facts { border-top: 1px solid var(--line-dark); margin: clamp(48px, 6vw, 72px) 0 0; padding-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fact { border-left: 1px solid var(--line-dark); padding-left: 20px; min-width: 0; }
.fact dt { font-size: .82rem; color: var(--grey-mid); margin-bottom: 4px; }
.fact dd { margin: 0; font-size: 1.2rem; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section.tight { padding-top: 0; }
.section.white { background: var(--white); }
.dark { background: var(--raisin); color: var(--white); }
.dark.graphite { background: var(--graphite); }
.dark .muted, .dark .section-head p { color: var(--grey-light); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head > * { min-width: 0; }
.section-head p { color: var(--ink-soft); margin: 0; }
.section-head.solo { grid-template-columns: 1fr; max-width: 720px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split.wide-left { grid-template-columns: 1.2fr .8fr; }
.split.wide-right { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 860px) { .split, .split.wide-left, .split.wide-right { grid-template-columns: 1fr; } }

.pull { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.5; max-width: 38ch; margin: 0; }
.pull-center { text-align: center; margin-inline: auto; }

/* Dual outcome */
.dual { display: grid; grid-template-columns: 1fr auto 1fr; border: 1px solid var(--line-light); background: var(--white); }
.dual-col { padding: clamp(28px, 4vw, 48px); min-width: 0; }
.dual-col h3 { margin-bottom: 14px; font-size: 1.3rem; }
.dual-col p { color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-light); font-size: .95rem; }
.dark .ticks li { border-color: var(--line-dark); }
.ticks svg { flex: none; width: 18px; height: 18px; margin-top: 5px; }
.dual-join { width: 1px; background: var(--line-light); position: relative; }
.dual-join span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--raisin); color: var(--banana); display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
@media (max-width: 760px) { .dual { grid-template-columns: 1fr; } .dual-join { width: auto; height: 1px; } }

/* Link tiles (routes into the site) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.tile { background: var(--white); padding: clamp(24px, 3vw, 36px); text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: background-color .2s; }
.tile:hover { background: var(--banana-soft); }
.tile svg { width: 28px; height: 28px; }
.tile h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
.tile p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.tile .go { margin-top: auto; padding-top: 8px; font-weight: 500; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }

/* Comparison tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line-light); }
.compare thead th { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; border-bottom: 2px solid var(--raisin); }
.compare thead th small { display: block; font-family: var(--sans); font-weight: 400; font-size: .8rem; color: var(--ink-soft); margin-top: 4px; letter-spacing: 0; }
.compare tbody th { font-weight: 500; width: 26%; color: var(--ink-soft); }
.compare .rec { background: #FFFBEA; }
.compare thead .rec { background: var(--raisin); color: var(--white); border-bottom-color: var(--banana); }
.compare thead .rec small { color: var(--grey-light); }
.compare.center td, .compare.center thead th:not(:first-child) { text-align: center; }
.yes, .no { display: inline-block; width: 20px; height: 20px; vertical-align: middle; }
.no { color: var(--grey-light); }
.table-note { margin-top: 20px; font-size: .9rem; color: var(--ink-soft); max-width: 72ch; }

/* Benefit list */
.adv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.adv-item { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line-light); }
.dark .adv-item { border-color: var(--line-dark); }
.adv-item svg { width: 28px; height: 28px; }
.adv-item h3 { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; margin-bottom: 4px; }
.adv-item p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.dark .adv-item p { color: var(--grey-light); }
@media (max-width: 760px) { .adv { grid-template-columns: 1fr; } }

/* Numbered steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.steps li { counter-increment: s; padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line-dark); min-width: 0; }
.steps li:not(:nth-child(3n)) { border-right: 1px solid var(--line-dark); }
.steps li:not(:nth-child(3n+1)) { padding-left: 28px; }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--banana); line-height: 1; margin-bottom: 16px; }
.steps h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.steps p { color: var(--grey-light); font-size: .93rem; margin: 0; }
.steps .when { display: block; margin-top: 12px; font-size: .8rem; color: var(--grey-mid); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:not(:nth-child(3n+1)) { padding: 22px 0; border-right: 0 !important; }
}

/* Journey: two-lane timeline */
.journey { list-style: none; margin: 0; padding: 0; counter-reset: j; }
.journey > li { counter-increment: j; display: grid; grid-template-columns: 180px 1fr 1fr; gap: 0 40px; padding: 32px 0; border-top: 1px solid var(--line-light); }
.journey > li:last-child { border-bottom: 1px solid var(--line-light); }
.j-head::before { content: counter(j); display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; margin-bottom: 10px; }
.j-head h3 { font-size: 1.15rem; }
.j-head .when { display: inline-block; margin-top: 10px; font-size: .8rem; background: var(--raisin); color: var(--white); padding: 3px 10px; border-radius: 20px; }
.lane h4 { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-soft); font-weight: 500; }
.lane h4::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--raisin); }
.lane.us h4::before { background: var(--banana); border-color: var(--banana); }
.lane ul { margin: 0; padding-left: 18px; font-size: .95rem; }
.lane li { margin-bottom: 4px; }
.journey-legend { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 8px; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 860px) { .journey > li { grid-template-columns: 1fr; gap: 16px; } }

/* Destinations departure board */
.board { background: #151515; color: var(--white); border-radius: 6px; padding: clamp(16px, 3vw, 28px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; font-size: .85rem; color: var(--grey-mid); flex-wrap: wrap; }
.board-top strong { color: var(--white); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; letter-spacing: .06em; }
.board table { width: 100%; border-collapse: separate; border-spacing: 0 6px; min-width: 640px; font-variant-numeric: tabular-nums; }
.board th { text-align: left; font-size: .75rem; font-weight: 500; color: var(--grey-mid); padding: 0 14px 4px; letter-spacing: .06em; }
.board td { background: #222; padding: 14px; font-weight: 500; font-size: .95rem; }
.board td:first-child { border-radius: 3px 0 0 3px; }
.board td:last-child { border-radius: 0 3px 3px 0; }
.board .flap { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; letter-spacing: .08em; }
.board .dim td { color: var(--grey-mid); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grey-mid); }
.status.open { color: var(--banana); }
.status.open::before { background: var(--banana); box-shadow: 0 0 0 4px rgba(255,222,118,.2); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,222,118,0); } }
@media (prefers-reduced-motion: reduce) { .status.open::before { animation: none; } }

/* Destination cards */
.dest { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.dest-item { padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line-light); background: var(--white); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dest-item h3 { font-size: 1.5rem; }
.dest-item p { color: var(--ink-soft); margin: 0; }
.dest-item a { margin-top: auto; padding-top: 12px; font-weight: 500; font-size: .95rem; text-underline-offset: 4px; }
.pill { align-self: flex-start; font-size: .78rem; font-weight: 500; padding: 4px 10px; border-radius: 20px; background: #EFEFEF; color: var(--ink-soft); }
.dest-live { background: var(--raisin); color: var(--white); border-color: var(--raisin); }
.dest-live p { color: var(--grey-light); }
.dest-live .pill, .pill.gold { background: var(--banana); color: var(--raisin); }
@media (max-width: 760px) { .dest { grid-template-columns: 1fr; } }

/* Criteria list */
.criteria { list-style: none; margin: 0; padding: 0; }
.criteria li { padding: 20px 0; border-top: 1px solid var(--line-dark); }
.criteria li:last-child { border-bottom: 1px solid var(--line-dark); }
.criteria b { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin-bottom: 4px; }
.criteria span { color: var(--grey-light); font-size: .95rem; }

/* Panels & form controls (dark tool panels) */
.panel { background: var(--raisin); color: var(--white); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line-dark); }
.panel.light { background: var(--white); color: var(--raisin); border-color: var(--line-light); }
.panel > p { color: var(--grey-light); font-size: .92rem; }
.panel.light > p { color: var(--ink-soft); }
.field { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-dark); }
.panel.light .field { border-color: var(--line-light); }
.field label { font-size: .95rem; }
.field small { display: block; color: var(--grey-mid); font-size: .8rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; flex: none; }
.panel.light .stepper { border-color: var(--grey-light); }
.stepper button { width: 40px; height: 40px; background: none; border: 0; color: inherit; font-size: 1.2rem; cursor: pointer; }
.stepper button:hover { background: rgba(127,127,127,.12); }
.stepper output { min-width: 36px; text-align: center; font-weight: 500; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 14px; background: rgba(127,127,127,.35); transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); transition: transform .2s; }
.switch input:checked + span { background: var(--banana); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--raisin); }
.switch input:focus-visible + span { outline: 2px solid var(--banana); outline-offset: 3px; }
.result { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--banana); }
.result .lbl { font-size: .85rem; color: var(--grey-light); }
.panel.light .result .lbl { color: var(--ink-soft); }
.result .val { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.result .sum { font-size: .85rem; color: var(--grey-mid); margin: 6px 0 0; }

.range-field { padding: 18px 0; border-top: 1px solid var(--line-light); }
.range-field .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.range-field output { font-weight: 600; font-variant-numeric: tabular-nums; }
.range-field small { display: block; color: var(--ink-soft); font-size: .8rem; }
input[type="range"] { width: 100%; accent-color: var(--raisin); margin-top: 10px; }
.num-input { width: 90px; font: inherit; font-size: .95rem; padding: 6px 10px; border: 1px solid var(--grey-light); border-radius: 3px; text-align: right; background: var(--white); color: var(--raisin); }

/* Cost breakdown bar */
.stack { display: flex; height: 18px; border-radius: 3px; overflow: hidden; margin: 18px 0 14px; background: #333; }
.stack span { height: 100%; transition: width .3s; }
.legend { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.legend li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-dark); font-variant-numeric: tabular-nums; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 10px; vertical-align: middle; }
.legend li.total { font-weight: 600; border-top: 1px solid var(--banana); }

/* Eligibility quiz */
.quiz { max-width: 760px; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.quiz-progress span { flex: 1; height: 4px; background: var(--line-light); border-radius: 2px; }
.quiz-progress span.on { background: var(--raisin); }
.q h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 10px; }
.q p { color: var(--ink-soft); }
.choices { display: grid; gap: 10px; margin-top: 20px; }
.choice { display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; font: inherit; font-size: 1rem; padding: 18px 20px; background: var(--white); color: var(--raisin); border: 1px solid var(--line-light); border-radius: 3px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.choice:hover { border-color: var(--raisin); }
.choice small { display: block; color: var(--ink-soft); font-size: .85rem; }
.quiz-back { margin-top: 20px; background: none; border: 0; font: inherit; font-size: .9rem; color: var(--ink-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 0; }
.verdict { padding: clamp(24px, 4vw, 40px); background: var(--raisin); color: var(--white); }
.verdict h2 { margin-bottom: 12px; }
.verdict p { color: var(--grey-light); }
.verdict .pill { margin-bottom: 14px; display: inline-block; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line-light); }
.checklist li + li { border-top: 1px solid var(--line-light); }
.checklist label { display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; cursor: pointer; }
.checklist input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin-top: 3px; border: 1.5px solid var(--grey-mid); border-radius: 2px; display: grid; place-items: center; cursor: pointer; background: var(--white); }
.checklist input:checked { background: var(--raisin); border-color: var(--raisin); }
.checklist input:checked::after { content: ""; width: 5px; height: 10px; border: solid var(--banana); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.checklist b { display: block; font-weight: 500; }
.checklist small { color: var(--ink-soft); font-size: .88rem; }
.checklist input:checked ~ span b { text-decoration: line-through; text-decoration-color: var(--grey-mid); }
.person { margin-bottom: 28px; }
.person h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.person h3 span { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.ring { width: 140px; height: 140px; }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: #3a3a3a; }
.ring .bar { stroke: var(--banana); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .4s; }
.ring text { fill: var(--white); font-family: var(--sans); font-weight: 600; font-size: 22px; }
.sticky { position: sticky; top: 24px; }

/* Family diagram */
.family-svg { width: 100%; max-width: 640px; margin-inline: auto; }
.family-svg text { font-family: var(--sans); }

/* Property types */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.type { background: var(--white); border: 1px solid var(--line-light); display: flex; flex-direction: column; min-width: 0; }
.type-art { background: var(--raisin); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.type-art svg { width: 70%; height: auto; }
.type-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.type-body h3 { font-size: 1.25rem; }
.type-body p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.type-body dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: .88rem; }
.type-body dt { color: var(--ink-soft); }
.type-body dd { margin: 0; font-weight: 500; }
@media (max-width: 860px) { .types { grid-template-columns: 1fr; } }

/* With / without */
.versus { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-light); }
.versus > div { padding: clamp(24px, 4vw, 44px); min-width: 0; }
.versus .without { background: var(--white); }
.versus .with { background: var(--raisin); color: var(--white); }
.versus h3 { margin-bottom: 18px; }
.versus ul { list-style: none; padding: 0; margin: 0; }
.versus li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-light); font-size: .95rem; }
.versus .with li { border-color: var(--line-dark); }
.versus li svg { width: 18px; height: 18px; flex: none; margin-top: 5px; }
.versus .without svg { color: var(--grey-mid); }
.versus .with svg { color: var(--banana); }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } }

/* Story acts */
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.act { padding: 28px 24px 8px 0; min-width: 0; }
.act + .act { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.act h3 { font-size: 1rem; color: var(--banana); margin-bottom: 12px; letter-spacing: .06em; }
.act p { color: var(--grey-light); font-size: .95rem; }
@media (max-width: 860px) { .acts { grid-template-columns: 1fr 1fr; } .act:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .acts { grid-template-columns: 1fr; } .act + .act { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); } }

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.value { background: var(--white); padding: 28px 22px; min-width: 0; }
.value h3 { font-size: 1.1rem; margin-bottom: 10px; }
.value p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

.statements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.statements > div { min-width: 0; border-top: 2px solid var(--raisin); padding-top: 20px; }
.statements h3 { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 10px; }
.statements p { font-size: 1.1rem; font-weight: 400; line-height: 1.6; margin: 0; }
@media (max-width: 860px) { .statements { grid-template-columns: 1fr; gap: 28px; } }

/* Long-form guide */
.guide { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.guide > * { min-width: 0; }
.toc { position: sticky; top: 24px; font-size: .9rem; }
.toc p { font-weight: 600; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { padding: 5px 0; }
.toc a { text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--raisin); text-decoration: underline; }
.prose { max-width: 68ch; }
.prose h2 { margin: 56px 0 18px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.callout { background: var(--banana-soft); border-left: 3px solid var(--banana); padding: 18px 22px; margin: 24px 0; font-size: .95rem; }
.glossary { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; margin: 0; }
.glossary dt { font-weight: 600; }
.glossary dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .guide { grid-template-columns: 1fr; } .toc { position: static; } .glossary { grid-template-columns: 1fr; gap: 2px; } .glossary dd { margin-bottom: 12px; } }

/* FAQ */
.faq { max-width: 820px; }
.faq-search { width: 100%; font: inherit; font-size: 1rem; padding: 14px 16px; border: 1px solid var(--grey-light); border-radius: 3px; background: var(--white); color: var(--raisin); margin-bottom: 12px; }
.faq-search:focus { outline: none; border-color: var(--raisin); }
.faq-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.faq-filters button { font: inherit; font-size: .85rem; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--grey-light); background: var(--white); color: var(--raisin); cursor: pointer; }
.faq-filters button[aria-pressed="true"] { background: var(--raisin); color: var(--white); border-color: var(--raisin); }
.faq-group h2 { font-size: 1.3rem; margin: 36px 0 8px; }
.faq details { border-top: 1px solid var(--line-light); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 500; font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border: solid var(--raisin); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-soft); padding-right: 40px; margin-bottom: 20px; }
.faq-empty { color: var(--ink-soft); padding: 24px 0; }

/* Enquiry / contact form */
.enq { background: var(--graphite); color: var(--white); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.enq .full { grid-column: 1 / -1; }
.enq label, .enq legend { display: block; font-size: .85rem; color: var(--grey-light); margin-bottom: 6px; padding: 0; }
.enq fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.enq input:not([type="radio"]):not([type="checkbox"]), .enq select, .enq textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--white);
  background: var(--raisin); border: 1px solid rgba(255,255,255,.2); border-radius: 3px; padding: 12px 14px;
}
.enq select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ccc' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.enq input:focus, .enq select:focus, .enq textarea:focus { outline: none; border-color: var(--banana); }
.enq textarea { min-height: 96px; resize: vertical; }
.enq .err { color: var(--banana); font-size: .82rem; margin-top: 6px; display: none; }
.enq .invalid .err { display: block; }
.enq .invalid input { border-color: var(--banana); }
.enq .note { font-size: .8rem; color: var(--grey-mid); margin: 0; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-block; padding: 9px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 3px; font-size: .9rem; }
.opt input:checked + span { background: var(--banana); color: var(--raisin); border-color: var(--banana); }
.opt input:focus-visible + span { outline: 2px solid var(--banana); outline-offset: 2px; }
.form-steps { display: flex; gap: 8px; margin-bottom: 4px; font-size: .82rem; color: var(--grey-mid); flex-wrap: wrap; }
.form-steps span.on { color: var(--banana); }
.sent { border-top: 1px solid var(--banana); padding-top: 18px; }
.sent p { font-size: .92rem; color: var(--grey-light); }
.sent pre { white-space: pre-wrap; font: inherit; font-size: .88rem; background: var(--raisin); padding: 14px; border: 1px solid rgba(255,255,255,.2); margin: 0 0 14px; }
@media (max-width: 560px) { .enq { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-dark); font-size: .95rem; }
.contact-list svg { width: 18px; height: 18px; flex: none; color: var(--banana); }

/* CTA band */
.cta-band { background: var(--raisin); color: var(--white); padding-block: clamp(56px, 8vw, 88px); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { max-width: 24ch; }
.cta-band p { color: var(--grey-light); margin: 12px 0 0; max-width: 52ch; }

/* Footer */
footer { background: var(--raisin); color: var(--grey-light); font-size: .88rem; padding: 56px 0 36px; border-top: 1px solid var(--line-dark); }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
.foot-grid > * { min-width: 0; }
.foot-grid h2 { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--white); margin-bottom: 12px; letter-spacing: 0; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 4px 0; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--white); text-decoration: underline; }
.foot-brand p { margin-top: 16px; max-width: 34ch; }
.foot-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; color: var(--grey-mid); font-size: .8rem; }
.foot-legal p { margin: 0; max-width: 80ch; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.form-step { display: contents; }
.form-step[hidden] { display: none; }

/* Contact routes */
.contact-list li, .foot-contact li { display: flex; align-items: flex-start; gap: 14px; }
.contact-list li { padding: 16px 0; }
.c-icon { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--banana); }
.c-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c-label { font-size: .78rem; color: var(--grey-mid); }
.c-value { font-size: 1rem; font-weight: 500; color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
a.c-value:hover { text-decoration: underline; }
.c-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.c-actions:empty { display: none; }
.c-chip { font-size: .8rem; font-weight: 500; padding: 5px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; text-decoration: none; color: var(--white); transition: background-color .2s, color .2s, border-color .2s; }
.c-chip:hover { background: var(--banana); border-color: var(--banana); color: var(--raisin); }
.foot-contact { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.foot-contact .c-value { font-size: .88rem; overflow-wrap: normal; }

/* Header logo: larger brand presence */
.site-header .logo { gap: 14px; }
.site-header .logo img { width: 52px; }
.site-header .logo-word b { font-size: 1.9rem; letter-spacing: .015em; }
.site-header .logo-word span { font-size: .78rem; margin-top: 5px; letter-spacing: .05em; }
@media (max-width: 1100px) {
  .site-header .logo img { width: 44px; }
  .site-header .logo-word b { font-size: 1.6rem; }
  .site-header .logo-word span { font-size: .68rem; }
}
@media (max-width: 520px) {
  .site-header .logo img { width: 38px; }
  .site-header .logo-word b { font-size: 1.4rem; }
  .site-header .logo-word span { font-size: .6rem; }
}

/* Developer credit */
.foot-legal a.credit { color: var(--grey-light); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal a.credit:hover { color: var(--banana); }
