/* Vacuum v2: Die Carz system. Off-white page, inset square colour blocks,
   top-down objects with hard polygon shadows that cross the block seams. */

:root {
  --page: #F2F1EF;
  --ink: #141414;
  --grey: #9C9A97;
  --line: #E2E0DC;
  --blue: #0A5FE0;
  --blue-press: #0850BF;

  /* 1u = 1px at >=1440px wide, scales down to .45px on phones.
     Every object size, offset and shadow is expressed in u. */
  --u: clamp(.45px, .0694vw, 1px);

  --blk-w: min(1240px, calc(100% - 160px));
  --gap: 80px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html, body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 0, "cv11" 1;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 14px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 26px;
  font: 600 18px/1 var(--font); letter-spacing: -.012em;
  text-decoration: none; border: 0; border-radius: 0;
  transition: transform .14s cubic-bezier(.2, .7, .2, 1), box-shadow .14s cubic-bezier(.2, .7, .2, 1), background-color .14s;
  will-change: transform;
}
.btn--white { background: #fff; color: var(--ink); }
.btn--blue { background: var(--blue); color: #fff; }
/* crisp hover: lift up-right and drop the same hard down-left shadow as the objects */
.btn:hover { transform: translate(3px, -3px); box-shadow: -5px 5px 0 #000; }
.btn:active { transform: none; box-shadow: none; }
.btn--blue:active { background: var(--blue-press); }
.blk .btn:focus-visible { outline-color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 16px; }

/* ---------------------------------------------------------------- header */
.hdr {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: var(--blk-w); margin: 0 auto; height: 72px;
  position: relative; z-index: 10;
}
.hdr::after { /* full-bleed hairline like Die Carz */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 100vw; height: 1px;
  transform: translateX(-50%); background: var(--line);
}
.hdr__left { display: flex; gap: 28px; }
.hdr a.nav { font-weight: 500; font-size: 16px; text-decoration: none; letter-spacing: -.01em; }
.hdr a.nav:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.hdr__right { display: flex; gap: 22px; align-items: center; justify-content: flex-end; }
.hdr .btn { min-height: 44px; padding: 0 18px; font-size: 16px; }

.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.logo span {
  font-weight: 800; font-size: 23px; line-height: 1; letter-spacing: -.035em;
  text-transform: uppercase; font-style: normal;
  display: inline-block;
  transform: scaleX(.94); transform-origin: left center;
}

/* ---------------------------------------------------------------- blocks */
.page { display: block; padding-top: 40px; }
.blk {
  position: relative;            /* no z-index: objects must stack above later blocks */
  width: var(--blk-w); margin: 0 auto;
  background: var(--c); color: #fff;
}
.blk + .blk { margin-top: var(--gap); }
.tint { color: var(--t); }

.hd {
  font-weight: 800; letter-spacing: -.045em; line-height: 1.0;
  text-wrap: balance;
}
.hd > span { display: block; }

/* hero */
.hero {
  min-height: calc(540px + 340 * var(--u));
  padding: 124px 24px 0;
  text-align: center;
}
.hero h1 { font-size: clamp(40px, 5.55vw, 80px); line-height: .98; }
.hero .tint {
  max-width: 640px; margin: 26px auto 0;
  font-size: clamp(19px, 1.95vw, 27px); font-weight: 600; letter-spacing: -.025em; line-height: 1.18;
  text-wrap: balance;
}
.hero .btn { margin-top: 46px; }
.avail {
  margin-top: 14px; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 6px;
}
.avail svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.avail .pf { display: inline-flex; align-items: center; gap: 5px; }

/* feature blocks */
.feat { height: calc(170px + var(--ui-h)); --ui-h: 560px; padding-top: 170px; }
.feat__in {
  width: min(1000px, calc(100% - 96px)); margin: 0 auto; height: 100%;
  display: grid; grid-template-columns: 1fr 400px; column-gap: 80px;
}
.feat__copy { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 104px; position: relative; z-index: 1; }
.feat h2 { font-size: clamp(36px, 4.05vw, 58px); }
.feat .tint {
  margin-top: 20px; max-width: 440px;
  font-size: clamp(19px, 1.95vw, 28px); font-weight: 600; letter-spacing: -.025em; line-height: 1.14;
}
.feat .body { margin-top: 20px; max-width: 400px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.feat .btn, .feat .soon { margin-top: auto; }
.feat__ui {
  position: relative; z-index: 1;
  height: var(--ui-h); overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #F2F2F7;
}
.feat__ui img { width: 100%; height: auto; }

.label {
  font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.soon {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; color: var(--t);
}
.soon::before { content: ""; width: 9px; height: 9px; background: var(--t); flex: none; }

.prices { margin-top: 28px; width: 100%; max-width: 440px; }
.prices div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-top: 1.5px solid rgba(255, 255, 255, .28);
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: -.02em;
}
.prices div:last-child { border-bottom: 1.5px solid rgba(255, 255, 255, .28); }
.prices dd { text-align: right; }
.small { margin-top: 14px; font-size: 15px; color: var(--t); }

/* end */
.end {
  position: relative; text-align: center;
  padding: 150px 24px 330px;
  color: var(--grey);
}
.end h2 { font-size: clamp(46px, 7.3vw, 106px); line-height: .96; letter-spacing: -.05em; }
.end p { margin-top: 22px; font-size: clamp(18px, 1.75vw, 25px); font-weight: 600; letter-spacing: -.025em; }
.end .btn { margin-top: 36px; }

/* footer */
.ftr { position: relative; background: var(--blue); color: #fff; padding: 84px 0 64px; font-size: 14px; }
.ftr__in {
  width: min(1000px, calc(100% - 96px)); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.25fr auto auto; column-gap: 72px;
}
.ftr ul { display: grid; gap: 6px; }
.ftr a { text-decoration: none; font-weight: 500; }
.ftr a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ftr :focus-visible { outline-color: #fff; }
.ftr__copy { grid-column: 1 / -1; margin-top: 64px; font-weight: 500; opacity: .9; }
.ftr__apps { grid-column: 1; }
.ftr__help { grid-column: 3; }
.ftr__legal { grid-column: 4; }

/* ---------------------------------------------------------------- objects */
.obj {
  --W: calc(var(--w) * var(--u));
  --H: calc(var(--h) * var(--u));
  position: absolute; z-index: 3; pointer-events: none;
  width: var(--W); height: var(--H);
  left: calc(var(--x) - var(--W) / 2);
  top: calc(var(--ay) + var(--dy) * var(--u) - var(--H) / 2);
  transform: translate3d(0, var(--py, 0px), 0) rotate(calc(var(--rot) * 1deg + var(--pr, 0deg)));
}
.obj img, .obj svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.obj svg { overflow: visible; }
.obj polygon { fill: #000; }

/* entrance: only when JS is running and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .obj { opacity: 0; transition: opacity .6s ease-out, translate .9s cubic-bezier(.2, .7, .2, 1), rotate .9s cubic-bezier(.2, .7, .2, 1); translate: 0 36px; rotate: -5deg; }
  .js .obj.in { opacity: 1; translate: 0 0; rotate: 0deg; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  :root { --blk-w: calc(100% - 48px); }
  .feat__in { grid-template-columns: 1fr 340px; column-gap: 56px; }
}

@media (max-width: 960px) {
  .hero { min-height: 0; padding: 92px 24px calc(330 * var(--u) + 150px); }
  .feat { height: auto; padding: 160px 0 0; --ui-h: 440px; }
  .feat__in { display: block; width: calc(100% - 64px); }
  .feat__copy { padding-bottom: 0; }
  .feat .btn, .feat .soon { margin-top: 30px; }
  .feat__ui { width: min(100%, 360px); margin: 52px auto 0; }
  .obj {
    left: calc(var(--mx, var(--x)) - var(--W) / 2);
    top: calc(var(--may, var(--ay)) + var(--mdy, var(--dy)) * var(--u) - var(--H) / 2);
  }
  .end { padding: 150px 24px calc(330 * var(--u) + 120px); }
  .ftr__in { grid-template-columns: 1fr 1fr 1fr; row-gap: 28px; }
  .ftr__apps { grid-column: 1; }
  .ftr__help { grid-column: 2; }
  .ftr__legal { grid-column: 3; }
  .ftr { padding-top: 140px; }
}

@media (max-width: 760px) {
  :root { --blk-w: calc(100% - 24px); --gap: 44px; }
  .page { padding-top: 12px; }
  .hdr { grid-template-columns: auto 1fr; height: 64px; }
  .hdr__left, .hdr__right .nav { display: none; }
  .hdr .logo { grid-column: 1; grid-row: 1; }
  .hdr__right { grid-column: 2; grid-row: 1; }
  .hero { padding-top: 64px; padding-left: 20px; padding-right: 20px; }
  .hero h1 > span { display: inline; }
  .hero .tint { margin-top: 20px; }
  .hero .btn { margin-top: 32px; }
  .feat { padding-top: 132px; --ui-h: 380px; }
  .feat__in { width: calc(100% - 44px); }
  .hd > span { display: inline; }
  .feat__ui { margin-top: 40px; width: min(100%, 320px); }
  .ftr__in { grid-template-columns: 1fr 1fr; width: calc(100% - 48px); column-gap: 24px; }
  .ftr__apps { grid-column: 1; }
  .ftr__help { grid-column: 2; }
  .ftr__legal { grid-column: 1; }
  .ftr__copy { margin-top: 36px; }
  .ftr a[href^="mailto"] { word-break: break-all; }
}

@media (max-width: 380px) {
  .btn { padding: 0 20px; }
  .hdr .btn { padding: 0 14px; font-size: 15px; }
}

/* ---------- Legal and support pages ---------- */
.doc-wrap { padding: clamp(48px, 8vw, 110px) 20px clamp(80px, 10vw, 140px); }
.doc { max-width: 700px; margin: 0 auto; color: #2a2a2a; font-size: 17px; line-height: 1.65; }
.doc h1 { font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-size: clamp(44px, 7vw, 76px); color: #111; margin: 0; }
.doc .updated { color: #8a8885; font-size: 15px; margin: 18px 0 44px; }
.doc h2 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-size: clamp(24px, 3vw, 30px); color: #111; margin: 52px 0 14px; }
.doc p, .doc li { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 18px; }
.doc a:not(.btn) { color: #0A5FE0; text-decoration: underline; text-underline-offset: 3px; }
.doc .box { background: #fff; border-left: 4px solid #0A5FE0; padding: 20px 22px; margin: 26px 0; }
.doc.nf { text-align: center; }
.doc.nf .btn { margin-top: 10px; }

/* ---------------------------------------------------------------- motion layer (motion.js adds .mo) */
:root {
  --ex: cubic-bezier(.16, 1, .3, 1);                 /* ease-out expo */
  --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* Blocks open from a soft rounded card into their square: the colour lives on a layer so the
   block itself never gets a transform (that would trap the seam-crossing prints). */
.mo .blk { background: transparent; }
.mo .blk::before {
  content: ""; position: absolute; inset: 0; background: var(--c);
  transform: translateY(46px) scale(.955); border-radius: 40px;
  transition: transform 1.25s var(--ex), border-radius 1.25s var(--ex);
}
.mo .blk.rv::before { transform: none; border-radius: 0; }
.mo .blk > :not(.obj) { position: relative; }

/* Headline lines rise out of their own masks, one after another. */
.mo .hd > span { overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.mo .hd .ln { display: inline-block; transform: translateY(108%); transition: transform 1.05s var(--ex); }
.mo .rv .hd .ln { transform: none; }

/* Copy, buttons and small print follow the headline. */
.mo .blk :is(.tint, .body, .btn, .avail, .soon, .prices, .small),
.mo .end > :is(p, .btn) {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s ease-out, transform 1s var(--ex);
}
.mo .rv :is(.tint, .body, .btn, .avail, .soon, .prices, .small),
.mo .end.rv > :is(p, .btn) { opacity: 1; transform: none; }
.mo .rv .tint { transition-delay: .22s; }
.mo .rv .body { transition-delay: .3s; }
.mo .rv :is(.btn, .avail, .soon, .prices, .small) { transition-delay: .38s; }
.mo .end.rv > p { transition-delay: .25s; }
.mo .end.rv > .btn { transition-delay: .35s; }

/* App screens rise out of the bottom of their block, then drift against the scroll. */
.mo .feat__ui { transform: translate3d(0, var(--py, 0px), 0); }
.mo .feat__ui img { transform: translateY(26%) scale(.94); opacity: 0; transition: transform 1.3s var(--ex) .12s, opacity .7s ease-out .12s; }
.mo .rv .feat__ui img { transform: none; opacity: 1; }

/* Hero prints get tossed onto the table and settle with a little spring. */
.mo .hero .obj { translate: 0 -150px; rotate: 16deg; scale: 1.2; transition: opacity .35s ease-out, translate 1.15s var(--spring), rotate 1.15s var(--spring), scale 1.15s var(--spring); }
.mo .hero .obj.in { translate: 0 0; rotate: 0deg; scale: 1; }

/* Buttons: a crisp lift and press. */
@media (hover: hover) {
  .mo .btn:hover { transform: translateY(-2px); }
}
.mo .btn:active { transform: translateY(0) scale(.97); }
