/* Diptico Listings landing page. Dark only (Francisco, 2026-11-16).
   Azulejo identity: cobalt and glaze white on Noite, Instrument Sans, Curva mark.
   Shape rule: panels 20px, controls 12px, chips full pill. */

:root {
  /* Brand kit only (docs/product/brand.md): Noite, Cobalto, Vidrado, Névoa, Linha, Amarelo. */
  --noite: #0F1B4D;
  --cobalt: #1D3A9E;
  --vidrado: #F4F5F7;
  --nevoa: #C8D3F2;
  --linha: #8FB0F5;
  --amarelo: #F2B33D;
  --ground: var(--noite);
  --glass: rgba(29, 58, 158, .38);         /* Cobalto, see-through */
  --glass-line: rgba(143, 176, 245, .24);  /* Linha */
  --solid: var(--cobalt);
  --ink: var(--vidrado);
  --muted: var(--nevoa);
  --line: rgba(143, 176, 245, .22);
  --err: var(--amarelo);
  --r-card: 20px; --r-ctl: 12px;
  --display: "Instrument Sans", -apple-system, "SF Pro Display", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; background: var(--ground); }
body { margin: 0; color: var(--ink); font: 17px/1.55 var(--display); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--solid); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--amarelo); outline-offset: 3px; border-radius: 6px; }

.h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.035em; max-width: 18ch; }
.body { color: var(--muted); font-size: 18px; max-width: 56ch; margin-top: 18px; }
.lede { color: var(--nevoa); font-size: clamp(18px, 1.6vw, 21px); max-width: 38ch; margin-top: 22px; }
.small { color: var(--muted); font-size: 14px; }
.glass { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%); }
@media (prefers-reduced-transparency: reduce) { .glass { background: var(--solid); backdrop-filter: none; } }

/* ---------- The stage ---------- */
.stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--ground); }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.scene.is-on { opacity: 1; }
.scene-media { position: absolute; inset: -6%; background-size: cover; background-position: center; }
.scene-media video { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
/* The generated rooms are bright white; dim them so text reads, keeping the colour true. */
.scene-media.has-media { filter: brightness(.58) saturate(.9) contrast(1.06); }
/* The hero is the signature (the blue mesh): keep it at full strength, darken only behind the words. */
.scene[data-scene="room"] .scene-media.has-media { filter: brightness(.7) saturate(.95); }
.stage[data-scene="room"] .scrim { background: linear-gradient(90deg, rgba(15,27,77,.9) 0%, rgba(15,27,77,.62) 34%, rgba(15,27,77,.12) 62%, rgba(15,27,77,0) 100%),
  linear-gradient(0deg, rgba(15,27,77,.65) 0%, transparent 35%); }
/* Parallax: the active scene drifts slowly against the scroll. */
@supports (animation-timeline: scroll()) {
  .scene-media { animation: drift linear both; animation-timeline: scroll(root); }
  @keyframes drift { from { transform: translateY(-3%) scale(1.04); } to { transform: translateY(3%) scale(1.04); } }
}
/* Placeholders until the Higgsfield videos exist: a light source per scene, slowly breathing. */
.ph { animation: breathe 14s ease-in-out infinite alternate; }
@keyframes breathe { from { filter: brightness(.9); } to { filter: brightness(1.12); } }
.ph-room   { background: radial-gradient(60% 70% at 72% 38%, #8FB0F5 0%, #1D3A9E 40%, #0F1B4D 78%); }
.ph-wait   { background: radial-gradient(45% 55% at 82% 28%, #1D3A9E 0%, #0F1B4D 70%); }
.ph-spin   { background: radial-gradient(45% 55% at 58% 50%, #C8D3F2 0%, #1D3A9E 42%, #0F1B4D 80%); }
.ph-walk   { background: radial-gradient(55% 65% at 75% 45%, #8FB0F5 0%, #1D3A9E 45%, #0F1B4D 82%); }
.ph-share  { background: radial-gradient(50% 60% at 68% 62%, #F2B33D 0%, #1D3A9E 30%, #0F1B4D 78%); }
.ph-street { background: radial-gradient(60% 70% at 70% 30%, #8FB0F5 0%, #1D3A9E 35%, #0F1B4D 75%); }
.scene-blueprint { background-color: #1D3A9E;
  background-image: linear-gradient(rgba(244,245,247,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(244,245,247,.07) 1px, transparent 1px);
  background-size: 32px 32px; }
.scene-night { background: radial-gradient(70% 60% at 50% 0%, #1D3A9E 0%, #0F1B4D 70%); }
.scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(15,27,77,.78) 0%, rgba(15,27,77,.32) 55%, rgba(15,27,77,0) 100%),
              linear-gradient(0deg, rgba(15,27,77,.75) 0%, transparent 45%); }
.stage[data-scene="blueprint"] .scrim, .stage[data-scene="night"] .scrim { opacity: .25; transition: opacity 1s; }
.scene.is-real .slot { display: none; }
.still.is-real { color: transparent; }
.still.is-real b { display: none; }
.slot { position: absolute; right: 20px; top: 84px; max-width: 34ch; text-align: right; font-size: 12px; color: rgba(244,245,247,.55); line-height: 1.4; }
.slot b { font: 500 11px var(--mono); color: var(--linha); margin-right: 4px; }
.stage-tag { position: absolute; right: 20px; bottom: 20px; font-size: 12px; color: rgba(244,245,247,.75);
  background: rgba(15,27,77,.5); padding: 4px 10px; border-radius: 999px; transition: opacity .6s; }
.stage[data-scene="blueprint"] .stage-tag, .stage[data-scene="night"] .stage-tag { opacity: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: var(--r-ctl);
  border: 1px solid transparent; font: 600 16px var(--display); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--vidrado); color: var(--cobalt); }
.btn-primary:hover { background: var(--nevoa); }
.btn-ghost { color: var(--ink); border-color: rgba(244,245,247,.28); background: rgba(15,27,77,.25); }
.btn-ghost:hover { border-color: rgba(244,245,247,.6); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(15,27,77,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-in { max-width: 1240px; margin: 0 auto; height: 68px; display: flex; align-items: center; gap: 28px; padding-inline: max(20px, env(safe-area-inset-left)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--vidrado); }
.brand-word { font-weight: 600; font-size: 19px; letter-spacing: -0.03em; }
.brand-word span { font-weight: 400; color: var(--nevoa); }
.nav-links { display: flex; gap: 24px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; color: var(--muted); font: 600 12px var(--mono); padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--vidrado); color: var(--ground); }

/* ---------- Hero ---------- */
.hero { min-height: calc(100dvh - 68px); display: flex; align-items: flex-end; padding: 48px 0 clamp(48px, 8vh, 96px); }
.hero-grid { display: block; width: 100%; }
.hero-copy { max-width: 920px; }
.hero h1 { font-size: clamp(40px, 4.6vw, 72px); line-height: .98; letter-spacing: -0.045em; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--linha); }
.hero .lede { margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.plan-note { position: absolute; left: 20px; bottom: 14px; color: var(--nevoa); font-size: 11px; }

/* ---------- The plan (drawn by site.js). White lines, doors as gaps, never drawn swings. ---------- */
.plan { width: 100%; height: auto; overflow: visible; --gap: #1D3A9E; }
.plan .room-fill { fill: transparent; transition: fill .3s var(--ease); }
.plan .wall { fill: none; stroke: var(--vidrado); stroke-width: 6; stroke-linecap: square; }
.plan .door { stroke: var(--gap); stroke-width: 10; }
.plan .label { fill: var(--vidrado); font: 600 18px var(--display); letter-spacing: -0.01em; }
.plan .meas { fill: var(--nevoa); font: 400 13px var(--mono); }
.plan-hero .label { font-size: 24px; }
.plan-hero .meas { font-size: 16px; }
.plan-hero .room { opacity: 0; }
.plan-hero .wall { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.plan-hero .room.is-drawn { opacity: 1; }
.plan-hero .room.is-drawn .wall { animation: draw .9s var(--ease) forwards; }
.plan-hero .room.is-drawn .room-fill { animation: flash 1.4s var(--ease); }
.plan-hero .room .label, .plan-hero .room .meas { opacity: 0; transition: opacity .5s .5s; }
.plan-hero .room.is-drawn .label, .plan-hero .room.is-drawn .meas { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flash { 0% { fill: rgba(143,176,245,.35); } 100% { fill: transparent; } }

/* ---------- Problem ---------- */
.problem { padding: clamp(96px, 14vh, 160px) 0; }
.fold { margin-top: 48px; }
.fold-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.spec-card { border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 220px;
  transition: transform .9s var(--ease) calc(var(--i) * 60ms), opacity .6s calc(var(--i) * 60ms + .2s); }
.spec-card i { font-size: 28px; color: var(--linha); }
.spec-card h3 { font-size: 20px; letter-spacing: -0.02em; margin-top: auto; }
.spec-card p { color: var(--muted); font-size: 15px; }
.fold-one { margin-top: 36px; display: flex; align-items: center; gap: 14px; color: var(--vidrado);
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1;
  opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease) .35s, transform .9s var(--ease) .35s; }
.fold-one svg { flex: none; width: .9em; height: .9em; color: var(--vidrado); }
.fold.is-folded .spec-card { transform: translateY(-4px) scale(.97); opacity: .4; }
.fold.is-folded .fold-one { opacity: 1; transform: none; }


/* ---------- How it works: the phone, a reproduction of the app's capture screen ---------- */
.how { padding-block: 0; }
.how-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); }
.how-phone { order: 2; position: sticky; top: calc(50dvh - min(39dvh, 340px) - 10px); align-self: start;
  display: flex; flex-direction: column; align-items: center; padding-top: 0; }
.phone { position: relative; height: min(78dvh, 680px); aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 9px;
  background: var(--noite); box-shadow: 0 0 0 1px rgba(143,176,245,.32), 0 40px 90px -30px rgba(15,27,77,.9); }
.phone-island { position: absolute; top: 19px; left: 50%; width: 28%; height: 22px; transform: translateX(-50%); background: var(--noite); border-radius: 999px; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--noite); }
.feed { position: absolute; inset: 0; background-repeat: no-repeat; background-size: auto 100%; background-position: 0% 50%; }
.feed video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.mesh { position: absolute; inset: 0; width: 100%; height: 100%; }
.spin-ui { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s var(--ease); }
.spin-line { stroke: var(--vidrado); stroke-width: .7; stroke-dasharray: 1.4 1.8; opacity: .85; }
.spin-reticle { fill: none; stroke: var(--vidrado); stroke-width: 1; }
.spin-ring { fill: none; stroke: var(--linha); stroke-width: 2; stroke-dasharray: 0 100; transform: rotate(-90deg); transform-origin: 50px 108px; }
.spin-dot { fill: var(--linha); }
.cam-msg { position: absolute; top: 8.5%; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap;
  background: rgba(15,27,77,.66); color: var(--vidrado); font-weight: 700; font-size: clamp(10px, 1.55dvh, 14px);
  padding: 7px 13px; border-radius: 14px; transition: opacity .3s; }
.cam-bottom { position: absolute; left: 9px; right: 9px; bottom: 4.5%; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; transition: opacity .3s; }
.cam-stats { margin: 0; background: rgba(15,27,77,.66); color: var(--vidrado); font-size: clamp(8px, 1.15dvh, 11px); padding: 7px 9px; border-radius: 10px; }
.cam-done { display: inline-flex; align-items: center; gap: 4px; background: var(--vidrado); color: var(--noite);
  font-weight: 700; font-size: clamp(10px, 1.4dvh, 13px); padding: 8px 13px; border-radius: 999px; transition: box-shadow .3s; }
.cam-done.is-ready { box-shadow: 0 0 0 3px var(--amarelo); }
.cam-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 16px 26px; background: rgba(15,27,77,.95);
  border-radius: 24px 24px 0 0; transform: translateY(105%); transition: transform .6s var(--ease); }
.cam-sheet.is-on { transform: none; }
.cam-sheet-k { margin: 0; font-size: 11px; color: var(--nevoa); }
.cam-sheet-name { margin: 4px 0 14px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.cam-sheet-btns { display: grid; gap: 7px; }
.cam-btn { text-align: center; padding: 10px; border-radius: 12px; border: 1px solid rgba(143,176,245,.32); font-size: 13px; font-weight: 600; }
.cam-btn-on { background: var(--vidrado); color: var(--noite); border-color: transparent; }
.phone-note { margin-top: 14px; text-align: center; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; max-width: 560px; }
.step > * { opacity: .25; transform: translateY(16px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.step.is-on > * { opacity: 1; transform: none; }
.step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--amarelo); color: var(--amarelo); font-size: 14px; }
.step-t { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.04em; line-height: 1.02; margin-top: 22px; max-width: 14ch; }
.step p { color: var(--nevoa); margin-top: 18px; max-width: 42ch; font-size: 19px; }

/* ---------- Outputs strip: one room, four views ---------- */
.out-rail { margin: 48px auto 0; max-width: 1240px; padding-inline: max(20px, env(safe-area-inset-left));
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.out-card { margin: 0; display: flex; flex-direction: column; gap: 14px; transition-delay: calc(var(--i) * 80ms); }
.out-art { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden; background-color: var(--cobalt);
  background-size: cover; background-position: center; box-shadow: 0 0 0 1px var(--glass-line); transition: transform .5s var(--ease); }
.out-card:hover .out-art { transform: translateY(-4px); }
.out-plan { display: flex; align-items: center; padding: 18px;
  background-image: linear-gradient(rgba(244,245,247,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(244,245,247,.07) 1px, transparent 1px);
  background-size: 22px 22px; }
.out-plan .plan .label, .out-plan .plan .meas { display: none; }
.out-360 { background-size: auto 100%; background-repeat: repeat-x; cursor: grab; touch-action: pan-y; }
.out-360:active { cursor: grabbing; }
.out-chip { position: absolute; top: 12px; left: 12px; background: rgba(15,27,77,.72); color: var(--vidrado); font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.out-drag { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(15,27,77,.72); color: var(--vidrado);
  font-size: 12px; padding: 5px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; transition: opacity .4s; }
.out-360.is-touched .out-drag { opacity: 0; }
.out-card figcaption { display: flex; flex-direction: column; gap: 4px; }
.out-card figcaption b { font-size: 18px; letter-spacing: -0.02em; font-weight: 600; }
.out-card figcaption span { color: var(--nevoa); font-size: 15px; line-height: 1.45; }
.out-note { margin-top: 20px; }
@media (max-width: 960px) {
  .out-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    scrollbar-width: none; padding-bottom: 6px; }
  .out-rail::-webkit-scrollbar { display: none; }
  .out-card { scroll-snap-align: start; }
}

/* ---------- Interactive plan, over the blueprint ---------- */
.planbay { padding: clamp(96px, 14vh, 160px) 0; }
.planbay .body { color: var(--nevoa); }
.planbay-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); margin-top: 48px; align-items: center; }
.plan-live .room { cursor: pointer; outline: none; }
.plan-live .room:hover .room-fill, .plan-live .room:focus-visible .room-fill { fill: rgba(143,176,245,.2); }
.plan-live .room.is-active .room-fill { fill: rgba(244,245,247,.18); }
.planbay-room { border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 18px; background: rgba(15,27,77,.6); }
.room-name { font-size: 30px; letter-spacing: -0.03em; }
.room-size { color: var(--nevoa); font-size: 14px; margin-top: 4px; }
.room-shot { min-height: 220px; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background: radial-gradient(80% 90% at 70% 30%, #8FB0F5, #1D3A9E 55%, #0F1B4D); color: var(--nevoa); font-size: 14px; transition: opacity .3s; }
.room-shot.is-swapping { opacity: 0; }
.room-shot.has-img { background-size: cover; background-position: center; color: var(--vidrado); }
.room-shot.has-img i { display: none; }
.room-shot i { font-size: 24px; color: var(--vidrado); }
.room-shot b { font-size: 11px; color: var(--linha); font-weight: 500; }
.room-chips { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: rgba(143,176,245,.14); color: var(--nevoa); font-size: 14px; font-weight: 500; }
.room-note { color: var(--nevoa); font-size: 13px; opacity: .8; }

/* ---------- Honest ---------- */
.honest { padding: clamp(96px, 14vh, 160px) 0; }
.honest-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.compare { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; --pos: 50%; touch-action: pan-y; }
.compare-layer { position: absolute; inset: 0; }
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
.still { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 6px; padding: 18px; font-size: 13px; color: rgba(244,245,247,.7); }
.still b { font-size: 11px; color: var(--linha); font-weight: 500; }
.ph-empty { background: linear-gradient(160deg, #1D3A9E, #0F1B4D 70%); }
.ph-staged { background: linear-gradient(160deg, #C8D3F2, #8FB0F5 35%, #1D3A9E 80%); justify-content: flex-end; color: #0F1B4D; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--vidrado); transform: translateX(-1px); pointer-events: none; }
.compare-handle i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px;
  display: grid; place-items: center; background: var(--vidrado); color: var(--cobalt); border-radius: 999px; font-size: 20px; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.tag { position: absolute; top: 14px; background: rgba(15,27,77,.72); color: var(--vidrado); font-size: 12px; padding: 5px 10px; border-radius: 999px; transition: opacity .25s; }
.tag-l { left: 14px; } .tag-r { right: 14px; }
.tag.is-hidden { opacity: 0; }
.tags { list-style: none; padding: 0; margin: 24px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags .chip { transition: background-color .25s, color .25s; }
.tags .chip.is-on { background: var(--vidrado); color: var(--cobalt); }

/* ---------- Journey + price ---------- */
.outputs { padding: clamp(96px, 14vh, 160px) 0; }
.price { margin-top: clamp(96px, 14vh, 160px); }
.price-big { font-size: clamp(40px, 6.4vw, 92px); line-height: .98; letter-spacing: -0.045em; font-weight: 600; max-width: 13ch; }

/* ---------- Interest (email sign-up) ---------- */
.interest { padding: clamp(96px, 14vh, 160px) 0; }
.interest-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-card); }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input { height: 50px; border-radius: var(--r-ctl); border: 1px solid rgba(143,176,245,.36); background: rgba(15,27,77,.6); color: var(--ink); font: 17px var(--display); padding: 0 14px; }
.field input:focus { outline: 2px solid var(--linha); outline-offset: 1px; border-color: transparent; }
.field .help { color: var(--muted); font-size: 13px; }
.field .err { display: none; color: var(--err); font-size: 13px; }
.field.has-err input { border-color: var(--err); }
.field.has-err .err { display: block; }
.roles { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.roles legend { font-size: 15px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.role { position: relative; cursor: pointer; }
.role input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.role span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(143,176,245,.36); color: var(--nevoa); font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.role input:checked + span { background: var(--vidrado); color: var(--cobalt); border-color: transparent; }
.role input:focus-visible + span { outline: 2px solid var(--amarelo); outline-offset: 2px; }
.form-ok { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(143,176,245,.16); color: var(--vidrado); font-weight: 600; }

/* ---------- Labs: the one cobalt block ---------- */
.labs { position: relative; background: #1D3A9E; overflow: hidden; padding: clamp(96px, 12vw, 160px) 0; isolation: isolate; }
.labs-tiles { position: absolute; inset: 0; z-index: -1; display: grid; gap: 8px; padding: 8px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); align-content: start; opacity: .14; }
.labs-tiles svg { width: 100%; height: auto; color: var(--vidrado); transition: transform .7s var(--ease); }
.labs-in::before { content: ""; position: absolute; inset: -40px -20px; z-index: -1; background: radial-gradient(ellipse at 20% 50%, #1D3A9E 30%, transparent 75%); }
.labs-in { position: relative; }
.labs .h2 { max-width: 16ch; }
.labs .body { color: var(--nevoa); margin-bottom: 32px; }

.foot { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--noite); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot .brand { color: var(--vidrado); }
.foot-links { margin-left: auto; display: flex; gap: 20px; font-size: 14px; }
.foot-links a { color: var(--muted); }

/* Entry reveals */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Phone ---------- */
@media (max-width: 960px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .how-phone { order: 0; top: 68px; z-index: 2; padding: 10px 0 14px; background: linear-gradient(var(--noite) 88%, rgba(15,27,77,0)); }
  .phone { height: 50dvh; border-radius: 34px; padding: 7px; }
  .screen { border-radius: 28px; }
  .phone-island { top: 14px; height: 16px; }
  .phone-note { display: none; }
  .step { min-height: 85dvh; justify-content: flex-end; padding-bottom: 10dvh; }
  .nav-links { display: none; }
  .hero-grid, .planbay-grid, .honest-grid, .interest-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-plan { display: none; }          /* the plan has its own section; the hero stays one message */
  .fold-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moments { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 28px; }
  .scrim { background: linear-gradient(0deg, rgba(15,27,77,.88) 0%, rgba(15,27,77,.5) 55%, rgba(15,27,77,.3) 100%); }
  .slot { left: 20px; right: auto; text-align: left; bottom: auto; top: 84px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-end .btn-sm { display: none; }
  .fold-cards { grid-template-columns: minmax(0, 1fr); }
  .spec-card { min-height: 0; }
  .moments { grid-template-columns: minmax(0, 1fr); }
  .foot-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .step > * { opacity: 1; transform: none; }
  .plan-hero .room { opacity: 1; }
  .plan-hero .wall { stroke-dashoffset: 0; }
  .plan-hero .room .label, .plan-hero .room .meas { opacity: 1; }
}
