/* ============================================================
   Egress v2 — modern visual + motion layer
   Loaded after styles.css. Adds atmosphere, founder, video,
   stats, marquee, and refined motion. Removes scam framing.
   ============================================================ */

/* ---------- atmosphere: drifting aurora + grain ---------- */
body::before {
  content: "";
  position: fixed; inset: -20% -10% auto -10%; height: 140vh;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(680px 520px at 80% 2%, oklch(0.80 0.135 165 / 0.10), transparent 60%),
    radial-gradient(620px 520px at 12% 14%, oklch(0.55 0.07 256 / 0.20), transparent 64%),
    radial-gradient(560px 440px at 50% 0%, oklch(0.70 0.10 200 / 0.08), transparent 60%);
  filter: blur(8px);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.02); }
}

/* fine grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* ---------- richer reveal variants ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: translateY(22px) scale(.97); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal-scale.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal-left.in { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal-right.in { opacity: 1; transform: none; }
.reveal-up { opacity: 0; transform: translateY(38px); transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale, .reveal-left, .reveal-right, .reveal-up { opacity: 1 !important; transform: none !important; }
}

/* ---------- brand AI badge ---------- */
.ai-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px;
  padding: 4px 9px; font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-ghost);
  white-space: nowrap;
}
.ai-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-ghost); animation: aipulse 2.2s ease-in-out infinite; }
@keyframes aipulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ai-dot { animation: none; } }

/* ---------- mood-graded hero photo ---------- */
.photo-sad { filter: grayscale(0.6) brightness(0.82) contrast(1.04); }
.photo-happy { filter: saturate(1.18) brightness(1.05); }

/* ---------- testimonials ---------- */
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.tm-card {
  background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .25s ease, transform .25s ease;
}
.tm-card:hover { border-color: var(--line); transform: translateY(-3px); }
.tm-stars { display: flex; gap: 3px; color: var(--accent); }
.tm-stars svg { width: 16px; height: 16px; }
.tm-quote { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin: 0; }
.tm-quote b { color: var(--text); font-weight: 600; }
.tm-user { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tm-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 600; font-size: 15px; color: var(--accent);
  background: var(--accent-ghost); border: 1px solid var(--accent-line);
}
.tm-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: block;
  background: var(--accent-ghost); border: 1px solid var(--accent-line); overflow: hidden;
}
.tm-avatar image-slot { width: 100%; height: 100%; display: block; }
.tm-name { font-weight: 600; font-size: 14.5px; }
.tm-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); }

/* powered by Workeron lockup */
.pb { display: inline-flex; align-items: center; gap: 7px; margin-left: 12px; padding-left: 13px; border-left: 1px solid var(--line); }
.pb-by { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); }
.pb-mark { font-size: 12px; font-weight: 600; letter-spacing: 0.13em; color: var(--text); }
.pb-footer { display: inline-flex; margin: 0; padding-left: 0; border-left: none; }
.brand-lockup { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; }

/* header brand stacked lockup */
.brand-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.05; }
.brand-word { font-weight: 700; }
.pb-head { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--text-mute); text-transform: lowercase; }

/* ---------- hero refinements ---------- */
h1.hero-title .grad {
  background: linear-gradient(100deg, var(--accent) 0%, oklch(0.88 0.10 190) 55%, var(--text) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* verdict scanning beam */
.verdict { position: relative; }
.verdict .scan {
  position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none;
  background: linear-gradient(180deg, transparent, oklch(0.80 0.135 165 / 0.16) 60%, oklch(0.80 0.135 165 / 0.34));
  border-bottom: 1px solid var(--accent-line);
  opacity: 0; mix-blend-mode: screen;
}
.verdict[data-scan] .scan { animation: scan 4.4s cubic-bezier(.4,0,.5,1) infinite; }
@keyframes scan {
  0%   { transform: translateY(-120px); opacity: 0; }
  12%  { opacity: 1; }
  60%  { transform: translateY(360px); opacity: 1; }
  72%, 100% { transform: translateY(420px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .verdict[data-scan] .scan { animation: none; } }

/* status pulse */
.verdict-status .ico { position: relative; }
.verdict-status .ico::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--accent-line); animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .verdict-status .ico::after { display: none; } }

/* ---------- stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-1), oklch(0.165 0.008 256));
  overflow: hidden; box-shadow: var(--shadow);
}
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: 30px 28px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: none; }
@media (max-width: 640px) { .stat { border-right: none; border-bottom: 1px solid var(--line-soft); } .stat:last-child { border-bottom: none; } }
.stat .num { font-size: clamp(34px, 4.5vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-family: var(--font-sans); }
.stat .num .u { color: var(--accent); }
.stat .lbl { color: var(--text-dim); font-size: 14px; margin-top: 10px; }

/* ---------- protocol marquee ---------- */
.marquee {
  position: relative; overflow: hidden; margin-top: 38px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.m-item {
  display: inline-flex; align-items: center; gap: 11px; white-space: nowrap;
  padding: 12px 18px; border: 1px solid var(--line-soft); border-radius: 999px;
  background: var(--bg-1); color: var(--text-dim); font-size: 14.5px; font-weight: 500;
}
.m-item .mlogo {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--accent);
}
.m-item .meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mute); }

/* ---------- video section ---------- */
.video-wrap {
  position: relative; margin-top: 44px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  aspect-ratio: 16 / 9; background: var(--bg-inset);
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-poster {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(700px 420px at 70% 30%, oklch(0.80 0.135 165 / 0.14), transparent 60%),
    linear-gradient(135deg, oklch(0.20 0.012 256), oklch(0.145 0.008 256));
  cursor: pointer; transition: background .3s ease;
}
.video-poster::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.play {
  position: relative; z-index: 1;
  width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center; color: oklch(0.18 0.02 165);
  background: var(--accent); border: none; cursor: pointer;
  box-shadow: 0 0 0 1px var(--accent-line), 0 20px 50px -16px var(--accent);
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-poster:hover .play { transform: scale(1.08); }
.play::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  border: 1px solid var(--accent-line); animation: pulse 2.8s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) { .play::after { display: none; } }
.video-label {
  position: absolute; left: 22px; bottom: 20px; z-index: 1;
  display: flex; align-items: center; gap: 12px;
}
.video-label .vt { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.video-label .vd { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.video-badge {
  position: absolute; right: 20px; top: 18px; z-index: 1;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: oklch(0.155 0.008 256 / 0.6); backdrop-filter: blur(6px);
}

/* ---------- founder section ---------- */
.founder {
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; margin-top: 14px;
}
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; gap: 36px; } }

.founder-photo { position: relative; max-width: 420px; }
@media (max-width: 860px) { .founder-photo { max-width: 320px; } }
.founder-photo .frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}
.founder-photo .frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.02) contrast(1.02); }
.founder-photo .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, oklch(0.135 0.008 256 / 0.55));
}
.founder-photo .glow {
  position: absolute; inset: -10% -10% -20% -10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, oklch(0.80 0.135 165 / 0.22), transparent 75%);
  filter: blur(16px);
}
.founder-photo .tagchip {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text);
  padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: oklch(0.155 0.008 256 / 0.7); backdrop-filter: blur(8px);
}
.founder-photo .tagchip .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-ghost); }

.founder-name { font-size: clamp(26px, 3.4vw, 40px); margin-top: 18px; }
.founder-role { font-family: var(--font-mono); font-size: 13.5px; color: var(--accent); letter-spacing: 0.02em; margin-top: 10px; }
.founder-bio { color: var(--text-dim); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.6; margin: 18px 0 0; max-width: 52ch; }
.founder-bio strong { color: var(--text); font-weight: 600; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.social {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px 11px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-1); color: var(--text-dim); font-size: 14px; font-weight: 500;
  transition: border-color .18s ease, color .18s ease, transform .18s ease, background .18s ease;
}
.social:hover { border-color: var(--accent-line); color: var(--text); transform: translateY(-2px); background: oklch(1 0 0 / 0.03); }
.social svg { width: 17px; height: 17px; flex: none; }
.social:hover svg { color: var(--accent); }

/* footer socials */
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text-mute); background: var(--bg-1);
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

/* ============================================================
   Character scene (sad -> happy)
   ============================================================ */
.scene-panel {
  background: linear-gradient(180deg, var(--bg-1), oklch(0.165 0.008 256));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.scene-bar {
  display: flex; align-items: center; gap: 8px; padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); letter-spacing: 0.02em;
}
.scene-bar .dots { display: flex; gap: 6px; margin-right: 6px; }
.scene-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }

.scene {
  position: relative; height: 392px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 120%, oklch(0.20 0.01 256), transparent 60%);
}
.scene-glow {
  position: absolute; inset: 0;
  background: radial-gradient(closest-side at 62% 52%, var(--accent-ghost), transparent 72%);
  opacity: 0.12; transition: opacity .7s ease;
}
.scene.happy .scene-glow { opacity: 1; }

/* illustrated figure: sad -> happy */
.figure { position: absolute; left: 50%; bottom: 6px; width: 320px; height: 300px; transform: translateX(-50%); color: oklch(0.74 0.035 60); }
.figure .shadow { fill: oklch(0 0 0 / 0.35); transition: rx .6s ease; }
.scene.happy .figure .shadow { rx: 100px; }

.head, .arm-up { transform-box: view-box; }
.head { transform-origin: 180px 128px; transform: rotate(7deg) translateY(7px); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.scene.happy .head { transform: rotate(-2deg) translateY(-2px); }
.arm-up { transform-origin: 150px 196px; transform: rotate(46deg) translateY(22px); opacity: 0; transition: transform .7s cubic-bezier(.2,.9,.3,1.25), opacity .4s ease; }
.scene.happy .arm-up { transform: rotate(2deg) translateY(0); opacity: 1; }

.torso { fill: oklch(0.40 0.015 256); transition: fill .7s ease; }
.scene.happy .torso { fill: var(--accent-deep); }
.skin { fill: oklch(0.74 0.035 60); transition: fill .7s ease; }
.scene.happy .skin { fill: oklch(0.81 0.05 62); }
.limb { stroke: oklch(0.74 0.035 60); transition: stroke .7s ease; }
.scene.happy .limb { stroke: oklch(0.81 0.05 62); }
.hair { fill: oklch(0.27 0.02 60); }

.face-sad, .face-happy { transition: opacity .45s ease; }
.face-happy { opacity: 0; }
.scene.happy .face-sad { opacity: 0; }
.scene.happy .face-happy { opacity: 1; }
.eye { fill: oklch(0.24 0.02 256); }
.eye-h { stroke: oklch(0.24 0.02 256); fill: none; }
.brow { stroke: oklch(0.30 0.02 60); fill: none; }
.mouth { stroke: oklch(0.30 0.02 40); fill: none; }

.phone-body { fill: oklch(0.19 0.01 256); }
.phone-screen { fill: oklch(0.56 0.15 26); transition: fill .6s ease; }
.scene.happy .phone-screen { fill: var(--accent); }
.phone-glyph { font: 700 24px var(--font-mono); text-anchor: middle; transition: opacity .4s ease; }
.sad-glyph { fill: oklch(0.96 0.03 26); }
.happy-glyph { fill: oklch(0.18 0.02 165); opacity: 0; }
.scene.happy .sad-glyph { opacity: 0; }
.scene.happy .happy-glyph { opacity: 1; }

.cloud { position: absolute; top: 30px; left: 16%; width: 78px; height: 30px; background: oklch(0.42 0.015 256); border-radius: 999px; opacity: 1; transition: opacity .5s ease, transform .6s ease; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: oklch(0.42 0.015 256); border-radius: 50%; }
.cloud::before { width: 34px; height: 34px; top: -16px; left: 12px; }
.cloud::after { width: 26px; height: 26px; top: -12px; right: 12px; }
.scene.happy .cloud { opacity: 0; transform: translateY(-12px); }
.rain { position: absolute; top: 30px; width: 2px; height: 12px; border-radius: 2px; background: oklch(0.55 0.04 230); }
.rain.r1 { left: 22px; animation: rain 1.1s linear infinite; }
.rain.r2 { left: 40px; animation: rain 1.1s linear infinite .3s; }
.rain.r3 { left: 58px; animation: rain 1.1s linear infinite .6s; }
@keyframes rain { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(26px); opacity: 0; } }
.scene.happy .rain { animation: none; opacity: 0; }

.fx { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.scene.happy .fx { opacity: 1; }
.coin { position: absolute; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--font-mono); color: oklch(0.18 0.02 165); background: radial-gradient(circle at 35% 30%, oklch(0.90 0.14 95), oklch(0.78 0.15 80)); box-shadow: 0 6px 16px -6px oklch(0.78 0.15 80); }
.coin.c1 { right: 24%; top: 40%; } .coin.c2 { right: 14%; top: 26%; } .coin.c3 { right: 30%; top: 22%; }
.scene.happy .coin.c1 { animation: floatUp 2.4s ease-in-out infinite; }
.scene.happy .coin.c2 { animation: floatUp 2.4s ease-in-out infinite .5s; }
.scene.happy .coin.c3 { animation: floatUp 2.4s ease-in-out infinite 1s; }
@keyframes floatUp { 0%,100% { transform: translateY(6px); } 50% { transform: translateY(-8px); } }
.conf { position: absolute; width: 8px; height: 8px; border-radius: 2px; top: 14%; }
.conf.k1 { left: 30%; background: var(--accent); } .conf.k2 { left: 50%; background: oklch(0.78 0.15 80); }
.conf.k3 { left: 64%; background: oklch(0.70 0.12 200); } .conf.k4 { left: 42%; background: var(--accent); }
.conf.k5 { left: 72%; background: oklch(0.78 0.15 80); }
.scene.happy .conf { animation: confFall 2.6s linear infinite; }
.scene.happy .conf.k2 { animation-delay: .4s; } .scene.happy .conf.k3 { animation-delay: .8s; }
.scene.happy .conf.k4 { animation-delay: 1.2s; } .scene.happy .conf.k5 { animation-delay: .6s; }
@keyframes confFall { 0% { transform: translateY(-10px) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(120px) rotate(220deg); opacity: 0; } }
.spark { position: absolute; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px 2px var(--accent); }
.spark.s1 { left: 26%; top: 30%; } .spark.s2 { right: 22%; top: 46%; }
.scene.happy .spark { animation: twinkle 1.8s ease-in-out infinite; }
.scene.happy .spark.s2 { animation-delay: .7s; }
@keyframes twinkle { 0%,100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1); opacity: 1; } }

.scene-caption { position: absolute; left: 0; right: 0; bottom: 16px; height: 18px; text-align: center; font-family: var(--font-mono); font-size: 13px; z-index: 3; text-shadow: 0 1px 8px oklch(0.13 0.01 256 / 0.9); pointer-events: none; }
.scene-caption span { position: absolute; left: 0; right: 0; transition: opacity .5s ease; }
.cap-sad { color: var(--text-mute); }
.cap-happy { color: var(--accent); opacity: 0; }
.scene.happy .cap-sad { opacity: 0; }
.scene.happy .cap-happy { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .scene * { animation: none !important; }
}

/* ============================================================
   Telegram contact (simple)
   ============================================================ */
.tg-shell {
  margin-top: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
}
@media (max-width: 820px) { .tg-shell { grid-template-columns: 1fr; } }
.tg-card {
  background: linear-gradient(180deg, var(--bg-1), oklch(0.165 0.008 256));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 36px); box-shadow: var(--shadow);
}
.tg-field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.tg-field label { font-size: 13.5px; font-weight: 500; color: var(--text); }
.tg-field label .opt { color: var(--text-mute); font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; }
.tg-card .textarea, .tg-card .input { font-family: var(--font-sans); font-size: 15px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.tg-card .textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.tg-card .textarea::placeholder, .tg-card .input::placeholder { color: var(--text-mute); }
.tg-card .textarea:focus, .tg-card .input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-ghost); background: var(--bg-inset); }
.tg-btn { width: 100%; }
.tg-foot { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 15px; color: var(--text-mute); font-size: 12.5px; }
.tg-foot svg { width: 14px; height: 14px; color: var(--accent); }
.tg-toast { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--accent-line); background: var(--accent-ghost); border-radius: var(--radius-sm); color: var(--text); font-size: 13.5px; display: flex; gap: 10px; align-items: center; }
.tg-toast svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.tg-handle { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 14px; color: var(--text-dim); margin-top: 16px; }
.tg-handle svg { width: 16px; height: 16px; color: var(--accent); }

.tg-aside h2 { font-size: clamp(26px, 3.4vw, 40px); }
.tg-aside .lede { margin-top: 14px; }
.tg-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.tg-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); font-size: 14.5px; }
.tg-points li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }

/* big text stat */
.stat .num.txt { font-size: clamp(30px, 3.8vw, 44px); }

/* subtle CTA button shimmer */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, oklch(1 0 0 / 0.35), transparent);
  transform: skewX(-18deg); opacity: 0;
}
.btn-primary:hover::after { animation: shimmer 1s ease; }
@keyframes shimmer { 0% { left: -60%; opacity: .9; } 100% { left: 130%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn-primary:hover::after { animation: none; } }

/* ============================================================
   Theme toggle button
   ============================================================ */
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center; cursor: pointer;
  background: oklch(1 0 0 / 0.02); border: 1px solid var(--line); color: var(--text-dim);
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.theme-btn:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-1px); }
.theme-btn svg { width: 18px; height: 18px; }

/* ============================================================
   LIGHT THEME
   ============================================================ */
html[data-theme="light"] {
  --bg:        oklch(0.945 0.005 250);
  --bg-1:      oklch(0.992 0.003 250);
  --bg-2:      oklch(0.962 0.004 250);
  --bg-inset:  oklch(0.928 0.006 250);
  --line:      oklch(0.872 0.008 250);
  --line-soft: oklch(0.908 0.006 250);
  --line-strong: oklch(0.78 0.013 250);
  --text:      oklch(0.235 0.013 256);
  --text-dim:  oklch(0.43 0.014 256);
  --text-mute: oklch(0.565 0.013 256);
  --accent:      oklch(0.55 0.14 165);
  --accent-deep: oklch(0.47 0.13 165);
  --accent-ghost: oklch(0.62 0.14 165 / 0.12);
  --accent-line:  oklch(0.55 0.14 165 / 0.28);
  --danger: oklch(0.54 0.19 26);
  --danger-ghost: oklch(0.60 0.19 26 / 0.10);
  --shadow: 0 1px 0 oklch(1 0 0 / 0.7) inset, 0 18px 46px -26px oklch(0.45 0.03 256 / 0.32);
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(680px 520px at 80% 2%, oklch(0.72 0.13 165 / 0.13), transparent 60%),
    radial-gradient(620px 520px at 12% 14%, oklch(0.80 0.08 235 / 0.16), transparent 64%),
    radial-gradient(560px 440px at 50% 0%, oklch(0.86 0.09 120 / 0.12), transparent 60%);
}
html[data-theme="light"] body::after { opacity: 0.025; mix-blend-mode: multiply; }

html[data-theme="light"] .header.stuck {
  background: oklch(1 0 0 / 0.72); border-bottom-color: var(--line-soft);
}
html[data-theme="light"] .theme-btn { background: oklch(0.5 0.01 256 / 0.02); }

html[data-theme="light"] .btn-primary {
  background: oklch(0.60 0.15 165); color: oklch(0.99 0.012 165);
  box-shadow: 0 0 0 1px oklch(0.55 0.14 165 / 0.4), 0 10px 26px -12px oklch(0.55 0.14 165 / 0.7);
}
html[data-theme="light"] .btn-primary:hover { background: oklch(0.55 0.15 165); }
html[data-theme="light"] .btn-primary::after { background: linear-gradient(100deg, transparent, oklch(1 0 0 / 0.5), transparent); }
html[data-theme="light"] .btn-ghost { background: oklch(0.5 0.01 256 / 0.02); }
html[data-theme="light"] .btn-ghost:hover { background: oklch(0.5 0.01 256 / 0.05); border-color: var(--line-strong); }
html[data-theme="light"] .nav a:hover { background: oklch(0.5 0.01 256 / 0.05); }

html[data-theme="light"] h1.hero-title .grad {
  background: linear-gradient(100deg, oklch(0.54 0.15 165) 0%, oklch(0.50 0.12 205) 55%, oklch(0.30 0.02 256) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* character scene (light) */
html[data-theme="light"] .scene { background: radial-gradient(120% 90% at 50% 120%, oklch(0.93 0.008 250), transparent 60%); }
html[data-theme="light"] .photo-layer image-slot { background: oklch(0.955 0.005 250); }
html[data-theme="light"] .sad-tint { background: linear-gradient(180deg, oklch(0.55 0.02 256 / 0.10), oklch(0.40 0.01 256 / 0.30)); filter: grayscale(0.15); }
html[data-theme="light"] .happy-tint { background: radial-gradient(120% 80% at 50% 25%, oklch(0.70 0.14 165 / 0.10), transparent 55%), linear-gradient(180deg, transparent 50%, oklch(0.40 0.01 256 / 0.22)); }
html[data-theme="light"] .scene-caption { text-shadow: 0 1px 8px oklch(1 0 0 / 0.9); }

/* video (light) */
html[data-theme="light"] .video-poster {
  background:
    radial-gradient(700px 420px at 70% 30%, oklch(0.72 0.13 165 / 0.14), transparent 60%),
    linear-gradient(135deg, oklch(0.955 0.006 250), oklch(0.99 0.002 250));
}
html[data-theme="light"] .video-poster::before { background-image: radial-gradient(oklch(0 0 0 / 0.05) 1px, transparent 1px); }
html[data-theme="light"] .video-badge { background: oklch(1 0 0 / 0.62); }

/* founder (light) */
html[data-theme="light"] .founder-photo .tagchip { background: oklch(1 0 0 / 0.72); }
html[data-theme="light"] .founder-photo .frame::after { background: linear-gradient(180deg, transparent 60%, oklch(0.40 0.01 256 / 0.30)); }

/* cards whose gradient has a hardcoded dark bottom stop — flip for light */
html[data-theme="light"] .scene-panel,
html[data-theme="light"] .stats,
html[data-theme="light"] .tg-card,
html[data-theme="light"] .pricing-card {
  background: linear-gradient(180deg, var(--bg-1), oklch(0.94 0.006 250));
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .ai-badge { display: none; }
}
@media (max-width: 900px) {
  /* horizontal slide-ins push past the right edge on narrow screens — slide up instead */
  .reveal-left, .reveal-right { transform: translateY(30px); }
  .reveal-left.in, .reveal-right.in { transform: none; }
  /* decorative radial bleeds past the viewport edge on small screens */
  .founder-photo .glow { inset: 0; }
}
@media (max-width: 760px) {
  .tm-grid { grid-template-columns: 1fr; }
  .scene { height: 320px; }
  .hero { padding-top: 28px; }
  .header-inner { height: 64px; }
  .header .btn { padding: 9px 13px; font-size: 13.5px; }
  .theme-btn { width: 36px; height: 36px; }
  h1.hero-title { max-width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .trust-chips .chip { font-size: 12.5px; }
}
@media (max-width: 520px) {
  :root { --pad: 18px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .scene { height: 280px; }
  .video-label { left: 14px; bottom: 14px; }
  .video-label .vt { font-size: 14px; }
  .founder-photo { max-width: 100%; }
  .price-big { font-size: clamp(40px, 13vw, 60px); }
  .stat { padding: 22px 20px; }
}
