/* smeter website: shared styles. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: block;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: block;
}

:root {
  --mode: mob;

  --img-tenant: url("img/tenant-phone.webp");
  --img-owner: url("img/landlord.webp");
  --img-keypad: url("img/keypad.webp");
  --img-installer: url("img/installer.webp");
  --img-family: url("img/family.webp");
  --img-city: url("img/lagos-dusk.webp");
  --img-hallway: url("img/render-hallway.webp");
  --img-macro: url("img/render-macro.webp");
  --img-device: url("img/deck-meter-remote-white.webp");
  --grain: url("grain.svg");

  --display: "Archivo", "Arial Black", Impact, system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --paper: #f5f4ef;
  --ink: #0f0f0e;
  --card-dark: #151515;
  --card-cream: #f9f6f1;
  --purple: #9d10a9;
  --purple-deep: #6a0a73;
  --red: #9d10a9; /* the prompt's accent tile, re-pointed to the smeter purple */
  --yellow: #fcdd71;
  --blue: #9fd5f7;
  --muted: #62615d;

  --nav-bg: #ffffff;
  --nav-bar: #ffffff;
  --nav-fg: var(--ink);
  --nav-muted: #62615d;
  --nav-line: rgba(15, 15, 14, 0.08);
  --nav-rule: rgba(15, 15, 14, 0.16);
  --nav-search: #e8e7e2;
  --nav-cta: var(--ink);
  --nav-cta-fg: #fff;

  --col: 205.33px;
  --gap: 13px;
  --pitch: 282.5px;
  --r: 22px;
  --float-gap: 12px;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 560px) and (min-aspect-ratio: 1/1) { :root { --mode: mob-l; } }
@media (min-width: 600px) and (min-height: 820px) and (max-aspect-ratio: 21/20) { :root { --mode: tab-p; } }
@media (min-width: 900px) and (min-height: 540px) and (min-aspect-ratio: 21/20) { :root { --mode: tab-l; } }
@media (min-width: 1097px) and (min-aspect-ratio: 27/25) { :root { --mode: desk; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #3b82f6; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header card */

.hdr {
  position: relative;
  z-index: 5;
  background: var(--nav-bg);
  color: var(--nav-fg);
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: 0 0 0 1px var(--nav-line), 0 16px 36px -24px rgba(15, 15, 14, 0.3);
}
.hmain { height: 102px; display: flex; align-items: center; padding: 0 0 0 26px; }
.logo { text-decoration: none; display: block; color: var(--nav-fg); }
.logo b {
  display: block; font-family: var(--display); font-weight: 900; font-size: 31px;
  font-stretch: 85%; letter-spacing: -0.01em; line-height: 0.9; -webkit-text-stroke: 0.35px currentColor;
  text-transform: uppercase;
}
.logo b i { color: var(--purple); font-style: normal; }
.logo small { display: block; margin-top: 5px; font-size: 8.6px; letter-spacing: 0.06em; color: var(--nav-muted); font-weight: 600; text-transform: uppercase; }

.mnav { display: flex; align-items: center; margin-left: 56px; gap: 22px; font-size: 16px; font-weight: 600; }
.mnav a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.mnav a[aria-current="page"] { color: var(--purple); }
.mnav a:hover { color: var(--purple); }
.mnav .circ { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.mnav .circ svg { width: 11px; height: 11px; }
.mnav .sep { width: 1px; height: 22px; background: var(--nav-rule); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0;
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.menu-btn .burger { width: 20px; height: 12px; position: relative; }
.menu-btn .burger::before, .menu-btn .burger::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s var(--ease-expo), top 0.25s var(--ease-expo); }
.menu-btn .burger::before { top: 1px; }
.menu-btn .burger::after { top: 9px; }
.hdr[data-open] .menu-btn .burger::before { top: 5px; transform: rotate(45deg); }
.hdr[data-open] .menu-btn .burger::after { top: 5px; transform: rotate(-45deg); }

.cta { margin-left: auto; margin-right: 20px; display: flex; align-items: center; gap: 4px; }
.pill {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; height: 63px; min-width: 116px; padding: 0 26px;
  border-radius: var(--r); background: var(--nav-cta); color: var(--nav-cta-fg); text-decoration: none; font-weight: 600; font-size: 16px;
  border: 0; cursor: pointer; transition: background 0.2s;
}
.pill:hover { background: var(--purple); }
.circle {
  width: 64px; height: 64px; border-radius: 50%; background: var(--nav-cta); color: var(--nav-cta-fg);
  display: grid; place-items: center; text-decoration: none; border: 0; cursor: pointer; transition: background 0.2s, transform 0.3s var(--ease-expo);
}
.circle svg { width: 22px; height: 22px; }
.circle:hover { background: var(--purple); transform: rotate(-8deg); }

/* Drop-down panel (mobile / tablet) */
.panel { display: none; }

/* Tiles & marquee */

.grid { position: absolute; }
.col { position: absolute; width: var(--col); display: flex; flex-direction: column; gap: var(--gap); animation: colDown 14.6s linear infinite; will-change: transform; }
.c2, .x1, .x3 { animation-name: colUp; }
.x1, .x2, .x3 { display: none; }
@keyframes colDown { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@keyframes colUp { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .col { animation: none; } }

.cell {
  position: relative; flex: none; height: calc(var(--pitch) - var(--gap)); border-radius: var(--r); overflow: hidden; isolation: isolate;
}
.cell::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.red { background: var(--red); }
.yellow { background: var(--yellow); }
.blue { background: var(--blue); }
.cream { background: var(--card-cream); box-shadow: inset 0 0 0 1px #e9e6df; }
.dark { background: var(--card-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.red::after, .yellow::after, .blue::after, .cream::after { background-image: var(--grain); opacity: 0.13; mix-blend-mode: multiply; }
.dark::after { background-image: var(--grain); opacity: 0.035; mix-blend-mode: screen; }

.ph { background: #c6c5c3; }
.ph::before { content: ""; position: absolute; inset: 0; background: var(--pic) center / cover no-repeat; }
.ph::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0) 18%); }
.i-tenant { --pic: var(--img-tenant); }
.i-owner { --pic: var(--img-owner); }
.i-keypad { --pic: var(--img-keypad); }
.i-installer { --pic: var(--img-installer); }
.i-family { --pic: var(--img-family); }
.i-city { --pic: var(--img-city); }
.i-hallway { --pic: var(--img-hallway); }
.i-macro { --pic: var(--img-macro); }
.i-device::before { background: var(--img-device) center 55% / 112% auto no-repeat; }
.i-device.cream::after { opacity: 0.08; }

/* Typographic tiles (stats) */
.stat { display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; }
.stat b { font-family: var(--display); font-weight: 900; font-stretch: 80%; font-size: 64px; line-height: 0.85; letter-spacing: -0.04em; }
.stat span { margin-top: 10px; font-size: 13px; font-weight: 600; line-height: 1.25; max-width: 14ch; }
.red.stat, .dark.stat { color: #fff; }
.tag { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); }

/* Landing: hero copy */

.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 80px; line-height: 75.3px; letter-spacing: -0.06em; word-spacing: 0.14em; -webkit-text-stroke: 1.1px currentColor; font-stretch: 85%;
}
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 2px; }
.hero h1 .ln > span { display: inline-block; font-size: 0.95em; letter-spacing: -0.05em; white-space: nowrap; }
.hero h1 .ln:nth-child(2n) > span { color: var(--purple); -webkit-text-stroke-color: var(--purple); }
.hero p { margin: 0; font-size: 18px; line-height: 26.6px; color: #24231f; }
.hero p strong { font-weight: 700; color: var(--ink); }
.acts { display: flex; align-items: center; gap: 4px; }
.acts .link {
  white-space: nowrap;
  margin-left: 28px; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; text-decoration: none;
}
.acts .link .arr { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background 0.2s, transform 0.3s var(--ease-expo); }
.acts .link .arr svg { width: 13px; height: 13px; }
.acts .link:hover .arr { background: var(--purple); transform: translateX(3px); }
.stores { display: flex; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 12.5px; align-items: center; }
.stores svg { width: 15px; height: 15px; }

/* The landing's first screen is a fixed-height composition; the rest of the
   page scrolls below it. */
.landing-top { position: relative; height: 100vh; height: 100svh; overflow: hidden; }

/* Desktop (scaled 1280×800 canvas) */
html.desk .landing-stage {
  position: absolute; left: 0; top: 0; width: calc(var(--W) * 1px); height: calc(var(--H) * 1px);
  transform: scale(var(--s)); transform-origin: 0 0; overflow: hidden;
}
html.desk .landing-top { height: calc(var(--H) * var(--s) * 1px); }
html.desk .landing-stage .hdr { position: absolute; left: 40px; right: 40px; top: 0; height: 102px; }
html.desk .landing-stage .grid { right: 62px; top: 0; bottom: 0; width: calc(3 * var(--col) + 2 * var(--gap)); }
html.desk .c1 { left: 0; top: 86px; }
html.desk .c2 { left: calc(var(--col) + var(--gap)); top: -11.5px; }
html.desk .c3 { left: calc(2 * (var(--col) + var(--gap))); top: 86.5px; }
html.desk .x1 { left: calc(-1 * (var(--col) + var(--gap))); top: 40px; }
html.desk .x2 { left: calc(-2 * (var(--col) + var(--gap))); top: 120px; }
html.desk .x3 { left: calc(-3 * (var(--col) + var(--gap))); top: -30px; }
html.desk.ex1 .x1, html.desk.ex2 .x1, html.desk.ex2 .x2, html.desk.ex3 .x1, html.desk.ex3 .x2, html.desk.ex3 .x3 { display: flex; }
html.desk .hero { position: absolute; left: 86px; top: calc(172px + (var(--H, 800) - 800) * 0.5px); width: 480px; z-index: 2; }
html.desk .hero .scroll-cue { position: absolute; top: 606px; }
html.desk .hero p { position: absolute; top: 344px; width: 460px; }
html.desk .hero .acts { position: absolute; top: 488px; }
html.desk .hero .stores { position: absolute; top: 568px; margin: 0; }
/* With extra columns the hero would sit under tiles; give it a paper backing. */
html.desk.ex1 .hero::before, html.desk.ex2 .hero::before, html.desk.ex3 .hero::before {
  content: ""; position: absolute; inset: -40px -40px -60px -86px; background: var(--paper); z-index: -1; border-radius: 0 var(--r) var(--r) 0;
}
html.desk .menu-btn { display: none; }

/* Mobile portrait */
html.mob {
  --tm: 14px; --hp: 16px; --hh: 64px; --h1: clamp(40px, 12.4vw, 58px); --fp: 15px; --btn: 52px;
  --m-ph: 22px; --m-u: 15px; --m-p: 13px; --m-fu: 22px; --m-fp: 13px;
}
html.mob .landing-stage {
  height: 100svh; display: flex; flex-direction: column; padding: 0 var(--tm);
  padding-left: max(var(--tm), env(safe-area-inset-left)); padding-right: max(var(--tm), env(safe-area-inset-right));
}
html.mob .hdr, html.tab-p .hdr { flex: none; }
html.mob .mnav .nl, html.mob .cta { display: none; }
html.mob .mnav { margin-left: 0; }
html.mob .hero { min-width: 0; }
html.mob .hero .acts { flex-wrap: wrap; row-gap: 12px; }
html.mob .hmain { height: var(--hh); padding: 0 var(--hp); justify-content: space-between; padding-top: env(safe-area-inset-top); box-sizing: content-box; }
html.mob .logo b { font-size: 24px; }
html.mob .logo small { font-size: 7.4px; }
html.mob .hero { order: 1; padding: 22px 6px 16px; }
html.mob .hero h1 { font-size: var(--h1); line-height: 0.92; -webkit-text-stroke-width: 0.6px; }
html.mob .hero p { font-size: var(--fp); line-height: 1.45; margin-top: 14px; }
html.mob .hero .acts { margin-top: 18px; }
html.mob .hero .pill { height: var(--btn); min-width: 0; border-radius: 16px; }
html.mob .hero .circle { width: var(--btn); height: var(--btn); }
html.mob .hero .acts .link { margin-left: 16px; font-size: 14px; }
html.mob .hero .stores { display: none; }
html.mob .hero .scroll-cue { margin-top: 14px; }
html.mob .landing-stage .grid {
  --gw: calc(100vw - 2 * var(--tm)); --col: calc((var(--gw) - 2 * var(--gap)) / 3); --gap: 8px;
  --pitch: calc(var(--col) * 1.32 + var(--gap)); --r: 16px;
  position: relative; order: 2; flex: 1; min-height: 0; overflow: hidden; border-radius: var(--r) var(--r) 0 0;
}
html.mob .c1 { left: 0; top: calc(var(--pitch) * -0.25); }
html.mob .c2 { left: calc(var(--col) + var(--gap)); top: calc(var(--pitch) * -0.6); }
html.mob .c3 { left: calc(2 * (var(--col) + var(--gap))); top: calc(var(--pitch) * -0.1); }
html.mob .stat b { font-size: clamp(30px, 9vw, 44px); }
html.mob .stat { padding: 12px; }
html.mob .stat span { font-size: 11px; }
html.mob .tag { display: none; }

/* Landscape phone: hero left, grid right */
html.mob-l .landing-stage {
  height: 100svh; display: grid; grid-template-columns: 1fr var(--lgw); grid-template-rows: auto 1fr;
  --lgw: min(46vw, 420px); padding: 0;
}
html.mob-l .hdr { grid-column: 1 / -1; margin: 0 16px; }
html.mob-l .hero { order: 0; align-self: center; padding: 10px 24px 10px max(28px, env(safe-area-inset-left)); }
html.mob-l .hero h1 { font-size: clamp(34px, 7vh, 52px); }
html.mob-l .hero p { font-size: 14px; }
html.mob-l .landing-stage .grid { --gw: var(--lgw); grid-row: 1 / -1; grid-column: 2; z-index: 0; border-radius: 0; height: 100svh; }
html.mob-l .c1, html.mob-l .c3 { top: calc(var(--hh) - var(--pitch) * 0.2); }
html.mob-l .c2 { top: calc(var(--hh) - var(--pitch) * 0.7); }

/* Tablet */
html.tab { --tm: clamp(20px, 3.5vw, 40px); --hh: 102px; --h1: clamp(48px, 6.4vw, 80px); }
html.tab .mnav .nl { display: none; }
html.tab-l .landing-stage { position: relative; height: 100svh; overflow: hidden; }
html.tab-l .hdr { margin: 0 var(--tm); }
html.tab-l .hero { position: absolute; left: calc(var(--tm) + 32px); top: calc(102px + (100svh - 102px) * 0.14); width: min(calc(100vw - 2 * var(--tm) - 3 * min(14vw, 205px) - 2 * var(--gap) - 64px), 480px); z-index: 2; }
html.tab-l .hero h1 { font-size: var(--h1); line-height: 0.94; }
html.tab-l .hero p { margin-top: 22px; font-size: 17px; }
html.tab-l .hero .acts { margin-top: 26px; }
html.tab-l .landing-stage .grid { right: var(--tm); top: 0; bottom: 0; width: calc(3 * var(--col) + 2 * var(--gap)); --col: min(14vw, 205px); --pitch: calc(var(--col) * 1.313 + var(--gap)); }
html.tab-l .c1 { left: 0; top: 86px; }
html.tab-l .c2 { left: calc(var(--col) + var(--gap)); top: -11.5px; }
html.tab-l .c3 { left: calc(2 * (var(--col) + var(--gap))); top: 86.5px; }
html.tab-p .landing-stage { height: 100svh; display: grid; grid-template-rows: auto auto 1fr; padding: 0 var(--tm); overflow: hidden; }
html.tab-p .hero { padding: 40px 12px 28px; max-width: 640px; }
html.tab-p .hero h1 { font-size: var(--h1); line-height: 0.94; }
html.tab-p .hero p { margin-top: 20px; font-size: 18px; }
html.tab-p .hero .acts { margin-top: 24px; }
html.tab-p .landing-stage .grid { position: relative; --gw: calc(100vw - 2 * var(--tm)); --col: calc((var(--gw) - 2 * var(--gap)) / 3); --pitch: calc(var(--col) * 1.313 + var(--gap)); overflow: hidden; border-radius: var(--r) var(--r) 0 0; }
html.tab-p .c1 { left: 0; top: calc(var(--pitch) * -0.3); }
html.tab-p .c2 { left: calc(var(--col) + var(--gap)); top: calc(var(--pitch) * -0.65); }
html.tab-p .c3 { left: calc(2 * (var(--col) + var(--gap))); top: calc(var(--pitch) * -0.15); }

/* Menu panel (mob + tab) */
html.mob .panel, html.tab .panel {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease-expo);
  border-top: 1px solid transparent;
}
html.mob .panel > div, html.tab .panel > div { overflow: hidden; }
.hdr[data-open] .panel { grid-template-rows: 1fr; border-top-color: var(--nav-line); }
.panel nav { display: grid; padding: 10px var(--hp, 26px) 6px; }
.panel nav a {
  font-family: var(--display); font-weight: 900; font-stretch: 85%; text-transform: uppercase; letter-spacing: -0.03em;
  font-size: var(--m-ph, 30px); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--nav-line);
  display: flex; justify-content: space-between; align-items: center;
}
.panel nav a svg { width: 16px; height: 16px; }
.panel .pfoot { display: grid; gap: 6px; padding: 14px var(--hp, 26px) 20px; font-size: var(--m-fp, 13px); color: var(--nav-muted); }
.panel .pfoot a { color: var(--nav-fg); font-weight: 600; text-decoration: none; }
.panel .pfoot .pill { height: 50px; margin-top: 8px; color: #fff; }
.hdr[data-open] .panel nav a { animation: navIn 0.5s var(--ease-expo) both; }
.hdr[data-open] .panel nav a:nth-child(2) { animation-delay: 0.04s; }
.hdr[data-open] .panel nav a:nth-child(3) { animation-delay: 0.08s; }
.hdr[data-open] .panel nav a:nth-child(4) { animation-delay: 0.12s; }
@keyframes navIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Load entrance (initial state; WAAPI animates out of it) */
html.intro .hdr { transform: translateY(calc(-100% - 48px)); }
html.intro .logo, html.intro .mnav > *, html.intro .cta, html.intro .hero p, html.intro .hero .acts > *, html.intro .stores, html.intro .scroll-cue, html.intro .landing-stage .grid .col { opacity: 0; }
html.intro .hero h1 .ln > span { transform: translateY(110%); }
.hero h1.masking .ln { clip-path: inset(-0.1em -0.2em 0 -0.2em); }

/* Inner pages */

body.page .hdr {
  position: sticky; top: var(--float-gap); margin: var(--float-gap) clamp(10px, 3vw, 40px) 0; border-radius: var(--r);
  box-shadow: 0 0 0 1px var(--nav-line), 0 18px 40px -22px rgba(15, 15, 14, 0.35);
}
html.mob body.page .hdr .hmain { height: var(--hh); }

/* Floating copy of the landing header, shown once the original scrolls away */
html body .hdr.floating {
  position: fixed; z-index: 45; top: var(--float-gap); left: clamp(10px, 3vw, 40px); right: clamp(10px, 3vw, 40px);
  margin: 0; border-radius: var(--r);
  box-shadow: 0 0 0 1px var(--nav-line), 0 18px 40px -22px rgba(15, 15, 14, 0.35);
  transform: translateY(calc(-100% - 2 * var(--float-gap))); transition: transform 0.45s var(--ease-expo);
}
html body .hdr.floating.on { transform: none; }
html.desk .hdr.floating .hmain, html.tab .hdr.floating .hmain,
html.desk body.page .hdr .hmain, html.tab body.page .hdr .hmain { height: 80px; }
html.desk .hdr.floating .pill, html.tab .hdr.floating .pill,
html.desk body.page .hdr .pill, html.tab body.page .hdr .pill { height: 54px; }
html.desk .hdr.floating .circle, html.tab .hdr.floating .circle,
html.desk body.page .hdr .circle, html.tab body.page .hdr .circle { width: 54px; height: 54px; }
/* Anchor jumps stop below the floating header. */
html { scroll-padding-top: calc(80px + 3 * var(--float-gap)); }
html.mob { scroll-padding-top: calc(var(--hh) + 3 * var(--float-gap)); }
html.mob .hdr.floating .hmain { padding-top: 0; }
@media (prefers-reduced-motion: reduce) { html body .hdr.floating { transition: none; } }
/* The floating header carries "Get the app" on tablet and desktop. */
html:not(.mob) .float-cta { display: none; }
.wrap { width: min(1200px, calc(100vw - 2 * clamp(16px, 4vw, 40px))); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.display {
  font-family: var(--display); font-weight: 900; font-stretch: 85%; text-transform: uppercase; letter-spacing: -0.055em;
  line-height: 0.92; margin: 0; -webkit-text-stroke: 0.8px currentColor; word-spacing: 0.12em;
}
.display .ln { display: block; word-spacing: 0.12em; }
.phero .display .ln > span { white-space: nowrap; }
.display .ln:nth-child(2n) { color: var(--purple); -webkit-text-stroke-color: var(--purple); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: #2a2925; max-width: 60ch; }

.phero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 80px); }
.phero .display { font-size: clamp(48px, 7.4vw, 104px); margin-top: 18px; }
.phero .lead { margin-top: 24px; }
.phero .acts { margin-top: 30px; flex-wrap: wrap; row-gap: 16px; }
.phero .art { position: relative; height: clamp(420px, 52vw, 640px); }
.phero .art .grid { inset: 0; overflow: hidden; border-radius: var(--r); --col: calc((100% - var(--gap)) / 2); }
.phero .art .col { width: calc((100% - var(--gap)) / 2); }
.phero .art .c1 { left: 0; top: -40px; }
.phero .art .c2 { left: calc(50% + var(--gap) / 2); top: -170px; }
.phero .art .cell { height: clamp(220px, 24vw, 300px); }

.sec { padding: clamp(56px, 8vw, 110px) 0; }
.sec + .sec { padding-top: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(24px, 3vw, 44px); }
.sec-head h2 { font-size: clamp(36px, 5vw, 68px); }
.sec-head p { max-width: 44ch; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.cards { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.card {
  position: relative; border-radius: var(--r); padding: clamp(22px, 2.4vw, 32px); overflow: hidden; isolation: isolate;
  background: var(--card-cream); box-shadow: inset 0 0 0 1px #e9e6df;
}
.card::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.1; mix-blend-mode: multiply; pointer-events: none; z-index: -1; }
.card.dark { background: var(--card-dark); color: #f3f1ea; box-shadow: none; }
.card.dark::after { opacity: 0.04; mix-blend-mode: screen; }
.card.yellow { background: var(--yellow); box-shadow: none; }
.card.blue { background: var(--blue); box-shadow: none; }
.card.red { background: var(--purple); color: #fff; box-shadow: none; }
.card h3 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 88%; text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(22px, 2vw, 28px); line-height: 1; }
.card p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.55; color: inherit; opacity: 0.86; }
.card .num { font-family: var(--display); font-weight: 900; font-stretch: 80%; font-size: clamp(56px, 6vw, 88px); line-height: 0.85; letter-spacing: -0.05em; }
.card .idx { font-family: var(--display); font-weight: 900; font-size: 14px; letter-spacing: 0.06em; opacity: 0.6; margin-bottom: 40px; display: block; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: stretch; }
.photo { position: relative; border-radius: var(--r); overflow: hidden; min-height: 420px; background: #c6c5c3 var(--pic) center / cover no-repeat; }
.photo .cap {
  position: absolute; left: 16px; bottom: 16px; right: 16px; padding: 14px 16px; border-radius: 16px; background: rgba(15, 15, 14, 0.72);
  color: #fff; font-size: 14px; line-height: 1.4; backdrop-filter: blur(8px);
}
.photo .cap b { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: -0.02em; font-size: 18px; }

.render { border-radius: var(--r); background: #ece9e1; overflow: hidden; }
.render img { width: 100%; height: 100%; object-fit: cover; }

.specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--nav-rule); }
.specs div { padding: 22px 0; border-bottom: 1px solid var(--nav-rule); }
.specs div:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--nav-rule); }
.specs dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: clamp(18px, 1.8vw, 24px); text-transform: uppercase; letter-spacing: -0.02em; }

.faq { border-top: 1px solid var(--nav-rule); }
.faq details { border-bottom: 1px solid var(--nav-rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  font-family: var(--display); font-weight: 800; font-stretch: 90%; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(18px, 1.8vw, 24px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform 0.3s var(--ease-expo), background 0.2s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--purple); }
.faq details p { margin: 0 0 22px; max-width: 70ch; color: #3a3934; font-size: 16px; line-height: 1.6; }

/* Steps */
.steps { counter-reset: s; }
.steps .card { min-height: 260px; display: flex; flex-direction: column; }
.steps .card h3 { margin-top: auto; }

/* Lead form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid #d9d6cd; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--purple); outline-offset: 0; border-color: transparent; }
.field .err { color: #b3261e; font-size: 12.5px; min-height: 0; }
.form .pill { height: 58px; width: 100%; }
.form-msg { margin-top: 14px; padding: 14px 16px; border-radius: 14px; font-size: 15px; line-height: 1.5; display: none; }
.form-msg.ok { display: block; background: #e3f4eb; color: #0d5c38; }
.form-msg.bad { display: block; background: #fdecea; color: #8c1d18; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { padding: 0 0 28px; }
.foot .band {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(20px, 3vw, 48px); align-items: center; border-radius: var(--r);
  background: var(--card-dark); color: #f3f1ea; padding: clamp(28px, 4vw, 56px); position: relative; overflow: hidden; isolation: isolate;
}
.foot .band::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.04; mix-blend-mode: screen; z-index: -1; }
.foot .band .display { font-size: clamp(40px, 5.6vw, 80px); }
.foot .band .display .ln:nth-child(2n) { color: var(--yellow); -webkit-text-stroke-color: var(--yellow); }
.foot .band .device { height: clamp(220px, 26vw, 340px); background: var(--img-device) center / contain no-repeat; }
.foot .band .acts { margin-top: 26px; flex-wrap: wrap; row-gap: 12px; }
.foot .band .pill, .foot .band .circle { background: #fff; color: var(--ink); }
.foot .band .pill:hover, .foot .band .circle:hover { background: var(--yellow); }
.foot .links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 26px 6px 0; font-size: 14px; color: var(--muted); }
.foot .links nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot .links a { text-decoration: none; font-weight: 600; color: var(--ink); }
.foot .links a:hover { color: var(--purple); }

/* Landing: below the first screen */

.scroll-cue {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--muted); text-decoration: none;
}
.scroll-cue span { display: inline-block; animation: nudge 1.8s var(--ease-expo) infinite; }
.scroll-cue:hover { color: var(--purple); }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

.home .promise .split { align-items: center; gap: clamp(28px, 5vw, 80px); }
.home .promise .display { font-size: clamp(44px, 6vw, 86px); }
.home .promise .display .ln > span { display: inline-block; }
@media (min-width: 901px) { .home .promise .display .ln > span { white-space: nowrap; } }
.promise-side .lead { margin: 0; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 28px; }
.chip {
  position: relative; border-radius: var(--r); padding: 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
}
.chip::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.13; mix-blend-mode: multiply; z-index: -1; }
.chip b { font-family: var(--display); font-weight: 900; font-stretch: 80%; font-size: clamp(36px, 4vw, 56px); line-height: 0.85; letter-spacing: -0.04em; }
.chip span { margin-top: 10px; font-size: 13px; font-weight: 600; line-height: 1.25; }
.chip.red { color: #fff; }

.home .sec-head .acts { flex: none; }
.home .sec-head .pill { height: 56px; }
.home .sec-head .circle { width: 56px; height: 56px; }
.owner-acts { margin-top: clamp(20px, 3vw, 32px); flex-wrap: wrap; row-gap: 14px; }
.owner-acts .pill { height: 58px; }

.render-sec figure { margin: 0; position: relative; aspect-ratio: 3 / 2; max-height: 760px; width: 100%; }
.render-sec figcaption {
  position: absolute; left: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); max-width: min(440px, calc(100% - 28px));
  padding: 14px 16px; border-radius: 16px; background: rgba(15, 15, 14, 0.72); color: #fff; font-size: 14.5px; line-height: 1.45;
  backdrop-filter: blur(8px);
}
.source { margin: 14px 4px 0; font-size: 13px; color: var(--muted); }

/* Floating download button once the first screen has scrolled away */
.float-cta {
  position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 8px 0 22px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  box-shadow: 0 14px 34px -14px rgba(15, 15, 14, 0.6);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease-expo), background 0.2s;
}
.float-cta svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--purple); }
.float-cta.on { opacity: 1; transform: none; pointer-events: auto; }
.float-cta:hover { background: var(--purple); }
.float-cta:hover svg { background: var(--ink); }

@media (max-width: 900px) {
  .chips { grid-template-columns: 1fr 1fr 1fr; }
  .chip { min-height: 120px; padding: 14px; }
  .chip span { font-size: 12px; }
  .home .sec-head .acts { display: none; }
  .home .steps .card { min-height: 0; }
  .home .steps .card .idx { margin-bottom: 24px; }
  .render-sec figure { aspect-ratio: 4 / 5; }
}
@media (max-width: 480px) {
  .chips { grid-template-columns: 1fr 1fr; }
  .chips .chip:last-child { grid-column: 1 / -1; min-height: 100px; }
}

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
  .phero, .split, .foot .band { grid-template-columns: 1fr; }
  .phero .art { height: 420px; }
  .cards { --n: 1 !important; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .specs div:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--nav-rule); }
  .sec-head { flex-direction: column; align-items: start; }
  .form { grid-template-columns: 1fr; }
  .foot .band .device { display: none; }
}
@media (min-width: 901px) and (max-width: 1100px) { .cards { --n: 2 !important; } }
@media (min-width: 640px) and (max-width: 900px) { .steps .cards { --n: 2 !important; } }

/* Download sheet */

.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.sheet[hidden] { display: none; }
.sheet .scrim { position: absolute; inset: 0; background: rgba(15, 15, 14, 0.55); backdrop-filter: blur(4px); animation: fade 0.3s ease both; }
.sheet .box {
  position: relative; width: min(520px, 100%); background: var(--paper); border-radius: var(--r); padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.5); animation: rise 0.45s var(--ease-expo) both; max-height: calc(100svh - 32px); overflow: auto;
}
.sheet h2 { font-size: clamp(32px, 6vw, 44px); }
.sheet .x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #e8e7e2; cursor: pointer; display: grid; place-items: center; }
.sheet .badges { display: grid; gap: 10px; margin-top: 22px; }
.badge {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none;
  transition: background 0.2s;
}
.badge:hover { background: var(--purple); }
.badge svg { width: 28px; height: 28px; flex: none; }
.badge small { display: block; font-size: 11px; opacity: 0.75; }
.badge b { display: block; font-size: 18px; font-weight: 700; }
.badge.soon { background: #e8e7e2; color: var(--ink); cursor: default; }
.sheet .note { margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.notify { margin-top: 18px; display: grid; gap: 10px; }
.notify .row { display: flex; flex-wrap: wrap; gap: 8px; }
.notify .row input { flex: 1 1 180px; }
.notify .row select { flex: 0 0 auto; }
.notify input, .notify select { font: inherit; padding: 14px 16px; border-radius: 14px; border: 1px solid #d9d6cd; background: #fff; flex: 1; min-width: 0; }
.notify .pill { height: 52px; min-width: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
