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

:root {
  --paper: #f1f3f3;
  --card: #f9fafb;
  --ink: #1d2321;
  --ink-2: #4b5350;
  --clay: #a4532f;
  --clay-deep: #7d3b20;
  --sage: #4e6b5f;
  --slate: #3c4c60;
  --gold: #d9a441;
  --rule: #d9d9d3;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--ink-2) var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 'Archivo', system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.how :focus-visible, .demo :focus-visible { outline-color: #fff; }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  max-width: 1440px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.word { font-size: 22px; font-stretch: 112%; letter-spacing: -0.01em; font-weight: 400; }
.word b { font-weight: 800; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 15px; font-weight: 500; }
.top nav a:not(.btn) { text-decoration: none; }
.top nav a:not(.btn):hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--ink); color: #fff;
  font-weight: 700; font-stretch: 108%; font-size: 16px;
  text-decoration: none; border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 6px 16px -8px rgba(29,35,33,.6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { background: #000; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 10px 22px -10px rgba(29,35,33,.7); }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-light { background: var(--card); color: var(--ink); }
.btn-light:hover { background: #fff; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center; gap: clamp(16px, 3vw, 48px);
  max-width: 1440px; margin: 0 auto;
  padding: clamp(12px, 2vw, 32px) var(--pad) clamp(40px, 6vw, 88px);
  min-height: calc(100svh - 84px);
}
h1 {
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  font-weight: 800; font-stretch: 112%;
  line-height: .98; letter-spacing: -0.025em;
}
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 34em; margin: 24px 0 32px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 0; }
.link { font-weight: 600; }
.try { margin: 40px 0 0; font-size: 14px; font-stretch: 85%; letter-spacing: .02em; color: var(--ink-2); }

/* The deck: fixed geometry, scaled to fit by deck.js */
.deck-wrap { position: relative; width: 100%; height: 660px; overflow-x: clip; overflow-y: visible; }
.deck {
  --s: 1;
  position: absolute; left: 50%; top: 0;
  width: 720px; height: 660px;
  transform: translateX(-50%) scale(var(--s));
  transform-origin: top center;
}
.strip {
  position: absolute; left: 272px; top: 70px;
  width: 176px; height: 520px;
  background: var(--card);
  border-radius: 6px;
  padding: 0 0 66px;
  transform-origin: 50% 500px;
  transform: rotate(var(--a));
  z-index: var(--z);
  box-shadow: 0 1px 1px rgba(29,35,33,.12), 0 12px 28px -14px rgba(29,35,33,.45);
  transition: transform .7s var(--ease), box-shadow .5s var(--ease), filter .5s var(--ease);
  display: flex; flex-direction: column;
  filter: saturate(.86) brightness(.985);
  cursor: pointer;
}
.deck.is-closed .strip { transform: rotate(0deg); transition-duration: 0s; }
.strip.is-active {
  transform: rotate(var(--a)) translateY(-30px);
  z-index: 20;
  filter: none;
  box-shadow: 0 2px 2px rgba(29,35,33,.14), 0 26px 44px -18px rgba(29,35,33,.6);
}
.strip-head {
  all: unset; box-sizing: border-box;
  display: flex; justify-content: space-between; align-items: baseline;
  height: 54px; padding: 18px 12px 0;
  cursor: pointer;
}
.strip-head:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.room { font-weight: 800; font-stretch: 110%; font-size: 15px; letter-spacing: -0.005em; }
.code { font-size: 11px; font-stretch: 75%; letter-spacing: .06em; color: var(--ink-2); }
.chip {
  all: unset; box-sizing: border-box; position: relative;
  display: grid; grid-template-rows: auto 1fr auto;
  height: 100px; padding: 9px 12px 9px;
  background: var(--c);
  cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.chip.ink-dark { color: var(--ink); }
.chip.ink-light { color: #fff; }
.chip-top { display: flex; justify-content: space-between; align-items: baseline; }
.chip .ccode { font-size: 10px; font-stretch: 75%; letter-spacing: .06em; opacity: .75; }
.chip .tier { font-size: 11px; font-stretch: 75%; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.chip .name { font-size: 14px; font-weight: 600; line-height: 1.2; align-self: center; padding-right: 18px; }
.chip .price { font-size: 14px; font-weight: 700; justify-self: end; }
.chip:hover { transform: translateX(4px); }
.chip.is-picked {
  z-index: 2;
  transform: translateX(6px);
  box-shadow: -6px 0 0 var(--c), 0 14px 26px -12px rgba(29,35,33,.7);
}
.chip.is-picked .price { text-decoration: underline 3px var(--gold); text-underline-offset: 5px; }
.chip:focus-visible { box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 5px #fff; z-index: 3; }

.cover {
  position: absolute; left: 196px; top: 548px; z-index: 30;
  width: 328px; padding: 30px 20px 16px;
  background: var(--ink); color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 2px rgba(0,0,0,.2), 0 24px 40px -18px rgba(29,35,33,.8);
}
.rivet {
  position: absolute; left: 50%; top: 22px; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: #d9a441;
  border: 5px solid #f9fafb;
  box-shadow: 0 0 0 2px #1d2321;
}
.cover-head, .cover-foot { display: flex; justify-content: space-between; font-size: 12px; font-stretch: 85%; letter-spacing: .03em; color: #c9cfcc; }
.cover-head { padding-right: 0; }
.sample { color: var(--gold); }
.cover-total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 8px; }
.cover-total .label { font-size: 13px; color: #c9cfcc; }
.cover-total output { font-size: 34px; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; }
.meter { position: relative; height: 6px; background: #3a4340; border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.meter span:first-child { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); transition: width .6s var(--ease), background .3s; }
.meter .tick { position: absolute; top: 0; bottom: 0; left: 66.67%; width: 2px; background: #fff; }
.cover.is-over .meter span:first-child { background: #e98b5c; }
#left.over { color: #f2a37c; font-weight: 700; }

/* How it works */
.how { background: var(--sage); color: #fff; padding: clamp(64px, 9vw, 128px) var(--pad); }
.how-inner {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.phone { margin: 0; justify-self: center; max-width: 340px; }
.phone img { border-radius: 34px; border: 9px solid #1d2321; box-shadow: 0 30px 60px -28px rgba(0,0,0,.6); }
figcaption { font-size: 13px; font-stretch: 88%; margin-top: 12px; text-align: center; }
.how h2, .builders h2, .demo h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 800; font-stretch: 110%; line-height: 1.04; letter-spacing: -0.02em; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(0,0,0,.5); }
.steps li { display: grid; grid-template-columns: 7.5em 1fr; gap: 20px; padding: 22px 24px; }
.steps h3 { font-size: 15px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.steps p { margin: 0; max-width: 46ch; }
.s1 { background: #e3eae4; color: var(--ink); }
.s2 { background: #b9c9bc; color: var(--ink); }
.s3 { background: #557060; color: #fff; }
.s4 { background: #2f4537; color: #fff; }

/* Builders */
.builders-inner {
  max-width: 1440px; margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px);
}
.b-copy p { color: var(--ink-2); font-size: 18px; max-width: 32em; margin: 22px 0 0; }
.index { margin: 0; border-top: 2px solid var(--ink); }
.index div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.index dt { font-weight: 800; font-stretch: 110%; }
.index dd { margin: 0; color: var(--ink-2); }
.screen { grid-column: 1 / -1; margin: clamp(24px, 4vw, 48px) 0 0; }
.screen img { border-radius: 8px; border: 1px solid var(--rule); box-shadow: 0 30px 60px -36px rgba(29,35,33,.55); }
.screen figcaption { color: var(--ink-2); }

/* Demo */
.demo { background: var(--clay); color: #fff; padding: clamp(64px, 9vw, 120px) var(--pad); }
.demo-inner { max-width: 1440px; margin: 0 auto; }
.demo h2 { max-width: 16em; }
.demo p { font-size: 19px; max-width: 34em; margin: 20px 0 32px; color: #fbeee6; }
.demo .mail { font-size: 15px; margin: 18px 0 0; }

/* Footer */
.foot {
  max-width: 1440px; margin: 0 auto; padding: 28px var(--pad);
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--ink-2);
}
.brand.small .word { font-size: 17px; color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .try { margin-top: 24px; }
  .how-inner, .builders-inner { grid-template-columns: 1fr; }
  .phone { max-width: 280px; order: 2; }
  .steps li { grid-template-columns: 1fr; gap: 6px; }
  .top nav a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .screen { display: none; }
  .index div { grid-template-columns: 1fr; gap: 4px; }
  .word { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
