/* Incrmnt site. One family (Archivo), three tones and one accent: the red of the smallest plate. */

/* Archivo (SIL Open Font License, fonts/OFL.txt), served from this site so visitors' browsers
   never contact Google. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ground: #f2f2f0;
  --step: #e6e6e3;
  --ink: #1c1c1e;
  --soft: #5c5c60;
  --night: #121214;
  --night-step: #1d1d20;
  --on-night: #f2f2f0;
  --on-night-soft: #a9a9ad;
  --plate: #e0262b;
  --gutter: clamp(16px, 3vw, 40px);
  --section: clamp(96px, 13vw, 200px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--plate); outline-offset: 3px; }
::selection { background: var(--plate); color: #fff; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.04em; line-height: .92; font-stretch: 92%; }
h1 { font-size: clamp(60px, 9.4vw, 152px); }
h2 { font-size: clamp(42px, 6vw, 96px); }
h3 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
.lede { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.35; letter-spacing: -0.01em; max-width: 30ch; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Bar: wordmark, a few links, one action. */
.bar { position: absolute; inset: 0 0 auto; z-index: 5; }
.bar .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.bar .mark { font-weight: 800; font-size: 22px; letter-spacing: -0.03em; text-decoration: none; margin-right: auto; }
.bar nav { display: flex; gap: 24px; font-size: 16px; }
.bar nav a { text-decoration: none; }
.bar nav a:hover { text-decoration: underline; }
.on-night { color: var(--on-night); }

.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px;
  background: var(--plate); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform .18s var(--ease), background .18s var(--ease);
}
.button:hover { background: #c41f24; }
.button:active { transform: scale(.97); }

/* Hero: the set, taken apart. */
.hero { background: var(--night); color: var(--on-night); padding: 140px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px var(--gutter); align-items: center; min-height: min(78vh, 820px); }
.hero .lede { color: var(--on-night); margin: 28px 0 36px; }
.hero .soon { margin-top: 18px; font-size: 16px; color: var(--on-night-soft); }
.stage { position: relative; height: clamp(480px, 56vw, 760px); perspective: none; }
.plane {
  position: absolute; left: 50%; top: 52%; width: clamp(230px, 25vw, 370px); aspect-ratio: 640 / 1391;
  transform: translate(-50%, -50%) rotateX(56deg) rotateZ(-38deg); transform-style: preserve-3d;
}
.plane .base { position: absolute; inset: 0; width: 100%; border-radius: 12% / 5.6%; opacity: .5; }
.plane .layer {
  position: absolute; left: 4.06%; border-radius: 10px;
  transform: translateZ(var(--z)); transition: transform 1.2s var(--ease) var(--d, 0s);
}
.plane .call { top: 30.66%; width: 62.4%; --z: 300px; border-radius: 999px; }
.plane .rest { top: 36.38%; width: 91.87%; --z: 200px; border-radius: 999px; }
.plane .weight { top: 46.9%; width: 91.87%; --z: 100px; border-radius: 6%/ 12%; }
.js .stage:not(.open) .layer { transform: translateZ(0); }
.anatomy { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin: 8px 0 0; padding: 0; }
.anatomy div { padding: 0; }
.anatomy dt { font-weight: 700; font-size: 18px; }
.anatomy dd { margin: 4px 0 0; color: var(--on-night-soft); font-size: 16px; }
.anatomy dt::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--plate); margin-right: 10px; vertical-align: 1px; }

section { padding: var(--section) 0 0; }
.screen { border-radius: 34px / 34px; background: var(--step); }

/* The call: two sets side by side, then the stall. */
.call-grid { display: grid; grid-template-columns: 5fr 3fr 3fr; gap: var(--gutter); align-items: end; margin-top: 56px; }
.call-grid figure { margin: 0; }
.call-grid figcaption { margin-top: 18px; font-size: 16px; max-width: 30ch; }
.call-grid figcaption strong { display: block; font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 4px; }
.call-head { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: end; }
.stall { background: var(--step); padding: 32px; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.stall img { border-radius: 22px; }

/* The live thing: load the bar. */
.loader { margin-top: 56px; background: var(--ink); color: var(--on-night); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 4fr 7fr; gap: var(--gutter); align-items: center; }
.loader .total { font-size: clamp(88px, 11vw, 168px); font-weight: 800; letter-spacing: -0.05em; line-height: .85; font-variant-numeric: tabular-nums; }
.loader .total small { font-size: .28em; letter-spacing: -0.01em; margin-left: .15em; font-weight: 600; }
.loader .side { margin-top: 16px; font-size: 20px; color: var(--on-night-soft); font-variant-numeric: tabular-nums; }
.controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.controls button {
  font: inherit; font-weight: 700; font-size: 18px; border: 0; border-radius: 999px; padding: 14px 22px; min-width: 64px;
  background: var(--night-step); color: var(--on-night); cursor: pointer; transition: transform .15s var(--ease), background .15s;
}
.controls button:hover { background: #2a2a2e; }
.controls button:active { transform: scale(.94); }
.controls button[aria-pressed="true"] { background: var(--on-night); color: var(--ink); }
.controls .step { background: var(--plate); }
.controls .step:hover { background: #c41f24; }
.loader svg { width: 100%; height: auto; overflow: visible; }
.loader .note { grid-column: 1 / -1; color: var(--on-night-soft); font-size: 16px; }
.plate-rect { transition: transform .35s var(--ease), opacity .35s; transform-box: fill-box; transform-origin: center; }

/* The week. */
.week { display: grid; grid-template-columns: 4fr 3fr 3fr; gap: var(--gutter); align-items: start; }
.week .copy { position: sticky; top: 48px; }
.week ul, .ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.week li, .ticks li { padding-left: 28px; position: relative; }
.week li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.week .lower { margin-top: 120px; }

/* Progress. */
.progress { display: grid; grid-template-columns: 5fr 6fr; gap: var(--gutter); align-items: center; background: var(--step); padding: clamp(28px, 5vw, 80px); }
.progress > * { min-width: 0; }
.progress img { width: 100%; max-width: 360px; justify-self: center; }

/* Privacy: a whole field of night. */
.private { background: var(--night); color: var(--on-night); margin-top: var(--section); padding: var(--section) 0; }
.private .grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: end; }
.private .ticks li::before { background: var(--plate); }
.private .ticks { font-size: 22px; letter-spacing: -0.01em; gap: 18px; margin: 0; }
.private p.more { margin-top: 40px; color: var(--on-night-soft); }

.extras { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gutter); }
.extras dl { display: grid; grid-template-columns: 1fr 1fr; gap: 36px var(--gutter); margin: 0; }
.extras dt { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.extras dd { margin: 6px 0 0; max-width: 36ch; }

/* Footer: the name returns. */
footer { margin-top: var(--section); background: var(--ink); color: var(--on-night); padding: 64px 0 32px; overflow: hidden; }
footer .links { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 17px; }
footer .links a { text-decoration: none; }
footer .links a:hover { text-decoration: underline; }
footer .name { font-weight: 800; letter-spacing: -0.06em; font-size: clamp(96px, 24.5vw, 380px); line-height: .8; margin: 56px 0 24px; font-stretch: 88%; }
footer .fine { color: var(--on-night-soft); font-size: 15px; }

/* Document pages (privacy, terms, support). */
.doc-head { background: var(--night); color: var(--on-night); padding: 140px 0 64px; }
.doc { display: grid; grid-template-columns: 3fr 7fr; gap: var(--gutter); padding-top: 72px; }
.doc aside { font-size: 16px; color: var(--soft); }
.doc aside nav { position: sticky; top: 32px; display: grid; gap: 8px; }
.doc aside a { text-decoration: none; color: var(--ink); }
.doc aside a:hover { text-decoration: underline; }
.doc article { max-width: 68ch; }
.doc article h2 { font-size: clamp(30px, 3vw, 42px); margin: 56px 0 18px; letter-spacing: -0.03em; line-height: 1; }
.doc article h2:first-child { margin-top: 0; }
.doc article p, .doc article li { font-size: 18px; }
.doc article p + p { margin-top: 14px; }
.doc article ul { padding-left: 22px; margin: 14px 0; display: grid; gap: 10px; }
.doc .updated { color: var(--on-night-soft); margin-top: 18px; }

/* Entrances: set by script only, so nothing hides without it. */
.js .rise > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rise.in > * { opacity: 1; transform: none; }
.js .rise.in > *:nth-child(2) { transition-delay: .08s; }
.js .rise.in > *:nth-child(3) { transition-delay: .16s; }
.js .rise.in > *:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
  .js .rise > * { transform: none; }
}

@media (max-width: 900px) {
  .bar nav { display: none; }
  .hero { padding-top: 104px; }
  .hero .wrap, .call-head, .call-grid, .loader, .week, .progress, .private .grid, .extras, .doc { grid-template-columns: 1fr; }
  .hero .wrap { min-height: 0; }
  .stage { height: 400px; margin-top: 0; }
  .plane { width: 168px; left: 54%; }
  .plane .call { --z: 200px; } .plane .rest { --z: 130px; } .plane .weight { --z: 60px; }
  .loader { padding: 24px 20px; }
  .controls { gap: 8px; }
  .controls button { padding: 12px 16px; min-width: 0; }
  .anatomy { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .call-grid { gap: 48px; }
  .call-grid .screen { max-width: 340px; }
  .week .copy { position: static; }
  .week .lower { margin-top: 0; }
  .week img { max-width: 340px; }
  .extras dl { grid-template-columns: 1fr; }
  .doc aside { display: none; }
}
