/* FlowFit marketing site. Dark only; teal is the single accent. */

:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-2: #b4b4bc;
  --muted: #8a8a93;
  --teal: #00d4aa;
  --teal-ink: #003d31;
  --violet: #7c3aed;
  --coral: #ff6b6b;
  --orange: #ff8e53;
  --mint: #00f5a0;
  --aqua: #00d9f5;

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1100px;
  --gutter: 16px;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--teal); color: #000; padding: 10px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { top: 12px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.15);
}

.hero__title, .section__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-wrap: balance;
}
.hero__title em, .section__title em {
  font-style: italic;
  color: var(--teal);
}
.hero__title { font-size: clamp(44px, 7.2vw, 88px); margin-top: 22px; }
.section__title { font-size: clamp(36px, 5.2vw, 60px); margin-top: 16px; }
.section__sub {
  color: var(--text-2); font-size: clamp(16px, 1.3vw, 19px); max-width: 60ch;
  margin-top: 18px; text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  border: 1px solid var(--line-strong);
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn--primary {
  background: var(--teal); color: #041c17; border-color: var(--teal);
  box-shadow: 0 10px 40px -12px rgba(0, 212, 170, 0.6);
}
.btn--primary:hover { background: #1ee3bc; }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.03); }
.btn--small { height: 38px; padding: 0 16px; font-size: 13px; }
.btn[aria-disabled="true"] { cursor: default; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.brand img { border-radius: 7px; }
.nav__links { display: none; gap: 28px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--text); }
@media (min-width: 720px) { .nav__links { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 72px);
  overflow: hidden;
}
.hero::before {
  /* faint grid, fades out */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 70%);
}
.hero__grid {
  position: relative;
  display: grid; gap: 32px; align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 24px; }
}
.hero__copy { max-width: 620px; }
.hero__sub { color: var(--text-2); font-size: clamp(17px, 1.4vw, 20px); margin-top: 22px; max-width: 48ch; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__cta--center { justify-content: center; }
.hero__meta { margin-top: 18px; font-size: 13px; color: var(--muted); }

.hero__stage {
  position: relative;
  height: clamp(360px, 64vw, 560px);
  display: grid; place-items: center;
}
@media (min-width: 900px) { .hero__stage { height: clamp(520px, 44vw, 640px); } }
.stage__glow {
  position: absolute; inset: 10% 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 212, 170, 0.22), rgba(124, 58, 237, 0.10) 55%, transparent 75%);
  filter: blur(30px);
  pointer-events: none;
}
.stage__canvas {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s var(--ease);
}
.stage__canvas.is-ready { opacity: 1; }
.stage__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
#watch-fallback { transition: opacity .6s var(--ease); }
#watch-fallback.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- CSS watch component ---------- */
.watch {
  --w: 220px;                        /* case width */
  --h: calc(var(--w) * 1.22);
  position: relative;
  width: var(--w);
  display: flex; flex-direction: column; align-items: center;
}
.watch__band {
  width: calc(var(--w) * 0.66);
  height: calc(var(--w) * 0.62);
  background: linear-gradient(180deg, #2a2a2e, #19191c);
  border: 1px solid rgba(255,255,255,0.06);
}
.watch__band--top { border-radius: calc(var(--w) * 0.14) calc(var(--w) * 0.14) 0 0; margin-bottom: calc(var(--w) * -0.06); }
.watch__band--bottom { border-radius: 0 0 calc(var(--w) * 0.14) calc(var(--w) * 0.14); margin-top: calc(var(--w) * -0.06); }
.watch__case {
  position: relative; z-index: 1;
  width: var(--w); height: var(--h);
  border-radius: calc(var(--w) * 0.26);
  background: linear-gradient(145deg, #45454b, #232326 60%, #2d2d31);
  padding: calc(var(--w) * 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    0 30px 60px -20px rgba(0,0,0,0.8);
}
.watch__crown {
  position: absolute; right: calc(var(--w) * -0.045); top: 26%;
  width: calc(var(--w) * 0.07); height: calc(var(--w) * 0.16);
  border-radius: 4px; background: linear-gradient(90deg, #3a3a3f, #222225);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.watch__crown::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px;
  border-radius: 0 4px 4px 0; background: var(--teal);
}
.watch__button {
  position: absolute; right: calc(var(--w) * -0.03); top: 50%;
  width: calc(var(--w) * 0.045); height: calc(var(--w) * 0.22);
  border-radius: 3px; background: #2a2a2e;
}
.watch__screen {
  width: 100%; height: 100%;
  border-radius: calc(var(--w) * 0.2);
  background: #000;
  color: #fff;
  padding: calc(var(--w) * 0.07) calc(var(--w) * 0.08);
  display: flex; flex-direction: column; gap: calc(var(--w) * 0.028);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  font-size: calc(var(--w) * 0.06);
  line-height: 1.2;
}
.ws__top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: calc(var(--w) * 0.1); letter-spacing: -0.02em; }
.ws__top small { font-size: 0.42em; font-weight: 600; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.ws__hr { color: var(--coral); display: inline-flex; align-items: center; gap: 4px; }
.ws__kcal { color: var(--orange); }
.ws__heart { width: 0.55em; height: 0.55em; background: currentColor; clip-path: path("M10 18 L2 10 A4.5 4.5 0 0 1 10 5 A4.5 4.5 0 0 1 18 10 Z"); transform: scale(0.9); animation: beat 1s infinite; }
@keyframes beat { 0%, 100% { transform: scale(0.9); } 15% { transform: scale(1.1); } 30% { transform: scale(0.95); } }
.ws__name { font-weight: 600; font-size: calc(var(--w) * 0.075); }
.ws__name span { color: var(--muted); font-weight: 500; }
.ws__name--sm { font-size: calc(var(--w) * 0.07); }
.ws__tile {
  background: #f2f2f4; border-radius: calc(var(--w) * 0.05);
  height: calc(var(--w) * 0.32); display: grid; place-items: center; padding: 6px;
}
.ws__tile img { width: 100%; height: 100%; object-fit: contain; }
.ws__tile--lg { height: calc(var(--w) * 0.6); position: relative; }
.ws__tile--lg img { position: absolute; inset: 8px; width: auto; height: auto; max-width: calc(100% - 16px); max-height: calc(100% - 16px); margin: auto; transition: opacity .35s ease; }
.ws__tile--lg .f2 { opacity: 0; }
.watch.is-frame2 .ws__tile--lg .f1 { opacity: 0; }
.watch.is-frame2 .ws__tile--lg .f2 { opacity: 1; }
.ws__dots { display: flex; gap: calc(var(--w) * 0.035); justify-content: center; }
.ws__dots i { width: calc(var(--w) * 0.045); height: calc(var(--w) * 0.045); border-radius: 50%; border: 1.5px solid var(--teal); }
.ws__dots i.on { background: var(--teal); }
.ws__set { text-align: center; color: var(--text-2); font-weight: 500; }
.ws__sub { color: var(--muted); font-weight: 500; font-size: calc(var(--w) * 0.055); margin-top: auto; }
.ws__pill {
  margin-top: auto; text-align: center;
  background: var(--teal); color: #041c17; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: calc(var(--w) * 0.04) 0; border-radius: 999px; font-size: calc(var(--w) * 0.06);
}

.watch--hero { --w: clamp(190px, 46vw, 250px); }
.watch--card { --w: 196px; flex: 0 0 auto; }
.watch--mcp { --w: 176px; }

/* ---------- Flow strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip__grid { display: grid; }
.strip__item { padding: 36px 0; border-bottom: 1px solid var(--line); }
.strip__item:last-child { border-bottom: 0; }
.strip__n { font-size: 12px; font-weight: 600; color: var(--teal); letter-spacing: 0.14em; }
.strip__item h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5vw, 56px); line-height: 1; margin: 8px 0 10px; }
.strip__item p { color: var(--text-2); max-width: 34ch; font-size: 15px; }
@media (min-width: 720px) {
  .strip__grid { grid-template-columns: repeat(3, 1fr); }
  .strip__item { padding: 48px 32px; border-bottom: 0; border-right: 1px solid var(--line); }
  .strip__item:first-child { padding-left: 0; }
  .strip__item:last-child { border-right: 0; padding-right: 0; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--tight { padding-top: clamp(56px, 8vw, 110px); }
.section__head { max-width: 760px; }

/* Bento features */
.bento { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 840px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .card--wide { grid-column: span 2; }
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .3s, transform .4s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-top: 8px; }
.card p { color: var(--text-2); font-size: 15px; }
.card__art {
  position: relative; border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
  min-height: 170px; padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  overflow: hidden;
}

.swipe-row {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px;
  background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 14px;
}
.swipe-row__day { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.swipe-row__focus { font-weight: 700; }
.swipe-row__count { color: var(--muted); font-size: 12px; }
.swipe-row--dim { opacity: 0.45; }
.swipe-row:first-child { position: relative; border: 1px solid rgba(0, 212, 170, 0.3); }
.swipe-row__arrow { color: var(--teal); font-weight: 600; font-size: 12px; animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-10px); } }

.card__art--timer { align-items: center; }
.ring { width: 110px; height: 110px; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--surface-2); stroke-width: 7; }
.ring__fill {
  fill: none; stroke: var(--teal); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  animation: ringfill 10s linear infinite;
}
@keyframes ringfill {
  0% { stroke-dashoffset: 326.7; stroke: var(--mint); }
  60% { stroke: #f5c542; }
  100% { stroke-dashoffset: 0; stroke: var(--coral); }
}
.ring__label { position: absolute; text-align: center; line-height: 1; }
.ring__num { display: block; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.ring__unit { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--text-2);
  border: 1px solid transparent;
}
.chip--on { background: rgba(0, 212, 170, 0.14); color: var(--teal); border-color: rgba(0, 212, 170, 0.35); }
.chip--rest { color: var(--muted); border-style: dashed; border-color: var(--line-strong); background: transparent; }

.card__art--health { flex-direction: row; flex-wrap: wrap; gap: 8px 32px; }
.metric { display: flex; flex-direction: column; gap: 4px; }
.metric__k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.metric__v { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.metric__v small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.metric:nth-child(1) .metric__v { color: var(--coral); }
.metric:nth-child(2) .metric__v { color: var(--orange); }

/* Guides row */
.guides {
  display: flex; gap: 20px; padding: 48px var(--gutter) 8px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.guides::-webkit-scrollbar { display: none; }
.guides > .watch { scroll-snap-align: center; }
@media (min-width: 1360px) {
  .guides { justify-content: center; }
}
.guides__note { margin-top: 28px; color: var(--muted); font-size: 14px; }

/* Trio */
.trio { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 840px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.trio__item { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.trio__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 212, 170, 0.1); color: var(--teal); display: grid; place-items: center; }
.trio__icon svg { width: 22px; height: 22px; }
.trio__item h3 { margin-top: 18px; font-size: 19px; font-weight: 700; }
.trio__item p { margin-top: 8px; color: var(--text-2); font-size: 15px; }

/* MCP */
.section--mcp { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mcp__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .mcp__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.mcp__list { margin-top: 24px; display: grid; gap: 10px; color: var(--text-2); font-size: 15px; }
.mcp__list li { padding-left: 22px; position: relative; }
.mcp__list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 2px; background: var(--teal); }

.mcp__demo { position: relative; display: grid; gap: 20px; }
@media (min-width: 560px) { .mcp__demo { grid-template-columns: 1fr auto; align-items: end; } }
.chat { display: grid; gap: 12px; }
.chat__msg { padding: 14px 16px; border-radius: 16px; font-size: 15px; max-width: 420px; }
.chat__msg p { margin: 0; }
.chat__msg--user { background: var(--surface-2); justify-self: end; border-bottom-right-radius: 4px; }
.chat__msg--ai { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat__who { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.chat__tool { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.chat__tool i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

.week { display: grid; gap: 4px; margin-top: 4px; }
.week__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: calc(var(--w) * 0.062); padding: calc(var(--w) * 0.02) calc(var(--w) * 0.04);
  border-radius: 6px; background: var(--surface);
}
.week__row span { color: var(--muted); font-weight: 600; }
.week__row b { font-weight: 700; color: var(--teal); }
.week__row--rest b { color: var(--muted); font-weight: 500; }

/* Staggered chat/week reveal inside the MCP demo */
.mcp__demo .chat__msg, .mcp__demo .week__row {
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mcp__demo.is-visible .chat__msg--user { opacity: 1; transform: none; transition-delay: .1s; }
.mcp__demo.is-visible .chat__msg--ai { opacity: 1; transform: none; transition-delay: .7s; }
.mcp__demo.is-visible .week__row { opacity: 1; transform: none; transition-delay: calc(1.3s + var(--i) * 0.12s); }

/* Final CTA */
.final { text-align: center; }
.final__inner { display: flex; flex-direction: column; align-items: center; }
.final__icon { border-radius: 18px; box-shadow: 0 20px 50px -20px rgba(0, 212, 170, 0.5); }
.final .section__title { margin-top: 28px; }
.final .section__sub { margin-inline: auto; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 13px; color: var(--muted); }
.footer__inner { display: grid; gap: 8px; }
.footer__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; }
.footer__brand img { border-radius: 5px; }
.footer__line a { color: var(--text-2); }
.footer__line a:hover { color: var(--teal); }
.footer__credit { margin-top: 12px; max-width: 70ch; }
.footer__credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .mcp__demo .chat__msg, .mcp__demo .week__row { opacity: 1; transform: none; transition: none; }
  .ring__fill { animation: none; stroke-dashoffset: 98; }
  .swipe-row__arrow, .ws__heart { animation: none; }
  .ws__tile--lg img { transition: none; }
  .btn { transition: none; }
}
