/* ═══════════════════════════════════════════════════════════
   Rooma landing page
   Layout: a pinned hero the demo slides up over, then the three steps on a
   centre line, and one closing banner.
   Colours come from the Rooma logo (navy strokes, sky tile). Light and dark
   follow the visitor's system setting.
   ═══════════════════════════════════════════════════════════ */
/* Fonts (bundled, SIL Open Font License) */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* Brand (fixed in both appearances: they sit on photos and the dark stage) */
  --navy: #17274f;          /* logo stroke; primary buttons */
  --navy-deep: #0e1930;     /* the 3D stage behind the demo */
  --sky: #7cb4c5;           /* logo floor tile */
  --on-dark: #ffffff;

  /* Page (light). Contrast on --paper: ink 13.4:1, ink-2 6.5:1, ink-3 5.3:1, accent 5.8:1 */
  --paper: #f3f6f8;
  --surface: #ffffff;
  --surface-2: #e9eff3;
  --ink: #17274f;
  --ink-2: #4b5a70;
  --ink-3: #5b6778;
  --accent: #2f6682;        /* deep sky: eyebrow, outcome labels, focus */
  --line: rgba(23, 39, 79, 0.12);
  --shadow: 14, 25, 48;

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* One radius scale: frames 28, tiles and pictures 20, small parts 14; controls are pills */
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 3.2vw, 44px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  /* Contrast on --paper: ink 16.0:1, ink-2 10.2:1, ink-3 6.8:1, accent 9.8:1 */
  :root {
    --paper: #0b1220;
    --surface: #121c2f;
    --surface-2: #17233a;
    --ink: #e8eef5;
    --ink-2: #b4c0d0;
    --ink-3: #8f9db2;
    --accent: #8cc4d4;
    --line: rgba(232, 238, 245, 0.12);
    --shadow: 0, 0, 0;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Keyboard focus is always visible, on light and dark ground alike */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.hero :focus-visible, .closing :focus-visible, .demo__stage :focus-visible { outline-color: var(--on-dark); }
.skip {
  position: fixed; z-index: 100; left: 16px; top: 16px; padding: 12px 18px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-weight: 500; transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─────────── Type ─────────── */
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.h2 {
  font-family: var(--font-display); font-weight: 500; text-wrap: balance;
  font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.03; letter-spacing: -0.035em;
}
.h2--xl { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -0.045em; margin-top: 18px; }
.h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.15; letter-spacing: -0.02em; }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 34rem; }

/* ─────────── Buttons ─────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--light { background: var(--on-dark); color: var(--navy); }
.btn--light:hover { background: #d4e7ee; }
.btn--arrow { padding-right: 6px; }
.btn--lg { min-height: 64px; padding: 0 32px; font-size: 17px; gap: 14px; }
.btn--lg.btn--arrow { padding-right: 7px; }
.btn--lg .btn__icon { width: 50px; height: 50px; }
.btn--lg .btn__icon svg { width: 16px; height: 16px; }
/* Frosted pill over the hero video (a web approximation of glass, not Apple's Liquid Glass) */
.btn--glass {
  color: var(--on-dark); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--glass:hover { background: rgba(255,255,255,.28); border-color: #fff; }
@media (prefers-reduced-transparency: reduce) {
  .btn--glass { background: rgba(14,25,48,.85); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.btn__icon {
  width: 40px; height: 40px; border-radius: 999px; background: var(--navy);
  display: grid; place-items: center; overflow: hidden;
}
.btn__icon svg { width: 14px; height: 14px; fill: none; stroke: var(--on-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s var(--ease); }
.btn__icon svg path[d^="M5.5"] { fill: var(--on-dark); stroke: none; }
.btn--arrow:hover .btn__icon svg { transform: translateY(2px); }

.textbtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px;
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line);
}
.textbtn:hover { text-decoration-color: currentColor; }

/* ─────────── Brand ─────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 10px; background: #fff;
  display: grid; place-items: center; box-shadow: 0 1px 2px rgba(var(--shadow), .08);
}
.brand__mark img { width: 22px; height: 22px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }

/* ═══════════════════════ MEDIA ═══════════════════════
   <div class="media" data-img="file.jpg"> fades its picture in once loaded. */
.media {
  isolation: isolate; position: relative; overflow: hidden; border-radius: var(--radius-md);
  background: linear-gradient(145deg, #dfeaef 0%, #c8dbe3 100%);
}
.media--dark { background: radial-gradient(120% 90% at 70% 20%, #2c4a74 0%, #17274f 55%, #0e1930 100%); }
.media > img, .media > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s var(--ease);
}
.media.is-loaded > img, .media.is-loaded > video { opacity: 1; }
.media > .media__video { z-index: 1; }
.media.has-video > img { opacity: 0; }

/* ═══════════════════════ NAV ═══════════════════════ */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) calc(var(--gutter) + 12px) 18px;
  color: var(--on-dark);
  transition: transform .6s var(--ease), background-color .4s var(--ease), color .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.nav__links { display: flex; gap: 4px; font-size: 15px; }
.nav__links a { padding: 10px 14px; border-radius: 999px; transition: background-color .3s; }
.nav__links a:hover { background: rgba(255,255,255,.12); }
.nav.is-solid {
  padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 10px;
  background: color-mix(in srgb, var(--paper) 84%, transparent); color: var(--ink);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
@media (prefers-reduced-transparency: reduce) { .nav.is-solid { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.nav.is-solid .nav__links a:hover { background: var(--surface-2); }
.nav.is-solid .btn--light { background: var(--navy); color: var(--on-dark); }
.nav.is-solid .btn--light:hover { background: #2f6682; color: var(--on-dark); } /* white on it 6.3:1 in both appearances */
.nav.is-hidden { transform: translateY(-110%); }

/* ═══════════════════════ HERO ═══════════════════════ */
.stack { position: relative; }
.hero { position: sticky; top: 0; height: 100svh; min-height: 620px; padding: 12px; z-index: 0; }
.hero__frame {
  position: relative; height: 100%; overflow: hidden; border-radius: var(--radius-lg);
  color: var(--on-dark); background: var(--navy-deep);
  transform-origin: 50% 0%; will-change: transform;
  clip-path: inset(0 round var(--radius-lg));
  transition: clip-path 1.4s var(--ease);
}
.hero__media { position: absolute; inset: 0; border-radius: 0; }
.hero__media > img, .hero__media > video { will-change: transform; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,25,48,.55) 0%, rgba(14,25,48,.05) 35%, rgba(14,25,48,.3) 58%, rgba(14,25,48,.9) 100%);
}
/* The signature: the name, set huge over the walk-through */
.hero__wordmark {
  position: absolute; left: 0; right: 0; top: clamp(70px, 9vh, 110px);
  display: flex; justify-content: center;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(5rem, min(23vw, 34vh), 26rem); line-height: .8; letter-spacing: -0.05em;
  color: var(--on-dark); pointer-events: none; will-change: transform;
}
.hero__wordmark span { display: inline-block; transform: translateY(105%); opacity: 0; }
.hero__bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 clamp(20px, 3vw, 40px) clamp(24px, 4vh, 40px); }
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.4rem, 5.2vw, 4.8rem); line-height: 1; letter-spacing: -0.04em;
}
.hero__sub { margin-top: 16px; max-width: 30rem; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.5; color: rgba(255,255,255,.88); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__ctas--center { justify-content: center; }

/* intro (JS adds .is-ready to <html>) */
[data-intro] { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.is-ready [data-intro] { opacity: 1; transform: none; }
.is-ready .hero__lead { transition-delay: .55s; }
.is-ready .hero__wordmark span { transform: none; opacity: 1; transition: transform 1.3s var(--ease), opacity 1s var(--ease); }
.is-ready .hero__wordmark span:nth-child(1) { transition-delay: .10s; }
.is-ready .hero__wordmark span:nth-child(2) { transition-delay: .17s; }
.is-ready .hero__wordmark span:nth-child(3) { transition-delay: .24s; }
.is-ready .hero__wordmark span:nth-child(4) { transition-delay: .31s; }
.is-ready .hero__wordmark span:nth-child(5) { transition-delay: .38s; }
html:not(.is-ready) .hero__frame { clip-path: inset(6% 4% 6% 4% round var(--radius-lg)); }

/* ═══════════════════════ THE DEMO (slides over the hero) ═══════════════════════ */
.sheet {
  position: relative; z-index: 2; background: var(--paper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -30px 60px -30px rgba(var(--shadow), .35);
}
.try { padding: clamp(80px, 10vw, 140px) 0 clamp(70px, 9vw, 120px); }
.try__head { display: grid; gap: 20px; margin-bottom: clamp(32px, 4vw, 52px); }

.demo { display: grid; gap: 14px; }
.demo__stage {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 10; max-height: 82svh; width: 100%;
  border-radius: var(--radius-lg); background: var(--navy-deep);
  box-shadow: 0 40px 80px -40px rgba(var(--shadow), .55);
}
.demo__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .6s var(--ease); }
.demo__stage:hover .demo__poster { transform: scale(1.02); }
.demo__start {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center;
  background: radial-gradient(60% 60% at 50% 55%, rgba(14,25,48,.15), rgba(14,25,48,.55));
}
.demo__note { font-size: 15px; color: rgba(255,255,255,.9); text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.demo__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .8s var(--ease); }
.demo.is-live .demo__frame { opacity: 1; }
.demo.is-live .demo__start, .demo.is-live .demo__poster { opacity: 0; pointer-events: none; }
.demo.is-loading .demo__start .btn { opacity: .6; pointer-events: none; }
.demo__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.demo__hint { font-size: 15px; color: var(--ink-2); }
.demo__notice {
  margin-top: 18px; display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
  font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 62rem;
}
.demo__notice-title { font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.demo__notice-icon { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.demo__notice-icon svg { width: 14px; height: 14px; fill: var(--surface); }
.demo__actions { display: flex; gap: 16px; }
.demo__stage:fullscreen { border-radius: 0; max-height: none; aspect-ratio: auto; }

/* ═══════════════════════ HOW IT WORKS ═══════════════════════ */
.how { position: relative; z-index: 2; background: var(--surface); padding: clamp(100px, 12vw, 170px) 0 clamp(90px, 11vw, 150px); }
.how__head { margin-bottom: clamp(56px, 8vw, 110px); }
.chapters { position: relative; }
.chapters__rail { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--line); }
.chapters__fill { position: absolute; inset: 0; background: var(--accent); transform: scaleY(var(--p, 0)); transform-origin: top; }
.chapters__list { display: grid; gap: clamp(80px, 10vw, 140px); }
.chapter { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; }
.chapter__media { grid-column: 1; grid-row: 1; position: relative; }
.chapter__num  { grid-column: 2; grid-row: 1; justify-self: center; }
.chapter__text { grid-column: 3; grid-row: 1; max-width: 30rem; }
.chapter--flip .chapter__media { grid-column: 3; }
.chapter--flip .chapter__text { grid-column: 1; justify-self: end; }
.chapter__img {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  clip-path: inset(10% 8% 10% 8% round var(--radius-lg));
  transition: clip-path 1.2s var(--ease);
}
.chapter__img > img { transform: scale(1.12); transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.chapter.is-in .chapter__img { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.chapter.is-in .chapter__img > img { transform: scale(1); }
.chapter__num {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  background: var(--surface); color: var(--ink-3); border: 2px solid var(--line);
  transition: background .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease), transform .6s var(--ease);
}
.chapter.is-active .chapter__num { background: var(--navy); color: var(--on-dark); border-color: var(--navy); transform: scale(1.08); }
.chapter__text > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.chapter.is-in .chapter__text > * { opacity: 1; transform: none; }
.chapter.is-in .chapter__text > :nth-child(2) { transition-delay: .1s; }
.chapter.is-in .chapter__text > :nth-child(3) { transition-delay: .2s; }
.chapter__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.05; letter-spacing: -0.035em; }
.chapter__body { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.chapter__out {
  margin-top: 28px; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius-sm); background: var(--paper);
  font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.4;
}
.chapter__out b {
  display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.chapter__outs { margin-top: 28px; display: grid; gap: 10px; }
.chapter__outs .chapter__out { margin-top: 0; }
.chapter__check { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #2f6682; display: grid; place-items: center; }
.chapter__out--cost .chapter__check { background: var(--navy); }
.chapter__out--soon { background: transparent; border: 1px dashed var(--line); }
.chapter__out--soon .chapter__check { background: transparent; border: 1px solid var(--accent); }
.chapter__out--soon .chapter__check svg { fill: var(--accent); stroke: none; }
.chapter__check svg { width: 16px; height: 16px; fill: none; stroke: var(--on-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Step 2: the cost breakdown overlapping the corner; opens full size */
.chapter__inset {
  position: absolute; z-index: 2; width: 50%; right: -5%; bottom: -16%;
  aspect-ratio: 4 / 3; border-radius: var(--radius-md);
  border: 6px solid var(--surface); box-shadow: 0 24px 60px -20px rgba(var(--shadow), .45);
  opacity: 0; transform: translateY(40px) rotate(2deg); cursor: zoom-in;
  transition: opacity 1s var(--ease) .45s, transform 1.2s var(--ease) .45s;
}
.chapter.is-in .chapter__inset { opacity: 1; transform: rotate(-1.5deg); }
.chapter__inset:hover, .chapter__inset:focus-visible { transform: rotate(0) scale(1.03); transition-delay: 0s; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(14,25,48,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1200px, 100%); max-height: 88vh; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.4); transform: scale(.96); transition: transform .45s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 22px; line-height: 1; }

/* ═══════════════════════ CLOSING ═══════════════════════ */
.closing { position: relative; z-index: 2; background: var(--surface); padding: 0 12px 12px; }
.closing__frame { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); color: var(--on-dark); }
.closing__bg { position: absolute; inset: -10% 0; z-index: -2; border-radius: 0; }
.closing__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,25,48,.55), rgba(14,25,48,.72)); }
.closing__content { padding: clamp(100px, 16vw, 200px) var(--gutter); text-align: center; }
.closing__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.closing .hero__ctas { margin-top: 40px; }

/* ═══════════════════════ FOOTER ═══════════════════════ */
.footer { position: relative; z-index: 2; background: var(--surface); padding: 28px 0 calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--ink-3); }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 15px; }
.footer__links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); padding: 10px 0; }
.footer__links a:hover { text-decoration-color: currentColor; }
.footer__copy { font-size: 14px; }
.brand--small .brand__name { font-size: 17px; color: var(--ink); }
.brand--small .brand__mark { width: 30px; height: 30px; border-radius: 8px; }
.brand--small .brand__mark img { width: 18px; height: 18px; }

/* ═══════════════════════ FOR LANDLORDS ═══════════════════════ */
.offer { position: relative; z-index: 2; background: var(--paper); padding: clamp(90px, 11vw, 150px) 0; }
.offer__head { display: grid; gap: 20px; max-width: 54rem; margin-bottom: clamp(36px, 5vw, 64px); }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tier { background: var(--surface); border-radius: var(--radius-md); padding: clamp(24px, 3vw, 36px); display: grid; gap: 10px; align-content: start; }
.tier__for { color: var(--accent); font-weight: 500; font-size: 16px; }
.tier__list { margin-top: 8px; display: grid; gap: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.tier__list li { padding-left: 22px; position: relative; }
.tier__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--accent); }
.proof { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.proof__item { margin: 0; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
.proof__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proof__item--plan img { object-fit: contain; background: #fff; padding: clamp(12px, 2vw, 24px); }
.proof__item figcaption { padding: 16px clamp(18px, 2.4vw, 28px) 20px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.proof__item figcaption strong { color: var(--ink); font-weight: 600; }
.contact { margin-top: 16px; background: var(--navy); color: var(--on-dark); border-radius: var(--radius-md); padding: clamp(24px, 3.4vw, 44px);
           display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px clamp(28px, 5vw, 72px); align-items: start; }
.contact__text { display: grid; gap: 14px; }
.contact__text p { color: #c9d4e6; font-size: 17px; line-height: 1.55; max-width: 28rem; }
.contact__alt { font-size: 15px; }
.contact__mail { color: var(--on-dark); font-weight: 600; user-select: all; }
.contact__trap { position: absolute; left: -9999px; }
.contact__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.contact__fields label { display: block; font-size: 14px; font-weight: 500; color: #c9d4e6; }
.contact__fields input, .contact__fields select, .contact__fields textarea {
  display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: var(--on-dark); font: inherit; font-size: 16px;
}
.contact__fields select option { color: #17274f; }
.contact__fields textarea { resize: vertical; line-height: 1.5; }
.contact__fields input:focus-visible, .contact__fields select:focus-visible, .contact__fields textarea:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.contact__wide { grid-column: 1 / -1; }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.contact__legal { font-size: 14px; color: #c9d4e6; }
.contact__legal a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.contact__status { min-height: 1.5em; margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--on-dark); }
.contact__status:empty { display: none; }
.btn--navy { background: var(--on-dark); color: var(--navy); }
.btn--navy:hover { background: #d4e7ee; }
.contact.is-sent .contact__fields, .contact.is-sent .contact__row { display: none; }

/* ───────── Privacy page ───────── */
.legal { padding: 72px 0 100px; background: var(--paper); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.04em; margin-top: 18px; }
.legal .legal__updated { margin-top: 14px; color: var(--ink-3); font-size: 15px; }
.legal h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 48px; }
.legal p, .legal li { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.legal p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-top: 12px; }
.legal li { margin-top: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal mark { background: #fff1b8; color: #17274f; padding: 0 4px; border-radius: 4px; }
.legal__box { margin-top: 28px; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.nav--static { position: sticky; }

/* ═══════════════════════ REVEAL ON SCROLL ═══════════════════════ */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .tiers, .proof, .contact { grid-template-columns: minmax(0, 1fr); }
  .chapters__rail { left: 24px; }
  .chapter, .chapter--flip { grid-template-columns: 48px 1fr; column-gap: 20px; row-gap: 24px; align-items: start; }
  .chapter__num, .chapter--flip .chapter__num { grid-column: 1; grid-row: 1; width: 48px; height: 48px; font-size: 13px; }
  .chapter__media, .chapter--flip .chapter__media { grid-column: 2; grid-row: 1; }
  .chapter__text, .chapter--flip .chapter__text { grid-column: 2; grid-row: 2; justify-self: start; }
  .chapter__inset { width: 56%; right: 0; bottom: -12%; border-width: 4px; }
  .chapter--flip .chapter__text { margin-top: 36px; }
}
@media (max-width: 640px) {
  .hero { padding: 8px; }
  .btn--lg { min-height: 56px; padding: 0 24px; font-size: 16px; }
  .btn--lg .btn__icon { width: 44px; height: 44px; }
  .hero__wordmark { top: calc(90px + env(safe-area-inset-top, 0px)); }
  /* A phone gets a taller window onto the demo, so its controls fit */
  .demo__stage { aspect-ratio: auto; height: min(78svh, 700px); max-height: none; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}

/* Respect "reduce motion" settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  [data-reveal], [data-intro], .hero__wordmark span, .chapter__text > * { opacity: 1 !important; transform: none !important; }
  .chapter__img { clip-path: none !important; }
  .chapter__inset { opacity: 1 !important; transform: none !important; }
  html:not(.is-ready) .hero__frame { clip-path: none; }
}
