@font-face {
  font-family: "Afacad";
  src: url("fonts/AfacadFlux.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

/* Dark, greyscale only: the color on this page comes from the photo and the app screens. */
:root {
  --bg: #07080B;
  --surface: #0F1014;
  --surface-2: #16171C;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --text: #F5F5F7;
  --muted: rgba(245,245,247,.62);
  --faint: rgba(245,245,247,.38);
  --white: #FFFFFF;
  --ink: #1C1C1E;
  --display: "Afacad", ui-rounded, system-ui, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --page: min(1440px, calc(100% - clamp(32px, 6vw, 112px)));
  --nav-h: 78px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h2 { font-size: clamp(36px, 4.2vw, 64px); font-weight: 560; line-height: .98; letter-spacing: -.025em; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.lede { margin: 0; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--muted); max-width: 42ch; }
.eyebrow { margin: 0 0 20px; font: 600 12px/1 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Reveal: blur + rise, staggered with --d */
[data-reveal] {
  opacity: 0;
  translate: 0 26px;
  filter: blur(10px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s), translate .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s), filter .8s ease var(--d, 0s);
}
[data-reveal].in { opacity: 1; translate: 0 0; filter: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 16px;
  font: 600 17px/1 var(--display);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s cubic-bezier(.3,1.6,.5,1), background .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }
.btn.light { background: var(--white); color: var(--ink); }
.btn.light:hover { background: #E8E8EC; }
.btn.small { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn:focus-visible, .links a:focus-visible, .more:focus-visible, .logo:focus-visible, .foot-links a:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.more { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1 var(--ui); text-decoration: none; }
.more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  width: var(--page);
  height: var(--nav-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
}
/* No edge: the page blurs behind the bar and the blur fades out toward the bottom. */
.nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -50vw -110px;
  background: linear-gradient(rgba(7,8,11,.55), rgba(7,8,11,.22) 45%, rgba(7,8,11,0));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(#000 25%, rgba(0,0,0,.6) 55%, transparent);
  mask-image: linear-gradient(#000 25%, rgba(0,0,0,.6) 55%, transparent);
  pointer-events: none;
}
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 680 24px/1 var(--display); }
.links { position: relative; display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.08); }
/* the pill behind the link of the section you're in; main.js moves it */
.pill-ind { position: absolute; left: 0; top: 5px; bottom: 5px; width: 0; border-radius: 999px; background: var(--white); opacity: 0;
  transition: transform .45s cubic-bezier(.3,1.3,.5,1), width .45s cubic-bezier(.3,1.3,.5,1), opacity .25s; pointer-events: none; }
.links a { position: relative; z-index: 1; }
.links a.on, .links a.on:hover { color: var(--ink); background: transparent; }
.links a { padding: 10px 16px; border-radius: 999px; text-decoration: none; font: 600 14px/1 var(--ui); color: rgba(255,255,255,.72); transition: background .15s, color .15s; }
.links a:hover { background: rgba(255,255,255,.12); color: var(--white); }

/* Header: full-height photo anchored right, headline bottom left */
.header {
  position: relative;
  height: min(100svh, 960px);
  min-height: 620px;
  margin-top: calc(-1 * var(--nav-h));
  overflow: hidden;
  background: var(--bg);
  color: var(--white);
}
.header-bg {
  /* Full height, anchored right: the whole frame from wingtip to engine stays in view. On wide
     screens the left edge fades into the background; on narrow ones the left part just runs off. */
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  max-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%);
  mask-image: linear-gradient(90deg, transparent, #000 24%);
  animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes settle { from { transform: scale(1.08); filter: blur(18px) brightness(.6); } to { transform: none; filter: none; } }
.header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,8,11,.72) 0%, rgba(7,8,11,.35) 38%, rgba(7,8,11,0) 62%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7,8,11,.6) 16%, rgba(7,8,11,0) 38%);
  pointer-events: none;
}
.header-in {
  position: relative;
  z-index: 1;
  width: var(--page);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(56px, 11vh, 120px);
}
.header .eyebrow { margin-bottom: 22px; color: rgba(255,255,255,.6); }
.header h1 { font-size: clamp(48px, 6.2vw, 100px); font-weight: 560; line-height: .94; letter-spacing: -.025em; color: var(--white); }
.header .lede { max-width: 38ch; margin-top: 26px; color: rgba(255,255,255,.72); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 38px; }
/* scroll cue at the bottom middle of the header: three dots flowing down, in the logo's rhythm */
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: clamp(20px, 4vh, 40px); transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  font: 600 12px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.scroll-cue:hover { color: var(--white); }
.cue-dots { display: flex; flex-direction: column; gap: 5px; }
.cue-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: cue 1.6s ease-in-out infinite; }
.cue-dots i:nth-child(2) { animation-delay: .2s; }
.cue-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes cue { 0%, 100% { opacity: .25; transform: translateY(-2px); } 50% { opacity: 1; transform: translateY(2px); } }
.up { opacity: 0; translate: 0 22px; filter: blur(10px); animation: up 1.1s cubic-bezier(.2,.7,.2,1) var(--d, 0s) forwards; }
@keyframes up { to { opacity: 1; translate: 0 0; filter: blur(0); } }

/* Phones only: the photo on top, the headline tucked behind the cut-out engine */
.m-photo { display: none; }
/* How it works on phones: a plain dotted line through the step numbers instead of the SVG trail */
.flow-line { display: none; }

/* Phones: real app screenshots in a thin dark frame */
.phone {
  padding: 8px;
  border-radius: 48px;
  background: #000;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px rgba(0,0,0,.55);
}
.phone img { width: 100%; border-radius: 40px; }

/* Sections: one grid, hairline between them */
.sec { width: var(--page); margin: 0 auto; padding: clamp(88px, 10vw, 140px) 0 0; }
.sec + .sec { margin-top: clamp(88px, 10vw, 140px); border-top: 1px solid var(--border); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 56px; }
.sec-head .lede { justify-self: end; }

/* How it works: big phones, floating stickers, a dotted trail through the step numbers */
.flow { position: relative; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.trail path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trail-ghost { stroke: rgba(255,255,255,.12); stroke-width: 5; stroke-dasharray: 0 15; }
.trail-dots { stroke: var(--white); stroke-width: 6; stroke-dasharray: 0 15; }
.trail-reveal { stroke: #fff; stroke-width: 24; }
.trail-head { fill: var(--white); filter: drop-shadow(0 0 10px rgba(255,255,255,.9)) drop-shadow(0 0 26px rgba(255,255,255,.45)); }

.flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  min-height: 760px;
}
.flow-step + .flow-step { margin-top: 40px; }
.flow-step.flip .flow-copy { order: 2; }
.flow-copy { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 26px; align-items: start; max-width: 460px; justify-self: center; }
.flow-copy .node { grid-row: 1 / span 2; }
.flow-copy h3 { margin-top: 4px; font-size: clamp(34px, 3.4vw, 52px); font-weight: 560; letter-spacing: -.025em; line-height: 1; }
.flow-copy p { grid-column: 2; margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.node {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px dashed rgba(255,255,255,.28);
  font: 600 22px/1 var(--display);
  color: var(--faint);
  transition: background .5s, color .5s, border-color .5s, box-shadow .5s, transform .5s cubic-bezier(.3,1.6,.5,1);
}
.node.lit { background: var(--white); border: 2px solid var(--white); color: var(--ink); transform: scale(1.08); box-shadow: 0 0 0 8px rgba(255,255,255,.08), 0 0 40px rgba(255,255,255,.25); }

.flow-art { position: relative; justify-self: center; padding: 40px 0; }
.phone.big { width: clamp(250px, 24vw, 340px); rotate: var(--r, 0deg); }

/* Stickers: little pieces of the app floating around the phone */
.stk {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 18px;
  background: rgba(34,35,40,.78);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  font: 600 15px/1.2 var(--ui);
  color: var(--text);
  white-space: nowrap;
  rotate: var(--r, 0deg);
  translate: 0 var(--py, 0px);
  animation: bob 5s ease-in-out infinite;
}
.stk:nth-of-type(2n) { animation-duration: 6.2s; animation-delay: -1.4s; }
.stk:nth-of-type(3n) { animation-duration: 5.6s; animation-delay: -2.8s; }
@keyframes bob { 50% { transform: translateY(-9px); } }
.stk small { display: block; margin-top: 3px; font: 500 12px/1.2 var(--ui); color: var(--muted); }
.stk b { font-weight: 700; }
.stk.pill { border-radius: 999px; padding: 11px 18px 11px 12px; }
.ico.cal { width: 22px; height: 22px; border-radius: 7px; background: var(--white); position: relative; }
.ico.cal::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; border-radius: 7px 7px 0 0; background: #FF453A; }
.ico.cal::after { content: "17"; position: absolute; inset: 7px 0 0; display: grid; place-items: center; font: 800 10px/1 var(--display); color: var(--ink); }
.stk.goals { flex-direction: column; align-items: flex-start; gap: 9px; padding: 15px 18px; }
.stk.goals p { display: flex; align-items: center; gap: 10px; margin: 0; }
.stk.goals i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); }
.stk.goals .done { color: var(--faint); text-decoration: line-through; }
.stk.goals .done i { border-color: #58CC02; background: #58CC02 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.stk.bubble { width: 64px; height: 64px; padding: 0; justify-content: center; border-radius: 50%; }
.stk.check { background: #58CC02; border-color: #6BDB12; box-shadow: 0 6px 0 #46A302, 0 20px 40px rgba(88,204,2,.3); }
.stk.check svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.stk.flame { padding: 12px 18px 12px 14px; }
.stk.flame svg { width: 30px; height: 30px; fill: #FF9600; filter: drop-shadow(0 0 12px rgba(255,150,0,.6)); }
.stk.flame b { display: block; font: 800 24px/1 var(--display); }
.stk.flame span { font-size: 12px; color: var(--muted); }
.coin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #FFC800; box-shadow: inset 0 -3px 0 #D9A400; color: #fff; font-size: 13px; }
.stk.xp { font: 700 17px/1 var(--display); }
.stk.code { flex-direction: column; align-items: flex-start; gap: 2px; font: 600 14px/1.2 ui-monospace, "SF Mono", Menlo, monospace; }
.stk.code small { font-family: var(--ui); }
.stk.note { padding: 12px 18px 12px 12px; border-radius: 22px; }
.stk.note .app { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #000; border: 1px solid var(--border-strong); }
.stk.note .app img { width: 20px; }
.stk.up svg { width: 44px; height: 16px; fill: none; stroke: #58CC02; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.stk.call { gap: 8px; padding: 10px; }
.stk.call span { padding: 10px 14px; border-radius: 12px; font: 700 14px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.stk.call .no { background: #FF4B4B; box-shadow: 0 3px 0 #D93B3B; }
.stk.call .yes { background: #58CC02; box-shadow: 0 3px 0 #46A302; }

/* Features: cards sized to their content (visual on top, words under it), in three columns of different
   heights, so the section reads as a loose cluster */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.bento .col { display: flex; flex-direction: column; gap: 16px; will-change: transform; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  overflow: hidden;
}
.tile h3 { font-size: 22px; }
.tile-copy p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Widgets: the medium one, with the two small ones tucked under it */
.widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.widgets img { width: 100%; border-radius: 20px; box-shadow: 0 16px 34px rgba(0,0,0,.45); }
.widgets .wm { grid-column: 1 / -1; border-radius: 22px; }

/* Streak: flame and number side by side, the week lighting up underneath */
.t-streak { background: radial-gradient(80% 60% at 20% 0%, rgba(255,150,0,.14), transparent 70%), var(--surface); }
.streak-top { display: flex; align-items: center; gap: 16px; }
.flame-mini { width: 64px; height: 64px; flex: none; fill: #FF9600; filter: drop-shadow(0 0 22px rgba(255,150,0,.55)); transform-origin: 50% 90%; animation: flicker 2.4s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) rotate(0); } 30% { transform: scale(.97, 1.04) rotate(-1.5deg); } 60% { transform: scale(1.02, .97) rotate(1deg); } }
.streak-n { margin: 0; font: 600 14px/1 var(--ui); color: var(--muted); }
.streak-n b { display: block; margin-bottom: 4px; font: 600 54px/1 var(--display); color: var(--text); letter-spacing: -.03em; }
.week { display: flex; gap: 6px; }
.week i { flex: 1; display: grid; place-items: center; aspect-ratio: 1; max-width: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font: 700 12px/1 var(--display); font-style: normal; color: var(--faint); animation: light 7s infinite; }
.week i:nth-child(2) { animation-delay: .4s; } .week i:nth-child(3) { animation-delay: .8s; } .week i:nth-child(4) { animation-delay: 1.2s; }
.week i:nth-child(5) { animation-delay: 1.6s; } .week i:nth-child(6) { animation-delay: 2s; } .week i:nth-child(7) { animation-delay: 2.4s; }
@keyframes light { 0%, 4% { background: var(--surface-2); color: var(--faint); border-color: var(--border); } 8%, 82% { background: #FF9600; color: #fff; border-color: #FF9600; box-shadow: 0 3px 0 #D97F00; } 92%, 100% { background: var(--surface-2); color: var(--faint); border-color: var(--border); } }

/* Checkpoints: goals that tick themselves off, one after another */
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ticks li { position: relative; display: flex; align-items: center; gap: 12px; width: max-content; font: 600 17px/1.2 var(--ui); animation: goal 6s infinite; }
.ticks li::after { content: ""; position: absolute; left: 34px; right: 0; top: 52%; height: 2px; background: var(--faint); transform: scaleX(0); transform-origin: left; animation: strike 6s infinite; }
.ticks i { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); animation: check 6s infinite; background-position: center; background-size: 15px; background-repeat: no-repeat; }
.ticks li:nth-child(2), .ticks li:nth-child(2)::after, .ticks li:nth-child(2) i { animation-delay: 1s; }
.ticks li:nth-child(3), .ticks li:nth-child(3)::after, .ticks li:nth-child(3) i { animation-delay: 2s; }
@keyframes check { 0%, 12% { background-color: transparent; border-color: rgba(255,255,255,.3); background-image: none; transform: scale(1); }
  16% { transform: scale(1.25); } 20%, 82% { background-color: #58CC02; border-color: #58CC02; transform: scale(1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  90%, 100% { background-color: transparent; border-color: rgba(255,255,255,.3); background-image: none; } }
@keyframes goal { 0%, 14% { color: var(--text); } 22%, 82% { color: var(--faint); } 90%, 100% { color: var(--text); } }
@keyframes strike { 0%, 14% { transform: scaleX(0); } 24%, 82% { transform: scaleX(1); } 90%, 100% { transform: scaleX(0); } }

/* Numbers: a total that counts up over a chart that draws itself */
.num-big { font: 600 48px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.num-big em { display: block; margin-top: 8px; font: 700 14px/1 var(--ui); font-style: normal; letter-spacing: 0; color: #58CC02; }
.spark { width: 100%; height: 56px; margin-top: -8px; }
.spark path { fill: none; stroke: #58CC02; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.6,.05,.3,1) .3s; }
.in .draw, .draw.in { stroke-dashoffset: 0; }

/* The call: the three choices, one pressed every so often */
.choices { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 5px; }
.choices span { padding: 13px 16px; border-radius: 14px; font: 700 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.choices .keep { background: #58CC02; box-shadow: 0 5px 0 #46A302; animation: press 3.2s infinite; }
.choices .pivot { background: #1CB0F6; box-shadow: 0 5px 0 #1593CE; }
.choices .drop { background: #FF4B4B; box-shadow: 0 5px 0 #D93B3B; }
@keyframes press { 0%, 70%, 100% { transform: translateY(0); box-shadow: 0 5px 0 #46A302; } 76%, 84% { transform: translateY(5px); box-shadow: 0 0 0 #46A302; } }

/* Integrations: names on a 3D ring seen slightly from above; it's wider than the screen, so its sides
   come in from beyond both edges. main.js places the names and turns the ring with the scroll. */
.ring-stage {
  position: relative;
  height: var(--ring-h, 300px);
  margin: -16px calc(50% - 50vw) 0;
  overflow: hidden;
  perspective: var(--ring-p, 3000px);
  perspective-origin: 50% 0%;
}
.ring {
  position: absolute;
  left: 50%;
  top: var(--ring-top, 40%);
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  transform-style: preserve-3d;
}
.ring li {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -50%;
  font: 560 clamp(22px, 4.4vw, 72px)/1 var(--display);
  letter-spacing: -.02em;
  color: var(--text);
  white-space: nowrap;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: opacity;
}
.intg .sec-head { margin-bottom: 24px; }
.note.center { text-align: center; margin-top: 28px; }
.note { margin: 20px 0 0; font-size: 14px; color: var(--faint); }
.note a { color: var(--text); text-decoration: none; margin-left: 6px; }
.note a:hover { text-decoration: underline; }

/* Join */
#join { padding-bottom: clamp(88px, 10vw, 140px); }
.join {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  padding: clamp(36px, 6vw, 80px);
  padding-bottom: 0;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: radial-gradient(70% 90% at 85% 100%, rgba(255,255,255,.07), transparent 60%), var(--surface);
}
.join-copy { position: relative; z-index: 1; }
.join-copy h2 { margin-bottom: 22px; }
.join { position: relative; overflow: hidden; padding-bottom: clamp(36px, 6vw, 80px); }
.join-art { align-self: stretch; min-height: 340px; }
/* the logo drawing itself, its dotted line running on to the Join button (main.js places it) */
.join-draw { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.join-draw path { fill: none; stroke: var(--white); stroke-linecap: round; stroke-linejoin: round; }
/* timeline: left dots 0.2 s, the P (bar → bowl → stem) 0.5–1.9 s, bottom dots, then the trail to the button */
.jd-stroke { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.45,0,.25,1) .5s; }
.jd-dot { opacity: 0; transition: opacity .18s; }
.join.in .jd-stroke { stroke-dashoffset: 0; }
.join.in .d1 { opacity: 1; transition-delay: .2s; }
.join.in .d2 { opacity: 1; transition-delay: .35s; }
.join.in .d3 { opacity: 1; transition-delay: 1.95s; }
.join.in .d4 { opacity: 1; transition-delay: 2.1s; }
.jd-reveal { stroke: #fff; stroke-dasharray: var(--L, 1); stroke-dashoffset: var(--L, 1); }
.r-out { transition: stroke-dashoffset 1.5s cubic-bezier(.45,0,.55,1) 2.2s; }
.join.in .jd-reveal { stroke-dashoffset: 0; }
.join .waitlist .btn { transition: transform .15s cubic-bezier(.3,1.6,.5,1), background .2s, box-shadow .4s; }
.join.arrived .waitlist .btn { box-shadow: 0 0 0 6px rgba(255,255,255,.12), 0 0 40px rgba(255,255,255,.35); }
.waitlist { display: flex; gap: 10px; max-width: 460px; margin-top: 32px; }
.waitlist input[type=email] {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: 500 17px/1 var(--ui);
  outline: none;
  transition: border-color .15s, background .15s;
}
.waitlist input::placeholder { color: var(--faint); }
.waitlist input[type=email]:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.waitlist.bad input[type=email] { border-color: #FF453A; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.fine { margin: 14px 0 0; font: 500 13px/1.4 var(--ui); color: var(--faint); }
.fine.ok { color: var(--text); font-weight: 600; }
.fine.err { color: #FF6961; }
.fine a { color: inherit; }
.store-row { margin-top: 28px; }

/* App Store button. Until the app is live it's our own button (Apple's badge may only be used for apps
   available on the App Store); at launch swap in the official badge, unmodified, linking to the product page. */
.btn.store { gap: 12px; padding: 0 22px 0 18px; background: rgba(255,255,255,.06); border: 1px solid var(--border-strong); color: var(--text); text-align: left; }
.btn.store:hover { background: rgba(255,255,255,.1); }
.btn.store svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.store span { display: flex; flex-direction: column; gap: 3px; font: 600 16px/1 var(--display); }
.btn.store small { font: 600 10px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.btn.store[aria-disabled="true"] { cursor: default; }

/* FAQ and privacy pages */
.doc-page .nav::before { inset: 0 -50vw -60px; }
.doc { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: clamp(56px, 8vw, 110px) 0 clamp(88px, 10vw, 140px); }
.doc h1 { font-size: clamp(44px, 6vw, 80px); font-weight: 560; letter-spacing: -.025em; line-height: .96; }
.doc > .lede { margin-top: 22px; max-width: 52ch; }
.doc a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--text); }
.doc .btn { text-decoration: none; }
.qa-list { margin-top: 56px; }
.qa-list h2, .policy h2 { margin: 48px 0 14px; font-size: 26px; font-weight: 560; letter-spacing: -.015em; }
.qa { border-top: 1px solid var(--border); }
.qa:last-of-type { border-bottom: 1px solid var(--border); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font: 560 20px/1.25 var(--display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; translate: 0 -3px; transition: rotate .25s, translate .25s; }
.qa[open] summary::after { rotate: 225deg; translate: 0 3px; }
.qa > div { padding: 0 40px 22px 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.qa p { margin: 0; }
.qa code { font: 500 14px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); }
.contact-card { margin-top: 64px; padding: 32px; border: 1px solid var(--border); border-radius: 28px; background: var(--surface); }
.contact-card h2 { font-size: 28px; font-weight: 560; }
.contact-card p { margin: 10px 0 0; color: var(--muted); }
.policy { margin-top: 24px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.policy h2 { color: var(--text); }
.policy p { margin: 0 0 12px; }
.policy ul { margin: 0 0 12px; padding-left: 20px; }
.policy li { margin: 6px 0; }
.links a.on.solid { background: var(--white); color: var(--ink); }

/* Docs: table of contents on the left, guide on the right */
.docs { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
.docs-main { width: auto; margin: 0; max-width: 820px; }
.docs-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; padding-top: clamp(56px, 8vw, 110px); max-height: calc(100vh - var(--nav-h) - 24px); overflow: auto; }
.docs-toc ol { margin: 0; padding: 0; list-style: none; }
.docs-toc > ol > li { margin-top: 14px; }
.docs-toc ol ol { margin: 6px 0 0; padding-left: 14px; border-left: 1px solid var(--border); }
.docs-toc ol ol li { margin-top: 6px; }
.docs-toc a { color: var(--muted); text-decoration: none; font-size: 14px; }
.docs-toc > ol > li > a { color: var(--text); font-weight: 600; }
.docs-toc a:hover { color: var(--text); }
.label { margin: 0 0 8px; font: 600 11px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.docs-main section > h2 { margin: 72px 0 16px; font-size: clamp(30px, 3vw, 40px); font-weight: 560; letter-spacing: -.02em; color: var(--text); scroll-margin-top: calc(var(--nav-h) + 20px); }
.docs-main h3 { margin: 40px 0 12px; font-size: 22px; font-weight: 600; scroll-margin-top: calc(var(--nav-h) + 20px); }
.docs-main section, .doc-group, .intg-doc { scroll-margin-top: calc(var(--nav-h) + 20px); }
.docs-main p, .docs-main li { color: var(--muted); font-size: 16px; line-height: 1.65; }
.docs-main .label { font-size: 11px; line-height: 1; color: var(--faint); }
.docs-main b { color: var(--text); font-weight: 600; }
.docs-main code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font: 500 13.5px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); }
.docs-main pre { margin: 16px 0; padding: 18px 20px; overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.docs-main pre code { padding: 0; background: none; font-size: 13.5px; line-height: 1.6; white-space: pre; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 18px; }
.way { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); text-decoration: none !important; transition: border-color .2s, background .2s; }
.way:hover { border-color: var(--border-strong); background: var(--surface-2); }
.way b { font: 600 19px/1.1 var(--display); }
.way span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.intg-doc { margin-top: 14px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.intg-doc header { display: flex; align-items: center; gap: 10px; }
.intg-doc h4 { margin: 0; font: 600 21px/1.1 var(--display); }
.tag { padding: 5px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font: 600 11px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.provides { margin: 6px 0 0 !important; }
.intg-cols { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; margin-top: 18px; }
.need { margin: 0; padding: 0; list-style: none; }
.need li { padding: 7px 0; border-top: 1px solid var(--border); font-size: 15px !important; color: var(--text) !important; }
.need li span { display: block; font-size: 12px; color: var(--faint); }
.steps { margin: 0; padding-left: 22px; }
.steps li { margin: 0 0 8px; padding-left: 4px; font-size: 15px !important; }
.steps li::marker { color: var(--faint); font-weight: 600; }
.plain { padding-left: 20px; }
.plain li { margin: 6px 0; }

/* Footer */
.foot { border-top: 1px solid var(--border); }
.foot-in { width: var(--page); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 0 44px; }
.foot .logo { font-size: 19px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 28px; }
.foot-links a { text-decoration: none; font-size: 14px; color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.copy { margin: 0; font-size: 13px; color: var(--faint); }

/* Tablet */
@media (max-width: 1080px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .col:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; margin-top: 0; }
  .links { display: none; }
}
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-toc { display: none; }
  .ways, .intg-cols { grid-template-columns: 1fr; }
  .intg-cols { gap: 14px; }
  .flow-step, .flow-step.flip { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .flow-step + .flow-step { margin-top: 72px; }
  .flow-step.flip .flow-copy { order: 0; }
  .flow-copy { justify-self: start; padding-left: 4px; }
  .flow-art { padding: 24px 0; }
  .sec-head, .join { grid-template-columns: 1fr; }
  .sec-head { gap: 20px; margin-bottom: 40px; }
  .sec-head .lede { justify-self: start; }
  .join-art { min-height: 0; height: 0; }
  .join-draw { display: none; }
}
/* Phone */
@media (max-width: 700px) {
  /* header: the photo on top, the headline below it on plain dark */
  .header { height: auto; min-height: 0; overflow: visible; }
  .header-bg, .header::after { display: none; }
  .header-in { height: auto; justify-content: flex-start; padding-bottom: 24px; }
  .header h1 { font-size: clamp(44px, 15.4vw, 70px); }
  /* just below the engine's lowest point (about 95% down the photo) */
  .header .lede { position: relative; z-index: 5; margin-top: -3vw; }
  .cta-row { gap: 10px; margin-top: 28px; flex-wrap: nowrap; }
  .cta-row .btn { flex: 1; padding: 0 14px; }
  .scroll-cue { display: none; }
  .header-in { padding-top: 0; }
  .header .eyebrow { display: none; }
  /* the photo and the headline share the first cell; the rest follows below the photo */
  .header-in { display: grid; grid-template-columns: minmax(0, 1fr); }
  .m-photo, .header h1 { grid-area: 1 / 1; }
  .m-photo { display: block; position: relative; width: 100vw; margin: 0 calc(50% - 50vw); aspect-ratio: 720 / 990; }
  .m-base { display: block; width: 100%; height: 100%; }
  /* fade into the page at the bottom (where the headline sits) and a little at the top for the nav */
  .m-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(7,8,11,.55) 0%, rgba(7,8,11,0) 16%, rgba(7,8,11,0) 62%, rgba(7,8,11,.7) 84%, var(--bg) 100%); }
  /* the engine, cut out, over the headline: same box as in the photo (316,573 → 720,938 of 720×990) */
  .m-engine { position: absolute; z-index: 3; left: 43.889%; top: 57.879%; width: 56.111%; height: auto; }
  /* darkens the engine's lower right, over the cut-out too */
  .m-vignette { position: absolute; inset: 0; z-index: 4; pointer-events: none;
    background: radial-gradient(46% 30% at 100% 97%, rgba(7,8,11,1), rgba(7,8,11,.85) 45%, transparent 100%); }
  /* the headline in the middle of the photo; "off" slips under the top left of the engine */
  .header h1 { position: relative; z-index: 2; align-self: end; margin-bottom: var(--h1-lift, 41.5vw); }
  /* a soft dark backdrop behind the words, under the engine */
  .header h1::before { content: ""; position: absolute; z-index: -1; inset: -34% -12% -30% -10%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(0,0,0,.62), rgba(0,0,0,.35) 55%, transparent); }

  /* how it works: a light timeline */
  .trail { display: none; }
  .flow-line { display: block; position: absolute; z-index: 0; width: 6px; margin-left: -3px; background: radial-gradient(circle, rgba(255,255,255,.16) 2.4px, transparent 2.9px) 0 0 / 6px 15px repeat-y; }
  .flow-line i { display: block; width: 100%; height: 0; background: radial-gradient(circle, #fff 2.8px, transparent 3.3px) 0 0 / 6px 15px repeat-y; }
  .flow-step + .flow-step { margin-top: 56px; }
  .flow-art { padding: 8px 0 0; justify-self: center; }
  .phone.big { width: min(64vw, 250px); rotate: 0deg; }
  .stk { backdrop-filter: none; -webkit-backdrop-filter: none; background: #222328; translate: none; }
  .flow-art .stk:nth-of-type(3) { display: none; }
}
@media (max-width: 560px) {
  .bento, .bento .col:nth-child(3) { grid-template-columns: 1fr; }
  .bento .col:nth-child(2) { margin-top: 0; }
  .tile { padding: 22px; }
  .stk { font-size: 13px; padding: 9px 12px; }
  .stk.goals { padding: 12px 14px; }
  .stk.flame b { font-size: 20px; }
  .stk[style*="left:-1"] { left: -4% !important; }
  .stk[style*="right:-1"] { right: -4% !important; }
  .header::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(7,8,11,.75) 30%, rgba(7,8,11,.35) 60%, rgba(7,8,11,0) 80%); }
  .cta-row { gap: 14px 20px; flex-wrap: wrap; }
  .waitlist { flex-direction: column; }
  .waitlist input[type=email] { flex: none; width: 100%; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; translate: none; filter: none; transition: none; }
  .header-bg, .up { animation: none; opacity: 1; translate: none; filter: none; }
  .cue-dots i { animation: none; opacity: .8; }
  .stk, .flame-mini, .week i, .ticks li, .ticks li::after, .ticks i, .choices .keep { animation: none; }
}
