@font-face {
  font-family: "Geist Serif";
  src: url("assets/fonts/GeistSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Sizes are written in the design comps' own pixels and scaled to the screen:
   --m is one pixel of the 887px-wide phone comp, --u one pixel of the
   1672 × 941 desktop comp. The illustration uses --c, a share of its own
   width, so it scales as one piece. */

:root {
  --paper: #f1e7dc;
  --ink: #151210;
  --ink-soft: #4a4440;
  --rule: #cdbfb1;
  --slate: #4e6d92;
  --pill: #bac9da;
  --pill-ink: #1b2733;
  --error: #a63d2c;

  --serif: "Geist Serif", "Iowan Old Style", Georgia, serif;
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --m: min(calc(100vw / 887), 0.64px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
}

h1,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

i {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg.stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Page and background art ---------- */

.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
}

/* Fine paper grain over everything. */
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .27 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.art-wide {
  display: none;
}

.art-front {
  z-index: 2;
}

/* ---------- Phone layout (the default) ---------- */

.top,
.hero {
  width: min(100%, calc(887 * var(--m)));
  margin-inline: auto;
  padding-inline: calc(80 * var(--m)) calc(60 * var(--m));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: calc(75 * var(--m));
}

.brand img {
  width: calc(250 * var(--m));
  height: auto;
}

.soon {
  display: inline-flex;
  align-items: center;
  height: calc(68 * var(--m));
  padding: 0 calc(32 * var(--m));
  border-radius: 999px;
  background: var(--pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: var(--pill-ink);
  font-size: max(12px, calc(27 * var(--m)));
  font-weight: 500;
  white-space: nowrap;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
}

h1 {
  margin-top: calc(58 * var(--m));
  font-family: var(--serif);
  font-size: calc(98 * var(--m));
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.lede {
  margin-top: calc(42 * var(--m));
  color: var(--ink-soft);
  font-size: max(15px, calc(37 * var(--m)));
  line-height: 1.24;
  text-wrap: pretty;
}

.features {
  display: flex;
  flex-direction: column;
  margin-top: calc(48 * var(--m));
}

.feature {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(38 * var(--m));
  padding: calc(9 * var(--m)) 0;
}

.feature + .feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(156 * var(--m));
  right: calc(16 * var(--m));
  height: 1px;
  background: var(--rule);
}

.tile {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(118 * var(--m));
  height: calc(76 * var(--m));
  border-radius: 999px;
  background: linear-gradient(180deg, #e3e7ec, #d3d9e1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 1px 2px rgba(70, 55, 40, 0.14);
  color: #24201d;
}

.tile svg {
  width: calc(44 * var(--m));
  height: calc(44 * var(--m));
}

.tile .route {
  fill: none;
  stroke: #3b6aa6;
  stroke-width: 2;
  stroke-linecap: round;
}

.tile .route circle {
  fill: #2e5a92;
  stroke: none;
}

.tile .bolt {
  fill: #24201d;
}

.feature-label {
  font-size: max(15px, calc(36 * var(--m)));
  font-weight: 600;
  line-height: 1.15;
}

.feature-label br {
  display: none;
}

/* ---------- Waitlist form ---------- */

.waitlist {
  display: flex;
  flex-direction: column;
  gap: calc(22 * var(--m));
  margin-top: calc(46 * var(--m));
}

.waitlist .trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.field {
  position: relative;
  display: flex;
}

.field svg {
  position: absolute;
  top: 50%;
  left: calc(46 * var(--m));
  width: calc(46 * var(--m));
  height: calc(46 * var(--m));
  translate: 0 -50%;
  color: #2a2522;
  stroke-width: 1.6;
  pointer-events: none;
}

.field input {
  width: 100%;
  height: max(48px, calc(92 * var(--m)));
  padding: 0 calc(30 * var(--m)) 0 calc(122 * var(--m));
  border: 1.5px solid #4a433f;
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.5);
  color: var(--ink);
  font: inherit;
  /* 16px keeps iOS from zooming in on focus. */
  font-size: max(16px, calc(34 * var(--m)));
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field input::placeholder {
  color: #756d67;
  opacity: 1;
}

.field input:focus-visible {
  border-color: var(--slate);
  background: rgba(252, 249, 245, 0.8);
  box-shadow: 0 0 0 4px rgba(78, 109, 146, 0.18);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.waitlist button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: max(48px, calc(92 * var(--m)));
  padding: 0 calc(40 * var(--m));
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #5a7ba3 0%, #4a6a90 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 18px rgba(44, 66, 96, 0.22);
  color: #fff;
  font: inherit;
  font-size: max(17px, calc(40 * var(--m)));
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 300ms ease, transform 160ms ease, background-color 300ms ease;
}

/* A flat tint for hover and the joined state; the gradient stays put. */
.waitlist button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #3f5f86;
  opacity: 0;
  transition: opacity 300ms ease;
}

.waitlist button:is(:hover, :focus-visible):not([disabled])::before,
.waitlist.is-done button::before {
  opacity: 1;
}

.button-face {
  display: inline-flex;
  align-items: center;
}

/* The Arcex mark turns into place beside the label. */
.mark {
  flex: none;
  width: 0;
  height: 1.05em;
  margin-right: 0;
  opacity: 0;
  scale: 0.5;
  rotate: -144deg;
  background: currentColor;
  -webkit-mask: url("assets/arcex-icon-white.png") center / contain no-repeat;
  mask: url("assets/arcex-icon-white.png") center / contain no-repeat;
  transition:
    width 420ms cubic-bezier(0.2, 0.7, 0.2, 1),
    margin 420ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 260ms ease,
    scale 420ms cubic-bezier(0.2, 0.7, 0.2, 1),
    rotate 820ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tick {
  display: none;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.45em;
  stroke-width: 2.6;
}

.waitlist button:is(:hover, :focus-visible):not([disabled]) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 26px rgba(44, 66, 96, 0.32);
}

.waitlist button:is(:hover, :focus-visible):not([disabled]) .mark {
  width: 1.05em;
  margin-right: 0.5em;
  opacity: 1;
  scale: 1;
  rotate: 0deg;
}

.waitlist button:active:not([disabled]) {
  transform: translateY(1px);
}

.waitlist button:active:not([disabled]) .mark {
  rotate: 72deg;
  transition-duration: 220ms;
}

.waitlist button:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
}

.waitlist button[disabled] {
  cursor: progress;
}

/* Joined: the mark becomes a tick. */
.waitlist.is-done button {
  cursor: default;
}

.waitlist.is-done .mark {
  display: none;
}

.waitlist.is-done .tick {
  display: block;
}

.waitlist.is-done input {
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .mark {
    transition: none;
  }
}

.form-status {
  color: var(--slate);
  font-size: 15px;
  font-weight: 500;
}

.form-status:not(:empty) {
  margin-top: 12px;
}

.form-status[data-tone="error"] {
  color: var(--error);
}

.form-status[data-tone="success"] {
  color: var(--ink);
  font-size: max(15px, calc(32 * var(--m)));
}

.perk {
  display: flex;
  align-items: center;
  gap: calc(28 * var(--m));
  margin-top: calc(36 * var(--m));
  padding-left: calc(24 * var(--m));
  color: #1d1916;
  font-size: max(14px, calc(32 * var(--m)));
  line-height: 1.25;
  text-wrap: balance;
}

.perk svg {
  flex: none;
  width: calc(50 * var(--m));
  height: calc(50 * var(--m));
}

/* ---------- Illustration ---------- */

.scene {
  --c: 1.5cqw;
  position: relative;
  container-type: inline-size;
  aspect-ratio: 733 / 500;
  margin-top: auto;
  padding-top: calc(42 * var(--m));
  box-sizing: content-box;
}

.scene > * {
  position: absolute;
}

.window {
  left: 4cqw;
  top: calc(42 * var(--m) + 3cqw);
  width: 92cqw;
  padding: calc(2.2 * var(--c)) calc(2.2 * var(--c)) calc(20 * var(--c));
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: calc(3 * var(--c));
  background: linear-gradient(165deg, rgba(78, 72, 68, 0.97), rgba(46, 42, 40, 0.98) 55%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 calc(9 * var(--c)) rgba(160, 185, 220, 0.22),
    0 calc(3 * var(--c)) calc(7 * var(--c)) rgba(15, 10, 8, 0.45);
  overflow: hidden;
  transform: rotate(-3deg);
  transform-origin: left top;
  color: #ece5dd;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: calc(1.4 * var(--c));
  font-size: calc(2.3 * var(--c));
  font-weight: 600;
  white-space: nowrap;
}

.window-bar img {
  width: calc(3.6 * var(--c));
  height: auto;
}

.search {
  display: none;
  align-items: center;
  gap: calc(0.8 * var(--c));
  margin-left: auto;
  padding: calc(0.7 * var(--c)) calc(1.6 * var(--c));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  color: #9d958e;
  font-size: calc(1.6 * var(--c));
  font-weight: 500;
}

.search svg {
  width: calc(1.8 * var(--c));
  height: calc(1.8 * var(--c));
}

.dots {
  display: flex;
  gap: calc(1 * var(--c));
  margin-left: auto;
}

.search + .dots {
  margin-left: calc(1.6 * var(--c));
}

.dots b {
  width: calc(1.2 * var(--c));
  height: calc(1.2 * var(--c));
  border-radius: 50%;
  background: #7d7671;
}

.filters {
  display: flex;
  gap: calc(0.8 * var(--c));
  margin: calc(2.2 * var(--c)) 0 calc(1.6 * var(--c));
}

.filters b {
  padding: calc(0.6 * var(--c)) calc(1.5 * var(--c));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  color: #b3aba4;
  font-size: calc(1.6 * var(--c));
  font-weight: 500;
}

.filters b.on {
  border-color: transparent;
  background: #ece5dd;
  color: #24201d;
}

.table {
  display: flex;
  flex-direction: column;
}

.row {
  display: grid;
  grid-template-columns: 1fr calc(11 * var(--c)) calc(15 * var(--c));
  align-items: center;
  gap: calc(1 * var(--c));
  padding: calc(1.1 * var(--c)) calc(1.2 * var(--c));
  border-radius: calc(1.2 * var(--c));
  font-size: calc(1.9 * var(--c));
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.row + .row {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.row > :nth-child(4) {
  display: none;
}

.row > :not(.prod) {
  text-align: right;
}

.row.head {
  padding-block: 0 calc(0.8 * var(--c));
  color: #8f8781;
  font-size: calc(1.45 * var(--c));
}

.row.head > :first-child {
  text-align: left;
}

.row.is-hot,
.row.is-hot + .row {
  box-shadow: none;
}

.row.is-hot {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.prod {
  display: flex;
  align-items: center;
  gap: calc(1.3 * var(--c));
  min-width: 0;
}

.app {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(3.8 * var(--c));
  height: calc(3.8 * var(--c));
  border-radius: calc(1 * var(--c));
  background: linear-gradient(160deg, var(--a), var(--b));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: calc(1.8 * var(--c));
  font-style: normal;
  font-weight: 800;
}

.prod b {
  display: flex;
  align-items: center;
  gap: calc(0.8 * var(--c));
  font-size: calc(2 * var(--c));
  font-weight: 600;
}

.prod small {
  display: block;
  color: #9d958e;
  font-size: calc(1.45 * var(--c));
}

.tag {
  padding: calc(0.2 * var(--c)) calc(0.9 * var(--c));
  border-radius: 99px;
  background: rgba(127, 170, 230, 0.2);
  color: #a9c6ef;
  font-size: calc(1.3 * var(--c));
  font-style: normal;
  font-weight: 600;
}

.ads {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: calc(1.2 * var(--c));
}

.ads svg {
  width: calc(8 * var(--c));
  height: calc(2.4 * var(--c));
  overflow: visible;
}

.ads polyline {
  fill: none;
  stroke: #8fb0dc;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.card {
  padding: calc(2.4 * var(--c)) calc(2.6 * var(--c)) calc(2.6 * var(--c));
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: calc(2.6 * var(--c));
  background: linear-gradient(170deg, #f6efe7, #e8ded2);
  box-shadow:
    inset 0 1px 0 #fff,
    0 calc(2.4 * var(--c)) calc(5 * var(--c)) rgba(70, 48, 32, 0.28),
    0 calc(0.4 * var(--c)) calc(1 * var(--c)) rgba(70, 48, 32, 0.14);
  color: #1f1b18;
}

/* Phones show the table alone; the detail card joins it on wider screens. */
.card-detail {
  display: none;
}

.detail-head {
  display: flex;
  align-items: center;
  gap: calc(1.4 * var(--c));
}

.detail-head .app {
  width: calc(4.6 * var(--c));
  height: calc(4.6 * var(--c));
  font-size: calc(2.2 * var(--c));
}

.detail-head b {
  display: block;
  font-size: calc(2.3 * var(--c));
  font-weight: 700;
}

.detail-head small {
  display: block;
  color: #7a716a;
  font-size: calc(1.6 * var(--c));
  font-weight: 500;
}

.facts {
  display: flex;
  flex-direction: column;
  margin-top: calc(1.8 * var(--c));
}

.facts li {
  display: flex;
  justify-content: space-between;
  gap: calc(2 * var(--c));
  padding: calc(1 * var(--c)) 0;
  border-top: 1px solid rgba(90, 70, 55, 0.14);
  font-size: calc(1.75 * var(--c));
  white-space: nowrap;
}

.facts span {
  color: #7a716a;
}

.facts b {
  font-weight: 600;
}

.send {
  display: inline-flex;
  align-items: center;
  gap: calc(0.8 * var(--c));
  margin-top: calc(1.6 * var(--c));
  padding: calc(0.9 * var(--c)) calc(1.8 * var(--c));
  border-radius: 99px;
  background: #24201d;
  color: #f4eee7;
  font-size: calc(1.6 * var(--c));
  font-weight: 600;
  white-space: nowrap;
}

.send svg {
  width: calc(1.7 * var(--c));
  height: calc(1.7 * var(--c));
}

/* ---------- Desktop and landscape tablets ---------- */

@media (min-width: 900px) and (min-aspect-ratio: 11/10) {
  :root {
    --u: min(calc(100vw / 1672), calc(100svh / 941));
  }

  .art-wide {
    display: block;
  }

  .art-tall,
  .art-front {
    display: none;
  }

  .top,
  .hero {
    width: auto;
    margin-inline: 0;
  }

  .top {
    padding: calc(58 * var(--u)) calc(72 * var(--u)) 0 calc(112 * var(--u));
  }

  .brand img {
    width: calc(214 * var(--u));
  }

  .soon {
    height: max(34px, calc(50 * var(--u)));
    padding: 0 calc(28 * var(--u));
    font-size: max(13px, calc(20 * var(--u)));
  }

  .hero {
    flex-direction: row;
    align-items: center;
    padding: 0 calc(62 * var(--u)) calc(48 * var(--u)) calc(112 * var(--u));
  }

  .copy {
    flex: none;
    width: calc(700 * var(--u));
  }

  h1 {
    margin-top: 0;
    font-size: calc(88 * var(--u));
  }

  .lede {
    max-width: calc(680 * var(--u));
    margin-top: calc(32 * var(--u));
    font-size: max(16px, calc(29 * var(--u)));
    line-height: 1.27;
  }

  .features {
    flex-direction: row;
    align-items: center;
    margin-top: calc(52 * var(--u));
  }

  .feature {
    gap: calc(16 * var(--u));
    padding: 0 calc(20 * var(--u));
  }

  .feature:first-child {
    padding-left: 0;
  }

  .feature + .feature::before {
    top: 50%;
    left: 0;
    right: auto;
    width: 1px;
    height: calc(56 * var(--u));
    translate: 0 -50%;
  }

  .tile {
    width: calc(64 * var(--u));
    height: calc(64 * var(--u));
    border-radius: calc(17 * var(--u));
  }

  .tile svg {
    width: calc(32 * var(--u));
    height: calc(32 * var(--u));
  }

  .feature-label {
    font-size: max(14px, calc(22 * var(--u)));
    white-space: nowrap;
  }

  .feature-label br {
    display: inline;
  }

  .waitlist {
    flex-direction: row;
    gap: calc(12 * var(--u));
    margin-top: calc(60 * var(--u));
  }

  .field {
    width: calc(425 * var(--u));
  }

  .field svg {
    left: calc(27 * var(--u));
    width: calc(30 * var(--u));
    height: calc(30 * var(--u));
  }

  .field input {
    height: max(44px, calc(60 * var(--u)));
    padding: 0 calc(24 * var(--u)) 0 calc(78 * var(--u));
    font-size: max(15px, calc(22 * var(--u)));
  }

  .waitlist button {
    width: calc(260 * var(--u));
    height: max(44px, calc(60 * var(--u)));
    padding: 0;
    font-size: max(15px, calc(24 * var(--u)));
    font-weight: 500;
  }

  .form-status[data-tone="success"] {
    font-size: max(15px, calc(21 * var(--u)));
  }

  .perk {
    gap: calc(22 * var(--u));
    margin-top: calc(40 * var(--u));
    padding-left: calc(6 * var(--u));
    font-size: max(14px, calc(21 * var(--u)));
  }

  .perk svg {
    width: calc(26 * var(--u));
    height: calc(26 * var(--u));
  }

  .scene {
    --c: 1cqw;
    flex: none;
    width: calc(800 * var(--u));
    margin: 0 0 0 auto;
    padding: 0;
    aspect-ratio: 800 / 705;
  }

  .window {
    left: 7cqw;
    top: 4cqw;
    width: 91cqw;
    padding: 2.6cqw 2.6cqw 12cqw;
    border-radius: 3.4cqw;
    transform: perspective(200cqw) rotateY(-9deg) rotateX(3deg) rotateZ(-2deg);
  }

  .search {
    display: inline-flex;
  }

  .row {
    grid-template-columns: 1fr 10cqw 16cqw 9cqw;
  }

  .row > :nth-child(4) {
    display: block;
  }

  .card-detail {
    display: block;
    left: 44cqw;
    top: 61cqw;
    width: 44cqw;
    transform: perspective(200cqw) rotateY(-6deg) rotateZ(-1.5deg);
  }
}

/* ---------- Motion (skipped when reduced) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .top,
  .copy > * {
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .copy > :nth-child(2) { animation-delay: 60ms; }
  .copy > :nth-child(3) { animation-delay: 120ms; }
  .copy > :nth-child(n + 4) { animation-delay: 180ms; }

  .scene {
    animation: rise 900ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  /* A slow drift, so the cards feel held rather than pasted on. */
  .card {
    animation: drift 8s ease-in-out infinite;
  }

}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes drift {
  50% {
    translate: 0 calc(-0.7 * var(--c));
  }
}
