/* YUKI FX shared styles. Palette A "Pure Ink": black and white, green/red only for P/L. */
:root {
  --bg: #000000;
  --surface: #0d0d0d;
  --surface-2: #161616;
  --line: #262626;
  --line-strong: #3a3a3a;
  --text: #ffffff;          /* 21:1 on bg */
  --muted: #8f8f8f;         /* 6.9:1 on bg, 6.4:1 on surface (AA) */
  --profit: #22c55e;        /* P/L only */
  --loss: #f05252;          /* P/L only */
  --radius: 14px;
  --gutter: 16px;

  /* Type scale (1.25 ratio, fluid at the top end) */
  --fs-2xs: 0.6875rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 4vw, 1.95rem);
  --fs-hero: clamp(2.5rem, 7.5vw, 4.75rem);
  --fs-stat: clamp(1.75rem, 5vw, 2.25rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-base)/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.eyebrow { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.up { color: var(--profit); }
.down { color: var(--loss); }

/* ---------- Buttons: text always stays inside the box ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; max-width: 100%; padding: 12px 22px;
  border-radius: 999px; border: 1px solid var(--text);
  font: 600 var(--fs-sm)/1.25 inherit; text-decoration: none; text-align: center;
  white-space: normal; overflow-wrap: anywhere;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #d9d9d9; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn svg { flex: none; width: 20px; height: 20px; }
.btn-block { width: 100%; }

/* ---------- Header: logo + text links, no CTA button ---------- */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(0,0,0,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { font-weight: 800; font-size: var(--fs-lg); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.logo img { display: block; height: 32px; width: auto; }
.nav { display: flex; gap: 20px; font-size: var(--fs-sm); font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* ---------- Hero: copy left, snapshot card right ---------- */
.hero { padding: 56px 0 40px; display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr .85fr; align-items: center; padding: 80px 0 56px; } }
.hero-copy { min-width: 0; }
.hero-pill {
  display: inline-block; max-width: 100%; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
@media (max-width: 379px) { .hero-pill { letter-spacing: .1em; padding: 8px 12px; } }
.hero h1 { margin-top: 24px; font-size: var(--fs-hero); font-weight: 800; line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.hero .lede { margin-top: 20px; max-width: 52ch; font-size: 1.0625rem; color: var(--muted); }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .hero .actions .btn { width: 100%; } }

.hero-visual { min-width: 0; display: flex; justify-content: center; }
/* Phone showing the day's result as a post in the Telegram channel */
.phone {
  position: relative; width: 100%; max-width: 300px; min-height: 610px; overflow: hidden;
  display: flex; flex-direction: column;
  border: 6px solid #1c1c1c; border-radius: 44px; background: var(--bg);
  box-shadow: 0 0 0 1px var(--line-strong), 0 40px 80px rgba(0,0,0,.6), 0 0 140px rgba(255,255,255,.07);
}
/* Float + tilt: the wrapper tilts toward the mouse (JS sets --rx/--ry), the phone floats */
.hero-visual { perspective: 1100px; }
.phone-tilt {
  width: 100%; max-width: 300px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}
.phone { animation: phone-float 6s ease-in-out infinite; }
.phone::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 38px;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 10%), rgba(255,255,255,.07), transparent 45%);
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }
.phone-island { position: absolute; z-index: 2; top: 8px; left: 50%; width: 88px; height: 24px; margin-left: -44px; border-radius: 999px; background: #000; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 6px; background: var(--surface-2); font-size: 12px; font-weight: 600; }
.phone-icons { display: flex; align-items: flex-end; gap: 2px; }
.phone-icons i { display: block; width: 3px; border-radius: 1px; background: var(--text); }
.phone-icons i:nth-child(1) { height: 5px; } .phone-icons i:nth-child(2) { height: 8px; } .phone-icons i:nth-child(3) { height: 11px; }
.phone-icons b { display: block; width: 20px; height: 10px; margin-left: 5px; border: 1px solid var(--muted); border-radius: 3px; background: linear-gradient(90deg, var(--text) 70%, transparent 0) 1px 1px / calc(100% - 2px) calc(100% - 2px) no-repeat; }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tg-back { font-size: 26px; line-height: 1; color: var(--muted); }
.tg-avatar { flex: none; width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 50%; background: #000; }
.tg-avatar img { display: block; width: 66%; height: 66%; }
.tg-name { font-size: var(--fs-sm); font-weight: 700; line-height: 1.2; }
.tg-sub { font-size: var(--fs-xs); color: var(--muted); line-height: 1.2; }
.tg-chat { flex: 1; display: grid; align-content: center; gap: 16px; padding: 18px 12px; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0) 0 0 / 16px 16px, var(--bg); }
.bubble { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; background: var(--surface-2); }
.bubble-tag { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.bubble-date { margin-top: 6px; font-weight: 700; }
.bubble .snap-pips { margin-top: 8px; }
.bubble-foot { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; font-size: var(--fs-2xs); color: var(--muted); }
.bubble-small { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 10px 14px; border-radius: 4px 18px 18px 18px; font-size: var(--fs-sm); color: var(--muted); }
.bubble-small b { color: var(--text); white-space: nowrap; }
.bubble-small b.up { color: var(--profit); } .bubble-small b.down { color: var(--loss); }
.tg-join { display: block; padding: 14px; border-top: 1px solid var(--line); background: var(--surface-2); text-align: center; text-decoration: none; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background-color .15s ease; }
.tg-join:hover { background: #1f1f1f; }
.tg-join:focus-visible { outline: 2px solid var(--text); outline-offset: -4px; }
.snap-pips { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.snap-pips .value { font-size: clamp(2rem, 8vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.snap-pips .unit { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.snap-meta { margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
.bars {
  margin-top: 16px; height: 76px; display: flex; gap: 4px;
  background: linear-gradient(var(--line), var(--line)) center/100% 1px no-repeat;
}
.bars .bar { flex: 1; position: relative; }
.bars .bar i { position: absolute; left: 0; right: 0; border-radius: 3px; }
.bars .bar.pos i { bottom: 50%; background: var(--profit); }
.bars .bar.neg i { top: 50%; background: var(--loss); }

/* ---------- Track record strip ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
@media (min-width: 760px) { .stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.strip-item { min-width: 0; display: grid; justify-items: center; gap: 6px; padding: 24px 12px; text-align: center; background: var(--surface); }
.strip-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); }
.strip-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.strip-value { margin-top: 6px; font-size: var(--fs-stat); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.strip-label { font-size: var(--fs-sm); color: var(--muted); }
.strip-note { margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); }
.strip-note a { color: var(--text); }

/* ---------- Generic sections & cards ---------- */
section { padding: 32px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
@media (max-width: 379px) { .card { padding: 18px; } }
.section-title { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }

/* ---------- About: plain text, title left, story right ---------- */
.about { max-width: 720px; }
.about .section-title { margin-bottom: 16px; }
.about p + p { margin-top: 12px; }
.about .btn { margin-top: 24px; }

/* ---------- Results card (results page) ---------- */
.results-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.tabs { display: inline-grid; grid-template-columns: repeat(3, auto); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs button {
  min-height: 36px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font: 600 var(--fs-xs)/1 inherit; cursor: pointer; white-space: nowrap;
}
@media (max-width: 379px) { .tabs button { padding: 6px 11px; } }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.tabs button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.stats { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 12px; min-width: 0; }
.stat .label { font-size: var(--fs-xs); color: var(--muted); }
.stat .value { margin-top: 4px; font-size: var(--fs-stat); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.chart { margin-top: 20px; }
.chart-head { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-xs); color: var(--muted); }
/* Interactive chart: follows the selected tab, hover/tap/arrow keys show each day */
.chart-box { position: relative; height: 200px; margin-top: 8px; touch-action: pan-y; cursor: crosshair; }
.chart-box:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 6px; }
.chart-box svg { display: block; width: 100%; height: 100%; overflow: visible; }
#c-area { transition: opacity .6s ease; }
.c-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px rgba(255,255,255,.15); pointer-events: none; }
.c-tip {
  position: absolute; z-index: 2; min-width: 150px; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: var(--fs-xs); white-space: nowrap; pointer-events: none; box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.c-tip strong { display: block; margin-bottom: 6px; font-size: var(--fs-sm); }
.c-tip .row { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.c-tip .row b { color: var(--text); font-weight: 600; }
.c-tip .row b.up { color: var(--profit); }
.c-tip .row b.down { color: var(--loss); }
.c-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: var(--fs-sm); }
.c-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: var(--fs-2xs); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { #c-area { transition: none; } }
.risk-row { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.risk-row .value { font-size: var(--fs-lg); }
.stamp { margin-top: 16px; font-size: var(--fs-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.empty { margin-top: 20px; padding: 24px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }

/* Stats follow the card's own width */
#results { container-type: inline-size; }
@container (max-width: 559px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:first-child { grid-column: 1 / -1; }
}
@container (max-width: 359px) {
  #results .risk-row { grid-template-columns: 1fr; }
}

/* ---------- Results page ---------- */
.page-head { padding: 48px 0 24px; }
.page-head h1 { margin-top: 12px; font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.page-head p.lede { margin-top: 12px; max-width: 52ch; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); text-decoration: none; min-height: 40px; }
.back:hover { color: var(--text); }
.log { margin-top: 16px; }
.log-wrap { margin-top: 16px; overflow-x: auto; }
.log table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.log th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.log td { padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.log th.r, .log td.r { text-align: right; }
.log td.note { white-space: normal; min-width: 180px; color: var(--muted); }
.log tbody tr:last-child td { border-bottom: 0; }
.cta-band { display: grid; gap: 16px; justify-items: start; }
@media (min-width: 760px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Tiers ---------- */
.tier-note { margin-top: 16px; max-width: 65ch; font-size: var(--fs-sm); color: var(--muted); }
.tier-note strong { color: var(--text); }
.tiers { margin-top: 20px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier { display: flex; flex-direction: column; }
.tier.vip { border-color: var(--text); }
.tier-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.tier h3 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; }
.badge { font-size: var(--fs-xs); font-weight: 600; border: 1px solid var(--text); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.deposit { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }
.deposit strong { color: var(--text); font-size: var(--fs-lg); }
.features { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 10px; }
.features li { display: flex; gap: 10px; align-items: start; }
.features li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.features li.off { color: var(--muted); text-decoration: line-through; }
.features li.off::before { background: var(--surface-2); }
.tier-actions { margin-top: auto; display: grid; gap: 8px; }
.tier-actions .step { font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }
.tier-actions .step:first-child { margin-top: 0; }
.broker-pair { display: grid; grid-template-columns: 1fr; gap: 8px; }

/* ---------- Partners & socials: one panel, brokers left, "Find YUKI FX" right ---------- */
.partner-panel {
  display: grid; gap: 32px; grid-template-columns: 1fr; padding: 28px 22px;
  border: 1px solid var(--line); border-radius: 24px;
  background: radial-gradient(120% 90% at 85% 10%, rgba(255,255,255,.09), transparent 55%), var(--surface);
}
@media (min-width: 1024px) { .partner-panel { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 48px; } }
.partner-main { min-width: 0; }
.partner-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.partner-tags .pill { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--bg); }
.partner-tags .x { color: var(--muted); letter-spacing: 0; }
.partner-title { margin-top: 20px; font-size: clamp(2.5rem, 8vw, 4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.partner-sub { margin-top: 8px; font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.find { min-width: 0; display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.04); }
.find-note { margin-top: 4px; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Footer ---------- */
footer { padding: 40px 0 120px; border-top: 1px solid var(--line); margin-top: 32px; font-size: var(--fs-xs); color: var(--muted); }
footer p + p { margin-top: 12px; }
footer strong { color: var(--text); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, #000 35%); }
@media (min-width: 900px) { .sticky-cta { display: none; } footer { padding-bottom: 40px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .find-row { transition: none; }
}

.tier-actions .step b { color: var(--text); font-weight: 700; }

/* ---------- Animated results chart ---------- */
.chart-box { height: 280px; }
#c-bars rect { transform-box: fill-box; transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .15s ease; }
#c-bars rect.pos { fill: var(--profit); transform-origin: center bottom; }
#c-bars rect.neg { fill: var(--loss); transform-origin: center top; }
.chart-box.hovering #c-bars rect { opacity: .3; }
.chart-box.hovering #c-bars rect.on { opacity: 1; }
.c-pulse { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--text); pointer-events: none; }
.c-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--text); animation: c-pulse 1.8s ease-out infinite; }
@keyframes c-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }
.chart-box.hovering .c-pulse { opacity: 0; }
.c-mark {
  position: absolute; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor;
  background: var(--bg); font-size: var(--fs-2xs); font-weight: 700; white-space: nowrap; pointer-events: none;
  animation: c-mark-in .4s ease both;
}
@keyframes c-mark-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.chart-box.hovering .c-mark { opacity: 0; transition: opacity .15s; }
@media (prefers-reduced-motion: reduce) {
  #c-bars rect { transition: none; }
  .c-pulse::after, .c-mark { animation: none; }
}

/* ---------- Tier cards: lift + cursor spotlight on hover (mouse only) ---------- */
.tier { position: relative; overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .25s ease; }
.tier::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.09), transparent 45%);
}
.tier > * { position: relative; }
@media (hover: hover) and (pointer: fine) {
  .tier:hover { transform: translateY(-6px); border-color: var(--text); box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 40px rgba(255,255,255,.06); }
  .tier:hover::before { opacity: 1; }
  .tiers:hover .tier:not(:hover) { opacity: .6; }
  .tier:hover .features li:not(.off)::before { animation: tick-pop .35s ease both; }
  .tier:hover .features li:nth-child(2)::before { animation-delay: .05s; }
  .tier:hover .features li:nth-child(3)::before { animation-delay: .1s; }
  .tier:hover .features li:nth-child(4)::before { animation-delay: .15s; }
  .tier:hover .features li:nth-child(5)::before { animation-delay: .2s; }
  .tier:hover .features li:nth-child(6)::before { animation-delay: .25s; }
}
@keyframes tick-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .tier { transition: border-color .25s ease, opacity .25s ease; }
  .tier:hover { transform: none; }
  .tier:hover .features li::before { animation: none !important; }
}

/* ---------- Partner panel: old left side, new "Find YUKI FX" box ---------- */
.partner-copy { margin-top: 16px; max-width: 52ch; color: var(--muted); }
.partner-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
@media (max-width: 479px) { .partner-actions .btn { width: 100%; } }

.find { container-type: inline-size; gap: 10px; padding: 22px; }
.find-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.find-title { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.02em; }
.find-sub { font-size: var(--fs-xs); color: var(--muted); }
.find-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "icon name handle" "icon hint hint";
  align-items: center; gap: 2px 12px; min-height: 64px; padding: 12px 14px;
  border: 1px solid transparent; border-radius: 14px; background: rgba(255,255,255,.05);
  text-decoration: none; transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.find-icon { grid-area: icon; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); transition: background-color .2s ease, color .2s ease; }
.find-icon svg { width: 18px; height: 18px; }
.find-name { grid-area: name; min-width: 0; font-size: var(--fs-sm); font-weight: 700; }
.find-handle { grid-area: handle; display: flex; align-items: center; gap: 4px; min-width: 0; font-size: var(--fs-sm); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.find-hint { grid-area: hint; min-width: 0; font-size: var(--fs-xs); color: var(--muted); }
.find-arrow { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translate(-4px, 4px); transition: opacity .2s ease, transform .2s ease; }
.find-row:hover, .find-row:focus-visible { background: rgba(255,255,255,.09); border-color: var(--line-strong); transform: translateX(4px); }
.find-row:hover .find-icon, .find-row:focus-visible .find-icon { background: var(--text); color: var(--bg); border-color: var(--text); }
.find-row:hover .find-arrow, .find-row:focus-visible .find-arrow { opacity: 1; transform: none; }
.find-row:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@media (hover: none) { .find-arrow { opacity: 1; transform: none; } }
/* Narrow box: handle moves under the name so nothing gets squeezed */
@container (max-width: 330px) {
  .find-row { grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "icon name" "icon handle" "hint hint"; gap: 0 10px; padding: 10px 12px; }
  .find-icon { width: 32px; height: 32px; border-radius: 10px; }
  .find-handle { text-align: left; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
  .find-hint { margin-top: 6px; }
}
@media (max-width: 479px) { .partner-panel { padding: 24px 16px; } .find { padding: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .find-row, .find-icon, .find-arrow { transition: none; }
  .find-row:hover, .find-row:focus-visible { transform: none; }
}

/* ---------- Testimonials page: two looping rows of member screenshots ---------- */
.tm-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tm-meta span { padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-xs); color: var(--muted); }
.tm-loops { display: grid; gap: 16px; }
.tm-row {
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.tm-row::-webkit-scrollbar { display: none; }
.tm-row.tm-auto { overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; }
.tm-row.tm-auto:active { cursor: grabbing; }
.tm-track { display: flex; gap: 16px; width: max-content; padding: 6px 0; }
.tm-auto .tm-track { will-change: transform; }
.tm-card { flex: none; margin: 0; }
.tm-card button {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; cursor: zoom-in; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tm-card img { display: block; width: auto; height: 360px; max-width: 78vw; object-fit: cover; }
.tm-wide img { width: 420px; max-width: 82vw; object-fit: contain; background: var(--surface-2); }
@media (max-width: 559px) { .tm-card img { height: 280px; } .tm-loops, .tm-track { gap: 10px; } }
@media (hover: hover) and (pointer: fine) {
  .tm-card button:hover { border-color: var(--text); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.6); }
}
.tm-card button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.tm-viewer { width: min(92vw, 560px); max-height: 94vh; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); overflow: hidden; }
.tm-viewer::backdrop { background: rgba(0,0,0,.85); }
.tm-viewer img { display: block; width: 100%; max-height: calc(94vh - 64px); object-fit: contain; background: var(--bg); }
.tm-bar { display: flex; align-items: center; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.tm-pos { flex: 1; text-align: center; font-size: var(--fs-sm); color: var(--muted); }
.tm-nav, .tm-close { flex: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.tm-nav:hover, .tm-close:hover { border-color: var(--text); }
.tm-nav:focus-visible, .tm-close:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .tm-card button { transition: none; }
}
/* Four menu links must fit next to the logo on small phones */
@media (max-width: 419px) { .nav { gap: 12px; font-size: 0.75rem; white-space: nowrap; } .logo { font-size: 1.05rem; } }


/* Hidden attribute must win over display:grid on the empty-chart message */
.c-empty[hidden] { display: none; }
/* Home button at the top of inner pages */
.home-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.home-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-btn:hover { border-color: var(--text); background: rgba(255,255,255,.06); }
.home-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
/* Key reassurance line in the membership note: bold, no highlight */
.hl { color: var(--text); font-weight: 700; }
/* ---------- Top bar: logo mark left, links spread evenly across (Apple-style) ---------- */
header.top .wrap { max-width: 1024px; min-height: 48px; gap: 24px; }
.logo { display: flex; align-items: center; flex: none; min-height: 44px; }
.logo img { width: 26px; height: 26px; border-radius: 50%; transition: opacity .15s ease; }
.logo:hover img { opacity: .75; }
.nav { flex: 1; justify-content: space-evenly; gap: 8px; font-size: 0.8125rem; font-weight: 400; letter-spacing: .01em; white-space: nowrap; }
.nav a { color: #d6d6d6; padding: 12px 4px; transition: color .15s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { font-weight: 600; }
@media (min-width: 760px) { header.top .wrap { gap: 48px; } .nav { justify-content: space-between; } }
@media (max-width: 419px) { header.top .wrap { gap: 12px; } .nav { gap: 4px; font-size: 0.75rem; justify-content: space-between; } .logo img { width: 24px; height: 24px; } }
/* ---------- Wide screens (laptops/desktops): use more of the width ---------- */
@media (min-width: 1280px) {
  :root { --gutter: 40px; }
  .wrap, header.top .wrap { max-width: 1440px; }
  .hero { gap: 80px; padding: 96px 0 72px; }
  .hero .lede { font-size: 1.1875rem; max-width: 56ch; }
  .phone, .phone-tilt { max-width: 320px; }
  .tm-card img { height: 420px; }
}
@media (min-width: 1680px) {
  :root { --gutter: 56px; --fs-hero: 5.5rem; --fs-xl: 2.25rem; }
  .wrap, header.top .wrap { max-width: 1600px; }
}
/* ---------- Page background: soft glow from the top, faint dot grid, darker edges ---------- */
html { background: #050505; }
body { background: transparent; }
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background:
    radial-gradient(1400px 820px at 40% 4%, rgba(255,255,255,.13), transparent 66%),
    radial-gradient(760px 560px at 92% 20%, rgba(255,255,255,.07), transparent 60%),
    radial-gradient(800px 600px at 0% 75%, rgba(255,255,255,.035), transparent 60%);
}
body::after {
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 75%);
}
/* Header lets the glow show through a little */
header.top { background: rgba(5,5,5,.72); }

/* ==========================================================================
   Floating top bar, page-wide glow, reveal on scroll, cursor light, progress bar
   ========================================================================== */
/* Top bar: logo + name left, links centred, Join Telegram right.
   Clear at the top of the page; floats as a rounded glass bar once you scroll. */
header.top { background: transparent; border-bottom: 0; backdrop-filter: none; top: 0; padding: 0 var(--gutter); }
header.top .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  max-width: 1440px; min-height: 64px; padding: 0 8px 0 4px;
  border: 1px solid transparent; border-radius: 999px;
  transition: max-width .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1), background-color .7s ease, border-color .7s ease, box-shadow .9s ease, min-height .9s cubic-bezier(.22,1,.36,1), padding .9s cubic-bezier(.22,1,.36,1);
}
header.top.scrolled .wrap {
  max-width: 1040px; min-height: 56px; padding: 0 8px 0 10px; transform: translateY(10px);
  background: rgba(14,14,14,.72); border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.logo { gap: 10px; justify-self: start; }
.logo img { width: 32px; height: 32px; padding: 7px; box-sizing: border-box; background: #000; border: 1px solid var(--line-strong); border-radius: 50%; }
.logo-name { font-size: var(--fs-sm); font-weight: 800; letter-spacing: -.01em; }
.nav { flex: none; justify-content: center; gap: 4px; }
.nav a { padding: 7px 14px; border-radius: 999px; color: #bdbdbd; transition: color .15s ease, background-color .15s ease; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav a[aria-current="page"], .nav a.active { color: #fff; font-weight: 500; background: rgba(255,255,255,.09); }
.nav-cta { justify-self: end; min-height: 40px; padding: 8px 18px; font-size: var(--fs-sm); }
.nav-cta svg { width: 18px; height: 18px; }
@media (max-width: 899px) {
  header.top .wrap { grid-template-columns: auto 1fr; }
  .nav { justify-content: flex-end; }
  .nav-cta { display: none; }            /* phones keep the sticky Join button at the bottom */
}
@media (max-width: 559px) {
  .logo-name { display: none; }
  .nav a { padding: 6px 9px; }
  header.top.scrolled .wrap { transform: translateY(6px); padding: 0 4px 0 8px; }
}
@media (max-width: 419px) { .nav { gap: 0; } .nav a { padding: 6px 7px; } }
@media (min-width: 1280px) { header.top.scrolled .wrap { max-width: 1120px; } }
@media (min-width: 1680px) { header.top .wrap { max-width: 1600px; } header.top.scrolled .wrap { max-width: 1200px; } }

/* Page-wide glow: sits behind everything and stays in view as you scroll, so every part of the page has it */
html { background: #050505; }
body::before {
  background:
    radial-gradient(1400px 820px at 40% 4%, rgba(255,255,255,.065), transparent 66%),
    radial-gradient(900px 700px at 100% 45%, rgba(255,255,255,.03), transparent 62%),
    radial-gradient(900px 700px at 0% 85%, rgba(255,255,255,.028), transparent 62%),
    linear-gradient(180deg, #0b0b0d 0%, #070708 55%, #0a0a0b 100%);
}
body::after { -webkit-mask-image: none; mask-image: none; opacity: .35; }

/* Reveal on scroll (only when the effects script is running) */
.fx .reveal { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 1s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1); }
.fx .reveal.in { opacity: 1; transform: none; }

/* Cursor light */
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 5; width: 280px; height: 280px; margin: -140px 0 0 -140px;
  pointer-events: none; opacity: 0; transition: opacity .5s ease; will-change: transform;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.06), transparent 65%); mix-blend-mode: screen;
}
.cursor-glow.on { opacity: 1; }

/* Scroll progress bar along the top edge */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 2px; pointer-events: none;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255,255,255,.35), #fff);
  box-shadow: 0 0 10px rgba(255,255,255,.5);
}
@media (prefers-reduced-motion: reduce) {
  header.top .wrap { transition: none; }
  .scroll-progress { display: none; }
}


/* ---------- Privacy Policy / Terms pages ---------- */
.legal-date { margin-top: 12px; font-size: var(--fs-xs); color: var(--muted); }
.legal { max-width: 760px; padding-bottom: 24px; }
.legal h2 { margin-top: 36px; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; }
.legal h2:first-child { margin-top: 8px; }
.legal p, .legal li { color: #b8b8b8; line-height: 1.7; }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.legal strong { color: var(--text); }
.legal a { color: var(--text); text-underline-offset: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* WikiFX link in the membership note */
.wikifx-link { color: var(--text); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.wikifx-link:hover { text-decoration-thickness: 2px; }

/* Jump-link targets stop below the floating top bar */
section[id] { scroll-margin-top: 88px; }
