/* unitwatch waitlist page: friendly building world, cobalt action, pastel fields. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #f6f8fc;
  --card: #ffffff;
  --ink: #0f1b33;
  --muted: #4a5672;
  --line: #e2e8f3;
  --cobalt: #2b59ff;
  --cobalt-deep: #1d3fd6;
  --cobalt-ink: #ffffff;
  --sky: #dcebff;
  --mint: #cdf1e0;
  --sun: #ffe17a;
  --peach: #ffdccb;
  --lilac: #e6e3ff;

  /* request statuses, shared by pills and window dots */
  --st-sub: #1e44d8;   --st-sub-bg: #e3eaff;
  --st-ack: #8a4600;   --st-ack-bg: #fff0d1;
  --st-sched: #0b7a68; --st-sched-bg: #d6f5ec;
  --st-prog: #b03a6a;  --st-prog-bg: #ffe3ee;
  --st-done: #2f6d2a;  --st-done-bg: #e2f5dc;

  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --text: "Figtree", system-ui, sans-serif;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgb(15 27 51 / 0.06), 0 4px 12px -4px rgb(15 27 51 / 0.10);
  --shadow: 0 2px 4px rgb(15 27 51 / 0.05), 0 18px 40px -12px rgb(15 27 51 / 0.22);
  --shadow-lg: 0 4px 10px rgb(15 27 51 / 0.06), 0 32px 64px -16px rgb(15 27 51 / 0.30);

  --page: min(1180px, 100% - 2 * clamp(20px, 4vw, 48px));
  --section: clamp(5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; color: var(--ink); }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
a { color: var(--cobalt); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.nums { font-variant-numeric: tabular-nums; }
/* controls respond instantly and never select their own labels; content text stays selectable */
button, .btn, summary, [role="button"], [role="tab"], [role="radio"] { touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
input, select, textarea { font-size: max(16px, 1em); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
html { scrollbar-color: #b9c4da var(--bg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--cobalt); color: var(--cobalt-ink); font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px rgb(29 63 214 / 0.3), 0 8px 20px -8px rgb(43 89 255 / 0.6); transition: background-color 160ms ease, transform 100ms ease-out, box-shadow 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 1.0625rem; }
@media (hover: hover) { .btn:hover { background: var(--cobalt-deep); box-shadow: 0 1px 2px rgb(29 63 214 / 0.3), 0 12px 28px -8px rgb(43 89 255 / 0.7); } }

/* ---------- nav: a translucent layer the page scrolls under ---------- */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: calc(14px + env(safe-area-inset-top, 0px)) max(20px + env(safe-area-inset-right, 0px), (100% - 1180px) / 2) 14px max(20px + env(safe-area-inset-left, 0px), (100% - 1180px) / 2); background: rgb(220 235 255 / 0.72); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); transition: box-shadow 200ms ease, background-color 200ms ease; }
.nav.is-scrolled { background: rgb(246 248 252 / 0.8); box-shadow: 0 1px 0 rgb(15 27 51 / 0.06), 0 8px 24px -16px rgb(15 27 51 / 0.25); }
@media (prefers-reduced-transparency: reduce) { .nav, .nav.is-scrolled { background: var(--bg); backdrop-filter: none; } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em; }
.brand__tag { width: 22px; height: 28px; fill: var(--cobalt); }
.brand__tag circle { fill: var(--sun); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.975rem; padding: 6px 2px; border-radius: 8px; transition: color 160ms ease; }
@media (hover: hover) { .nav__links a:hover { color: var(--cobalt); } }

/* ---------- hero ---------- */
.hero { background: var(--sky); padding: clamp(2rem, 4vw, 3rem) 0 0; overflow: hidden; }
.hero__copy { width: var(--page); margin-inline: auto; display: grid; justify-items: center; text-align: center; gap: 18px; }
.hero__title { font-size: clamp(2.75rem, 1.4rem + 4.6vw, 4.75rem); line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; }
.hero__lead { max-width: 42rem; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); }
.hero__fine { font-size: 0.9rem; color: var(--muted); }

.signup { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow); width: min(100%, 640px); }
.signup input { border: 0; background: transparent; min-height: 52px; font-size: 1.0625rem; }
.signup input:focus { outline: none; }
.signup__email { flex: 1 1 220px; min-width: 0; padding: 0 20px; border-radius: 999px; }
.signup__units { display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 999px; background: var(--bg); color: var(--muted); font-weight: 600; }
.signup__units input { width: 3.5rem; text-align: right; color: var(--ink); font-weight: 700; }
.signup:focus-within { box-shadow: var(--shadow), 0 0 0 3px rgb(43 89 255 / 0.35); }
.signup__status, .form__status { flex-basis: 100%; min-height: 0; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.signup__status:empty { display: none; }
.is-error { color: #b4232c !important; }
.is-ok { color: var(--st-sched) !important; }

/* the scene: building + phone */
.scene { position: relative; width: min(1180px, 100% - 2 * clamp(20px, 4vw, 48px)); margin: clamp(1.75rem, 3vw, 2.5rem) auto 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(230px, 24vw, 290px); gap: 12px clamp(16px, 3vw, 40px); align-items: center; }
.building { width: 100%; height: auto; overflow: visible; }
.scene__key { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 24px; padding-bottom: 24px; }
.scene__hint { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 0.85rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend__dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink); }
.legend__dot.unit__dot--sub { background: var(--st-sub); }
.legend__dot.unit__dot--ack { background: #ffb547; }
.legend__dot.unit__dot--sched { background: #33c9a8; }
.legend__dot.unit__dot--prog { background: #ff7aa8; }

.b-ground { fill: #b9dcc7; }
.b-tree rect { fill: #8a6a52; }
.b-tree circle { fill: #7fd1a8; stroke: var(--ink); stroke-width: 3; }
.b-body { fill: var(--peach); stroke: var(--ink); stroke-width: 4; }
.b-roof { fill: var(--cobalt); stroke: var(--ink); stroke-width: 4; }
.b-chimney { fill: #ff9f7a; stroke: var(--ink); stroke-width: 4; }
.b-bricks rect { fill: #ffbfa3; }
.b-awning { fill: var(--sun); stroke: var(--ink); stroke-width: 4; }
.b-door { fill: var(--cobalt); stroke: var(--ink); stroke-width: 4; }
.b-knob { fill: var(--sun); }
.b-step { fill: #c9d3e6; stroke: var(--ink); stroke-width: 3; }

.unit { cursor: pointer; outline: none; }
.unit__frame { fill: #fff; stroke: var(--ink); stroke-width: 4; transition: fill 200ms ease; }
.unit__glass { fill: #bfe0ff; transition: fill 200ms ease; }
.unit__curtain { fill: #ffffff; opacity: 0.85; }
.unit__sill { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.unit__label { font: 800 15px var(--text); fill: var(--ink); text-anchor: end; opacity: 0.85; }
.ico rect, .ico circle, .ico path { fill: #fff; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ico path:not([class]) { fill: none; }
.ico .ico__stain { fill: #c9a27e; stroke: none; opacity: 0.8; }
.ico .ico__crack { fill: none; stroke: #c42b33; }
.ico .ico__drop { fill: var(--cobalt); }
.unit__dot { stroke: var(--ink); stroke-width: 3; }
.unit__dot--sub { fill: var(--st-sub); }
.unit__dot--ack { fill: #ffb547; }
.unit__dot--sched { fill: #33c9a8; }
.unit__dot--prog { fill: #ff7aa8; }
.unit--lit .unit__glass { fill: var(--sun); }
.drip__tap, .drip__basin { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.drip__drop { fill: var(--cobalt); }
@media (prefers-reduced-motion: no-preference) {
  .drip__drop { animation: drip 1.6s cubic-bezier(0.55, 0, 1, 0.45) 8; }
}
@keyframes drip { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 15% { opacity: 1; transform: translateY(0) scale(1); } 80% { transform: translateY(12px); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
.unit:is(:hover, :focus-visible) .unit__frame { fill: var(--sun); }
.unit:focus-visible .unit__frame { stroke: var(--cobalt); stroke-width: 6; }
.unit.is-selected .unit__frame { fill: var(--cobalt); }
.unit--door:is(:hover, :focus-visible) .b-door { fill: var(--cobalt-deep); }
.unit--door:focus-visible .b-door { stroke: var(--cobalt); stroke-width: 6; }
.unit--door.is-selected .b-awning { fill: #ffd23f; }

/* the phone that rises out of the building */
.phone { position: relative; width: 100%; padding: 10px; border-radius: 38px; background: var(--ink); box-shadow: var(--shadow-lg); }
.phone::before { content: ""; display: block; width: 74px; height: 6px; margin: 4px auto 10px; border-radius: 99px; background: #2c3a57; }
.phone__screen { background: var(--card); border-radius: 28px; padding: 16px 16px 22px; display: grid; gap: 10px; min-height: 250px; align-content: start; transition: opacity 160ms ease, transform 240ms var(--ease); }
.phone__screen.is-swapping { opacity: 0; transform: translateY(6px); }
.phone__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phone__title { font-family: var(--display); font-weight: 700; font-size: 1.125rem; line-height: 1.2; letter-spacing: -0.015em; }
.phone__meta { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.phone__visit { font-size: 0.875rem; line-height: 1.4; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--st-sched-bg); color: var(--ink); }
.phone__visit:empty { display: none; }
.phone__thumbs { display: flex; gap: 6px; }
.phone__thumbs:empty { display: none; }

.keytag { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; padding: 0 10px; border-radius: 8px 8px 14px 14px; background: var(--sun); color: var(--ink); font: 800 0.875rem var(--text); box-shadow: inset 0 0 0 2px var(--ink); }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; background: var(--st-sub-bg); color: var(--st-sub); }
.pill--sub { background: var(--st-sub-bg); color: var(--st-sub); }
.pill--ack { background: var(--st-ack-bg); color: var(--st-ack); }
.pill--sched { background: var(--st-sched-bg); color: var(--st-sched); }
.pill--prog { background: var(--st-prog-bg); color: var(--st-prog); }
.pill--done { background: var(--st-done-bg); color: var(--st-done); }
.pill--urgent { background: #ffe0e2; color: #b4232c; }
.pill--none { background: var(--bg); color: var(--muted); }

/* illustrated photo thumbnails (drawn, not photographed) */
.thumb { width: 54px; height: 54px; border-radius: 12px; background-color: var(--sky); background-repeat: no-repeat; background-position: center; background-size: 70%; box-shadow: inset 0 0 0 2px rgb(15 27 51 / 0.08); flex: none; }
.thumb--lg { width: auto; height: auto; aspect-ratio: 1; flex: 1; border-radius: 16px; }
.thumb--tap { background-color: var(--sky); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M6 10h18a5 5 0 0 1 5 5v5h-7v-4H6z' fill='%23fff' stroke='%230f1b33' stroke-width='2.5' stroke-linejoin='round'/%3E%3Ccircle cx='25.5' cy='27' r='3' fill='%232b59ff'/%3E%3Ccircle cx='25.5' cy='35' r='2' fill='%232b59ff'/%3E%3C/svg%3E"); }
.thumb--cab { background-color: var(--peach); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='6' y='8' width='28' height='24' rx='3' fill='%23fff' stroke='%230f1b33' stroke-width='2.5'/%3E%3Cpath d='M20 8v24' stroke='%230f1b33' stroke-width='2.5'/%3E%3Cpath d='M12 34c2-3 6-3 8 0' fill='none' stroke='%232b59ff' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.thumb--floor { background-color: var(--mint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='28' rx='14' ry='5' fill='%2380b8ff' stroke='%230f1b33' stroke-width='2.5'/%3E%3Cpath d='M20 8c4 6 6 9 6 12a6 6 0 0 1-12 0c0-3 2-6 6-12z' fill='%232b59ff' stroke='%230f1b33' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- section heads ---------- */
.section-head { width: var(--page); margin: 0 auto clamp(2rem, 4vw, 3rem); display: grid; gap: 12px; max-width: 46rem; margin-left: max((100% - 1180px) / 2, clamp(20px, 4vw, 48px)); }
.section-head p { color: var(--muted); font-size: 1.125rem; max-width: 40rem; }
.section-head--light h2, .section-head--light p { color: #fff; }
.section-head--light p { color: #fff; }

/* ---------- features bento ---------- */
.features { padding: var(--section) 0; }
.bento { width: var(--page); margin-inline: auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.tile { border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); background: var(--card); box-shadow: var(--shadow-sm); display: grid; gap: 14px; align-content: start; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
@media (hover: hover) { .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); } }
.tile p { color: var(--muted); }
.tile--photos { grid-column: span 4; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; background: var(--sky); }
.tile--sun { grid-column: span 2; background: var(--sun); }
.tile--sun p { color: #4a3d12; }
.fees { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.fees li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgb(255 255 255 / 0.7); color: #4a3d12; }
.fees b { color: var(--ink); }
.tile--peach { grid-column: span 2; background: var(--peach); }
.tile--peach p { color: #5c3b2c; }
.tile--mint { grid-column: span 2; background: var(--mint); }
.tile--mint p { color: #24493a; }
.tile--thread { grid-column: span 2; }
.tile__copy { display: grid; gap: 12px; }

.ui-card { display: grid; gap: 12px; font-size: 0.9rem; }
.ui-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ui-meta { color: var(--muted); font-size: 0.85rem; }
.photo-strip { display: flex; gap: 10px; }
.ui-btn { display: block; text-align: center; padding: 11px 14px; border-radius: 12px; background: #fff; font-weight: 700; font-size: 0.9rem; }
.ui-btn--ink { background: #c42b33; color: #fff; }
.ui-btn--cobalt { background: var(--cobalt); color: #fff; }
.people { display: flex; align-items: center; margin-top: 4px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--ink); box-shadow: 0 0 0 4px var(--mint); }
.avatar--a { background: var(--sun); }
.avatar--b { background: var(--lilac); margin-left: -10px; }
.people__unit { margin-left: 14px; }
.ui-thread { gap: 8px; }
.msg { padding: 10px 12px; border-radius: 16px 16px 16px 6px; background: #eef2f9; max-width: 92%; line-height: 1.4; }
.msg b { display: block; font-size: 0.8rem; }
.tile .msg--you { justify-self: end; border-radius: 16px 16px 6px 16px; background: var(--cobalt); color: #fff; }

/* ---------- how it works ---------- */
.how { background: var(--mint); padding: var(--section) 0; }
.how__inner { width: var(--page); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.how__steps h2 { margin-bottom: 40px; }
.steps { display: grid; gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: rgb(15 27 51 / 0.12); }
.step { position: relative; padding: 0 0 clamp(3rem, 20vh, 11rem) 52px; display: grid; gap: 8px; }
.step:last-child { padding-bottom: 0; }
.step__dot { position: absolute; left: 0; top: 2px; width: 29px; height: 29px; border-radius: 50%; background: var(--mint); box-shadow: inset 0 0 0 3px rgb(15 27 51 / 0.25); transition: background-color 300ms ease, box-shadow 300ms ease, transform 300ms var(--ease); }
.step h3 { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); color: #3d5a4d; transition: color 300ms ease; }
.step p { color: #3d5a4d; max-width: 30rem; }
.step.is-active .step__dot { background: var(--cobalt); box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 6px rgb(43 89 255 / 0.18); transform: scale(1.08); }
.step.is-active h3 { color: var(--ink); }
.how__stage { position: sticky; top: 110px; align-self: start; display: grid; place-items: center; }
.device { width: min(340px, 100%); padding: 12px; border-radius: 44px; background: var(--ink); box-shadow: var(--shadow-lg); }
.device::before { content: ""; display: block; width: 84px; height: 6px; margin: 4px auto 12px; border-radius: 99px; background: #2c3a57; }
.device__screen { background: var(--card); border-radius: 34px; padding: 20px; display: grid; gap: 14px; }
.facts { display: grid; gap: 8px; font-size: 0.9rem; }
.facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 8px; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; }
.timeline { display: grid; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.timeline li { position: relative; padding-left: 18px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); }
.device .f-visit, .device .t-ack, .device .t-sched, .device .t-res, .device .f-reopen { display: none; }
.device:is([data-state="scheduled"], [data-state="resolved"]) :is(.f-visit) { display: grid; }
.device:is([data-state="scheduled"], [data-state="resolved"]) :is(.t-ack, .t-sched) { display: block; }
.device[data-state="resolved"] :is(.t-res, .f-reopen) { display: block; }
.device__screen > * { transition: opacity 200ms ease; }
.device.is-swapping .device__screen > * { opacity: 0.3; }

/* ---------- records ---------- */
.records { padding: var(--section) 0; }
.segmented { width: fit-content; max-width: var(--page); margin: 0 0 20px max((100% - 1180px) / 2, clamp(20px, 4vw, 48px)); display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: #e8edf7; overflow-x: auto; scrollbar-width: none; }
.segmented__item { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.segmented__item.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
@media (hover: hover) { .segmented__item:not(.is-on):hover { color: var(--ink); } }
.records__stage { width: var(--page); margin-inline: auto; }
.rec[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .rec.is-on { animation: rec-in 320ms var(--ease) both; } }
@keyframes rec-in { from { opacity: 0; transform: translateY(8px); } }
.doc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; }
.doc__head { display: flex; align-items: center; gap: 14px; }
.doc__head > div { display: grid; }
.doc__head b { font-size: 1.125rem; }
.doc__p { color: var(--muted); }
.doc__table { width: 100%; border-collapse: collapse; }
.doc__table th { text-align: left; font-size: 0.85rem; font-weight: 600; color: var(--muted); padding: 0 12px 10px 0; }
.doc__table td { padding: 14px 12px 14px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.push { width: min(440px, 100%); display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 26px; background: rgb(255 255 255 / 0.92); box-shadow: var(--shadow); }
.push__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--cobalt); display: grid; place-items: center; }
.push__icon svg { width: 20px; height: 26px; fill: var(--sun); }
.push b { display: block; }
.push p { color: var(--muted); font-size: 0.95rem; }

/* ---------- pricing ---------- */
.pricing { background: var(--cobalt); color: #fff; padding: var(--section) 0; }
.calc { width: var(--page); margin: 0 auto 24px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: rgb(10 20 60 / 0.22); display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center; }
.calc__label { font-weight: 700; font-size: 1.125rem; }
.calc__out { font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 1; letter-spacing: -0.03em; min-width: 3ch; text-align: right; }
.calc__range { grid-column: 1 / -1; width: 100%; height: 36px; margin: 0; accent-color: var(--sun); cursor: pointer; }
.calc__compare { grid-column: 1 / -1; color: #fff; }
.plans { width: var(--page); margin-inline: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { align-content: start; }
.plan { display: grid; gap: 6px; text-align: left; padding: 28px; border: 0; border-radius: var(--radius); background: rgb(10 20 60 / 0.22); color: #fff; transition: background-color 250ms ease, color 250ms ease, transform 350ms var(--ease), box-shadow 350ms var(--ease); }
.plan__name { font-weight: 700; font-size: 1.0625rem; }
.plan__price { font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; margin: 6px 0; }
.plan__price small { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.plan__units { font-weight: 700; }
.plan__text { color: #fff; }
.plan.is-on { background: var(--card); color: var(--ink); transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.plan.is-on .plan__text { color: var(--muted); }
@media (hover: hover) { .plan:not(.is-on):hover { background: rgb(10 20 60 / 0.32); } }
.plan:active { transform: scale(0.98); }
.plan.is-on:active { transform: translateY(-10px) scale(0.98); }
.plan:focus-visible { outline-color: var(--sun); }
.pricing__fine { width: var(--page); margin: 44px auto 0; font-size: 0.9rem; color: #fff; max-width: 1180px; }

/* ---------- join ---------- */
.join { background: var(--sun); padding: var(--section) 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; width: 100%; padding-inline: max(clamp(20px, 4vw, 48px), (100% - 1180px) / 2); }
.join__card { background: var(--card); border-radius: 32px; box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 48px); display: grid; gap: 14px; }
.join__card > p { color: var(--muted); font-size: 1.125rem; }
.form { display: grid; grid-template-columns: minmax(0, 1fr) 8rem; gap: 14px; margin-top: 10px; }
.field-group { display: grid; gap: 6px; }
.field-group label { font-weight: 700; font-size: 0.95rem; }
.field { width: 100%; min-height: 54px; padding: 0 18px; border: 2px solid var(--line); border-radius: 16px; background: var(--bg); font-size: 1.0625rem; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.field::placeholder, .signup input::placeholder { color: #5b6684; }
.field:focus { outline: none; border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 4px rgb(43 89 255 / 0.15); }
.field[aria-invalid="true"] { border-color: #c42b33; }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--cobalt); flex: none; cursor: pointer; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__status { grid-column: 1 / -1; }
.keyring { width: 100%; max-width: 340px; justify-self: center; overflow: visible; }
.kr-ring { fill: none; stroke: var(--ink); stroke-width: 8; }
.kr-tag path { stroke: var(--ink); stroke-width: 4; }
.kr-tag circle { fill: var(--sun); stroke: var(--ink); stroke-width: 3; }
.kr-tag text { font: 800 22px var(--text); text-anchor: middle; fill: var(--ink); }
.kr-tag--a path { fill: #fff; }
.kr-tag--b path { fill: var(--cobalt); }
.kr-tag--b text { fill: #fff; }
.kr-tag--c path { fill: var(--peach); }
.kr-tag--b { transform-box: fill-box; transform-origin: 50% 0; }
@media (prefers-reduced-motion: no-preference) {
  .kr-tag--b { animation: swing 6s ease-in-out 2; }
}
@keyframes swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* ---------- faq ---------- */
.faq { padding: var(--section) 0; background: var(--peach); }
.faq .section-head h2 { color: var(--ink); }
.faq__list { width: var(--page); margin-inline: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; align-items: start; }
details { background: var(--card); border-radius: 20px; box-shadow: 0 1px 2px rgb(92 59 44 / 0.08), 0 6px 16px -8px rgb(92 59 44 / 0.25); transition: box-shadow 200ms ease; }
details[open] { box-shadow: var(--shadow); }
summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.0625rem; position: relative; border-radius: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 9.5l4 4 4-4' fill='none' stroke='%230f1b33' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; transition: transform 250ms var(--ease); }
details[open] summary::after { transform: rotate(180deg); }
details p { padding: 0 22px 22px; color: var(--muted); }
summary::after { background-color: var(--peach); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #c9d2e6; padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot__inner { width: var(--page); margin-inline: auto; display: grid; gap: 18px; }
.brand--light { color: #fff; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links a, .foot__note a { color: #fff; text-decoration: none; font-weight: 600; }
@media (hover: hover) { .foot__links a:hover, .foot__note a:hover { text-decoration: underline; } }
.foot__note { font-size: 0.9rem; }

/* ---------- entrances: content is visible without script ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js.has-motion [data-intro]:not(.is-in) { opacity: 0; }
  .js.has-motion [data-reveal]:not(.is-in) { opacity: 0; }
}

/* ---------- tablet ---------- */
@media (max-width: 960px) {
  .scene { grid-template-columns: 1fr; }
  .scene__key { order: 2; padding: 0 20px; }
  .phone { order: 3; width: min(300px, 86vw); justify-self: center; margin-bottom: 28px; }
  .unit__label { font-size: 21px; }
  .nav__links { display: none; }
  .nav .btn--sm { margin-left: auto; }
  .tile--photos { grid-column: span 6; }
  .tile--sun, .tile--peach, .tile--mint { grid-column: span 3; }
  .tile--thread { grid-column: span 3; }
  .how__inner { grid-template-columns: 1fr; }
  .how__stage { position: static; }
  .device { width: min(300px, 82vw); }
  .step { padding-bottom: 2.5rem; }
  .step.is-active .step__dot, .step .step__dot { background: var(--cobalt); box-shadow: inset 0 0 0 3px var(--ink); transform: none; }
  .step h3 { color: var(--ink); }
  .join { grid-template-columns: 1fr; }
  .keyring { max-width: 220px; order: -1; }
  .faq__list { grid-template-columns: 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__title br { display: none; }
  .signup { border-radius: 26px; padding: 8px; }
  .signup__email { flex: 1 1 100%; min-height: 50px; background: var(--bg); }
  .signup__units { min-height: 50px; padding: 0 12px; }
  .signup__units input { width: 2.75rem; }
  .signup .btn { flex: 1; min-height: 50px; padding: 0 16px; }
  .hero__copy { gap: 14px; }
  .hero__fine { display: none; }
  .scene { margin-top: 1.5rem; width: 100%; }
  .building { width: 150%; margin-left: -25%; }
  .b-tree { display: none; }
  .unit__label { font-size: 22px; }
  .tile--photos { grid-template-columns: 1fr; }
  .tile--sun, .tile--peach, .tile--mint, .tile--thread { grid-column: span 6; }
  .device { width: min(260px, 72vw); }
  .device__screen { padding: 16px; gap: 10px; }
  .calc { grid-template-columns: 1fr auto; }
  .plans { grid-template-columns: 1fr; gap: 12px; }
  .plan.is-on, .plan.is-on:active { transform: none; }
  .form { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
  .doc__table th:nth-child(2), .doc__table td:nth-child(2) { display: none; }
}
