/* ==========================================================================
   MOTRYN — website styles
   Tokens follow the MOTRYN Design Pack (section 12, implementation reference).
   ========================================================================== */

:root {
  /* Colour */
  --white: #ffffff;
  --canvas: #f4f4f6;
  --ink: #17181b;
  --black: #111214;
  --line: #e4e4e7;
  --muted: #8e8e93;          /* icons, decorative metadata */
  --text-2: #5c5c63;         /* secondary text — muted, but passes AA on white and canvas */
  --ok: #16b364;
  --attn: #f59e0b;

  /* Shape */
  --r-control: 16px;
  --r-card: 22px;
  --r-pill: 999px;

  /* Elevation — felt rather than seen */
  --shadow-1: 0 1px 2px rgba(17, 18, 20, .04), 0 10px 24px -14px rgba(17, 18, 20, .14);
  --shadow-2: 0 2px 6px rgba(17, 18, 20, .05), 0 28px 56px -24px rgba(17, 18, 20, .28);

  /* Type */
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(16px, 4.2vw, 40px);
  --section-y: clamp(88px, 12vw, 168px);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .98;
  color: var(--ink);
}

.mega { font-size: clamp(44px, 6.8vw, 100px); }
.h2 { font-size: clamp(38px, 5.2vw, 72px); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 20px;
}
.eyebrow--light { color: rgba(255, 255, 255, .62); }

.body-lg {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 34em;
}

.fine {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(17, 18, 20, .5); }
.btn .icon { width: 16px; height: 16px; margin-top: -2px; }

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 62px;
  padding: 0 26px 0 20px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--r-control);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 14px 30px -16px rgba(17, 18, 20, .65);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.appstore:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 22px 40px -18px rgba(17, 18, 20, .7); }
.appstore:active { transform: translateY(0) scale(.985); }
.appstore__logo { width: 28px; height: 28px; margin-top: -3px; fill: currentColor; }
.appstore__text { display: flex; flex-direction: column; line-height: 1.05; }
.appstore__text small { font-size: 12px; font-weight: 500; letter-spacing: .01em; opacity: .85; }
.appstore__text strong { font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.appstore--lg { height: 68px; padding: 0 30px 0 22px; }
.appstore--lg .appstore__logo { width: 30px; height: 30px; }
.appstore--lg .appstore__text strong { font-size: 25px; }

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.ghost-link__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease-out), background-color .2s, color .2s;
}
.ghost-link__icon .icon { width: 18px; height: 18px; }
.ghost-link:hover .ghost-link__icon { transform: translateY(3px); background: var(--black); color: var(--white); border-color: var(--black); }

.text-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 4px;
  transition: color .2s;
}
.text-link:hover { color: var(--ink); }

/* ---------- Header ---------- */

.site-header { position: relative; z-index: 20; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand img { width: 128px; height: auto; }
.site-header__actions { display: flex; align-items: center; gap: 14px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(24px, 4vw, 48px) 0 clamp(72px, 9vw, 120px);
  overflow-x: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero__h1 { margin: 0; font: inherit; }
.hero__tag {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--white);
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-up .8s var(--ease-out) .05s forwards;
}
.hero__tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(23, 24, 27, .08);
}

.hero__title {
  display: block;
  font-size: clamp(44px, 5.5vw, 78px);
  letter-spacing: -.045em;
  margin-bottom: 28px;
}
@media (min-width: 961px) {
  .hero__title .line { white-space: nowrap; }
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.hero__title .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 110ms + 120ms);
}

.hero__lede {
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 30em;
  margin-bottom: 36px;
  opacity: 0;
  animation: fade-up .9s var(--ease-out) .42s forwards;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fade-up .9s var(--ease-out) .55s forwards;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--text-2);
  opacity: 0;
  animation: fade-up .9s var(--ease-out) .68s forwards;
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.hero__halo {
  position: absolute;
  width: min(560px, 118%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--canvas) 0%, var(--canvas) 62%, rgba(244, 244, 246, 0) 100%);
  opacity: 0;
  animation: halo 1.4s var(--ease-out) .2s forwards;
}
.phone {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 42px rgba(17, 18, 20, .2)) drop-shadow(0 6px 10px rgba(17, 18, 20, .08));
}
.hero__phone {
  position: relative;
  width: min(330px, 76%);
  opacity: 0;
  transform: translateY(48px) scale(.97);
  animation: phone-in 1.3s var(--ease-out) .28s forwards;
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  animation:
    card-in .8s var(--ease-out) var(--in, 1s) forwards,
    bob 7s ease-in-out calc(var(--in, 1s) + .8s) infinite;
}
.float-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--canvas);
  color: var(--ink);
}
.float-card__icon .icon { width: 20px; height: 20px; }
.float-card__icon--dark { background: var(--black); color: var(--white); }
.float-card__text { display: flex; flex-direction: column; line-height: 1.25; }
.float-card__text strong { font-size: 14px; font-weight: 600; }
.float-card__text small { font-size: 12.5px; color: var(--text-2); }

.status-dot { width: 8px; height: 8px; border-radius: 50%; margin-left: 4px; }
.status-dot--ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(22, 179, 100, .14); }
.status-dot--attn { background: var(--attn); box-shadow: 0 0 0 4px rgba(245, 158, 11, .16); }

.float-card--a { --in: 1.05s; top: 5%; left: -6%; }
.float-card--b { --in: 1.25s; top: 50%; right: -6%; }
.float-card--c { --in: 1.45s; bottom: 10%; left: 2%; }

/* ---------- Reg lookup ---------- */

.reg {
  background: var(--canvas);
  padding: clamp(72px, 9vw, 120px) 0;
}
.reg__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.reg__copy .h2 { margin-bottom: 20px; }

.reg__demo { display: grid; gap: 16px; justify-items: start; }

.plate {
  display: inline-flex;
  align-items: stretch;
  height: clamp(76px, 8vw, 104px);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 2px 0 rgba(17, 18, 20, .06), var(--shadow-2);
  overflow: hidden;
}
.plate__band {
  display: grid;
  place-items: end center;
  width: clamp(34px, 3.4vw, 44px);
  padding-bottom: 10px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
}
.plate__text {
  display: flex;
  align-items: center;
  min-width: 6.4ch;
  padding: 0 clamp(18px, 2vw, 28px);
  font-family: var(--font-display);
  font-stretch: 78%;
  font-weight: 700;
  font-size: clamp(50px, 5.6vw, 76px);
  letter-spacing: .02em;
  line-height: 1;
  color: var(--ink);
  white-space: pre;
}
.plate__caret {
  width: 3px;
  height: .78em;
  margin-left: 4px;
  background: var(--ink);
  border-radius: 2px;
  opacity: 0;
}
.reg__demo.is-typing .plate__caret { opacity: 1; animation: blink .9s steps(1) infinite; }

.lookup {
  position: relative;
  width: min(440px, 100%);
  min-height: 188px;
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  overflow: hidden;
}
.lookup__finding,
.lookup__result {
  position: absolute;
  inset: 0;
  padding: 22px 24px;
  transition: opacity .45s var(--ease), transform .55s var(--ease-out);
}
.lookup__finding {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  opacity: 0;
}
.lookup__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  animation: spin .8s linear infinite;
}
.lookup__skeleton { display: grid; gap: 10px; width: 100%; margin-top: 10px; }
.lookup__skeleton i {
  display: block;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--canvas) 0%, #ebebee 40%, var(--canvas) 80%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.lookup__skeleton i:nth-child(1) { width: 62%; height: 20px; }
.lookup__skeleton i:nth-child(2) { width: 88%; }
.lookup__skeleton i:nth-child(3) { width: 48%; }

.lookup__result { opacity: 1; }
.lookup__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lookup__head strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.lookup__head small { font-size: 14px; color: var(--text-2); }
.lookup__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 28px; margin-bottom: 16px; }
.lookup__facts dt { font-size: 12px; color: var(--text-2); }
.lookup__facts dd { font-size: 15px; font-weight: 600; }
.lookup__added { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding-top: 14px; border-top: 1px solid var(--line); }
.lookup__added .icon { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.2; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
}
.pill--ok { background: rgba(22, 179, 100, .12); color: #0e8a4b; }

/* demo states (set by JS) */
.reg__demo[data-state="typing"] .lookup__result,
.reg__demo[data-state="finding"] .lookup__result { opacity: 0; transform: translateY(10px); }
.reg__demo[data-state="finding"] .lookup__finding { opacity: 1; }

/* ---------- Sections ---------- */

.section { padding: var(--section-y) 0; }
.section--canvas { background: var(--canvas); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 24px clamp(32px, 5vw, 80px);
  margin-bottom: clamp(56px, 7vw, 96px);
}
.section-head__lede { padding-bottom: .4em; }

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}
.split--reverse .split__copy { order: 2; }
.split--reverse .split__media { order: 1; }
.split__copy .h2 { margin-bottom: 24px; }
.split__media { position: relative; }

/* ---------- Timeline + odometer ---------- */

.tl {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
}
.tl__sticky { position: sticky; top: 40px; }

.odo {
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 18px 14px 14px;
  background: var(--black);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--shadow-2);
  --cell: clamp(44px, 4.4vw, 60px);
}
.odo__drums { display: flex; gap: 4px; }
.odo__drum {
  position: relative;
  width: calc(var(--cell) * .66);
  height: var(--cell);
  overflow: hidden;
  border-radius: 7px;
  background: #1d1e22;
  color: var(--white);
}
.odo__drum::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, .6) 100%);
}
.odo__drum--tenths { background: var(--white); color: var(--ink); margin-left: 6px; }
.odo__drum--tenths::after { background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, .28) 100%); }
.odo__strip { display: flex; flex-direction: column; will-change: transform; }
.odo__strip span {
  display: grid;
  place-items: center;
  height: var(--cell);
  font-family: var(--font-display);
  font-stretch: 72%;
  font-weight: 600;
  font-size: calc(var(--cell) * .72);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.odo.is-rolling .odo__drum:nth-last-child(-n + 3) .odo__strip { filter: blur(1.2px); }
.odo__unit {
  padding-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.odo__caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 20px 0 28px;
  min-height: 3.2em;
}
.odo__caption span { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.odo__caption strong { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.chip:hover { border-color: #cfcfd4; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }

.tl__list { position: relative; }
.tl__list::before,
.tl__fill {
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  width: 2px;
  border-radius: 2px;
}
.tl__list::before { bottom: 40px; background: var(--line); }
.tl__fill {
  height: var(--fill, 0px);
  background: var(--ink);
  transition: height .7s var(--ease-out);
}

.tl-item {
  position: relative;
  padding: 0 0 clamp(36px, 6vh, 64px) 76px;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item[hidden] { display: none; }

.tl-item__node {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: background-color .35s var(--ease), color .35s, border-color .35s, transform .45s var(--ease-out);
}
.tl-item__node .icon { width: 20px; height: 20px; }

.tl-item__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.tl-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 16px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease-out), border-color .3s;
}
.tl-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.tl-card p { font-size: 14.5px; color: var(--text-2); }
.tl-card__cost { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tl-card__tag {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
}
.tl-card__tag .icon { width: 14px; height: 14px; }
.tl-card__tag--ok { color: #0e8a4b; }
.tl-card__tag--ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.tl-card__tag--attn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--attn); }

.tl-item.is-active .tl-item__node {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  transform: scale(1.08);
}
.tl-item.is-active .tl-card {
  box-shadow: var(--shadow-2);
  border-color: #d6d6db;
  transform: translateX(6px);
}

.tl-item--next .tl-card {
  background: var(--canvas);
  border-style: dashed;
  border-color: #cfcfd4;
  box-shadow: none;
}
.tl-item--next.is-active .tl-card { box-shadow: none; }

/* ---------- Scan ---------- */

.sources { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 14px; }
.sources li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px 0 12px;
  border-radius: var(--r-control);
  background: var(--canvas);
  font-size: 15px;
  font-weight: 500;
}
.sources .icon { width: 20px; height: 20px; color: var(--ink); }

.scan-stage {
  position: relative;
  padding: 24px 0 120px;
  max-width: 560px;
  margin-inline: auto;
}

.invoice {
  position: relative;
  width: min(420px, 88%);
  padding: 30px 30px 26px;
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  transform: rotate(-2.2deg);
  font-size: 13px;
  color: #3b3b40;
  font-variant-numeric: tabular-nums;
}
.viewfinder {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid var(--ink);
  opacity: .9;
}
.viewfinder--tl { top: -14px; left: -14px; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.viewfinder--tr { top: -14px; right: -14px; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.viewfinder--bl { bottom: -14px; left: -14px; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.viewfinder--br { bottom: -14px; right: -14px; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }

.invoice__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.invoice__brand {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .02em;
  color: var(--ink);
}
.invoice__no { font-size: 12px; color: var(--muted); }
.invoice__addr { display: grid; gap: 6px; margin-bottom: 20px; }
.invoice__addr i { display: block; height: 6px; border-radius: 3px; background: #ececef; }
.invoice__addr i:first-child { width: 46%; }
.invoice__addr i:last-child { width: 32%; }
.invoice__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px; padding: 12px 0; border-block: 1px solid var(--line); margin-bottom: 12px; }
.invoice__meta span { display: block; font-size: 11px; color: var(--muted); }
.invoice__meta b { font-weight: 600; color: var(--ink); }
.invoice__lines { width: 100%; border-collapse: collapse; }
.invoice__lines td { padding: 5px 0; }
.invoice__lines td:last-child { text-align: right; }
.invoice__sub td { padding-top: 10px; color: var(--muted); }
.invoice__total td { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); font-size: 15px; }

.hit {
  position: relative;
  border-radius: 4px;
}
.hit::after {
  content: "";
  position: absolute;
  inset: -3px -5px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  background: rgba(23, 24, 27, .05);
  opacity: 0;
  transform: scale(.9);
}
.scan-stage.is-scanning .hit::after { animation: hit .35s var(--ease-out) var(--t) forwards; }

.scan-beam {
  position: absolute;
  left: -16px;
  right: -16px;
  top: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 6px 22px 4px rgba(23, 24, 27, .16);
  opacity: 0;
}
.scan-stage.is-scanning .scan-beam { animation: beam 1.6s var(--ease) .1s forwards; }

.extract {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(300px, 74%);
  padding: 18px 20px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-2);
}
.extract__title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.extract__title .icon { width: 16px; height: 16px; }
.extract ul { display: grid; }
.extract li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  opacity: .18;
  transform: translateX(-6px);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out);
}
.extract li span { color: var(--text-2); }
.extract li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.extract__saved {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out);
}
.extract__saved .icon { width: 17px; height: 17px; color: var(--ok); stroke-width: 2.2; }
.scan-stage.is-scanning .extract li,
.scan-stage.is-scanning .extract__saved {
  opacity: 1;
  transform: none;
  transition-delay: var(--t);
}

/* ---------- Assistant ---------- */

.prompts { display: grid; gap: 10px; margin-top: 32px; max-width: 440px; }
.prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: var(--r-control);
  border: 1px solid var(--line);
  background: var(--white);
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease-out), box-shadow .25s;
}
.prompt::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 1.75px solid currentColor;
  border-top: 1.75px solid currentColor;
  transform: rotate(45deg);
  opacity: .45;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.prompt:hover { transform: translateX(3px); box-shadow: var(--shadow-1); }
.prompt:hover::after { transform: translateX(2px) rotate(45deg); opacity: .8; }
.prompt[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }

.assistant__media { display: grid; justify-items: center; padding-bottom: 40px; }
.assistant__phone { width: min(320px, 74%); }

.chat {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(340px, 86%);
  padding: 16px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-2);
}
.chat__q {
  justify-self: end;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px 18px 6px 18px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: opacity .3s var(--ease), transform .4s var(--ease-out);
}
.chat__a { display: flex; align-items: flex-start; gap: 10px; min-height: 64px; }
.chat__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--canvas);
}
.chat__avatar .icon { width: 15px; height: 15px; }
.chat__a p {
  padding: 10px 14px;
  border-radius: 18px 18px 18px 6px;
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.45;
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.chat__typing {
  display: none;
  gap: 4px;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 18px 18px 18px 6px;
  background: var(--canvas);
}
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s ease-in-out infinite; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
.chat.is-thinking .chat__typing { display: inline-flex; }
.chat.is-thinking .chat__a p { display: none; }
.chat.is-asking .chat__q { opacity: 0; transform: translateY(6px); }

/* ---------- Project MOTRYN (the product inside the product) ---------- */

.project {
  position: relative;
  isolation: isolate;
  background: var(--black);
  color: var(--white);
  padding: var(--section-y) 0;
  overflow: hidden;
}
.project__bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(820px, 92vh);
  z-index: -1;
}
.project__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
  transform: scale(1.06);
  transition: transform 1.8s var(--ease-out);
}
.project.is-in .project__bg img { transform: scale(1); }
.project__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 18, 20, .35) 0%, rgba(17, 18, 20, .55) 45%, var(--black) 100%);
}
.project .display { color: var(--white); }
.project .body-lg { color: rgba(255, 255, 255, .72); }
.project :focus-visible { outline-color: var(--white); }

.project__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}
.project__media { position: relative; display: grid; justify-items: start; padding-bottom: 72px; }
.project__phone { width: min(310px, 66%); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)); }

.build {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(330px, 78%);
  padding: 20px;
  background: rgba(30, 31, 35, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-card);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.build__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.build__head strong { display: block; font-size: 17px; font-weight: 600; }
.build__head small { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.build__count { flex: none; font-size: 12.5px; color: rgba(255, 255, 255, .7); padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); }
.build__count b { color: var(--white); }
.build__budget { margin-bottom: 14px; }
.build__budget-row { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.build__budget-row b { color: var(--white); font-weight: 600; }
.bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--w, 0%); border-radius: 3px; background: var(--white); transition: width 1.4s var(--ease-out); }
.parts { display: grid; }
.parts li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.status {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  transition: background-color .4s, color .4s, border-color .4s;
}
.status--installed { background: var(--white); color: var(--ink); border: 1px solid var(--white); }
.status--purchased { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .55); }
.status--planned { background: transparent; color: rgba(255, 255, 255, .55); border: 1px dashed rgba(255, 255, 255, .3); }

.steps { display: grid; gap: 4px; margin-bottom: 36px; }
.steps li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.steps__n {
  font-family: var(--font-display);
  font-stretch: 72%;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .45);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.steps p { font-size: 15.5px; color: rgba(255, 255, 255, .66); max-width: 30em; }

.types { display: flex; flex-wrap: wrap; gap: 8px; }
.types li {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  transition: background-color .2s, color .2s;
}
.types li:hover { background: var(--white); color: var(--ink); }

/* ---------- Passport ---------- */

.passport__media { display: grid; justify-items: center; }
.passport__phone { width: min(320px, 74%); }

.ticks { display: grid; gap: 2px; margin: 32px 0 24px; max-width: 440px; }
.ticks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
}
.ticks__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--muted);
  transition: background-color .35s var(--ease), color .35s;
  transition-delay: var(--t);
}
.ticks__mark .icon { width: 15px; height: 15px; stroke-width: 2.4; transform: scale(.4); opacity: 0; transition: transform .45s var(--ease-out), opacity .25s; transition-delay: var(--t); }
.ticks.is-in .ticks__mark { background: var(--ok); color: var(--white); }
.ticks.is-in .ticks__mark .icon { transform: none; opacity: 1; }

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  border-radius: 28px;
  background: var(--canvas);
  overflow: hidden;
}
.tile__copy { padding: 28px 28px 0; }
.tile h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.tile h3 .icon { width: 22px; height: 22px; }
.tile p { font-size: 15px; color: var(--text-2); max-width: 26em; }
.tile__shot {
  position: relative;
  margin: 24px 28px 0;
  flex: 1;
  min-height: 240px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.tile__shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  transition: transform .8s var(--ease-out);
}
.tile:hover .tile__shot img { transform: translateY(-14px); }

.tile--dark { background: var(--black); color: var(--white); }
.tile--dark p { color: rgba(255, 255, 255, .66); }
.tile .tile__statement {
  margin-top: auto;
  padding: 28px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(34px, 3.4vw, 46px);
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--white);
  max-width: none;
}

/* ---------- FAQ ---------- */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}
.faq__head { position: sticky; top: 40px; }
.faq__head .h2 { margin-bottom: 20px; }
.faq__head a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 { font-size: clamp(17px, 1.4vw, 19px); font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.faq__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--canvas);
  transition: background-color .25s, transform .4s var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.75px;
  border-radius: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .4s var(--ease-out), background-color .25s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item summary:hover .faq__icon { background: #e9e9ec; }
.faq__item[open] .faq__icon { background: var(--black); transform: rotate(180deg); }
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: var(--white); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p {
  max-width: 40em;
  padding: 0 56px 24px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}
.faq__item[open] p { animation: fade-up .45s var(--ease-out); }

/* ---------- Final CTA ---------- */

.cta { text-align: center; padding-bottom: clamp(104px, 11vw, 150px); }
.cta__inner { display: grid; justify-items: center; }
.cta__mark { width: clamp(88px, 9vw, 120px); margin-bottom: 36px; will-change: transform; }
.cta__title { max-width: 12ch; margin-bottom: 44px; }
.cta__fine { margin-top: 20px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 120px; }
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer__brand img { width: 120px; margin-bottom: 12px; }
.site-footer__brand p { font-size: 14px; color: var(--text-2); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer__nav a { font-size: 15px; font-weight: 500; color: var(--text-2); padding: 6px 0; transition: color .2s; }
.site-footer__nav a:hover { color: var(--ink); }
.site-footer__base {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}
.site-footer__base p:last-child { max-width: 46em; }

/* ---------- Dock (floating pill nav) ---------- */

.dock {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  transform: translate(-50%, calc(100% + 40px));
  transition: transform .6s var(--ease-out);
}
.dock.is-visible { transform: translate(-50%, 0); }
.dock__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: 0 2px 6px rgba(17, 18, 20, .05), 0 18px 40px -16px rgba(17, 18, 20, .3);
}
.dock__indicator {
  position: absolute;
  top: 6px;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--black);
  transform: translateX(var(--x, 6px));
  transition: transform .5s var(--ease-out), opacity .3s;
}
.dock__item {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--muted);
  transition: color .3s;
}
.dock__item .icon { width: 22px; height: 22px; }
.dock__item:hover { color: var(--ink); }
.dock__item.is-active { color: var(--white); }
.dock__item::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .2s, transform .25s var(--ease-out);
}
.dock__item:hover::after,
.dock__item:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.dock__divider { width: 1px; height: 26px; margin: 0 6px; background: var(--line); }
.dock__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px 0 14px;
  border-radius: var(--r-pill);
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .25s var(--ease-out);
}
.dock__cta:hover { transform: scale(1.03); }
.dock__cta .icon { width: 17px; height: 17px; margin-top: -2px; }

/* ---------- Cookie consent ---------- */

.consent {
  position: fixed;
  left: var(--gutter);
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  width: min(400px, calc(100% - var(--gutter) * 2));
  padding: 22px 22px 20px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-2);
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s var(--ease), transform .5s var(--ease-out), bottom .6s var(--ease-out), visibility 0s linear .5s;
}
.consent.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .3s var(--ease), transform .5s var(--ease-out), bottom .6s var(--ease-out), visibility 0s;
}
/* Sit above the floating dock, never over it */
body:has(.dock.is-visible) .consent { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 72px); }
.consent__title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 6px; }
.consent__text { font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.consent__text a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.consent__text a:hover { text-decoration-thickness: 2px; }
.consent__status { margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.consent__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.consent__btn {
  height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.consent__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(17, 18, 20, .5); }
.consent__btn:active { transform: scale(.98); }

@media print { .consent { display: none; } }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */

@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes halo { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
@keyframes phone-in { to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes beam {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes hit { to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-3px); opacity: 1; } }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .float-card--b { right: -2%; }
  .tl { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__head { position: static; }

  .hero__grid,
  .reg__grid,
  .split,
  .project__grid,
  .section-head { grid-template-columns: minmax(0, 1fr); }

  .hero__copy { max-width: 640px; }
  .hero__visual { min-height: 0; padding: 24px 0 8px; }
  .hero__phone { width: min(300px, 72%); }
  .float-card--a { top: 12%; left: 0; }
  .float-card--b { top: 48%; right: 0; }
  .float-card--c { bottom: 8%; left: 2%; }

  .split--reverse .split__copy,
  .split--reverse .split__media { order: 0; }
  .split__media { max-width: 560px; width: 100%; margin-inline: auto; }

  .tl { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tl__aside { position: sticky; top: 0; z-index: 5; margin-inline: calc(var(--gutter) * -1); }
  .tl__sticky {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 12px var(--gutter);
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .odo { --cell: 38px; padding: 8px 12px 8px 8px; border-radius: 14px; gap: 8px; }
  .odo__drum { border-radius: 5px; }
  .odo__unit { display: none; }
  .odo__caption { margin: 0; min-height: 0; flex: 1; min-width: 0; }
  .odo__caption span { font-size: 12.5px; }
  .odo__caption strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chips { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); width: calc(100% + var(--gutter) * 2); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; height: 34px; padding: 0 14px; font-size: 13.5px; }

  .project__media { justify-items: center; }
  .project__phone { width: min(290px, 66%); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header__inner { height: 72px; }
  .brand img { width: 112px; }
  .site-header__actions .btn { display: none; }

  .hero__title { font-size: clamp(40px, 11.6vw, 56px); }
  .hero__ctas { gap: 18px; }
  .hero__phone { width: min(270px, 70%); }
  .float-card { padding: 8px 12px 8px 8px; gap: 10px; border-radius: 15px; }
  .float-card__icon { width: 32px; height: 32px; border-radius: 10px; }
  .float-card__icon .icon { width: 17px; height: 17px; }
  .float-card__text strong { font-size: 12.5px; }
  .float-card__text small { font-size: 11.5px; }
  .float-card--a { top: 8%; left: 0; }
  .float-card--b { top: 46%; right: 0; }
  .float-card--c { bottom: 6%; left: 0; }

  .plate__text { font-size: clamp(42px, 13vw, 56px); }
  .faq__item p { padding-right: 0; }

  .tl-item { padding-left: 60px; }
  .tl-item__node { width: 40px; height: 40px; }
  .tl__list::before, .tl__fill { left: 19px; }
  .tl-card { padding: 16px 18px; }
  .tl-card h3 { font-size: 17px; }
  .tl-card__cost { font-size: 16px; }
  .tl-item.is-active .tl-card { transform: none; }

  .invoice { padding: 22px 20px 20px; font-size: 12px; width: calc(100% - 36px); margin-left: 16px; }
  .extract { width: 82%; }
  .scan-stage { padding-bottom: 150px; }

  .chat { width: 92%; }

  .build { width: 88%; }
  .project__media { padding-bottom: 150px; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 420px; }

  .dock__item { width: 42px; height: 42px; }
  .dock__indicator { width: 42px; height: 42px; }
  .dock__cta { height: 42px; padding: 0 14px 0 12px; }
  .dock__cta span { display: none; }
  .dock__cta::after { content: "Get"; }
  .dock__divider { margin: 0 4px; }

  .consent { padding: 18px 18px 16px; }
  .consent__btn { font-size: 14.5px; }
}

@media (min-width: 641px) and (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .float-card--c { display: none; }
  .dock__item { width: 40px; height: 40px; }
  .dock__indicator { width: 40px; height: 40px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .consent { transform: none; }
}

/* ---------- Legal pages (terms, 404) ---------- */

.legal { padding: clamp(32px, 6vw, 72px) 0 var(--section-y); }
.legal__wrap { max-width: calc(1040px + var(--gutter) * 2); }
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s, gap .25s var(--ease-out);
}
.legal__back:hover { color: var(--ink); gap: 12px; }
.legal__back .icon { width: 18px; height: 18px; }
.legal__head { padding-bottom: 32px; margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.legal__title { font-size: clamp(40px, 6.4vw, 72px); margin-bottom: 18px; }
.legal__updated { font-size: 14px; color: var(--text-2); }
.legal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

/* Segmented control, as in the app's "This month / This year / All time" switch */
.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--canvas);
}
.segmented a {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.segmented a:hover { color: var(--ink); }
.segmented a[aria-current="page"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-1); }

.legal__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 88px);
}
.legal__toc { position: sticky; top: 32px; }
.legal__toc .eyebrow { margin-bottom: 14px; }
.legal__toc ol { display: grid; gap: 2px; }
.legal__toc a {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
  transition: color .2s;
}
.legal__toc a span {
  flex: none;
  min-width: 2ch;
  font-family: var(--font-display);
  font-stretch: 72%;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.legal__toc a:hover,
.legal__toc a.is-active { color: var(--ink); }
.legal__toc a.is-active { font-weight: 600; }
.legal__toc a.is-active span { color: var(--ink); }

.legal__lead { font-size: 19px; line-height: 1.6; color: var(--ink); }
.legal__num {
  flex: none;
  min-width: 2ch;
  font-family: var(--font-display);
  font-stretch: 72%;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.legal__body { font-size: 17px; line-height: 1.7; color: #2c2d31; }
.legal__body > * + * { margin-top: 1em; }
.legal__body h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  scroll-margin-top: 24px;
  margin-top: 2.2em;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
  color: var(--ink);
}
.legal__body h3 { margin-top: 1.6em; font-size: 17px; font-weight: 600; color: var(--ink); }
.legal__body h3 + p { margin-top: .35em; }

@media (max-width: 960px) {
  .legal__layout { grid-template-columns: minmax(0, 1fr); }
  .legal__toc { display: none; }
}
@media (max-width: 640px) {
  .legal__meta { flex-direction: column; align-items: flex-start; }
  .legal__lead { font-size: 18px; }
  .legal__body { font-size: 16px; }
  .legal__body h2 { font-size: 20px; gap: 12px; }
}
.legal__body ul,
.legal__body ol { padding-left: 1.3em; }
.legal__body ul { list-style: disc; }
.legal__body ol { list-style: decimal; }
.legal__body li + li { margin-top: .4em; }
.legal__body a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal__body a:hover { text-decoration-thickness: 2px; }
.legal__body strong { color: var(--ink); }

.page-legal .site-footer { padding-bottom: 56px; }

.notfound { min-height: 60vh; display: grid; align-content: center; justify-items: start; gap: 20px; }
.notfound .display { font-size: clamp(44px, 8vw, 96px); }
