/* PipChef Pro: dark trading-platform look.
   Visual system: landing-page-design skill (Manrope only, Tailwind type scale,
   fixed spacing tokens, flat surfaces from the approved dark list, one motion curve).
   Motion tiers: accessible-animation skill (reduced-motion block at the end). */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-VF.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* surfaces: only the approved dark backgrounds */
  --bg: #000000;
  --surface: #181818;
  --surface-2: #1F1F1F;
  --surface-3: #272727;
  --surface-4: #313131;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* text: contrast checked on #181818 */
  --ink: #F5F5F5;            /* 17.4:1 */
  --ink-2: #B4B4B4;          /* 9.0:1 */
  --ink-3: #8C8C8C;          /* 5.4:1 */

  /* accent: PipChef green R68 G214 B44 (Razer-style), deeper than wasabi so the two
     never read as one colour. Dish pages swap the accent (body[data-theme]). */
  --glow: 68, 214, 44;       /* #44D62C; --teal, --teal-ink, --teal-dim derive from it on body */
  --teal-hover: #66E052;
  --on-teal: #000000;        /* text on accent fills, 11.0:1 */
  /* buy and sell: the same on every page */
  --up: #44D62C;             /* buy, rising candles and prices, 8.6:1 on #181818 */
  --down: #FF4545;           /* sell, falling candles and prices, 5.4:1 on #181818 */
  --cream: #F7F3EA;
  --navy: #101C30;

  /* dish colours */
  --fish: #2E8BFF;
  --chips: #F2A916;
  --sushi: #F05A3C;
  --wasabi: #8CC63F;

  /* spacing tokens (B2) */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px;
  --s-300: 24px; --s-400: 32px; --s-500: 40px; --s-600: 48px;
  --s-700: 64px; --s-800: 80px; --s-900: 96px;

  /* radius (Tailwind steps) */
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;

  /* motion (B7) */
  --curve: cubic-bezier(0.22, 1, 0.36, 1);
  --t-move: 500ms;
  --t-color: 300ms;

  --page: 1200px;
  --fxbar: 36px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 128px; background: var(--bg); }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px; line-height: 24px; font-weight: 400;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); text-wrap: balance; }
::selection { background: var(--teal); color: var(--on-teal); }

/* ------------------------------------------------------------ text styles */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-1 { font-size: 16px; line-height: 24px; font-weight: 600; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }

.muted { color: var(--ink-3); }
.ink { color: var(--ink); }
.teal { color: var(--teal-ink); }
.tnum { font-variant-numeric: tabular-nums; }
.lead { color: var(--ink-2); }

/* ------------------------------------------------------------ layout */
.wrap { width: min(100% - 2 * var(--s-300), var(--page)); margin-inline: auto; }
section { padding-block: var(--s-900); }
.section-head { max-width: 680px; margin-bottom: var(--s-600); display: grid; gap: var(--s-200); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.eyebrow { color: var(--teal-ink); }
.pill {
  display: inline-flex; align-items: center; gap: var(--s-75); width: max-content;
  padding: var(--s-50) var(--s-100); border-radius: var(--r-full);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink-2);
}
.pill i { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--teal); }
.accent { color: var(--teal-ink); }

.skip {
  position: absolute; left: var(--s-200); top: -100px; z-index: 100;
  background: var(--teal); color: var(--on-teal); padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg); text-decoration: none; font-weight: 600;
}
.skip:focus { top: var(--s-200); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg); border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-size: 16px; line-height: 24px; font-weight: 600;
  transition: background-color var(--t-color) var(--curve), color var(--t-color) var(--curve),
              box-shadow var(--t-color) var(--curve), transform var(--t-color) var(--curve);
}
.btn svg { width: 20px; height: 20px; transition: transform var(--t-color) var(--curve); }
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-hover); }
.btn-primary:hover svg { transform: translateX(var(--s-50)); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-quiet:hover { background: var(--surface-2); }
.btn:active { transform: scale(0.98); }
.btn-lg { padding: var(--s-100) var(--s-200); }
.btn-block { width: 100%; justify-content: center; }
.btn[aria-disabled="true"] {
  background: var(--surface-3); color: var(--ink-3); box-shadow: none; cursor: not-allowed; transform: none;
}
.btn[aria-disabled="true"]:hover svg { transform: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: var(--r-lg); }


/* ------------------------------------------------------------ dish themes
   Each dish page uses only its own colours: the accent, glows, focus rings,
   glows, focus rings, candles, buy and sell all follow the page:
   main site green #44D62C up / neon red #FF4545 down, Fish & Chips blue up / gold down,
   Sushi & Wasabi wasabi green up / salmon down. */
/* derived on body, after any theme has set --glow on the same element */
body {
  --teal: rgb(var(--glow));       /* accent fills and lines */
  --teal-ink: rgb(var(--glow));   /* accent text */
  --teal-dim: rgba(var(--glow), 0.14);
}
body[data-theme="fish-and-chips"] {
  --glow: 46, 139, 255;          /* fish blue #2E8BFF, 5.2:1 on #181818 */
  --teal-hover: #5AA4FF;
  --up: #2E8BFF;                 /* buy fish, rising */
  --down: #F2A916;               /* sell chips, falling */
}
body[data-theme="sushi-and-wasabi"] {
  --glow: 140, 198, 63;          /* wasabi green #8CC63F, 9.3:1 on #181818 */
  --teal-hover: #A3D561;
  --up: #8CC63F;                 /* buy sushi, rising: wasabi green */
  --down: #F05A3C;               /* sell wasabi, falling: salmon */
}

/* ------------------------------------------------------------ live FX bar */
.fxbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--fxbar);
  display: flex; align-items: center;
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.fxbar .wrap { display: flex; align-items: center; gap: var(--s-300); overflow: hidden; }
.fx-live { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--ink-3); flex: none; }
.fx-live i { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--ink-3); }
.fx-live[data-state="live"] i { background: var(--teal); box-shadow: 0 0 0 3px var(--teal-dim); }
.fx-live[data-state="stale"] i { background: var(--chips); }
.fx-items { display: flex; gap: var(--s-300); list-style: none; margin: 0; padding: 0; min-width: 0; }
.fx-items li { display: inline-flex; align-items: baseline; gap: var(--s-75); white-space: nowrap; }
.fx-items .sym { color: var(--ink-2); }
.fx-items .px { color: var(--ink); }
.fx-note { margin-left: auto; color: var(--ink-3); white-space: nowrap; flex: none; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--ink-3); }
.px { transition: color 900ms var(--curve); }
.px.tick-up { color: var(--up) !important; transition: none; }
.px.tick-down { color: var(--down) !important; transition: none; }
@media (max-width: 860px) { .fx-note { display: none; } }
@media (max-width: 520px) {
  .fx-items .chg { display: none; }
  .fx-items { gap: var(--s-200); overflow-x: auto; scrollbar-width: none; }
  .fx-items::-webkit-scrollbar { display: none; }
  .fx-live span { display: none; }
}

/* ------------------------------------------------------------ nav */
.nav {
  position: fixed; top: calc(var(--fxbar) + var(--s-200)); left: 50%; transform: translateX(-50%);
  z-index: 50; width: max-content; max-width: calc(100% - 2 * var(--s-200));
  display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  border-radius: var(--r-2xl);
  background: rgba(24, 24, 24, 0.72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo svg { height: 28px; width: auto; }
.nav-links { display: flex; gap: var(--s-50); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: var(--s-75) var(--s-100); border-radius: var(--r-lg);
  text-decoration: none; color: var(--ink-2);
  font-size: 14px; line-height: 20px; font-weight: 500;
  transition: background-color var(--t-color) var(--curve), color var(--t-color) var(--curve);
}
.nav-links a:hover { background: var(--surface-3); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-3); }
.nav .btn { font-size: 14px; line-height: 20px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-lg);
  background: var(--surface-3); cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 14px; width: 16px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform var(--t-move) var(--curve);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu-panel {
  position: fixed; inset: 0; z-index: 40; display: none;
  padding: 140px var(--s-300) var(--s-400);
  background: rgba(0, 0, 0, 0.94);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-75); }
.menu-panel a { display: block; padding: var(--s-100) 0; text-decoration: none; color: var(--ink); }
.menu-panel li { opacity: 0; transform: translateY(var(--s-300)); }
.nav-open .menu-panel { display: block; }
.nav-open .menu-panel li {
  opacity: 1; transform: none;
  transition: opacity 400ms var(--curve), transform 400ms var(--curve);
  transition-delay: calc(var(--i) * 60ms);
}
@starting-style { .nav-open .menu-panel li { opacity: 0; transform: translateY(var(--s-300)); } }
@media (max-width: 900px) {
  .nav { width: calc(100% - 2 * var(--s-200)); justify-content: space-between; }
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ------------------------------------------------------------ hero */
.hero { padding-top: 168px; padding-bottom: var(--s-500); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-600); align-items: center; }
.hero-copy { display: grid; gap: var(--s-300); max-width: 680px; }
.hero-title { max-width: 680px; }
.hero-title .l1 {
  background-image: linear-gradient(90deg, #FFFFFF, #9B9B9B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title .l2 { color: var(--teal-ink); }
.hero-copy .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-100); align-items: center; }
.proof { display: flex; align-items: center; gap: var(--s-100); }
.proof-marks { display: flex; }
.proof-marks img {
  width: 36px; height: 36px; border-radius: var(--r-full); background: var(--surface-2);
  box-shadow: 0 0 0 2px var(--bg); padding: var(--s-25);
}
.proof-marks img + img { margin-left: calc(-1 * var(--s-100)); }
.proof p { display: grid; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .heading-1 { font-size: 48px; line-height: 48px; }
}
@media (max-width: 520px) {
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-2 { font-size: 36px; line-height: 40px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
  section { padding-block: var(--s-800); }
  .hero { padding-top: 144px; }
}

/* hero stage: real backtest candles on a tilted slab (stageshow framing) */
.stage3d { position: relative; aspect-ratio: 5 / 4; perspective: 1400px; }
.slab {
  position: absolute; inset: 6% 2% 4% 4%;
  transform: rotateX(16deg) rotateY(-16deg) rotateZ(2deg);
  transform-style: preserve-3d;
  border-radius: var(--r-3xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -20px rgba(var(--glow), 0.28), 0 0 0 1px rgba(var(--glow), 0.18);
}
.slab::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -14px; height: 14px;
  border-radius: 0 0 var(--r-3xl) var(--r-3xl); background: var(--surface-3);
  box-shadow: 0 0 32px rgba(var(--glow), 0.35);
}
.slab svg { position: absolute; inset: var(--s-300); width: calc(100% - 2 * var(--s-300)); height: calc(100% - 2 * var(--s-300)); overflow: visible; }
.slab .g line { stroke: var(--line); }
.slab .c-up { fill: var(--up); }
.slab .c-dn { fill: var(--down); }
.slab .eq { fill: none; stroke: var(--ink); stroke-opacity: 0.5; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(var(--glow), 0.7)); }
.chip {
  position: absolute; z-index: 2; display: grid; gap: var(--s-25);
  padding: var(--s-100) var(--s-200); border-radius: var(--r-xl);
  background: rgba(24, 24, 24, 0.88); box-shadow: inset 0 0 0 1px rgba(var(--glow), 0.35), 0 16px 32px -12px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.chip .v { color: var(--teal-ink); }
.chip.c1 { top: 2%; right: 6%; }
.chip.c2 { top: 30%; left: -2%; }
.chip.c3 { bottom: 10%; right: 0; display: flex; align-items: center; gap: var(--s-100); }
.chip.c3 img { width: 36px; height: 36px; }
.chip.c3 > div { display: grid; }
@media (max-width: 520px) { .chip.c2 { display: none; } .chip { padding: var(--s-75) var(--s-100); } }

/* ------------------------------------------------------------ market strip */
.strip-fx {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border-radius: var(--r-2xl); box-shadow: inset 0 0 0 1px var(--line);
}
.strip-fx > div { padding: var(--s-200) var(--s-300); display: grid; grid-template-columns: 1fr auto; gap: var(--s-25) var(--s-200); align-items: center; }
.strip-fx > div + div { box-shadow: -1px 0 0 var(--line); }
.strip-fx .sym { color: var(--ink-2); grid-column: 1; }
.strip-fx .px { color: var(--ink); grid-column: 1; }
.strip-fx .chg { grid-column: 1; }
.strip-fx svg { grid-column: 2; grid-row: 1 / span 3; width: 96px; height: 40px; overflow: visible; }
.strip-fx .spark { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1200ms var(--curve); }
.strip-fx.drawn .spark { stroke-dashoffset: 0; }
.strip-fx .spark.up { stroke: var(--up); }
.strip-fx .spark.down { stroke: var(--down); }
.strip-fx .about { grid-template-columns: 1fr; align-content: center; }
.skeleton { display: inline-block; height: 1em; width: 6ch; border-radius: var(--r-md); background: var(--surface-3); vertical-align: middle; }
@media (max-width: 900px) {
  .strip-fx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-fx > div:nth-child(3) { box-shadow: 0 -1px 0 var(--line); }
  .strip-fx > div:nth-child(4) { box-shadow: 0 -1px 0 var(--line), -1px 0 0 var(--line); }
}
@media (max-width: 520px) {
  .strip-fx { grid-template-columns: 1fr; }
  .strip-fx > div + div, .strip-fx > div:nth-child(4) { box-shadow: 0 -1px 0 var(--line); }
}

/* ------------------------------------------------------------ features */
.features { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-600); align-items: start; }
.features .section-head { margin-bottom: 0; }
.feat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-300); }
.feat { display: grid; gap: var(--s-100); align-content: start; }
.feat-icon {
  width: 48px; height: 48px; border-radius: var(--r-xl); display: grid; place-items: center;
  background: var(--surface); box-shadow: inset 0 0 0 1px rgba(var(--glow), 0.35);
}
.feat-icon svg { width: 24px; height: 24px; color: var(--teal-ink); }
@media (max-width: 1000px) { .features { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .feat-row { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ kitchen overview (dashboard) */
.overview { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--s-300); }
@media (max-width: 1000px) { .overview { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border-radius: var(--r-2xl); box-shadow: inset 0 0 0 1px var(--line);
  padding: var(--s-300); display: grid; gap: var(--s-300); align-content: start; min-width: 0;
}
@media (max-width: 520px) { .card { padding: var(--s-200); } }
.card-top { display: flex; flex-wrap: wrap; gap: var(--s-200); justify-content: space-between; align-items: center; }
.ov-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-300); }
@media (max-width: 760px) { .ov-body { grid-template-columns: 1fr; } }
.ov-main { display: grid; gap: var(--s-200); align-content: start; min-width: 0; }
.ov-value { display: grid; gap: var(--s-50); }
.ov-chart svg { width: 100%; height: auto; overflow: visible; }
.ov-chart .line { fill: none; stroke: var(--teal-ink); stroke-width: 2.5; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(var(--glow), 0.5)); }
.ov-chart .area { fill: var(--teal); opacity: 0.08; }
.ov-chart text { font: 400 12px/16px "Manrope", sans-serif; fill: var(--ink-3); }
.ov-chart .gl { stroke: var(--line); }
.alloc { display: flex; align-items: center; gap: var(--s-300); }
.donut { width: 112px; height: 112px; flex: none; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 16; }
.donut .track { stroke: var(--surface-3); }
.donut .seg { stroke-linecap: butt; transition: stroke-dasharray 800ms var(--curve), stroke-dashoffset 800ms var(--curve), stroke var(--t-color) var(--curve); }
.legend { display: grid; gap: var(--s-75); list-style: none; margin: 0; padding: 0; flex: 1; }
.legend li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-75); align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: var(--r-full); background: var(--c); transition: background-color var(--t-color) var(--curve); }
.holdings { background: var(--surface-2); border-radius: var(--r-xl); padding: var(--s-200); display: grid; gap: var(--s-50); align-content: start; }
.holdings table { width: 100%; border-collapse: collapse; }
.holdings th { text-align: left; color: var(--ink-3); padding-bottom: var(--s-75); font-weight: 400; }
.holdings th:not(:first-child), .holdings td:not(:first-child) { text-align: right; }
.holdings td { padding: var(--s-100) 0; color: var(--ink); box-shadow: 0 -1px 0 var(--line); vertical-align: middle; }
.holdings .pair { display: flex; align-items: center; gap: var(--s-100); }
.holdings .pair i { width: 32px; height: 32px; border-radius: var(--r-lg); background: var(--surface-3); display: grid; place-items: center; flex: none; }
.holdings .pair i b { width: 10px; height: 10px; border-radius: var(--r-full); background: var(--c); }
.holdings .pair span { display: grid; }
.holdings tr { transition: opacity 400ms var(--curve); }
.holdings tbody.swapping tr { opacity: 0; }

.insight { position: relative; overflow: hidden; }
.insight .big { color: var(--ink); }
.insight .mini svg { width: 100%; height: auto; overflow: visible; }
.insight .mini .seg-hist { fill: none; stroke: var(--surface-4); stroke-width: 2; }
.insight .mini .seg-oos { fill: none; stroke: var(--teal-ink); stroke-width: 2.5; filter: drop-shadow(0 0 4px rgba(var(--glow), 0.6)); }
.insight .mini .band { fill: var(--teal); opacity: 0.08; }
.insight .mini .sep { stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 4 4; }
.insight .mini text { font: 600 11px/16px "Manrope", sans-serif; letter-spacing: 0.06em; fill: var(--teal-ink); }
.insight .mini .t-hist { fill: var(--ink-3); }

/* tabs (segmented) */
.seg {
  position: relative; display: inline-flex; padding: var(--s-50);
  border-radius: var(--r-xl); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.seg button {
  position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer;
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); min-height: 36px;
  font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-3);
  transition: color var(--t-color) var(--curve);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg-thumb {
  position: absolute; z-index: 0; top: var(--s-50); left: 0; height: calc(100% - 2 * var(--s-50));
  border-radius: var(--r-lg); background: var(--surface-4);
  transition: transform var(--t-move) var(--curve), width var(--t-move) var(--curve);
}
.no-js .seg-thumb { display: none; }
.no-js .seg button[aria-pressed="true"] { background: var(--surface-4); }
.seg-dot { width: 8px; height: 8px; border-radius: var(--r-full); display: inline-block; margin-right: var(--s-75); vertical-align: 1px; }

/* ------------------------------------------------------------ the menu (pricing layout) */
/* "See the menu" lands on the heading, just under the nav, not on the section's top padding,
   so the buy buttons of the cards fit on a laptop screen */
#menu { scroll-margin-top: var(--s-200); }
.menu-head { display: grid; justify-items: center; gap: var(--s-200); margin-bottom: var(--s-600); text-align: center; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-300); align-items: stretch; }
@media (max-width: 1000px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .menu-grid { grid-template-columns: 1fr; } }
.dish {
  position: relative; display: grid; gap: var(--s-200); align-content: start;
  background: var(--surface); border-radius: var(--r-2xl); padding: var(--s-300);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t-color) var(--curve), transform var(--t-move) var(--curve);
}
.dish:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(calc(-1 * var(--s-50))); }
.dish.lead-dish { box-shadow: inset 0 0 0 1px var(--teal), 0 0 48px -16px rgba(var(--glow), 0.5); }
.dish-badge {
  position: absolute; top: calc(-1 * var(--s-100)); left: 50%; transform: translateX(-50%);
  padding: var(--s-25) var(--s-100); border-radius: var(--r-full); background: var(--teal); color: var(--on-teal);
}
.dish-name { display: flex; align-items: center; gap: var(--s-100); }
.dish-name img { width: 40px; height: 40px; }
.dish-num { display: flex; align-items: baseline; gap: var(--s-75); }
.dish-num .heading-2 { color: var(--ink); }
.ticks { display: grid; gap: var(--s-75); list-style: none; margin: 0; padding: 0; }
.ticks li { display: flex; align-items: center; gap: var(--s-75); color: var(--ink-2); }
.ticks svg { width: 16px; height: 16px; color: var(--teal-ink); flex: none; }
.dish-actions { display: grid; gap: var(--s-75); margin-top: auto; }
.dish-empty { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.dish-empty .pot { width: 48px; height: 48px; color: var(--ink-3); }

/* ------------------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-300); list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border-radius: var(--r-2xl); box-shadow: inset 0 0 0 1px var(--line); padding: var(--s-300); display: grid; gap: var(--s-100); align-content: start; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 32px; height: 32px; border-radius: var(--r-full); display: grid; place-items: center;
  background: var(--teal-dim); color: var(--teal-ink); font-size: 14px; line-height: 20px; font-weight: 600;
  margin-bottom: var(--s-75);
}

.step-link {
  display: inline-flex; align-items: center; gap: var(--s-50); width: max-content;
  margin-top: var(--s-100); padding: var(--s-75) var(--s-100); border-radius: var(--r-lg);
  color: var(--teal-ink); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(var(--glow), 0.35);
  transition: background-color var(--t-color) var(--curve), box-shadow var(--t-color) var(--curve);
}
.step-link svg { width: 16px; height: 16px; transition: transform var(--t-color) var(--curve); }
.step-link:hover { background: var(--teal-dim); box-shadow: inset 0 0 0 1px var(--teal); }
.step-link:hover svg { transform: translate(var(--s-25), calc(-1 * var(--s-25))); }
.step-link:active { transform: scale(0.98); }
.inline-link { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--glow), 0.5); transition: text-decoration-color var(--t-color) var(--curve); }
.inline-link:hover { text-decoration-color: var(--teal); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .step-link:hover svg, .step-link:active { transform: none; } }

/* ------------------------------------------------------------ on your chart (app section) */
.oncharts {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-600); align-items: center;
  background: var(--surface); border-radius: var(--r-3xl); box-shadow: inset 0 0 0 1px var(--line);
  padding: var(--s-500); overflow: hidden;
}
@media (max-width: 960px) { .oncharts { grid-template-columns: 1fr; padding: var(--s-300); } }
.oncharts-copy { display: grid; gap: var(--s-300); align-content: start; }

/* ------------------------------------------------------------ tagline reveal (B11) */
.tagline { padding-block: var(--s-900); }
.tagline p { max-width: 760px; text-wrap: balance; }
.tagline .w { color: rgba(245, 245, 245, 0.28); transition: color 600ms var(--curve); }
.tagline .w.on { color: var(--ink); }
.tagline .w.hl.on { color: var(--teal-ink); }
.no-js .tagline .w { color: var(--ink); }

/* ------------------------------------------------------------ faq */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-200); align-items: start; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
.faq-col { display: grid; gap: var(--s-200); }
.faq details { background: var(--surface); border-radius: var(--r-2xl); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--s-200) var(--s-300);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-200);
  border-radius: var(--r-2xl); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); transition: transform var(--t-move) var(--curve); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--teal-ink); }
.faq .answer { padding: 0 var(--s-300) var(--s-300); }

/* ------------------------------------------------------------ final cta */
.final {
  background: var(--surface); color: var(--ink); border-radius: var(--r-3xl);
  box-shadow: inset 0 0 0 1px rgba(var(--glow), 0.35), 0 0 80px -40px rgba(var(--glow), 0.6);
  padding: var(--s-800) var(--s-600); display: grid; gap: var(--s-300); justify-items: start;
}
.final h2 { max-width: 680px; }
.final p { color: var(--ink-2); max-width: 560px; }
@media (max-width: 520px) { .final { padding: var(--s-600) var(--s-300); } }

/* ------------------------------------------------------------ inner pages */
.crumb { display: inline-flex; align-items: center; gap: var(--s-75); text-decoration: none; color: var(--ink-2); }
.crumb svg { width: 16px; height: 16px; transform: rotate(180deg); transition: transform var(--t-color) var(--curve); }
.crumb:hover svg { transform: rotate(180deg) translateX(var(--s-50)); }
.cta-note { color: var(--ink-3); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-75); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }
.fact { background: var(--surface); border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--line); padding: var(--s-200); display: grid; gap: var(--s-50); }
.legal { padding-top: 168px; }
.legal .prose { max-width: 680px; display: grid; gap: var(--s-200); }
.legal .prose h2 { margin-top: var(--s-300); }
.legal ul { margin: 0; padding-left: var(--s-300); display: grid; gap: var(--s-75); }
.lost { min-height: 80vh; display: grid; place-items: center; text-align: center; padding-top: 168px; }
.lost .wrap { display: grid; gap: var(--s-300); justify-items: center; }
.lost svg.mark { width: 120px; height: auto; }

/* ------------------------------------------------------------ footer */
footer { padding-block: var(--s-700) var(--s-500); box-shadow: 0 -1px 0 var(--line); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-500); }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }
.foot svg.lockup { height: 28px; width: auto; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-75); }
.foot a { text-decoration: none; color: var(--ink-2); transition: color var(--t-color) var(--curve); }
.foot a:hover { color: var(--ink); }
.foot-note { margin-top: var(--s-600); padding-top: var(--s-300); box-shadow: 0 -1px 0 var(--line); display: grid; gap: var(--s-100); }

/* ------------------------------------------------------------ scroll reveals (B7) */
.js .reveal { opacity: 0; transform: translateY(var(--s-400)); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 700ms var(--curve), transform 700ms var(--curve); }

/* ------------------------------------------------------------ logo + hero motion */
@keyframes dome-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes knob-drop {
  0% { opacity: 0; transform: translateY(-28px); }
  70% { opacity: 1; transform: translateY(3px); }
  100% { opacity: 1; transform: none; }
}
@keyframes word-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes chip-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes slab-in { from { opacity: 0; transform: rotateX(28deg) rotateY(-24deg) rotateZ(2deg) translateY(40px); } to { opacity: 1; transform: rotateX(16deg) rotateY(-16deg) rotateZ(2deg); } }

@media (prefers-reduced-motion: no-preference) {
  /* logo (logo-animation skill, build-on): the candle i rises from its base,
     the pip drops onto the wick with a small overshoot, then the letters fade in. 1.1 s. */
  .js .logo-anim .l-candle { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 500ms var(--curve) both; }
  .js .logo-anim .l-pip { animation: knob-drop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 350ms both; }
  .js .logo-anim .l-word { animation: word-in 500ms var(--curve) 550ms both; }

  .js .stage3d .slab { animation: slab-in 1100ms var(--curve) both; }
  .js .stage3d .cnd { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 500ms var(--curve) both; animation-delay: calc(500ms + var(--i) * 35ms); }
  .js .stage3d .eq { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1800ms var(--curve) 900ms forwards; }
  .js .stage3d .chip { animation: chip-in 600ms var(--curve) both; }
  .js .stage3d .chip.c1 { animation-delay: 1600ms; }
  .js .stage3d .chip.c2 { animation-delay: 1800ms; }
  .js .stage3d .chip.c3 { animation-delay: 2000ms; }
}

/* Reduced motion: tiered (accessible-animation skill). Tier 1 (tilt-in, slides,
   scale) is removed; Tier 3 (colour, opacity, focus rings) stays as short fades. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { transform: none; }
  .js .reveal.in { transition: opacity 150ms var(--curve); }
  .dish:hover { transform: none; }
  .btn:active, .btn-primary:hover svg { transform: none; }
  .crumb:hover svg { transform: rotate(180deg); }
  .nav-toggle span, .seg-thumb, .faq summary svg { transition: none; }
  .nav-open .menu-panel li { transform: none; transition: opacity 150ms var(--curve); transition-delay: 0ms; }
  .tagline .w { color: var(--ink); transition: none; }
  .tagline .w.hl { color: var(--teal-ink); }
  .strip-fx .spark { transition: none; stroke-dashoffset: 0; }
  .donut .seg { transition: stroke 150ms var(--curve); }
}
