/* =========================================================================
   Kerb — marketing site, v3
   Structure after Intercom's homepage (Refero ref 2ec5f8ec): painted full-bleed
   hero with a stepped bold headline, split floating nav boxes, white editorial
   letter, dark sections with painted cards carrying product UI, source tiles,
   dark stats chart, long list + phone, slim price strip, painted closing.
   Kerb's own tokens: Forest Ink does the work, yellow marks OUR numbers and
   badges only (never a button), alarm red only on the competitor's fee.
   Bricolage = hero + big numbers. Newsreader = headings and long-form.
   Inter = UI. Roboto Mono = labels.
   ========================================================================= */

:root {
  --ink: #1a3300;
  --ink-70: rgba(26, 51, 0, 0.7);
  --ink-55: rgba(26, 51, 0, 0.55);
  --ink-15: rgba(26, 51, 0, 0.15);
  --ink-08: rgba(26, 51, 0, 0.08);
  --night: #122004;
  --night-2: #1b2e0c;
  --night-line: rgba(252, 250, 245, 0.14);
  --paper: #fbf9f4;
  --paper-2: #f2eee4;
  --white: #ffffff;
  --line: #e2ddd0;
  --yellow: #ffe95c;
  --mint: #d5f5c2;
  --teal: #a8e5e5;
  --blush: #f6d0ff;
  --alarm: #c8452d;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --f-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-btn: 6px;
  --r-box: 8px;
  --r-card: 10px;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --band: clamp(80px, 10vw, 128px);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
body {
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: var(--band) 0; }
.mono-xs { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.marker { background: var(--yellow); padding: 0 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Painted art slots (Higgsfield). The painting is the media; overlays only guarantee type contrast.
   The hero sets --art inline; everything else gets --art from data-art in app.js as it nears view. */
.art { position: relative; background-image: var(--art); background-size: cover; background-position: center; background-color: #6b7a5a; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--r-btn);
  font-family: var(--f-ui); font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  border: 1.5px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #0f1f00; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.9); color: var(--white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); }
.btn-outline-ink { border-color: var(--ink); color: var(--ink); }
.btn-outline-ink:hover { background: var(--ink-08); }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 16px var(--gutter);
  pointer-events: none;
}
.nav-box {
  pointer-events: auto;
  display: flex; align-items: center; gap: 4px;
  height: 52px; padding: 0 7px 0 12px;
  background: var(--white); border-radius: var(--r-box);
  box-shadow: 0 1px 2px rgba(18, 32, 4, 0.08), 0 8px 24px -12px rgba(18, 32, 4, 0.25);
}
.nav-box > a:not(.btn), .nav-links a {
  font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: 4px;
}
.nav-box > a:not(.btn):hover, .nav-links a:hover { background: var(--paper-2); }
.nav-links { display: flex; gap: 2px; margin-left: 10px; }
/* the mark (vector) + the word set exactly like the hero headline: Bricolage 800,
   tight tracking, pinned to the display optical size so it doesn't loosen when small */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand img { display: block; width: 30px; height: 30px; }
.brand-word { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.035em; font-variation-settings: "opsz" 96; }
.brand-foot { gap: 11px; }
.brand-foot img { width: 38px; height: 38px; }
.brand-foot .brand-word { font-size: 33px; }

/* ------------------------------------------------------------------ hero */
.hero { color: var(--white); padding: clamp(128px, 15vw, 176px) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 20, 0, 0.4) 0%, rgba(10, 20, 0, 0.16) 48%, rgba(10, 20, 0, 0) 72%),
    linear-gradient(180deg, rgba(10, 20, 0, 0) 55%, rgba(10, 20, 0, 0.25) 100%);
}
/* phones get a 1400px painting instead of the 2880px one */
@media (max-width: 720px) { .hero { --art: url("assets/art/hero-sm.jpg") !important; } }
.hero::before { z-index: 1; }
.hero > * { position: relative; z-index: 2; }
/* the animated painting sits between the still background and the tint */
.hero > .hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero > .hero-video.is-playing { opacity: 1; }
.hero-title {
  display: inline-flex; flex-direction: column;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(44px, 6.3vw, 90px); line-height: 0.95; letter-spacing: -0.035em;
  text-shadow: 0 2px 30px rgba(10, 20, 0, 0.25);
}
.hero-title span { white-space: nowrap; }
.hero-title-end { align-self: flex-end; }
.hero-rule { width: min(440px, 70%); height: 1.5px; border: 0; background: rgba(255, 255, 255, 0.85); margin: 32px 0 20px; }
.hero-lede { font-family: var(--f-serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.38; max-width: 27em; text-shadow: 0 1px 2px rgba(10, 20, 0, 0.35), 0 1px 18px rgba(10, 20, 0, 0.5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-let { margin-top: 18px; font-size: 15px; text-shadow: 0 1px 12px rgba(10, 20, 0, 0.45); }
.hero-let a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.hero-product { margin-top: clamp(96px, 12vw, 150px); text-align: center; }
.hero-product-title { font-family: var(--f-serif); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.01em; text-shadow: 0 1px 18px rgba(10, 20, 0, 0.3); }
.hero-product-cap { margin-top: 16px; opacity: 0.85; }

/* ------------------------------------------------------------------ phones + app UI (code-native screens in the app's own style) */
/* phones run off the bottom of the painting, like Intercom's product shot */
.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 2.4vw, 36px); margin: 48px 0 -190px; text-align: left; }
/* A real iPhone frame (Higgsfield render, green keyed out) sits ON TOP of the
   HTML screen. The screen reaches a little under the black bezel so its edges
   never show. Insets and the island position come from measuring the render
   (720 x 1478): screen 5.4% in from the sides, 2.1% from top and bottom. */
.phone {
  position: relative; flex: none; width: 272px; aspect-ratio: 720 / 1478;
  filter: drop-shadow(0 34px 38px rgba(10, 20, 0, 0.32)) drop-shadow(0 6px 10px rgba(10, 20, 0, 0.18));
}
.phone::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: url("assets/device/iphone.png") center / 100% 100% no-repeat;
}
.phone-front { width: 300px; }
.phone-side { margin-top: 56px; }
.screen {
  position: absolute; z-index: 1; left: 4.9%; right: 4.9%; top: 1.6%; bottom: 1.7%;
  container-type: size; overflow: hidden; border-radius: 13% / 6%;
  background: var(--paper); color: var(--ink);
  /* % padding is of the phone's width (the containing block): clears the island + status bar */
  padding: 17% 16px 16px; font-size: 12px; line-height: 1.4;
}
/* iOS status bar, vertically centred on the Dynamic Island, one item in each "ear" */
.sb { position: absolute; z-index: 3; left: 0; right: 0; top: 3.5cqh; transform: translateY(-50%); display: flex; justify-content: space-between; font-family: var(--f-ui); font-weight: 600; font-size: 4.9cqw; letter-spacing: -0.01em; color: #111; pointer-events: none; }
.sb-time, .sb-icons { width: 33.9cqw; display: flex; justify-content: center; align-items: center; gap: 1.4cqw; }
.sb-icons svg { height: 3.4cqw; width: auto; fill: currentColor; }
.sb-icons .batt { height: 3.6cqw; }
/* home indicator */
.screen::after { content: ""; position: absolute; z-index: 3; left: 50%; bottom: 1.1cqh; width: 36cqw; height: 1.4cqw; border-radius: 99px; background: #111; transform: translateX(-50%); }
.screen.is-dark .sb { color: #fff; }
.screen.is-dark::after { background: #fff; }
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; min-height: 20px; }
.app-top .mono-xs { font-size: 9.5px; opacity: 0.7; }
.app-back { font-size: 22px; line-height: 1; }
.app-title { font-family: var(--f-display); font-weight: 800; font-size: 25px; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 12px; }
.app-big { font-family: var(--f-display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; line-height: 1; }
.app-sub { font-size: 11.5px; opacity: 0.68; margin-top: 4px; }
.app-label { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.65; margin: 18px 0 4px; }
.app-source { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.5; margin-top: 10px; }
.app-note { font-size: 11px; opacity: 0.62; margin-top: 12px; }
.pill-live { background: var(--mint); border-radius: 99px; padding: 2px 9px; font-size: 10.5px; font-weight: 600; }
.comps, .enq, .stages, .prov { list-style: none; padding: 0; }
.comps li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--ink-15); font-weight: 600; }
.comps b, .enq b { display: block; font-size: 12px; font-weight: 600; }
.comps em, .enq em { display: block; font-style: normal; font-weight: 400; font-size: 10.5px; opacity: 0.6; }
.needs { background: var(--white); border: 1px solid var(--ink-15); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.needs .mono-xs { font-size: 9px; background: var(--yellow); padding: 2px 6px; border-radius: 3px; }
.needs p { font-weight: 600; font-size: 13px; margin-top: 8px; }
.needs em { display: block; font-style: normal; font-size: 10.5px; opacity: 0.62; margin-top: 2px; }
.mini-btn { display: inline-block; background: var(--ink); color: var(--paper); border-radius: 6px; font-size: 11px; font-weight: 600; padding: 6px 10px; margin-top: 10px; }
.enq li { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; align-items: start; padding: 9px 0; border-top: 1px solid var(--ink-15); }
.ch { font-family: var(--f-mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.04em; border: 1px solid var(--ink-15); border-radius: 4px; padding: 2px 0; text-align: center; }
.enq .t { font-size: 10px; opacity: 0.55; }
.verbatim { font-family: var(--f-serif); font-style: italic; font-size: 14px; line-height: 1.35; border-left: 2px solid var(--ink); padding-left: 10px; margin: 14px 0; }
.facts div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--ink-15); }
.facts dt { opacity: 0.6; }
.facts dd { font-weight: 600; text-align: right; }

/* ------------------------------------------------------------------ letter */
.letter { background: var(--white); }
.letter-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.h-letter { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 24px; }
.letter-body { font-family: var(--f-serif); font-size: clamp(18px, 1.5vw, 20.5px); line-height: 1.55; max-width: 34em; }
.letter-body p + p { margin-top: 1em; }
.letter-body mark { background: var(--yellow); color: inherit; padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.signoff { display: flex; flex-direction: column; gap: 6px; margin-top: 36px; }
.signoff-name { font-family: var(--f-serif); font-style: italic; font-size: 28px; line-height: 1; }
.signoff .mono-xs { opacity: 0.6; }
/* ink on paper: multiply drops the sketch's off-white paper into the page white */
.letter-art { aspect-ratio: 1; background-color: transparent; mix-blend-mode: multiply; filter: brightness(1.07) contrast(1.12); }

/* ------------------------------------------------------------------ dark bands */
.dark { background: var(--night); color: var(--paper); }
.h-dark-sec { font-family: var(--f-serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.06; letter-spacing: -0.015em; text-align: center; margin-bottom: clamp(48px, 6vw, 72px); }
.h-dark-sec.left { text-align: left; margin-bottom: 20px; }

.side-card { display: grid; grid-template-columns: 1fr 1.12fr; background: var(--paper); color: var(--ink); border-radius: var(--r-card); overflow: hidden; min-height: 540px; }
.side-card + .side-card { margin-top: 28px; }
/* on big screens the three cards stack over each other as you scroll */
@media (min-width: 1101px) and (min-height: 760px) {
  #how .side-card { position: sticky; top: 96px; box-shadow: 0 -30px 60px -34px rgba(0, 0, 0, 0.7); }
  #how .side-card:nth-of-type(2) { top: 116px; }
  #how .side-card:nth-of-type(3) { top: 136px; }
}
.side-copy { padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; }
.tag { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; }
.tag-yellow { background: var(--yellow); }
.tag-mint { background: var(--mint); }
.tag-teal { background: var(--teal); }
.h-card { font-family: var(--f-serif); font-weight: 400; font-size: clamp(28px, 2.7vw, 38px); line-height: 1.08; letter-spacing: -0.012em; margin: 18px 0 8px; }
.side-list { margin: 16px 0 30px; width: 100%; }
.side-list div { padding: 14px 0; border-top: 1px solid var(--ink-15); }
.side-list dt { font-weight: 600; font-size: 15.5px; }
.side-list dd { font-size: 14.5px; color: var(--ink-70); margin-top: 4px; max-width: 36em; }
.side-copy .btn { margin-top: auto; }
.side-art { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 56px); }

.ui-card { width: min(390px, 100%); background: var(--paper); color: var(--ink); border-radius: 12px; padding: 16px 18px 18px; box-shadow: 0 30px 60px -24px rgba(10, 20, 0, 0.55), 0 0 0 1px rgba(10, 20, 0, 0.06); }
.ui-card-head { display: flex; justify-content: space-between; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--ink-15); }
.ui-card-head .mono-xs { font-size: 10px; opacity: 0.7; }
/* Higgsfield floor plan on cream; multiply drops its paper into the card's */
.plan { display: block; width: auto; max-width: 100%; height: auto; max-height: 430px; margin: 0 auto; mix-blend-mode: multiply; }
.bub { font-size: 13.5px; line-height: 1.4; padding: 9px 12px; border-radius: 12px; max-width: 86%; margin-top: 8px; }
.bub-agent { background: var(--white); border: 1px solid var(--ink-15); border-bottom-left-radius: 4px; }
.bub-buyer { background: var(--ink); color: var(--paper); margin-left: auto; border-bottom-right-radius: 4px; }
.prov li { display: grid; grid-template-columns: 1fr auto 76px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--ink-15); font-size: 13.5px; }
.prov li:first-child { border-top: 0; }
.prov span { color: var(--ink-70); }
.prov b { font-weight: 600; }
.prov i { font-style: normal; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; text-align: center; padding: 3px 0; border-radius: 4px; }
.p-reg { background: var(--mint); }
.p-seller { background: var(--teal); }
.p-unknown { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--ink-15); }

/* ------------------------------------------------------------------ scroll story
   Steps scroll past a sticky phone. Scenes hard-cut (brand motion rule: no
   crossfades); only the bubbles inside a scene rise in, and not at all under
   reduced motion. Dimming applies only once app.js has marked the section. */
.story { background: var(--white); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.story-step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; max-width: 30em; }
.story-step:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 8vh; }
.story.js-on .story-step { opacity: 0.25; transition: opacity .3s ease; }
.story.js-on .story-step.is-on { opacity: 1; }
.story-step > .mono-xs { color: var(--ink-55); }
.story-step > h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -0.012em; margin: 10px 0 12px; }
.story-step > p { font-size: 17px; line-height: 1.55; color: var(--ink-70); }
.story-stage { position: sticky; top: max(96px, calc(50vh - 330px)); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.story-phone { width: 300px; }
.story-phone .screen, .story-mini .screen { padding: 0; background: var(--white); }
.scene { display: none; position: absolute; inset: 0; padding: 9cqh 14px 16px; overflow: hidden; }
.scene.is-on { display: block; }
.scene.is-on > * { animation: story-rise .4s cubic-bezier(.2, .7, .2, 1) both; }
.scene.is-on > :nth-child(2) { animation-delay: .12s; }
.scene.is-on > :nth-child(3) { animation-delay: .5s; }
.scene.is-on > :nth-child(4) { animation-delay: .9s; }
.scene.is-on > :nth-child(5) { animation-delay: 1.3s; }
.scene.is-on > :nth-child(6) { animation-delay: 1.7s; }
@keyframes story-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .scene.is-on > * { animation: none; } }
.story-dots { display: flex; gap: 8px; }
.story-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-15); transition: background .2s ease; }
.story-dots span.is-on { background: var(--ink); }
.story-cap { text-align: center; color: var(--ink-55); margin-top: 32px; }
.story-mini { display: none; }

/* Messages-style thread: these are ordinary texts (SMS), so green, not iMessage blue */
.msg-head { display: grid; justify-items: center; gap: 3px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid #ececec; }
.msg-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.msg-head b { font-size: 12px; font-weight: 600; color: #111; }
.msg-head em { font-style: normal; font-size: 10px; color: #8a8a8e; }
.sms { max-width: 82%; width: fit-content; padding: 8px 12px; border-radius: 18px; font-size: 13px; line-height: 1.35; margin-top: 8px; }
.sms-in { background: #e9e9eb; color: #111; border-bottom-left-radius: 5px; }
.sms-out { background: #34c759; color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.scene-card { margin-top: 14px; background: var(--mint); border-radius: 12px; padding: 10px 12px; color: var(--ink); display: grid; gap: 2px; }
.scene-card .mono-xs { font-size: 9px; opacity: 0.7; }
.scene-card b { font-size: 14px; }
.scene-card em { font-style: normal; font-size: 11px; opacity: 0.7; }
.scene-call { background: var(--night); color: var(--paper); }
.call-head { display: grid; justify-items: center; gap: 2px; padding: 8px 0 16px; }
.call-head .mono-xs { font-size: 9.5px; opacity: 0.75; }
.call-head b { font-family: var(--f-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.call-head em { font-style: normal; font-size: 10.5px; opacity: 0.6; }
.scene-call .bub-agent { background: var(--paper); color: var(--ink); border: 0; }
.scene-call .bub-buyer { background: #35561a; color: var(--paper); }
.scene-lock { background: linear-gradient(165deg, #22406e 0%, #6f6a8a 48%, #d08a55 100%); color: #fff; }
.lock-time { font-family: var(--f-display); font-weight: 700; font-size: 58px; letter-spacing: -0.03em; text-align: center; margin: 6px 0 20px; }
.note { position: relative; display: grid; grid-template-columns: 26px 1fr; column-gap: 9px; row-gap: 1px; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #111; border-radius: 16px; padding: 10px 12px; margin-top: 8px; }
.note .mono-xs { font-size: 9px; opacity: 0.55; }
.note > :not(.note-icon):not(.soon) { grid-column: 2; }
.note-icon { grid-column: 1; grid-row: 1 / span 3; align-self: start; margin-top: 2px; width: 26px; height: 26px; border-radius: 6px; }
.note-icon-msg { display: grid; place-items: center; background: linear-gradient(#65f47c, #2bc244); }
.note-icon-msg svg { width: 18px; height: 18px; }
.note b { font-size: 13px; }
.note em { font-style: normal; font-size: 11.5px; line-height: 1.3; color: #333; }
.note-call { margin-top: 18px; }
.soon { position: absolute; top: -9px; right: 10px; font-family: var(--f-mono); font-size: 9px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; background: var(--yellow); color: var(--ink); padding: 2px 6px; border-radius: 3px; }
.thread { list-style: none; padding: 0; margin-top: 4px; }
.thread li { display: grid; gap: 2px; padding: 10px 0 10px 14px; border-left: 2px solid var(--ink-15); font-size: 12px; }
.thread li b { font-size: 14px; }
.thread li em { font-style: normal; opacity: 0.6; font-size: 11px; }
.thread li.you { border-left-color: var(--ink); }
.thread li.agreed { background: var(--mint); border-left: 0; border-radius: 10px; padding: 10px 12px; margin-top: 8px; }

/* ------------------------------------------------------------------ source tiles */
.h-sec { font-family: var(--f-serif); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.015em; text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.h-sec.left { text-align: left; margin-bottom: 18px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 16px; }
.tile { border-radius: var(--r-box); padding: 22px; overflow: hidden; display: flex; flex-direction: column; }
.tile-source { background: var(--white); border: 1px solid var(--line); }
.tile-source .mono-xs { opacity: 0.6; }
.tile-source b { font-family: var(--f-display); font-weight: 700; font-size: 25px; line-height: 1.05; letter-spacing: -0.02em; margin-top: auto; }
.tile-source p { font-size: 14px; color: var(--ink-70); margin-top: 8px; }
.tile-quote { justify-content: space-between; }
.tile-quote p { font-family: var(--f-serif); font-size: 22px; line-height: 1.22; }
.tile-quote .mono-xs { opacity: 0.65; }
.q-blush { background: var(--blush); }
.q-mint { background: var(--mint); }

/* ------------------------------------------------------------------ fees (calculator) */
.fees-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.fees-lede { font-family: var(--f-serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; opacity: 0.88; max-width: 28em; }
.fees-source { margin-top: 28px; max-width: 40em; text-transform: none; letter-spacing: 0.01em; line-height: 1.6; font-weight: 400; opacity: 0.55; }
.calc { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 12px; padding: clamp(22px, 3vw, 34px); }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: transparent; border: 1px solid var(--night-line); color: var(--paper); border-radius: 99px; padding: 7px 13px; font-size: 13.5px; font-weight: 500; }
.chip:hover { border-color: rgba(252, 250, 245, 0.4); }
.chip.is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.calc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 26px 0 14px; }
.calc-head .mono-xs { opacity: 0.65; }
.calc-price { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1; }
.calc-range {
  --fill: 10%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; cursor: pointer;
  background: linear-gradient(90deg, var(--paper) 0 var(--fill), rgba(252, 250, 245, 0.18) var(--fill) 100%);
}
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 4px solid var(--night-2); box-shadow: 0 0 0 1.5px var(--paper); }
.calc-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 4px solid var(--night-2); box-shadow: 0 0 0 1.5px var(--paper); }
.bars { display: grid; gap: 20px; margin-top: 32px; }
.bar-label { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 500; margin-bottom: 8px; }
.bar-label .mono-xs { opacity: 0.6; }
.bar-track { display: flex; align-items: center; height: 36px; border-radius: 4px; background: rgba(252, 250, 245, 0.05); }
.bar { height: 100%; border-radius: 4px; transition: width .35s cubic-bezier(.2, .7, .2, 1); }
.bar-agent { background: var(--alarm); }
.bar-kerb { background: var(--yellow); }
.bar-amt { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin-left: 12px; white-space: nowrap; }
.calc-foot { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--night-line); }
.calc-foot .mono-xs { display: block; opacity: 0.65; margin-bottom: 6px; }
.calc-save { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 5vw, 58px); letter-spacing: -0.035em; line-height: 0.9; color: var(--yellow); }

/* ------------------------------------------------------------------ lettings */
.let-head { max-width: 40em; margin-bottom: clamp(40px, 5vw, 64px); }
.let-head .btn { margin-top: 26px; }
.let-kicker { display: block; color: var(--mint); margin-bottom: 16px; }
.let-note { font-size: 14px; color: var(--ink-70); margin-top: -8px; padding: 14px 0 0; border-top: 1px solid var(--ink-15); }
.let-prov li { grid-template-columns: 1fr auto 64px; }
.p-due { background: var(--yellow); }
.let-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: clamp(40px, 5vw, 64px); }
.let-grid div { border-top: 1px solid var(--night-line); padding-top: 18px; }
.let-grid h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.let-grid p { font-size: 15px; line-height: 1.55; color: rgba(252, 250, 245, 0.72); }

/* ------------------------------------------------------------------ the whole job */
.job-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(40px, 6vw, 96px); }
.lede { font-family: var(--f-serif); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.45; color: var(--ink-70); max-width: 32em; }
.job-group { margin-top: 44px; }
.job-group h3 { font-size: 17px; font-weight: 700; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.job-group ol { list-style: none; padding: 0; }
.job-group li { display: grid; grid-template-columns: minmax(170px, 0.8fr) 1.2fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.job-group li span { font-weight: 600; }
.job-group li em { font-style: normal; color: var(--ink-70); }
@media (min-width: 1101px) {
  .job-group li { transition: padding .2s ease, box-shadow .2s ease; }
  .job-group li.is-on { padding-left: 14px; box-shadow: inset 3px 0 0 var(--ink); }
}
.job-phone-wrap { position: sticky; top: 110px; align-self: start; display: flex; justify-content: center; padding-top: 12px; }
.phone-tall { width: 290px; }
.progress { height: 6px; background: var(--ink-08); border-radius: 99px; margin-bottom: 14px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.stages li { padding: 10px 0; border-top: 1px solid var(--ink-15); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.stages li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink-55); flex: none; }
.stages li.done { opacity: 0.55; }
.stages li.done::before { background: var(--ink); border-color: var(--ink); }
.stages li.now { font-weight: 700; }
.stages li.now::before { background: var(--yellow); border-color: var(--ink); }
.app-btn { display: block; background: var(--ink); color: var(--paper); text-align: center; border-radius: 8px; padding: 12px; margin-top: 14px; font-weight: 600; font-size: 13px; }

/* ------------------------------------------------------------------ pricing strip */
.pricing { padding-top: 0; }
.price-strip { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(28px, 3.6vw, 44px); }
.h-price { font-family: var(--f-serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.012em; }
.price-left p { color: var(--ink-70); margin-top: 12px; }
.price-right { display: grid; justify-items: end; gap: 10px; }
.price-right .mono-xs { opacity: 0.6; }
.price-split { display: flex; align-items: flex-start; gap: clamp(10px, 1.6vw, 18px); }
.price-split > div { display: grid; justify-items: start; gap: 10px; }
.price-split .mono-xs { opacity: 0.6; }
.price-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(56px, 7vw, 96px); line-height: 0.85; letter-spacing: -0.045em; background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 0.04em; }
.price-plus { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; opacity: 0.45; padding-top: 0.35em; }
.price-break { margin-top: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); }
.price-break summary { list-style: none; cursor: pointer; padding: 18px clamp(28px, 3.6vw, 44px); font-weight: 600; display: flex; justify-content: space-between; }
.price-break summary::-webkit-details-marker { display: none; }
.price-break summary::after { content: "+"; font-size: 20px; line-height: 1; }
.price-break[open] summary::after { content: "−"; }
.break-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 0 clamp(28px, 3.6vw, 44px) 32px; }
.break-grid dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.break-grid dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.break-grid .total { border-top: 2px solid var(--ink); font-weight: 700; }
.break-note { font-size: 15px; color: var(--ink-70); padding-top: 10px; }

/* ------------------------------------------------------------------ faq */
.faq-band { padding-top: clamp(40px, 5vw, 64px); }
.faq-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(32px, 6vw, 80px); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-size: 18px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; }
.qa[open] summary::after { content: "−"; }
.qa .a { padding: 0 0 24px; color: var(--ink-70); font-size: 16.5px; line-height: 1.6; max-width: 40em; }

/* ------------------------------------------------------------------ closing */
.closing { color: var(--white); min-height: clamp(520px, 70vh, 720px); display: flex; align-items: center; text-align: center; }
.closing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10, 20, 0, 0.45), rgba(10, 20, 0, 0.2) 70%); }
.closing-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.closing-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(46px, 7vw, 100px); line-height: 0.95; letter-spacing: -0.035em; text-shadow: 0 2px 30px rgba(10, 20, 0, 0.3); }
.closing-lede { font-family: var(--f-serif); font-size: clamp(18px, 1.6vw, 22px); margin: 20px 0 30px; text-shadow: 0 1px 14px rgba(10, 20, 0, 0.35); }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--paper); padding: 72px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--ink-70); margin-top: 14px; max-width: 22em; }
.footer h4 { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-55); margin-bottom: 14px; }
.foot-grid > div > a:not(.brand) { display: block; font-size: 15px; margin-bottom: 9px; }
.foot-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { font-size: 13px; color: var(--ink-55); margin-top: 56px; max-width: 64em; line-height: 1.6; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-70); }
.foot-bottom div { display: flex; gap: 18px; }

/* ------------------------------------------------------------------ modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 0, 0.55); }
.modal-card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--white); border-radius: 12px; padding: 36px 32px 28px; box-shadow: 0 40px 80px -30px rgba(10, 20, 0, 0.5); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 6px; }
.modal-x:hover { background: var(--paper-2); }
.modal-title { font-family: var(--f-serif); font-weight: 400; font-size: 32px; line-height: 1.08; letter-spacing: -0.01em; }
.modal-sub { color: var(--ink-70); font-size: 15px; margin-top: 10px; }
.modal-google { margin-top: 24px; }
.btn-google { width: 100%; height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-btn); font-weight: 600; font-size: 15px; }
.btn-google:hover { background: var(--paper); }
.modal-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-55); font-size: 13px; }
.modal-divider::before, .modal-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: var(--r-btn); padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); }
.field input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--alarm); }
.field-error { font-size: 13.5px; color: var(--alarm); margin: -4px 0 12px; }
.field-error.is-note { color: var(--ink-70); }
.modal-submit { width: 100%; height: 48px; margin-top: 6px; }
.modal-submit:disabled { opacity: 0.6; cursor: progress; }
.modal-toggle { text-align: center; font-size: 14px; margin-top: 18px; color: var(--ink-70); }
.linkbtn { background: none; border: 0; padding: 0; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.modal-legal { font-size: 12px; color: var(--ink-55); text-align: center; margin-top: 16px; }
.modal-legal a { text-decoration: underline; }
.modal-done { text-align: center; }
.done-tick { width: 56px; height: 56px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; margin: 0 auto 18px; }
.modal-done .modal-submit { margin-top: 24px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .phone-side { display: none; }
  .side-card { grid-template-columns: 1fr; min-height: 0; }
  .side-art { min-height: 400px; }
  .fees-grid, .job-grid, .letter-grid { grid-template-columns: 1fr; }
  .job-phone-wrap { position: static; }
  .letter-art { aspect-ratio: 16 / 10; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .let-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links, .nav-link-hide { display: none; }
  .story-grid { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .story-step, .story-step:first-child { min-height: 0; padding: 28px 0 8px; justify-content: flex-start; }
  .story-step + .story-step { border-top: 1px solid var(--line); }
  .story.js-on .story-step { opacity: 1; }
  .story-mini { display: block; width: min(290px, 100%); margin: 22px auto 0; }
}
@media (max-width: 720px) {
  .nav { padding: 12px var(--gutter); }
  .nav-box { height: 48px; }
  .nav-right > a:not(.btn) { display: none; }
  .hero-title span { white-space: normal; }
  .hero-title-end { align-self: flex-start; }
  .hero-product { margin-top: 80px; }
  .phones { margin-bottom: -240px; }
  .phone-front { width: min(300px, 100%); }
  .tiles { grid-auto-rows: 210px; }
  .tile-quote p { font-size: 19px; }
  .price-strip, .break-grid, .faq-grid { grid-template-columns: 1fr; }
  .price-right { justify-items: start; }
  .job-group li { grid-template-columns: 1fr; gap: 2px; }
  .let-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; }
}
@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr; }
  .nav-right .btn { padding: 0 12px; }
}

/* Otis lockup: the badge carries its own green, so size by height. */
.brand img.brand-lockup { width: auto; height: 34px; }
.brand-foot img.brand-lockup { width: auto; height: 46px; }
