/* Fitchat website. One stylesheet for every page. No external fonts or assets. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-raised: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;            /* 5.07:1 on white, 4.66:1 on --bg-alt */
  --rule: #d2d2d7;
  --rule-soft: #e8e8ed;
  --field-border: #86868b;      /* 3.6:1, meets non-text contrast */
  --accent: #0a6cf0;            /* app blue; white text on it is 4.76:1 */
  --accent-hover: #0060d6;
  --link: #0064d9;              /* 5.0:1 on --bg-alt */
  --bubble-them: #e9e9eb;
  --bubble-them-text: #000000;
  --soft-fill: #e8e8ed;
  --soft-fill-text: #1d1d1f;
  --danger: #d70015;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --phone-edge: #c6c6cb;
  --phone-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 30px 60px -24px rgba(0, 0, 0, 0.3);
  --night: #000000;             /* the Lock Screen tile */
  --night-text: #f5f5f7;
  --night-text-2: #a1a1a6;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 44px);
  --max: 1120px;
  --tile-radius: clamp(24px, 2.6vw, 32px);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* The surface a bubble sits on; containers with their own background override it. */
body { --surface: var(--bg); }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #161617;
    --bg-raised: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;          /* 7.0:1 on --bg-alt */
    --rule: #424245;
    --rule-soft: #2c2c2e;
    --field-border: #7c7c80;
    --accent-hover: #2a80f5;
    --link: #2997ff;            /* 6.0:1 on --bg-alt */
    --bubble-them: #262628;
    --bubble-them-text: #ffffff;
    --soft-fill: #2c2c2e;
    --soft-fill-text: #f5f5f7;
    --danger: #ff6961;
    --nav-bg: rgba(22, 22, 23, 0.8);
    --phone-edge: #4c4c50;
    --phone-shadow: none;
    --night: #161617;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--text); text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
p, li, dd { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -64px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 10px; text-decoration: none; }

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

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-2);
}
.headline {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(19px, 1.65vw, 22px);
  line-height: 1.42;
  letter-spacing: 0.003em;
  color: var(--text-2);
}
.lead strong, .tile-text strong, .muted strong { color: var(--text); font-weight: 600; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 17px;
}
.more::after { content: "\203A"; font-size: 1.2em; line-height: 1; transform: translateY(-0.04em); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule-soft);
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.nav-inner {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 22.5%; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.nav-links a { color: var(--text); opacity: 0.8; padding: 12px 0; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a[aria-current="page"] { opacity: 1; font-weight: 600; }
@media (max-width: 600px) {
  .nav-links .wide { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-soon { background: var(--soft-fill); color: var(--soft-fill-text); cursor: default; }
.btn-soon:active { transform: none; }
.btn-plain { background: transparent; color: var(--link); padding: 0 4px; min-height: 44px; }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.cta-note { font-size: 15px; color: var(--text-2); letter-spacing: -0.01em; }

/* ---------- Message bubbles ---------- */
/* Tails are the classic two-pseudo-element cut: the second one is painted in the surface color. */
.thread {
  display: flex;
  flex-direction: column;
  gap: 0.36em;
}
.bubble {
  position: relative;
  width: fit-content;
  max-width: 82%;
  padding: 0.4em 0.78em 0.44em;
  border-radius: 1.1em;
  line-height: 1.3;
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
}
.bubble::before, .bubble::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 1.05em;
}
.bubble.me { align-self: flex-end; margin-right: 0.36em; background: var(--accent); color: #fff; }
.bubble.me::before {
  right: -0.4em;
  width: 1.05em;
  background: var(--accent);
  border-bottom-left-radius: 0.85em 0.8em;
}
.bubble.me::after {
  right: -0.62em;
  width: 0.62em;
  background: var(--surface);
  border-bottom-left-radius: 0.55em;
}
.bubble.them { align-self: flex-start; margin-left: 0.36em; background: var(--bubble-them); color: var(--bubble-them-text); }
.bubble.them::before {
  left: -0.4em;
  width: 1.05em;
  background: var(--bubble-them);
  border-bottom-right-radius: 0.85em 0.8em;
}
.bubble.them::after {
  left: -0.62em;
  width: 0.62em;
  background: var(--surface);
  border-bottom-right-radius: 0.55em;
}
.bubble > * { position: relative; z-index: 1; }

.typing { display: inline-flex; align-items: center; gap: 0.24em; padding: 0.68em 0.86em; }
.typing span {
  width: 0.4em; height: 0.4em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.32;
  animation: typing 1.1s infinite var(--ease);
}
.typing span:nth-child(2) { animation-delay: 0.16s; }
.typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.32; } 30% { opacity: 0.85; } }

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(0.4em) scale(0.94); }
  to { opacity: 1; transform: none; }
}
.thread.play .bubble.me { transform-origin: 100% 100%; animation: bubble-in 0.5s var(--ease-out) 0.2s both; }
.thread.play .bubble.them { transform-origin: 0 100%; animation: bubble-in 0.45s var(--ease-out) both; }
.thread.play .typing { animation-delay: 0.85s; }

/* ---------- iPhone frame (pure CSS; the screenshot supplies the Dynamic Island) ---------- */
.phone {
  --w: 300px;
  position: relative;
  flex: none;
  width: var(--w);
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.165);
  background: #0c0c0d;
  box-shadow:
    inset 0 0 0 calc(var(--w) * 0.005) #3a3a3d,
    0 0 0 calc(var(--w) * 0.0075) var(--phone-edge),
    var(--phone-shadow);
}
.phone::before, .phone::after {
  content: "";
  position: absolute;
  width: calc(var(--w) * 0.011);
  background: var(--phone-edge);
}
.phone::before { /* volume buttons */
  left: calc(var(--w) * -0.017);
  top: 22%;
  height: 7.5%;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 calc(var(--w) * 0.2) 0 var(--phone-edge);
}
.phone::after { /* side button */
  right: calc(var(--w) * -0.017);
  top: 27%;
  height: 11.5%;
  border-radius: 0 3px 3px 0;
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1434;
  object-fit: cover;
  object-position: 50% 0;
  border-radius: calc(var(--w) * 0.135);
  background: #f2f2f7;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 9vw, 128px); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
}
.hero .thread {
  font-size: clamp(18px, 1.75vw, 23px);
  max-width: 24em;
}
.hero h1 {
  margin-top: clamp(32px, 4.2vw, 56px);
  font-size: clamp(44px, 6.1vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.024em;
  font-weight: 600;
}
.hero .lead { margin-top: 22px; max-width: 29em; }
.hero .cta { margin-top: 36px; }
.hero-device { display: flex; justify-content: center; }
.hero-device .phone { --w: clamp(250px, 25vw, 330px); }

@media (max-width: 899px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero .thread { max-width: 30em; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section.tight-top { padding-top: 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 780px; margin: 0 auto; text-align: center; }
.section-head .headline { margin-top: 10px; }
.section-head .eyebrow + .headline { margin-top: 10px; }
.section-head .lead { margin: 18px auto 0; max-width: 34em; text-wrap: balance; }
.section-head .more { margin-top: 18px; }

/* Message → result cards */
.exchanges {
  list-style: none;
  margin: clamp(44px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.exchange {
  --surface: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 28px 30px 32px;
  border-radius: 24px;
  background: var(--bg-alt);
}
.exchange .thread { font-size: 17px; }
.exchange p.result { color: var(--text-2); font-size: 17px; line-height: 1.45; }
.exchange p.result strong { display: block; color: var(--text); font-size: 21px; line-height: 1.25; letter-spacing: 0.002em; margin-bottom: 4px; }
.exchange { justify-content: space-between; }
.exchange .bubble { max-width: 88%; }

/* Cards Fitty sends, redrawn small. They mirror the app's cards: raised fill, 13px type, tabular numbers. */
.mini {
  align-self: flex-start;
  width: min(100%, 258px);
  margin: 0.1em 0 0.1em 0.36em;
  padding: 12px 14px 13px;
  border-radius: 18px;
  background: var(--bg-raised);
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: -0.006em;
  font-variant-numeric: tabular-nums;
}
@media (prefers-color-scheme: dark) { .mini { box-shadow: inset 0 0 0 1px var(--rule-soft); } }
.mini p, .mini ol { margin-top: 0; margin-bottom: 0; }
.mini i { font-style: normal; color: var(--text-2); margin-left: 4px; }
.mini-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 600; }
.mini-meta { font-size: 12px; font-weight: 400; color: var(--text-2); }
.mini-meta.strong { font-size: 15px; font-weight: 600; color: var(--text); }
.mini .mini-label { margin-top: 2px; font-size: 12px; color: var(--text-2); }
.mini-value { font-weight: 600; }
.mini .mini-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; margin-top: 9px; border-top: 1px solid var(--rule-soft); }
.mini .mini-title + .mini-row { margin-top: 10px; }
.dots { display: inline-flex; gap: 5px; flex: none; }
.dots b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--rule); color: #fff; }
.dots b.on { background: #34c759; box-shadow: none; }
.dots svg { width: 12px; height: 12px; }
.mini .mini-clock { margin-top: 2px; font: 600 34px/1.1 ui-rounded, "SF Pro Rounded", var(--font-display); letter-spacing: 0; color: var(--accent); text-align: center; }
.mini .mini-bar { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--rule-soft); overflow: hidden; }
.mini-bar span { display: block; width: 100%; height: 100%; border-radius: 2px; background: var(--accent); }
.mini .mini-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.pill { padding: 6px 0; border-radius: 99px; background: var(--soft-fill); color: var(--link); font-weight: 600; text-align: center; }
.pill.solid { background: var(--accent); color: #fff; }
.mini .barbell { display: flex; align-items: center; height: 46px; margin-top: 8px; }
.barbell .sleeve { width: 30px; height: 6px; border-radius: 3px; background: var(--rule); }
.barbell .sleeve.short { width: 18px; margin-left: 2px; }
.barbell .collar { width: 4px; height: 14px; margin: 0 2px 0 1px; border-radius: 1px; background: var(--field-border); }
.barbell .plate { width: 10px; height: 46px; margin-right: 2px; border-radius: 3px; background: var(--accent); }
.badge { padding: 2px 8px; border-radius: 99px; background: rgba(52, 199, 89, 0.16); color: #248a3d; font-size: 11px; font-weight: 600; }
.mini .mini-stats { display: flex; gap: 16px; margin-top: 8px; font-size: 11px; color: var(--text-2); }
.mini-stats span { display: flex; flex-direction: column; }
.mini-stats b { font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.mini .mini-pr { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--rule-soft); font-size: 12px; font-weight: 600; color: #248a3d; }
@media (prefers-color-scheme: dark) { .badge, .mini-pr { color: #30d158; } }
.mini .mini-steps { margin-top: 8px; padding: 9px 0 0 1.5em; border-top: 1px solid var(--rule-soft); }
.mini-steps li { padding-left: 2px; }
.mini-steps li + li { margin-top: 3px; }
.mini-steps li::marker { color: var(--text-2); font-weight: 600; }

@media (max-width: 980px) { .exchanges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .exchanges { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .exchange { gap: 26px; padding: 24px 24px 26px; }
}

/* Cards gallery: live cards in a row you can swipe, like a shelf. */
.cards { overflow: hidden; }
.gallery { margin-top: clamp(40px, 5vw, 64px); }
.gallery-track {
  list-style: none;
  margin: 0;
  display: flex;
  gap: 20px;
  padding: 8px max(var(--gutter), calc((100vw - var(--max)) / 2)) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.g-item {
  --surface: var(--bg-alt);
  flex: none;
  width: min(84vw, 372px);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 30px 32px;
  border-radius: 28px;
  background: var(--bg-alt);
  scroll-snap-align: start;
}
.g-cap { color: var(--text-2); font-size: 17px; line-height: 1.4; }
.g-cap strong { display: block; color: var(--text); font-size: 21px; letter-spacing: 0.002em; margin-bottom: 4px; }
.mini.big { width: 100%; margin: 0; padding: 18px 20px 20px; border-radius: 24px; font-size: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -22px rgba(0, 0, 0, 0.28); }
@media (prefers-color-scheme: dark) { .mini.big { box-shadow: inset 0 0 0 1px var(--rule-soft); } }
.mini.big .mini-title { font-size: 19px; }
.mini.big .mini-meta, .mini.big .mini-label { font-size: 14px; }
.mini.big .mini-label.foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule-soft); }
.mini.big .mini-row { padding-top: 12px; margin-top: 12px; }
.mini.big .mini-clock { font-size: 56px; margin-top: 6px; }
.mini.big .mini-bar { height: 6px; border-radius: 3px; margin-top: 12px; }
.mini.big .mini-bar span { transform-origin: 0 50%; }
.mini.big .mini-actions { margin-top: 16px; gap: 10px; }
.mini.big .mini-actions.one { grid-template-columns: 1fr; }
.mini.big .mini-stats { gap: 22px; margin-top: 12px; font-size: 13px; }
.mini.big .mini-stats b { font-size: 24px; }
.mini.big .mini-pr { font-size: 14px; margin-top: 14px; padding-top: 12px; }
.mini.big .mini-value { font-size: 17px; }
.mini.big .badge { font-size: 12px; padding: 3px 10px; }
.mini button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mini button.pill { padding: 9px 0; border-radius: 99px; background: var(--soft-fill); color: var(--link); font-weight: 600; transition: transform 0.2s var(--ease-out), opacity 0.2s; }
.mini button.pill.solid { background: var(--accent); color: #fff; }
.mini button.pill:active { transform: scale(0.96); }
.mini button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--rule); transition: transform 0.25s var(--ease-out), background 0.2s, box-shadow 0.2s; }
.mini button.dot { color: transparent; }
.dot svg { width: 18px; height: 18px; }
.mini button.dot.on { background: #34c759; box-shadow: none; color: #fff; animation: pop 0.35s var(--ease-out); }
.mini.big .dots { gap: 8px; }
@keyframes pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
.stepper { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; color: var(--link); font-size: 24px; line-height: 1; font-weight: 400; }
.stepper output { min-width: 3.6em; text-align: center; }
.mini.big .barbell { height: 76px; margin: 12px 0 10px; }
.mini.big .barbell .sleeve { width: 52px; height: 9px; border-radius: 5px; }
.mini.big .barbell .sleeve.short { width: 26px; }
.mini.big .barbell .collar { width: 6px; height: 22px; }
.mini.big .barbell .plate { width: 16px; height: 76px; border-radius: 4px; margin-right: 3px; animation: slide-on 0.3s var(--ease-out) both; }
.mini.big .barbell .plate.p25 { height: 62px; }
.mini.big .barbell .plate.p10 { height: 46px; width: 12px; }
.mini.big .barbell .plate.p5 { height: 34px; width: 9px; background: var(--field-border); }
.mini.big .barbell .plate.p2 { height: 26px; width: 7px; background: var(--field-border); }
.mini.big .mini-row i { display: block; margin: 1px 0 0; font-size: 14px; }
@keyframes slide-on { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.gain { color: #248a3d; font-weight: 600; }
@media (prefers-color-scheme: dark) { .gain { color: #30d158; } }
.chart { display: block; width: 100%; height: auto; margin-top: 12px; overflow: visible; }
.chart .grid path { stroke: var(--rule-soft); stroke-width: 1; fill: none; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.chart .area { fill: var(--accent); opacity: 0.14; }
.chart .ticks text { fill: var(--text-2); font-size: 10px; }
.g-item.draw-pending .chart .line { stroke-dashoffset: 1; }
.g-item.draw-pending .chart .area { opacity: 0; }
.g-item.draw-in .chart .line { transition: stroke-dashoffset 1.8s var(--ease-out) 0.2s; }
.g-item.draw-in .chart .area { transition: opacity 1s var(--ease) 1.2s; }
.choices { margin-top: 12px; border-top: 1px solid var(--rule-soft); }
.mini button.choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 0; text-align: left; }
.choice + .choice { border-top: 1px solid var(--rule-soft); }
.choice b { display: block; font-weight: 600; }
.choice i { display: block; margin: 1px 0 0; font-size: 14px; }
.radio { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--rule); transition: box-shadow 0.2s, background 0.2s; }
.choice[aria-checked="true"] .radio { background: var(--accent); box-shadow: inset 0 0 0 6px var(--accent), inset 0 0 0 12px #fff; }
.gallery-nav { display: flex; justify-content: flex-end; gap: 14px; }
.round { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft-fill); color: var(--text); cursor: pointer; transition: opacity 0.2s, transform 0.2s var(--ease-out); }
.round svg { width: 16px; height: 16px; }
.round:disabled { opacity: 0.35; cursor: default; }
.round:not(:disabled):active { transform: scale(0.92); }
@media (max-width: 620px) { .g-item { min-height: 400px; padding: 24px 22px 26px; } .gallery-nav { display: none; } }

/* Feature tiles */
.tiles { display: grid; gap: 20px; }
.tile {
  --surface: var(--bg-alt);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border-radius: var(--tile-radius);
  background: var(--bg-alt);
}
.tile-copy { padding: clamp(36px, 5.4vw, 80px); }
.tile-title {
  margin-top: 10px;
  font-size: clamp(32px, 3.7vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.018em;
}
.tile-text {
  margin-top: 20px;
  max-width: 27em;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.43;
  letter-spacing: 0.002em;
  color: var(--text-2);
}
.tile-text + .tile-text { margin-top: 14px; }
.tile-media {
  align-self: end;
  display: flex;
  justify-content: center;
  height: clamp(460px, 44vw, 600px);
  padding-top: clamp(48px, 5.5vw, 76px);
  overflow: hidden;
}
.tile-media .phone { --w: clamp(250px, 24vw, 300px); }
/* Where the part worth seeing is at the bottom of the screen, the phone hangs from the top edge instead. */
.tile-media.bottom { align-self: start; align-items: flex-end; padding-top: 0; padding-bottom: clamp(48px, 5.5vw, 76px); }
.tile-media.bottom .phone img { object-position: 50% 100%; }
/* The Lock Screen is shown whole. */
.tile-media.whole { align-self: center; align-items: center; height: auto; padding: clamp(40px, 4.6vw, 64px) 0; }
.tile-media.whole .phone { --w: clamp(230px, 21vw, 272px); }
.tile.flip .tile-copy { order: 2; }
@media (max-width: 860px) {
  .tile { grid-template-columns: minmax(0, 1fr); }
  .tile.flip .tile-copy { order: 0; }
  .tile-copy { padding-bottom: 0; }
  .tile-media { height: 420px; padding-top: 44px; }
  .tile-media.bottom { order: -1; padding-bottom: 0; }
  .tile:has(.tile-media.bottom) .tile-copy { padding-top: 32px; padding-bottom: 40px; }
  .tile-media.whole { height: auto; padding: 44px 0 48px; }
}

/* Timers tile: the one dark tile, like a Lock Screen */
.tile-night { --surface: var(--night); background: var(--night); }
.tile-night .eyebrow, .tile-night .tile-text { color: var(--night-text-2); }
.tile-night .tile-title, .tile-night .tile-text strong { color: var(--night-text); }

/* Statement (Fitty) */
.statement .headline { font-size: clamp(38px, 5.6vw, 72px); letter-spacing: -0.024em; line-height: 1.05; }
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  max-width: 900px;
  margin: clamp(48px, 6vw, 72px) auto 0;
}
.pair h3 { font-size: 21px; letter-spacing: 0.002em; }
.pair p { margin-top: 8px; color: var(--text-2); font-size: 17px; }
.pair > div { display: flex; flex-direction: column; }
.pair .thread { flex: 1; font-size: 17px; margin-bottom: 26px; }
@media (max-width: 680px) { .pair { grid-template-columns: minmax(0, 1fr); } }

/* Details list */
.details {
  list-style: none;
  margin: clamp(40px, 5vw, 60px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
}
.details li { padding: 22px 0 26px; border-top: 1px solid var(--rule); }
.details h3 { font-size: 19px; line-height: 1.3; letter-spacing: 0.002em; }
.details p { margin-top: 6px; color: var(--text-2); font-size: 17px; line-height: 1.45; }
.details .soon { font-weight: 400; color: var(--text-2); }
@media (max-width: 900px) { .details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .details { grid-template-columns: minmax(0, 1fr); } }

/* Privacy */
.privacy-mark { width: 44px; height: 44px; margin: 0 auto 20px; color: var(--text); }
.privacy-list {
  list-style: none;
  margin: clamp(44px, 5vw, 64px) auto 0;
  padding: 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 5vw, 72px);
}
.privacy-list li { padding: 24px 0 28px; border-top: 1px solid var(--rule); }
.privacy-list h3 { font-size: 21px; letter-spacing: 0.002em; }
.privacy-list p { margin-top: 8px; color: var(--text-2); }
.privacy-foot { margin-top: 36px; text-align: center; }
@media (max-width: 720px) { .privacy-list { grid-template-columns: minmax(0, 1fr); } }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: clamp(44px, 5vw, 64px) auto 0;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.6vw, 44px);
  border: 1px solid var(--rule);
  border-radius: 28px;
  background: var(--bg);
}
.plan-name { font-size: 21px; letter-spacing: 0.002em; }
.plan-price {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(44px, 4.6vw, 56px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.plan-price small { font-size: 0.36em; font-weight: 500; letter-spacing: -0.005em; color: var(--text-2); margin-left: 4px; }
.plan-alt { margin-top: 10px; color: var(--text-2); min-height: 1.47em; }
.plan ul { list-style: none; margin: 28px 0 0; padding: 0; }
.plan li { padding: 14px 0; border-top: 1px solid var(--rule-soft); }
.plan li:last-child { border-bottom: 1px solid var(--rule-soft); }
.fine { margin-top: 24px; text-align: center; font-size: 14px; color: var(--text-2); letter-spacing: -0.01em; }
@media (max-width: 680px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-layout .more { margin-top: 18px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } }

.faq { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  position: relative;
  display: block;
  padding: 22px 44px 22px 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.002em;
  line-height: 1.32;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px; height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), margin 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:focus-visible { outline-offset: -2px; }
.faq .answer { padding: 0 44px 24px 0; color: var(--text-2); }
.faq .answer p + p { margin-top: 10px; }
.faq .answer strong { color: var(--text); font-weight: 600; }

/* Closing call to action */
.closing { text-align: center; }
.closing-icon { width: 96px; height: 96px; margin: 0 auto; border-radius: 22.5%; box-shadow: 0 10px 30px -12px rgba(10, 108, 240, 0.45); }
.closing .headline { margin-top: 28px; }
.closing .cta { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-alt);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  padding: 36px 0 44px;
  border-top: 1px solid var(--rule-soft);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.footer .brand { font-size: 15px; gap: 8px; }
.footer .brand img { width: 22px; height: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text); opacity: 0.85; display: inline-block; padding: 6px 0; }
.footer-legal { margin-top: 18px; display: grid; gap: 8px; max-width: 64em; }

/* ---------- Document pages (support, legal, press) ---------- */
.page-head { padding: clamp(56px, 8vw, 104px) 0 0; }
.page-head h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.page-head .lead { margin-top: 16px; max-width: 32em; }
.page-head .updated { margin-top: 14px; color: var(--text-2); font-size: 17px; }
.doc-wrap { max-width: calc(760px + var(--gutter) * 2); }

.doc { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(80px, 10vw, 128px); }
.doc .lede { font-size: clamp(19px, 1.65vw, 22px); line-height: 1.45; letter-spacing: 0.003em; padding-bottom: 8px; }
.doc h2 {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: 0.002em;
}
.doc h2 + p, .doc h2 + ul { margin-top: 12px; }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 12px; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-top: 8px; padding-left: 0.2em; }
.doc li::marker { color: var(--text-2); }

/* Support page */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--soft-fill);
  color: var(--soft-fill-text);
  font-size: 15px;
}
.jump a:hover { text-decoration: none; background: var(--rule); }
.faq-group { margin-top: clamp(48px, 6vw, 72px); }
.faq-group > h2 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -0.005em; margin-bottom: 16px; }

.faqs { padding-bottom: clamp(72px, 9vw, 120px); }
.contact { padding: clamp(72px, 9vw, 120px) 0; }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.contact-inner .lead { margin-top: 14px; }
.contact-alt { margin-top: 22px; color: var(--text-2); }
@media (max-width: 860px) { .contact-inner { grid-template-columns: minmax(0, 1fr); } }

.card {
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: 28px;
  background: var(--bg-raised);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px -20px rgba(0, 0, 0, 0.18);
}
@media (prefers-color-scheme: dark) { .card { box-shadow: none; border: 1px solid var(--rule-soft); } }

.field { display: grid; gap: 8px; }
.field + .field { margin-top: 20px; }
.field label { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.field .optional { font-weight: 400; color: var(--text-2); }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--bg-raised);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  letter-spacing: -0.015em;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-2); opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 15px; letter-spacing: -0.01em; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.form-hint { font-size: 14px; color: var(--text-2); letter-spacing: -0.01em; }
.form-note { margin-top: 18px; font-size: 14px; color: var(--text-2); letter-spacing: -0.01em; }
.form-status {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--soft-fill);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.form-status:empty { display: none; }
.field .form-hint { margin-top: -2px; }
.form-status.is-error { background: color-mix(in srgb, var(--danger) 10%, var(--bg-raised)); }
.form-status strong { font-weight: 600; }
.sent { text-align: left; }
.sent h3 { font-size: 24px; letter-spacing: 0.002em; }
.sent p { margin-top: 8px; color: var(--text-2); }
.sent .btn { margin-top: 22px; }
.sent .check {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

/* Press page */
.facts { margin-top: 12px; border-bottom: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; border-top: 1px solid var(--rule); }
.facts dt { font-weight: 600; }
.facts dd { color: var(--text-2); }
@media (max-width: 560px) { .facts div { grid-template-columns: minmax(0, 1fr); } }
.asset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 20px;
}
.asset img { width: 120px; height: 120px; border-radius: 22.5%; }
.asset-meta p { color: var(--text-2); font-size: 15px; margin-top: 2px; }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0 !important; margin-top: 20px !important; }
.shots li { margin: 0; padding: 0 !important; }
.shots img { border-radius: 14px; border: 1px solid var(--rule-soft); aspect-ratio: 660 / 1434; object-fit: cover; object-position: top; width: 100%; }
.shots a { display: block; margin-top: 8px; font-size: 15px; }
@media (max-width: 620px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 404 */
.missing { padding: clamp(72px, 12vw, 160px) 0 clamp(96px, 12vw, 160px); }
.missing .thread { font-size: clamp(18px, 2vw, 22px); max-width: 22em; margin: 0 auto 48px; }
.missing .lead { margin-top: 14px; }
.missing .cta { justify-content: center; margin-top: 32px; }

/* ---------- Motion ---------- */
/* A conversation plays in order when it scrolls into view: your text, the card, then the reply. */
.seq-pending > .thread > *, .thread.seq-pending > * { opacity: 0; }
.seq-pending > .result { opacity: 0; transform: translateY(12px); }
.seq-in > .thread > *, .thread.seq-in > * { animation: bubble-in 0.5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 0.42s + 0.1s); }
.seq-in > .thread > .bubble.me, .thread.seq-in > .bubble.me { transform-origin: 100% 100%; }
.seq-in > .thread > .bubble.them, .seq-in > .thread > .mini, .thread.seq-in > .bubble.them { transform-origin: 0 100%; }
.seq-in > .result { transition: opacity 0.7s var(--ease) 0.25s, transform 0.7s var(--ease-out) 0.25s; }

/* Scroll-linked motion. site.js sets --p from 0 to 1 as an element travels up through the viewport. */
[data-scroll] { --p: 1; }
/* Tiles grow into place, and the phone inside tips up from the table as it arrives. */
.tile[data-scroll] { transform: translate3d(0, calc((1 - var(--p)) * 90px), 0) scale(calc(0.88 + var(--p) * 0.12)); opacity: calc(0.3 + var(--p) * 0.7); transform-origin: 50% 0; will-change: transform, opacity; }
.tile-media { perspective: 1400px; }
.tile-media[data-scroll] .phone { transform: translate3d(0, calc((1 - var(--p)) * 200px), 0) rotateX(calc((1 - var(--p)) * 26deg)) scale(calc(0.9 + var(--p) * 0.1)); transform-origin: 50% 0; will-change: transform; }
.tile-media.bottom[data-scroll] .phone { transform: translate3d(0, calc((1 - var(--p)) * -200px), 0) rotateX(calc((1 - var(--p)) * -26deg)) scale(calc(0.9 + var(--p) * 0.1)); transform-origin: 50% 100%; }
.tile-media.whole[data-scroll] .phone { transform: translate3d(0, calc((1 - var(--p)) * 120px), 0) rotateX(calc((1 - var(--p)) * 30deg)) scale(calc(0.78 + var(--p) * 0.22)); transform-origin: 50% 50%; }
/* The hero phone falls back and the copy lets go as the page leaves. */
.hero-device { perspective: 1400px; }
.hero-device[data-scroll] { --p: 0; }
.hero-device[data-scroll] .phone { transform: translate3d(0, calc(var(--p) * -90px), 0) rotateX(calc(var(--p) * 18deg)) scale(calc(1 - var(--p) * 0.16)); transform-origin: 50% 100%; will-change: transform; }
/* The statement lights up phrase by phrase. */
.statement .headline[data-scroll] { transform: scale(calc(0.78 + var(--p) * 0.22)); transform-origin: 50% 60%; will-change: transform; }
.lit { opacity: clamp(0.16, calc((var(--p) - var(--at)) * 6 + 0.16), 1); }
.closing-inner[data-scroll] .closing-icon { transform: scale(calc(0.5 + var(--p) * 0.5)) rotate(calc((1 - var(--p)) * -14deg)); will-change: transform; }
.closing-inner[data-scroll] .headline { transform: translate3d(0, calc((1 - var(--p)) * 60px), 0); opacity: var(--p); }

/* Lists marked data-stagger bring their children in one after another. */
.stagger-pending > * { opacity: 0; transform: translateY(64px) scale(0.94); }
.stagger-in > * { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 1s var(--ease-out); transition-delay: calc(var(--n, 0) * 0.09s); }

/* Hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(48px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes arrive { from { opacity: 0; transform: translateY(140px) scale(1.12) rotateX(22deg); } to { opacity: 1; transform: none; } }
.hero h1 { animation: rise 1s var(--ease-out) 0.15s both; }
.hero .lead { animation: rise 1s var(--ease-out) 0.3s both; }
.hero .cta { animation: rise 1s var(--ease-out) 0.45s both; }
.hero-device { animation: arrive 1.3s var(--ease-out) 0.1s both; transform-origin: 50% 100%; }

.reveal-pending { opacity: 0; transform: translateY(72px) scale(0.96); filter: blur(10px); }
.reveal-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 1.1s var(--ease), transform 1.2s var(--ease-out), filter 1.1s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
  .seq-pending > .thread > *, .thread.seq-pending > *, .seq-pending > .result { opacity: 1; transform: none; }
  [data-scroll], [data-scroll] .phone, [data-scroll] .closing-icon, [data-scroll] .headline, .statement .headline[data-scroll], .lit { transform: none !important; opacity: 1 !important; }
  .stagger-pending > * { opacity: 1; transform: none; }
  .reveal-pending { filter: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .footer, .skip-link, .jump, .contact { display: none; }
  .reveal-pending { opacity: 1; transform: none; }
  body { background: #fff; color: #000; }
}
