/* Two Doors Upstream. Property intelligence. One width, one grid, nothing tilted. */
:root {
  --white: #ffffff;
  --ground: #f4f7fb;
  --line: #d9e2ee;
  --ink: #0b1a2e;
  --ink-soft: #44566d;
  --navy: #0b1a2e;
  --navy-2: #12284a;
  --river: #1d4f8c;
  --current: #2a6bc4;
  --sky: #9cc9ff;
  --mist: #c3d2e4;
  --hot: #b4361f;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", system-ui, sans-serif;

  --w: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --sec: clamp(56px, 6vw, 88px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); line-height: 1.1; }
h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); line-height: 1.25; }
:focus-visible { outline: 3px solid var(--current); outline-offset: 3px; }
::selection { background: var(--sky); color: var(--ink); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sky); color: var(--ink); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Frame ---------- */
.wrap { width: min(100% - 2 * var(--pad), var(--w)); margin-inline: auto; }
.sec { padding-block: var(--sec); }
.sec--tint { background: var(--ground); }
.sec--dark { background: var(--navy); color: var(--white); }
.sec--dark p, .sec--dark li { color: #d5e0ee; }
.sec--line { border-top: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.head--center { margin-inline: auto; text-align: center; }
.head p { margin-top: 18px; font-size: 1.1875rem; color: var(--ink-soft); }
.sec--dark .head p { color: #c9d6e6; }
.lede { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 6px; background: var(--current); color: var(--white); font: 600 1rem/1 var(--sans); text-decoration: none; transition: background-color .15s, transform .15s var(--ease); }
.btn:hover { background: var(--river); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--mist); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.link { font-weight: 600; color: var(--current); text-decoration: none; border-bottom: 1.5px solid currentColor; }
.sec--dark .link { color: var(--sky); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { height: 52px; width: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: .9375rem; font-weight: 600; }
.nav ul a:not(.btn) { text-decoration: none; color: var(--ink-soft); }
.nav ul a:not(.btn):hover, .nav ul a[aria-current] { color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 18px; }
@media (max-width: 1000px) { .nav ul li:not(:last-child) { display: none; } }
@media (max-width: 480px) { .brand img { height: 40px; } .nav .btn { padding: 0 14px; font-size: .875rem; } }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); padding-block: clamp(64px, 8vw, 112px); }
.hero h1 { color: var(--white); }
.hero .lede { color: #c9d6e6; margin-top: 24px; max-width: 34ch; }
.hero .note { margin-top: 28px; font-size: .9375rem; color: #9fb3cc; }

/* Page header for inner pages */
.phead { background: var(--navy); color: var(--white); padding-block: clamp(56px, 7vw, 96px); }
.phead .lede { color: #c9d6e6; margin-top: 20px; max-width: 46ch; }
.phead figure { margin: 0; }

/* ---------- Pictures ---------- */
.pic { margin: 0; }
.pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.pic--wide img { aspect-ratio: 16 / 9; }
.pic--tall img { aspect-ratio: 4 / 5; }
.pic figcaption { margin-top: 12px; font-size: .875rem; color: var(--ink-soft); }
.sec--dark .pic figcaption, .phead .pic figcaption { color: #9fb3cc; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 32px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 600 clamp(2rem, 1.5rem + 1.4vw, 2.75rem)/1 var(--serif); color: var(--river); }
.stat span { display: block; margin-top: 10px; font-size: .9375rem; color: var(--ink-soft); }

/* ---------- Product file (the card) ---------- */
.file { background: var(--white); color: var(--ink); border-radius: 10px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -24px rgba(11, 26, 46, .35); overflow: hidden; font-size: .9375rem; }
.file__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: var(--navy-2); color: var(--white); font-size: .8125rem; }
.file__top b { font-weight: 700; letter-spacing: .02em; }
.file__top span { color: #a9bdd6; }
.file__body { padding: 6px 20px 14px; }
.file dl { margin: 0; }
.file__row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.file__row:first-child { border-top: 0; }
.file dt { color: var(--ink-soft); font-size: .8125rem; padding-top: 2px; }
.file dd { margin: 0; font-weight: 600; }
.file .masked { display: inline-block; background: var(--ink); color: transparent; border-radius: 3px; user-select: none; }
.tag { display: inline-block; margin: 0 6px 6px 0; padding: 3px 9px; border-radius: 4px; background: var(--ground); border: 1px solid var(--line); font-size: .8125rem; font-weight: 600; }
.tag--hot { background: #fbe9e5; border-color: #f1c4ba; color: var(--hot); }
.heirs li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.heirs li b { font-weight: 600; color: var(--river); white-space: nowrap; }
.heirs li.out { color: var(--ink-soft); font-weight: 400; text-decoration: line-through; text-decoration-color: rgba(68,86,109,.5); }
.heirs li.out span:last-child { text-decoration: none; }
.file--empty .file__top { background: #5b6878; }
.file--empty dd { color: var(--ink-soft); font-weight: 400; }
.file__foot { padding: 14px 20px; background: #fbe9e5; color: var(--hot); font-weight: 600; font-size: .875rem; }
.file__foot--ok { background: #e6f0fb; color: var(--river); }

/* Same house, two ways */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.versus__col { display: flex; flex-direction: column; gap: 16px; }
.versus__col > p { font-weight: 600; font-size: .9375rem; color: var(--ink-soft); }
.versus .file { flex: 1; display: flex; flex-direction: column; }
.versus .file__body { flex: 1; }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(24px, 3vw, 36px); }
.sec--tint .card { border-color: transparent; box-shadow: 0 1px 2px rgba(11,26,46,.06); }
.sec--dark .card { background: var(--navy-2); border-color: #1f3a62; }
.sec--dark .card h3 { color: var(--white); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-soft); }
.sec--dark .card p { color: #c9d6e6; }
.card .num { display: block; margin-bottom: 18px; font: 600 .875rem/1 var(--sans); color: var(--current); letter-spacing: .04em; }
.sec--dark .card .num { color: var(--sky); }
.card .big { display: block; margin: 4px 0 6px; font: 600 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--serif); color: var(--river); }
.card .sub { font-weight: 600; color: var(--ink); }
.card .actions { margin-top: 20px; }

.steps4 .card { display: flex; flex-direction: column; }
.steps4 .file { margin-top: auto; box-shadow: 0 1px 0 var(--line); border: 1px solid var(--line); }
.steps4 .file__row { grid-template-columns: 82px 1fr; padding: 9px 0; }
.steps4 .card p { margin-bottom: 20px; }

/* Lists with ticks */
.ticks li { position: relative; padding: 7px 0 7px 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--current); border-bottom: 2px solid var(--current); transform: rotate(-45deg); }
.sec--dark .ticks li::before { border-color: var(--sky); }
.ticks--2 { columns: 2; column-gap: 32px; }
.ticks--2 li { break-inside: avoid; }

/* Definition rows */
.rows dt { font-weight: 700; margin-top: 18px; }
.rows dt:first-child { margin-top: 0; }
.rows dd { margin: 4px 0 0; color: var(--ink-soft); }
.sec--dark .rows dd { color: #c9d6e6; }

.quote { margin: 28px 0 0; padding: 20px 24px; border-left: 4px solid var(--current); background: var(--ground); font: 600 1.25rem/1.4 var(--serif); }

/* Timeline (life of a property) */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 2px solid #1f3a62; }
.timeline li { position: relative; padding: 28px 22px 0 0; }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--sky); }
.timeline b { display: block; font: 600 1.375rem/1.2 var(--serif); color: var(--white); margin-bottom: 4px; }
.timeline strong { display: block; color: var(--sky); font-size: .9375rem; margin-bottom: 8px; }
.timeline p { font-size: .9375rem; }

/* Seats */
.seatcard { display: flex; flex-direction: column; }
.seatcard .who { font-size: .875rem; font-weight: 600; color: var(--current); margin-bottom: 14px; }
.seatcard .ticks { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9375rem; }
.seatcard--feature { background: var(--navy); border-color: var(--navy); color: var(--white); }
.seatcard--feature h3 { color: var(--white); }
.seatcard--feature p, .seatcard--feature li { color: #c9d6e6; }
.seatcard--feature .who { color: var(--sky); }
.seatcard--feature .ticks { border-color: #1f3a62; }
.seatcard--feature .ticks li::before { border-color: var(--sky); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 760px; }
th, td { padding: 14px 18px; text-align: left; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--ground); font-weight: 700; }
tbody th { font-weight: 600; color: var(--ink); }
td { color: var(--ink-soft); }
td.y { color: var(--river); font-weight: 600; }
td.n { color: #8494a8; }

/* Counties */
.county li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.county li span { color: var(--ink-soft); font-size: .9375rem; }

/* ---------- CTA band ---------- */
.cta { background: var(--river); color: var(--white); padding-block: clamp(64px, 8vw, 96px); }
.cta h2 { color: var(--white); }
.cta p { color: #dbe7f5; margin-top: 16px; font-size: 1.1875rem; max-width: 52ch; }
.cta .split { align-items: end; }
.cta .actions { justify-content: flex-end; margin-top: 0; }

/* ---------- Booking ---------- */
.book__form { background: var(--white); border: 1px solid var(--line); border-radius: 10px; min-height: 720px; position: relative; overflow: hidden; }
.book__form iframe { width: 100%; height: 900px; border: 0; display: block; }
.book__loading { position: absolute; inset: 24px; color: var(--ink-soft); }
.book__form.is-loaded .book__loading { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c9d6e6; padding-block: 72px 40px; font-size: .9375rem; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer__cols li { padding: 4px 0; }
.footer__cols li:first-child { color: var(--white); font-weight: 700; margin-bottom: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__mark { display: block; width: 100%; height: auto; margin: 56px 0 32px; fill: #1f3a62; }
.footer__legal { border-top: 1px solid #1f3a62; padding-top: 24px; font-size: .8125rem; color: #8ea3bd; }
.footer__legal p { max-width: 90ch; }

/* ---------- Motion ---------- */
.rise { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rise.in, .no-js .rise { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Narrow screens ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid #1f3a62; }
  .timeline li { padding: 0 0 28px 28px; }
  .timeline li::before { left: -8px; top: 4px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .split, .versus, .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .cta .actions { justify-content: flex-start; margin-top: 24px; }
  .ticks--2 { columns: 1; }
}
@media (max-width: 600px) {
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child, .stat:nth-child(4) { padding: 22px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .file__row { grid-template-columns: 96px 1fr; gap: 12px; }
  .footer__cols { grid-template-columns: 1fr; }
}

/* Step cards: the mini file sits on one baseline across all four */
.steps4 .card h3 { min-height: 2.5em; }
.steps4 .card > p { flex: 1; }
.steps4 .file__row { grid-template-columns: 1fr auto; }
.steps4 .file dd { text-align: right; white-space: nowrap; }

/* Everything you get */
.stage { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 4px; font: 700 .75rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.stage--fresh { background: #e3f3ea; color: #1d6b43; }
.stage--frozen { background: #e4eefb; color: var(--river); }
.stage--riding { background: #fdf0dc; color: #8a5414; }
.stage--trust { background: #eee9f8; color: #5a3f91; }
.stage--unclear { background: #eceff3; color: var(--ink-soft); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.items > div { padding: 22px 0; border-top: 1px solid var(--line); }
.items h3 { font: 700 1.0625rem/1.3 var(--sans); letter-spacing: 0; margin-bottom: 6px; }
.items p { color: var(--ink-soft); font-size: .9688rem; }
.sec--dark .items > div { border-color: #1f3a62; }
.sec--dark .items h3 { color: var(--white); }
.sec--dark .items p { color: #c9d6e6; }
.band-note { margin-top: 36px; padding: 20px 24px; border-radius: 8px; background: var(--ground); color: var(--ink-soft); }
.sec--dark .band-note { background: var(--navy-2); color: #c9d6e6; }
.who-gets { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .9375rem; color: var(--current); }
.sec--dark .who-gets { color: var(--sky); }
@media (max-width: 1024px) { .grid--5 { grid-template-columns: repeat(3, 1fr); } .items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--5, .items { grid-template-columns: 1fr; } }
.note-sm{font-size:.8125rem;color:var(--ink-soft)}
.explain { display: block; margin-top: 32px !important; border-bottom: 1px solid var(--line); }
.explain .card { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; column-gap: 48px; align-items: start; padding: 22px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.explain .card h3 { grid-column: 1; margin: 0; }
.explain .card .sub { grid-column: 1; margin: 4px 0 0; font-size: .9375rem; color: var(--current); }
.explain .card p:not(.sub) { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
@media (max-width: 760px) { .explain .card { grid-template-columns: 1fr; } .explain .card p:not(.sub) { grid-column: 1; grid-row: auto; margin-top: 10px; } }

/* Term lists: every named feature with its meaning */
.terms { grid-column: 2; grid-row: 1 / span 3; margin: 0; display: grid; grid-template-columns: minmax(150px, 210px) 1fr; column-gap: 24px; }
.terms dt { font-weight: 700; padding: 9px 0; border-top: 1px solid var(--line); }
.terms dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.terms dt:first-of-type, .terms dt:first-of-type + dd { border-top: 0; padding-top: 0; }
.explain .card .terms + p { grid-column: 1; }
@media (max-width: 760px) { .terms { grid-column: 1; grid-row: auto; margin-top: 12px; grid-template-columns: 1fr; } .terms dd { border-top: 0; padding-top: 0; } }
.terms--dark { grid-column: auto; grid-row: auto; }
.terms--dark dt { color: var(--white); border-color: #1f3a62; }
.terms--dark dd { color: #c9d6e6; border-color: #1f3a62; }
