/* Firelit's site. Same tokens as the app's dark theme (src/constants/theme.ts).
   Motion is slow and warm: things settle in once, embers drift, nothing bounces. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 700 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #121114;
  --surface: #1b1a1e;
  --surface-muted: #242328;
  --surface-strong: #2e2c33;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #eeebe6;
  --text-2: #a7a2aa;
  --text-3: #8a8590; /* lighter than the app's #6f6b73, so small print stays readable (5.2:1) */
  --ember: #ff7a50;
  --ember-light: #ffb27a;
  --ember-deep: #e4572e;
  --ember-soft: rgba(255, 122, 80, 0.14);
  --on-ember: #1a0e09;
  --washi: #f4efe4;
  --night: #202a39;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --page: 1160px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.sprite {
  display: none;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

/* Header */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 17, 20, 0.7);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, background-color 300ms ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(18, 17, 20, 0.84);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  transition: transform 400ms var(--ease);
}
.brand:hover img {
  transform: rotate(-6deg) scale(1.05);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 200ms ease, background-color 200ms ease;
}
.nav-links a:not(.btn):hover {
  color: var(--text);
  background: var(--surface);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 600 16px/1 var(--body);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 250ms var(--ease), box-shadow 300ms var(--ease), background-color 200ms ease, opacity 150ms ease;
}
.btn:active {
  opacity: 0.72;
  transform: scale(0.985);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn .arrow {
  width: 18px;
  height: 18px;
  transition: transform 300ms var(--ease);
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.btn-primary {
  background: var(--ember);
  color: var(--on-ember);
}
.btn-primary:hover {
  background: #ff8b66;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -10px rgba(255, 122, 80, 0.75);
}
.btn-secondary {
  background: var(--surface-muted);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--surface-strong);
  transform: translateY(-1px);
}
.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Hero */

.hero {
  position: relative;
  padding: 72px 0 112px;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  /* Firelight low on the right, a bit of night sky top left. */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 60% at 74% 70%, rgba(228, 87, 46, 0.28), transparent 70%),
    radial-gradient(40% 45% at 12% 0%, rgba(32, 42, 57, 0.95), transparent 70%);
  pointer-events: none;
  animation: glow 7s ease-in-out infinite alternate;
}
.embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 56px;
}
.hero-copy > * {
  animation: up 800ms var(--ease) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 80ms;
}
.hero-copy > :nth-child(3) {
  animation-delay: 160ms;
}
.hero-copy > :nth-child(4) {
  animation-delay: 240ms;
}
.hero-copy > :nth-child(5) {
  animation-delay: 320ms;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--ember-soft);
  border: 1px solid rgba(255, 122, 80, 0.18);
  color: var(--ember);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms ease;
}
.pill:hover {
  background: rgba(255, 122, 80, 0.2);
}
.pill .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
}
.pill .dot::after {
  /* transform and opacity only, so it runs on the GPU without restyling the page */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ember);
  animation: ping 2.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.pill .arrow {
  width: 15px;
  height: 15px;
  transition: transform 300ms var(--ease);
}
.pill:hover .arrow {
  transform: translateX(2px);
}
h1 {
  font-size: clamp(44px, 6.6vw, 84px);
  margin-top: 22px;
}
.warm {
  white-space: nowrap;
  background: linear-gradient(100deg, var(--ember) 10%, var(--ember-light) 60%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  color: var(--text-2);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  max-width: 33em;
  margin: 24px 0 0;
  text-wrap: pretty;
}
.fineprint {
  color: var(--text-3);
  font-size: 14px;
  margin: 18px 0 0;
}

/* The spoiler demo */

.demo-wrap {
  justify-self: end;
  width: 100%;
  max-width: 460px;
  animation: up 1000ms var(--ease) 280ms both;
}
.demo {
  position: relative;
  background: linear-gradient(180deg, #1e1d22, #17161a);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 20px;
  box-shadow:
    0 40px 100px -30px rgba(0, 0, 0, 0.85),
    0 30px 140px -50px rgba(228, 87, 46, 0.5);
}
.demo-club {
  display: flex;
  align-items: center;
  gap: 12px;
}
.demo-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font: 800 20px/1 var(--display);
  background: hsl(250 26% 26%);
  color: hsl(250 70% 86%);
  flex: none;
}
.demo-club strong {
  display: block;
  font: 700 18px/1.2 var(--display);
  letter-spacing: -0.01em;
}
.demo-club span {
  color: var(--text-2);
  font-size: 14px;
}
.dtrack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 16px 0 18px;
}
.dtrack span {
  height: 5px;
  border-radius: 5px;
  background: var(--surface-strong);
  transition: background-color 500ms var(--ease);
}
.dtrack span.on {
  background: var(--ember);
}
.seg-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.seg {
  --at: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px;
  background: var(--surface-muted);
  border-radius: 999px;
}
.seg::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 4);
  border-radius: 999px;
  background: var(--ember);
  box-shadow: 0 6px 20px -6px rgba(255, 122, 80, 0.8);
  transform: translateX(calc(var(--at) * 100%));
  transition: transform 480ms var(--ease);
}
.seg button {
  position: relative;
  z-index: 1;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font: 600 14px/1 var(--body);
  cursor: pointer;
  transition: color 300ms ease;
}
.seg button:hover {
  color: var(--text);
}
.seg button[aria-checked='true'] {
  color: var(--on-ember);
}
.dsafe {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--ember-soft);
  color: #f0c4b2;
  font-size: 14px;
}
.dsafe svg {
  width: 16px;
  height: 16px;
  color: var(--ember);
  flex: none;
}
.dsafe b {
  color: var(--text);
  font-weight: 600;
}
.drooms {
  list-style: none;
  margin: 0;
  padding: 0;
}
.droom {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 16px;
}
.droom:not(:last-child)::after {
  /* the line joining the rooms, like the app's room timeline */
  content: '';
  position: absolute;
  left: 21px;
  top: 42px;
  bottom: -10px;
  width: 2px;
  background: var(--surface-strong);
}
.droom.just-opened {
  animation: opened 1400ms var(--ease);
}
.state {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-muted);
  color: var(--text-2);
  transition: background-color 400ms ease, color 400ms ease, box-shadow 400ms ease;
}
.state svg {
  grid-area: 1 / 1;
  width: 15px;
  height: 15px;
  transition: opacity 300ms ease, transform 500ms var(--ease);
}
.state .i-here,
.state .i-lock,
.here .state .i-check,
.locked .state .i-check {
  opacity: 0;
  transform: scale(0.5) rotate(-20deg);
}
.here .state .i-here,
.locked .state .i-lock {
  opacity: 1;
  transform: none;
}
.droom.here .state {
  background: var(--ember);
  color: var(--on-ember);
  box-shadow: 0 0 0 5px rgba(255, 122, 80, 0.14);
}
.droom.locked .state {
  background: var(--bg);
  color: var(--text-3);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.dname {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 28px;
}
.dname .hidden-name {
  font-style: italic;
  font-weight: 500;
  color: var(--text-3);
}
.droom.locked .room-name,
.droom:not(.locked) .hidden-name {
  display: none;
}
.dbody {
  display: grid;
  margin-top: 4px;
}
.dpost,
.dbars {
  grid-area: 1 / 1;
  transition: opacity 500ms var(--ease), filter 600ms var(--ease), transform 600ms var(--ease);
}
.dpost {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.dpost p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
}
.dpost b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 1px;
}
.droom.locked .dpost {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(4px);
}
.droom:not(.locked) .dbars {
  opacity: 0;
  transform: translateY(-4px);
}
.dbars {
  display: grid;
  gap: 7px;
  align-content: start;
  padding-top: 6px;
}
.dbars i {
  display: block;
  height: 9px;
  border-radius: 6px;
  background: var(--surface-muted);
}
.dbars i:nth-child(1) {
  width: 92%;
}
.dbars i:nth-child(2) {
  width: 64%;
}
.av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 11px/1 var(--body);
  flex: none;
}
.av-maya {
  background: hsl(330 30% 28%);
  color: hsl(330 60% 82%);
}
.av-kenji {
  background: hsl(205 30% 28%);
  color: hsl(205 60% 82%);
}
.av-ines {
  background: hsl(150 30% 26%);
  color: hsl(150 60% 80%);
}
.av-sam {
  background: hsl(40 30% 26%);
  color: hsl(40 60% 80%);
}
.demo-note {
  text-align: center;
  color: var(--text-3);
  font-size: 13.5px;
  margin: 16px 0 0;
}

/* Phones */

.phone {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 390 / 844;
  border-radius: 46px;
  padding: 9px;
  background: #0b0a0c;
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 50px 90px -30px rgba(0, 0, 0, 0.75),
    0 30px 120px -40px rgba(228, 87, 46, 0.35);
}
.phone img,
.screens {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 37px;
}
.screens {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.screens img {
  position: absolute;
  inset: 0;
  border-radius: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 600ms var(--ease), transform 900ms var(--ease);
}
.screens img.on {
  opacity: 1;
  transform: none;
}

/* Sections */

section {
  padding: 104px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.overline {
  display: block;
  color: var(--ember);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(34px, 4.6vw, 56px);
}
.section-head p {
  color: var(--text-2);
  font-size: 18px;
  margin: 18px 0 0;
}

/* How it works: a room timeline that fills as you scroll, one phone that follows along. */

.how-grid {
  display: grid;
  gap: 24px;
}
.rail,
.how-phone {
  display: none;
}
.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  display: grid;
  gap: 32px;
  padding: 36px 0;
}
.step-kicker {
  display: inline-block;
  color: var(--ember);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step h3 {
  font-size: clamp(30px, 3.4vw, 44px);
}
.step p {
  color: var(--text-2);
  font-size: 18px;
  max-width: 30em;
  margin: 16px 0 0;
  text-wrap: pretty;
}
.step-phone {
  justify-self: center;
}

@media (min-width: 1000px) {
  .step {
    grid-template-columns: 1fr 300px;
    align-items: center;
    gap: 64px;
  }
  .js .how-grid {
    grid-template-columns: 200px 1fr 300px;
    gap: 64px;
  }
  .js .rail {
    display: block;
    position: sticky;
    top: calc(50vh - 150px);
    align-self: start;
  }
  .js .how-phone {
    display: block;
    position: sticky;
    top: max(84px, calc(50vh - 325px));
    align-self: start;
  }
  .js .step {
    grid-template-columns: 1fr;
    min-height: 78vh;
    align-content: center;
    padding: 0;
  }
  .js .step-phone {
    display: none;
  }
  .js .step {
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  }
  .js .step:not(.on) {
    opacity: 0.28;
    transform: translateY(6px);
  }
  .rail::before,
  .rail-fill {
    content: '';
    position: absolute;
    left: 15px;
    top: 26px;
    bottom: 26px;
    width: 2px;
    border-radius: 2px;
    background: var(--surface-strong);
  }
  .rail-fill {
    background: linear-gradient(var(--ember), var(--ember-light));
    transform-origin: top;
    transform: scaleY(var(--p, 0));
  }
  .rail li {
    position: relative;
  }
  .rail a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    text-decoration: none;
    color: var(--text-3);
    font-size: 15px;
    font-weight: 600;
    transition: color 400ms ease;
  }
  .rail a:hover {
    color: var(--text);
  }
  .rail .state {
    width: 32px;
    height: 32px;
    background: var(--bg);
    color: var(--text-3);
    box-shadow: inset 0 0 0 2px var(--surface-strong);
  }
  .rail li .state .i-check {
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
  }
  .rail li[data-state='ahead'] .state .i-lock,
  .rail li:not([data-state]) .state .i-lock {
    opacity: 1;
    transform: none;
  }
  .rail li[data-state='done'] .state {
    background: var(--surface-muted);
    color: var(--text-2);
    box-shadow: none;
  }
  .rail li[data-state='done'] .state .i-check {
    opacity: 1;
    transform: none;
  }
  .rail li[data-state='done'] a {
    color: var(--text-2);
  }
  .rail li[data-state='here'] .state {
    background: var(--ember);
    color: var(--on-ember);
    box-shadow: 0 0 0 6px rgba(255, 122, 80, 0.15);
  }
  .rail li[data-state='here'] .state .i-here {
    opacity: 1;
    transform: none;
  }
  .rail li[data-state='here'] a {
    color: var(--text);
  }
}

@media (max-width: 999px) {
  /* On phones the timeline becomes a thin track under the header. */
  .js .rail {
    display: block;
    position: sticky;
    top: 64px;
    z-index: 10;
    margin: 0 calc(var(--gutter) * -1);
    padding: 14px var(--gutter);
    background: rgba(18, 17, 20, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .js .rail ol {
    display: flex;
    gap: 6px;
  }
  .js .rail li {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--surface-strong);
    transition: background-color 500ms var(--ease);
  }
  .js .rail li[data-state='done'],
  .js .rail li[data-state='here'] {
    background: var(--ember);
  }
  .js .rail a {
    display: block;
    height: 100%;
    font-size: 0;
  }
  .js .rail .state,
  .js .rail-fill {
    display: none;
  }
}

/* What it won't do */

.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.promise {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  transition: transform 400ms var(--ease), border-color 400ms ease;
}
.promise:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 80, 0.28);
}
.promise .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ember-soft);
  color: var(--ember);
  margin-bottom: 20px;
  transition: transform 400ms var(--ease);
}
.promise:hover .icon {
  transform: rotate(-6deg) scale(1.06);
}
.promise .icon svg {
  width: 22px;
  height: 22px;
}
.promise h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.promise p {
  color: var(--text-2);
  font-size: 16px;
  margin: 10px 0 0;
}

/* A note from me */

.note {
  position: relative;
  background: linear-gradient(160deg, var(--night), #17161b 70%);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(32px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}
.note::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 440px;
  height: 440px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(228, 87, 46, 0.3), transparent);
  animation: glow 6s ease-in-out infinite alternate;
}
.note h2 {
  max-width: 14em;
}
.note a {
  color: var(--ember);
  text-underline-offset: 3px;
}
.note p {
  color: #c9c4cc;
  font-size: 18px;
  max-width: 36em;
  margin: 20px 0 0;
}

/* Last call */

.cta {
  padding-bottom: 40px;
}
.cta-card {
  position: relative;
  text-align: center;
  border-radius: 40px;
  padding: clamp(56px, 8vw, 96px) var(--gutter) 0;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, transparent, rgba(32, 42, 57, 0.5));
}
.cta-card::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -260px;
  width: 900px;
  height: 640px;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(closest-side, rgba(228, 87, 46, 0.42), transparent);
  animation: glow 6s ease-in-out infinite alternate;
}
.mark {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
}
.mark::before {
  content: '';
  position: absolute;
  inset: -34px;
  background: radial-gradient(closest-side, rgba(228, 87, 46, 0.42), transparent);
}
.mark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mark .flame {
  /* its own layer, so the flicker is a GPU transform; the flame's base sits at 72.7% of the tile */
  transform-origin: 50% 72.7%;
  animation: flicker 3.4s ease-in-out infinite;
}
.lazy {
  /* the browser skips styling and painting these until they're near the screen */
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}
.cta h2 {
  font-size: clamp(38px, 5.4vw, 68px);
}
.cta p {
  color: var(--text-2);
  font-size: 18px;
  max-width: 30em;
  margin: 18px auto 0;
}
.cta .actions {
  justify-content: center;
}
.cta-phone {
  height: clamp(260px, 34vw, 380px);
  margin-top: 64px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* Footer */

.foot {
  padding: 0 0 40px;
}
.foot-card {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
}
.foot-brand p {
  color: var(--text-2);
  font-size: 15px;
  margin: 14px 0 0;
  max-width: 18em;
}
.foot-col h4 {
  margin: 4px 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.foot-col a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  padding: 4px 0;
  transition: color 200ms ease, transform 300ms var(--ease);
}
.foot-col a:hover {
  color: var(--text);
  transform: translateX(2px);
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--text-3);
  font-size: 13px;
  padding: 20px 8px 0;
}

/* Long text: privacy, account deletion, what's new */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px var(--gutter) 88px;
}
.doc h1 {
  font-size: clamp(40px, 6vw, 60px);
  margin: 0;
}
.doc .updated {
  color: var(--text-3);
  font-size: 15px;
  margin: 14px 0 0;
}
.doc .intro {
  color: var(--text-2);
  font-size: 19px;
  margin: 28px 0 0;
}
.doc h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 52px 0 0;
}
.doc p,
.doc li {
  color: #cbc6cd;
}
.doc p {
  margin: 14px 0 0;
}
.doc ul {
  margin: 14px 0 0;
  padding-left: 22px;
}
.doc li + li {
  margin-top: 8px;
}
.doc strong {
  color: var(--text);
  font-weight: 600;
}
.doc a {
  color: var(--ember);
  text-underline-offset: 3px;
}
.doc .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  margin-top: 28px;
}
.doc .card p:first-child {
  margin-top: 0;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 15px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  color: #cbc6cd;
}
.doc th {
  color: var(--text-3);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.doc td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.log {
  list-style: none;
  position: relative;
  margin: 48px 0 0;
  padding: 0;
}
.log::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--surface-strong);
}
.log > li {
  position: relative;
  padding: 0 0 48px 44px;
}
.log > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--surface-strong);
}
.log > li:first-child::before {
  background: var(--ember);
  box-shadow: 0 0 0 6px rgba(255, 122, 80, 0.15);
}
.log time {
  color: var(--text-3);
  font-size: 14px;
  font-weight: 600;
}
.log h2 {
  margin: 6px 0 0;
  font-size: 28px;
}
.log .latest {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ember-soft);
  color: var(--ember);
  font-size: 12px;
  font-weight: 700;
  vertical-align: 2px;
}

/* Small pages: invite, 404 */

.center {
  min-height: calc(100vh - 64px - 120px);
  min-height: calc(100svh - 64px - 120px);
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
  text-align: center;
}
.center .box {
  max-width: 460px;
  animation: up 800ms var(--ease) both;
}
.center h1 {
  font-size: clamp(34px, 6vw, 48px);
  margin: 0;
}
.center p {
  color: var(--text-2);
  margin: 14px 0 0;
}
.center .actions {
  justify-content: center;
}
.invite-cover {
  width: 132px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 auto 28px;
  box-shadow: 0 30px 80px -20px rgba(228, 87, 46, 0.45), 0 0 0 1px var(--line-strong);
  background: var(--surface);
}
.invite-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 14px;
  color: var(--text-2);
  font-size: 15px;
}
.invite-help {
  font-size: 14px;
  color: var(--text-3) !important;
  margin-top: 28px !important;
}
.lock {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  background: var(--surface);
  color: var(--text-3);
}
.lock svg {
  width: 30px;
  height: 30px;
}

/* Motion */

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}
@keyframes glow {
  from {
    opacity: 0.72;
  }
  to {
    opacity: 1;
  }
}
@keyframes flicker {
  0%,
  100% {
    transform: scale(1, 1);
  }
  25% {
    transform: scale(0.96, 1.05);
  }
  55% {
    transform: scale(1.03, 0.96);
  }
  80% {
    transform: scale(0.98, 1.02);
  }
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}
@keyframes opened {
  from {
    background: rgba(255, 122, 80, 0.18);
  }
  to {
    background: transparent;
  }
}

/* Sections settle in as they scroll into view. CSS only, so without support
   everything is simply there. */
@supports (animation-timeline: view()) {
  .rise {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Narrow screens */

@media (max-width: 999px) {
  .hero {
    padding: 40px 0 72px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .demo-wrap {
    justify-self: center;
  }
  .promises {
    grid-template-columns: 1fr;
  }
  .foot-card {
    grid-template-columns: repeat(3, 1fr);
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
  section {
    padding: 76px 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .nav-links a:not(.btn) {
    display: none;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
  .demo {
    padding: 16px;
    border-radius: 24px;
  }
  .seg button {
    font-size: 13px;
  }
  .phone {
    max-width: 260px;
    border-radius: 40px;
  }
  .phone img,
  .screens {
    border-radius: 32px;
  }
  .foot-card {
    grid-template-columns: 1fr 1fr;
    padding: 28px 24px;
  }
  .doc td:first-child {
    white-space: normal;
  }
}
