/* ============================================================
   TimeFace Pro — brand stylesheet · PRO MAX edition
   Dark luxury · gold gradients · glassmorphism · Heebo · RTL
   ============================================================ */

:root{
  --bg:#070b16; --bg2:#0e1425; --card:rgba(20,27,48,.72); --card-solid:#141b30; --card2:#18213a;
  --gold:#d4af37; --gold2:#f2d574; --gold3:#fff3c4; --cyan:#22d3ee; --violet:#a78bfa; --pink:#f472b6;
  --text:#eef2fb; --muted:#9aa6c0; --line:#26304d; --line-soft:rgba(120,140,190,.16);
  --green:#25d366; --red:#f87171;
  --header-h:64px;
  --r-lg:22px; --r-md:16px; --r-sm:12px;
  --shadow-card:0 18px 50px rgba(2,6,18,.55);
  --glow-gold:0 10px 34px rgba(212,175,55,.30);

  /* ---- design tokens (shared contract consumed by app.js / billing.js / etc.) ---- */
  --sp-1:6px;--sp-2:10px;--sp-3:14px;--sp-4:18px;--sp-5:24px;--sp-6:36px;
  --btn-r:14px;
  --ease-out:cubic-bezier(.22,.61,.36,1);--ease-io:cubic-bezier(.4,0,.2,1);--ease-spring:cubic-bezier(.34,1.56,.64,1);
  --dur-1:.16s;--dur-2:.26s;--dur-3:.6s;--stagger:70ms;
  --grad-gold:linear-gradient(135deg,var(--gold),var(--gold2) 60%,var(--gold));
  --lift:translateY(-2px);--press:translateY(0) scale(.985);
  --field-bg:#18213a;--e-1:0 6px 18px rgba(2,6,18,.4);--e-2:0 12px 32px rgba(2,6,18,.5);
  --font-display:'Rubik','Heebo',-apple-system,'Segoe UI',Arial,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}

html{scroll-behavior:smooth}

html{overflow-x:clip}

body{
  font-family:'Heebo',-apple-system,'Segoe UI',Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
  min-height:100vh;
  overflow-x:clip;
  -webkit-font-smoothing:antialiased;
}

/* ---------- ambient aurora backdrop ---------- */
body::before{
  content:'';position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:
    radial-gradient(1200px 600px at 50% -12%, #16203b 0%, transparent 62%),
    radial-gradient(900px 560px at 90% 12%, rgba(212,175,55,.075), transparent 55%),
    radial-gradient(820px 520px at 6% 38%, rgba(34,211,238,.06), transparent 55%),
    radial-gradient(700px 520px at 82% 78%, rgba(167,139,250,.05), transparent 58%),
    var(--bg);
}
/* fine grain for that filmic feel */
body::after{
  content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

img{max-width:100%}

a{color:var(--gold2)}

:focus-visible{outline:2px solid var(--gold2);outline-offset:2px;border-radius:8px}

::selection{background:rgba(212,175,55,.35);color:#fff}

/* slim luxury scrollbar */
::-webkit-scrollbar{width:10px}
::-webkit-scrollbar-track{background:var(--bg)}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#2a3350,#1b2340);border-radius:8px;border:2px solid var(--bg)}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,rgba(212,175,55,.65),#2a3350)}

.wrap{max-width:1120px;margin:0 auto;padding:0 18px}

.hide{display:none !important}

/* ---------- reveal-on-scroll (JS adds .in; safe without JS) ---------- */
html.js .reveal{opacity:0;transform:translateY(22px);transition:opacity var(--dur-3) var(--ease-out),transform var(--dur-3) var(--ease-out)}
html.js .reveal.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  html.js .reveal{opacity:1;transform:none;transition:none}
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
  /* cinematic reveal opt-outs: collapse the wipe to a plain shown image and
     freeze the skeleton as a static block (no shimmer sweep) */
  #afterImg.in{animation:none !important;clip-path:none !important;filter:none !important;opacity:1}
  .tf-skeleton{animation:none !important;background-position:0 0 !important}
  .hero-proof .hp-after{animation:none !important;opacity:1 !important}
  html.js .hero-eyebrow,html.js .hero-title,html.js .hero-sub,html.js .hero-cta,html.js .hero-proof,html.js .hero-stats{
    opacity:1 !important;transform:none !important;animation:none !important;
  }
  #resultBox.landing{animation:none !important}
}

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  font-family:inherit;font-weight:800;cursor:pointer;border:none;border-radius:var(--btn-r);
  padding:13px 22px;font-size:15px;text-decoration:none;display:inline-flex;
  align-items:center;justify-content:center;gap:8px;position:relative;overflow:hidden;
  transition:transform var(--dur-1) var(--ease-io),box-shadow var(--dur-1) var(--ease-io),border-color var(--dur-1) var(--ease-io),background var(--dur-1) var(--ease-io);
}
.btn-gold{
  background:linear-gradient(135deg,var(--gold) 0%,var(--gold2) 55%,var(--gold) 100%);
  background-size:200% 200%;color:#0a0e1a;
  box-shadow:var(--glow-gold), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-gold::after{ /* shine sweep */
  content:'';position:absolute;top:0;bottom:0;width:44%;left:-60%;
  background:linear-gradient(105deg,transparent,rgba(255,255,255,.5),transparent);
  transform:skewX(-20deg);transition:left .55s ease;
}
.btn-gold:hover{box-shadow:0 14px 40px rgba(212,175,55,.45), inset 0 1px 0 rgba(255,255,255,.35);background-position:100% 0}
.btn-gold:hover::after{left:130%}
.btn-ghost{
  background:rgba(34,211,238,.05);color:var(--cyan);border:1.5px solid var(--line);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}
.btn-ghost:hover{border-color:var(--cyan);background:rgba(34,211,238,.1);box-shadow:0 8px 24px rgba(34,211,238,.14)}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0) scale(.99)}
.btn:disabled,.btn[aria-disabled="true"]{
  opacity:.5;cursor:not-allowed;transform:none !important;box-shadow:none;filter:grayscale(.2);
}
.btn:disabled::after,.btn[aria-disabled="true"]::after{display:none}
/* shared inline-spinner utility — usable on .btn AND on injected widgets
   (.tf-billing-method / .tf-chat-btn) while an async action is in flight */
.is-busy{color:transparent !important;pointer-events:none;position:relative}
.is-busy::before{
  content:'';position:absolute;top:50%;left:50%;width:18px;height:18px;margin:-9px 0 0 -9px;
  border:2.5px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;
  animation:is-busy-spin .7s linear infinite;
}
@keyframes is-busy-spin{to{transform:rotate(360deg)}}
.btn-sm{padding:9px 16px;font-size:14px;border-radius:11px}
.btn-lg{padding:17px 30px;font-size:17px;border-radius:16px}
/* Big, unmissable "Share to TikTok" button */
.btn-tiktok{
  flex:1 1 100%;width:100%;padding:20px 26px;font-size:19px;border-radius:18px;
  color:#fff;background:linear-gradient(120deg,#25F4EE 0%,#000 42%,#000 58%,#FE2C55 100%);
  background-size:200% 200%;box-shadow:0 10px 34px rgba(254,44,85,.38),0 0 0 1.5px rgba(255,255,255,.12) inset;
  animation:ttpulse 2.2s ease-in-out infinite;
}
.btn-tiktok:hover{background-position:100% 0;box-shadow:0 16px 44px rgba(37,244,238,.4),0 0 0 1.5px rgba(255,255,255,.2) inset}
@keyframes ttpulse{0%,100%{transform:translateY(0);box-shadow:0 10px 34px rgba(254,44,85,.38),0 0 0 1.5px rgba(255,255,255,.12) inset}50%{transform:translateY(-2px);box-shadow:0 16px 46px rgba(254,44,85,.55),0 0 0 1.5px rgba(255,255,255,.2) inset}}

/* ============================================================
   Cards & messages (shared utilities)
   ============================================================ */
.card{
  background:linear-gradient(165deg,rgba(28,37,66,.85),var(--card) 40%,rgba(16,22,41,.9));
  border:1px solid var(--line-soft);border-radius:var(--r-lg);
  padding:24px;box-shadow:var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  position:relative;
}
.card::before{ /* hairline gradient edge on top */
  content:'';position:absolute;inset:0 12% auto 12%;height:1px;border-radius:1px;
  background:linear-gradient(90deg,transparent,rgba(212,175,55,.35),transparent);
  pointer-events:none;
}

/* glass helper — for panels injected by JS to reuse the .card look without
   pulling in .card::before's hairline edge */
.tf-glass{
  background:linear-gradient(165deg,rgba(28,37,66,.85),var(--card) 40%,rgba(16,22,41,.9));
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border:1px solid var(--line-soft);
}

.msg{padding:14px 16px;border-radius:12px;margin-top:14px;font-weight:600;text-align:center}
.msg.err{background:rgba(248,113,113,.12);border:1px solid rgba(248,113,113,.4);color:#fecaca}
.msg.info{background:rgba(34,211,238,.1);border:1px solid rgba(34,211,238,.3);color:#a5f3fc}
.msg.ok{background:rgba(37,211,102,.1);border:1px solid rgba(37,211,102,.35);color:#bbf7d0}

/* ============================================================
   Sticky glassy header
   ============================================================ */
.site-header{
  position:sticky;top:0;z-index:60;
  background:rgba(7,11,22,.66);
  backdrop-filter:blur(16px) saturate(1.6);
  -webkit-backdrop-filter:blur(16px) saturate(1.6);
  border-bottom:1px solid rgba(120,140,190,.14);
}
.site-header::after{
  content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;
  background:linear-gradient(90deg,transparent 6%,rgba(212,175,55,.35) 50%,transparent 94%);
  pointer-events:none;
}
.header-inner{
  max-width:1120px;margin:0 auto;min-height:var(--header-h);
  display:flex;align-items:center;gap:14px;padding:10px 18px;
}
.brand{
  font-weight:900;font-size:22px;text-decoration:none;letter-spacing:.2px;
  color:var(--gold2);white-space:nowrap;
}
.brand-hg{color:var(--text)}

.header-nav{display:flex;gap:2px;margin-inline-start:6px}
.header-nav a{
  color:var(--muted);text-decoration:none;font-weight:700;font-size:13.5px;
  padding:7px 11px;border-radius:9px;transition:color .15s ease,background .15s ease;white-space:nowrap;
}
.header-nav a:hover{color:var(--gold2);background:rgba(212,175,55,.08)}
/* Persistent "Share to TikTok" nav pill */
.nav-tt{color:#fff !important;font-weight:800 !important;
  background:linear-gradient(120deg,#25F4EE 0%,#000 44%,#000 56%,#FE2C55 100%) !important;
  background-size:200% 200% !important;box-shadow:0 4px 14px rgba(254,44,85,.35);
  border:1px solid rgba(255,255,255,.14)}
.nav-tt:hover{background-position:100% 0 !important;box-shadow:0 6px 20px rgba(37,244,238,.4)}
.mobile-menu a.nav-tt{color:#fff !important;justify-content:center;text-align:center}
.tf-toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(20px);
  background:#0e1424;color:#eef2fb;border:1px solid #FE2C55;border-radius:14px;
  padding:13px 20px;font-weight:700;font-size:14.5px;max-width:88vw;text-align:center;
  box-shadow:0 14px 40px rgba(0,0,0,.5);z-index:120;opacity:0;pointer-events:none;
  transition:opacity .25s ease,transform .25s ease}
.tf-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.tt-flash{animation:ttflash 1.1s ease 2}
@keyframes ttflash{0%,100%{box-shadow:0 10px 34px rgba(254,44,85,.38)}50%{box-shadow:0 0 0 5px rgba(37,244,238,.55),0 12px 40px rgba(254,44,85,.7)}}

/* the credits badge (injected by billing.js) can get long — it must SHRINK,
   never push the header row wider than the phone screen */
#creditsSlot{margin-inline-start:auto;display:inline-flex;align-items:center;min-height:24px;min-width:0;flex:0 1 auto;overflow:hidden}
#creditsSlot .tf-billing-badge{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.header-cta{white-space:nowrap;flex:0 0 auto}
.brand{flex:0 0 auto}

/* ---- hamburger + mobile menu (hidden on desktop) ---- */
.nav-toggle{display:none;flex:0 0 auto;flex-direction:column;justify-content:center;gap:5px;
  width:44px;height:44px;padding:0 12px;margin-inline-start:4px;cursor:pointer;
  background:rgba(20,27,48,.6);border:1px solid var(--line-soft);border-radius:12px;
  -webkit-tap-highlight-color:transparent}
.nav-toggle span{display:block;height:2px;width:100%;background:var(--gold2);border-radius:2px;
  transition:transform .22s ease,opacity .18s ease}
.nav-toggle.on span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.on span:nth-child(2){opacity:0}
.nav-toggle.on span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.mobile-menu{position:absolute;top:100%;left:0;right:0;z-index:59;
  background:rgba(9,13,25,.98);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);
  border-bottom:1px solid var(--line-soft);box-shadow:0 22px 44px rgba(0,0,0,.55);
  padding:12px 16px calc(14px + env(safe-area-inset-bottom,0px));
  display:flex;flex-direction:column;gap:3px;animation:mmIn .22s cubic-bezier(.22,.61,.36,1)}
@keyframes mmIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
.mobile-menu[hidden]{display:none}
.mobile-menu a{color:var(--text);text-decoration:none;font-weight:700;font-size:16px;
  padding:13px 12px;border-radius:12px;display:flex;align-items:center;gap:10px;transition:background .15s ease,color .15s ease}
.mobile-menu a:hover,.mobile-menu a:active{background:rgba(212,175,55,.1);color:var(--gold2)}
.mm-sep{height:1px;background:var(--line-soft);margin:7px 2px}
.mm-row{display:flex;align-items:center;gap:10px;padding:6px 12px 10px}
.mm-row label{font-weight:700;color:var(--muted);font-size:14.5px;white-space:nowrap}
.mm-lang-sel{flex:1;min-width:0;background:#18213a;color:#e8edf7;border:1px solid #26304d;border-radius:10px;
  padding:11px 12px;font-family:inherit;font-size:16px;font-weight:600;cursor:pointer}
.mm-login{font-family:inherit;font-weight:800;font-size:16px;padding:13px 12px;border-radius:12px;cursor:pointer;
  background:rgba(34,211,238,.06);color:var(--cyan);border:1.5px solid var(--line);text-align:center;transition:border-color .15s ease,background .15s ease}
.mm-login:hover{border-color:var(--cyan);background:rgba(34,211,238,.1)}
/* logged-in account block inside the mobile menu */
#mmAccount{display:flex;flex-direction:column;gap:6px}
.mm-acct{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;
  background:rgba(255,255,255,.04);border:1px solid var(--line-soft)}
.mm-acct .mm-dot{width:8px;height:8px;border-radius:50%;background:#6bffb0;flex:0 0 auto;box-shadow:0 0 8px rgba(107,255,176,.7)}
.mm-acct-txt{display:flex;flex-direction:column;min-width:0}
.mm-em{font-weight:700;font-size:14px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-cr{font-size:12.5px;color:var(--muted);font-weight:600}
.mm-logout{font-family:inherit;font-weight:800;font-size:16px;padding:13px 12px;border-radius:12px;cursor:pointer;
  background:rgba(255,138,138,.06);color:#ff8a8a;border:1.5px solid var(--line);text-align:center;
  transition:border-color .15s ease,background .15s ease}
.mm-logout:hover{border-color:#ff8a8a;background:rgba(255,138,138,.12)}
@media (min-width:901px){.mobile-menu{display:none !important}.nav-toggle{display:none !important}}

/* ============================================================
   Hero
   ============================================================ */
.hero{padding:92px 0 66px;text-align:center;position:relative;overflow:hidden}
.hero>.wrap{position:relative;z-index:2}

/* live cinematic background video (the ski reveal) + parallax layers */
.hero-bg{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.hero-bg-media{position:absolute;inset:0;animation:heroZoom 26s ease-in-out infinite alternate;will-change:transform}
.hero-bg video{position:absolute;left:0;top:-14%;width:100%;height:128%;object-fit:cover;object-position:center 30%;filter:saturate(1.08) brightness(.92);will-change:transform}
.hero-bg-shade{position:absolute;inset:0;background:
  radial-gradient(ellipse 70% 55% at 50% 42%,rgba(7,11,22,.72) 0%,rgba(7,11,22,.55) 55%,rgba(7,11,22,.42) 100%),
  linear-gradient(180deg,rgba(7,11,22,.88) 0%,rgba(7,11,22,.45) 30%,rgba(7,11,22,.45) 62%,var(--bg) 100%)}
@keyframes heroZoom{from{transform:scale(1.04)}to{transform:scale(1.13)}}
@media (prefers-reduced-motion:reduce){.hero-bg-media{animation:none}}

/* floating decorative mode emojis */
.hero-float{position:absolute;font-size:30px;opacity:.16;pointer-events:none;user-select:none;filter:blur(.4px);animation:floaty 9s ease-in-out infinite;z-index:1}
.hero-float.f1{top:14%;right:9%;animation-delay:0s}
.hero-float.f2{top:56%;right:16%;font-size:24px;animation-delay:-3s}
.hero-float.f3{top:20%;left:10%;animation-delay:-1.5s}
.hero-float.f4{top:62%;left:15%;font-size:24px;animation-delay:-4.5s}
.hero-float.f5{top:38%;right:4%;font-size:22px;animation-delay:-6s}
.hero-float.f6{top:40%;left:4%;font-size:22px;animation-delay:-7.5s}
@keyframes floaty{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-16px) rotate(5deg)}}

.hero-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(212,175,55,.09);border:1px solid rgba(212,175,55,.35);
  color:var(--gold2);font-weight:700;font-size:13.5px;
  border-radius:999px;padding:7px 16px;margin-bottom:20px;
  box-shadow:0 6px 24px rgba(212,175,55,.12), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.hero-eyebrow .dot{
  width:7px;height:7px;border-radius:50%;background:var(--green);
  box-shadow:0 0 0 0 rgba(37,211,102,.6);animation:pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot{0%{box-shadow:0 0 0 0 rgba(37,211,102,.55)}70%{box-shadow:0 0 0 8px rgba(37,211,102,0)}100%{box-shadow:0 0 0 0 rgba(37,211,102,0)}}

.hero-title{font-size:clamp(36px,6.6vw,70px);font-weight:900;line-height:1.12;letter-spacing:-.5px;font-family:var(--font-display)}
.grad{
  background:linear-gradient(90deg,var(--gold),var(--gold2) 30%,var(--gold3) 50%,var(--gold2) 70%,var(--gold));
  background-size:200% auto;
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  animation:grad-shift 5s linear infinite;
}
@keyframes grad-shift{to{background-position:200% center}}

.hero-sub{max-width:660px;margin:20px auto 30px;color:var(--muted);font-size:clamp(15px,2.4vw,19px)}
.hero-cta{margin-bottom:8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* hero load cascade — staggered fade+rise on first paint (opts out under
   prefers-reduced-motion, see the block near the top of the file) */
html.js .hero-eyebrow,html.js .hero-title,html.js .hero-sub,html.js .hero-cta,html.js .hero-proof,html.js .hero-stats{
  opacity:0;transform:translateY(16px);animation:hero-enter var(--dur-3) var(--ease-out) forwards;
}
html.js .hero-eyebrow{animation-delay:.05s}
html.js .hero-title{animation-delay:.13s}
html.js .hero-sub{animation-delay:.21s}
html.js .hero-cta{animation-delay:.29s}
html.js .hero-proof{animation-delay:.37s}
html.js .hero-stats{animation-delay:.45s}
@keyframes hero-enter{to{opacity:1;transform:none}}

.trust-strip{list-style:none;display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:28px;padding:0}
.trust-strip li{
  background:rgba(20,27,48,.6);border:1px solid var(--line-soft);border-radius:999px;
  padding:8px 16px;font-size:14px;color:var(--muted);font-weight:600;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}

/* hero quick stats */
.hero-stats{
  display:flex;justify-content:center;gap:0;margin:34px auto 0;max-width:560px;
  background:rgba(20,27,48,.55);border:1px solid var(--line-soft);border-radius:18px;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.hero-stats div{flex:1;padding:14px 8px;position:relative}
.hero-stats div + div::before{
  content:'';position:absolute;inset-inline-start:0;top:22%;bottom:22%;width:1px;
  background:linear-gradient(180deg,transparent,var(--line),transparent);
}
.hero-stats b{
  display:block;font-size:22px;font-weight:800;line-height:1.2;color:var(--gold2);
}
.hero-stats span{font-size:12.5px;color:var(--muted);font-weight:600}

/* ============================================================
   How it works — 3 steps strip
   ============================================================ */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:920px;margin:0 auto}
.step{
  text-align:center;padding:22px 16px;border-radius:var(--r-md);
  background:linear-gradient(165deg,rgba(28,37,66,.5),rgba(16,22,41,.65));
  border:1px solid var(--line-soft);position:relative;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  transition:transform .2s ease,border-color .2s ease;
}
.step:hover{transform:translateY(-3px);border-color:rgba(212,175,55,.4)}
.step .n{
  width:34px;height:34px;border-radius:50%;display:inline-grid;place-items:center;
  font-weight:900;font-size:15px;color:#0a0e1a;margin-bottom:10px;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  box-shadow:0 6px 18px rgba(212,175,55,.3);
}
.step b{display:block;font-size:16px;margin-bottom:4px}
.step p{color:var(--muted);font-size:13.5px;line-height:1.55}

/* ============================================================
   Sections
   ============================================================ */
.section{padding:60px 0;scroll-margin-top:calc(var(--header-h) + 14px)}
.section-head{text-align:center;margin-bottom:32px}
.section-eyebrow{
  display:inline-block;font-size:12px;font-weight:800;letter-spacing:2.5px;
  color:var(--cyan);text-transform:uppercase;margin-bottom:8px;opacity:.85;
}
.section-head h2{
  font-size:clamp(25px,3.6vw,36px);font-weight:800;color:var(--text);font-family:var(--font-display);
}
.section-head p{color:var(--muted);margin-top:8px;max-width:640px;margin-inline:auto}

/* ============================================================
   Studio — upload / modes / result
   ============================================================ */
.studio-card{max-width:820px;margin:0 auto}

.pick-row{display:flex;flex-direction:column;align-items:stretch;gap:14px}

.drop{
  border:2px dashed rgba(120,140,190,.4);border-radius:18px;padding:38px 18px;text-align:center;
  cursor:pointer;display:block;position:relative;
  background:
    radial-gradient(420px 160px at 50% 0%,rgba(212,175,55,.06),transparent 70%),
    var(--bg2);
  transition:border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease;
}
.drop:hover,.drop:focus-visible,.drop.dragover{
  border-color:var(--gold);background:var(--card2);
  box-shadow:0 12px 36px rgba(212,175,55,.14), inset 0 0 0 1px rgba(212,175,55,.15);
  transform:translateY(-2px);
}
.drop .ic{
  font-size:34px;line-height:1;width:76px;height:76px;margin:0 auto 14px;
  display:grid;place-items:center;border-radius:50%;
  background:linear-gradient(160deg,rgba(212,175,55,.16),rgba(212,175,55,.05));
  border:1px solid rgba(212,175,55,.35);
  box-shadow:0 10px 30px rgba(212,175,55,.15), inset 0 1px 0 rgba(255,255,255,.1);
}
.drop b{color:var(--gold2);font-size:16.5px}
.drop small{display:block;color:var(--muted);margin-top:7px}

#file{display:none}

.or-divider{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px;font-weight:700}
.or-divider::before,.or-divider::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--line),transparent)}

.selfie-btn{align-self:center;min-width:220px}

.change-row{text-align:center;margin-top:10px}

.modes-title{text-align:center;font-weight:700;color:var(--muted);margin:20px 0 4px}

.modes{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}
.mode{
  font-family:inherit;color:var(--text);
  background:linear-gradient(170deg,rgba(24,33,58,.9),var(--bg2));
  border:2px solid var(--line);border-radius:16px;
  padding:18px 8px 15px;text-align:center;cursor:pointer;position:relative;overflow:hidden;
  transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease;
}
.mode::before{ /* soft per-mode aura */
  content:'';position:absolute;inset:auto -30% -55% -30%;height:110%;border-radius:50%;
  background:radial-gradient(closest-side,var(--mode-aura,rgba(212,175,55,.16)),transparent 70%);
  opacity:0;transition:opacity .25s ease;pointer-events:none;
}
.mode:hover::before,.mode.on::before{opacity:1}
.mode[data-mode="young"]{--mode-aura:rgba(34,211,238,.2)}
.mode[data-mode="old"]{--mode-aura:rgba(154,166,192,.22)}
.mode[data-mode="glow"]{--mode-aura:rgba(244,114,182,.2)}
.mode[data-mode="retro80s"]{--mode-aura:rgba(167,139,250,.22)}
.mode[data-mode="toon"]{--mode-aura:rgba(74,222,128,.18)}
.mode[data-mode="royal"]{--mode-aura:rgba(212,175,55,.24)}
.mode:hover{border-color:rgba(212,175,55,.6);transform:translateY(-3px);box-shadow:0 10px 26px rgba(2,6,18,.4)}
.mode:active{transform:var(--press)}
.mode.on{
  border-color:var(--gold);
  background:linear-gradient(180deg,#212b4c,var(--card-solid));
  box-shadow:0 10px 28px rgba(212,175,55,.2), inset 0 1px 0 rgba(255,255,255,.06);
}
.mode.on::after{
  content:'✓';position:absolute;top:7px;inset-inline-end:9px;
  width:20px;height:20px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--gold),var(--gold2));color:#0a0e1a;
  font-size:12px;font-weight:900;box-shadow:0 4px 12px rgba(212,175,55,.4);
  animation:mode-check-pop var(--dur-2) var(--ease-spring);
}
@keyframes mode-check-pop{0%{transform:scale(0)}60%{transform:scale(1.2)}100%{transform:scale(1)}}
/* each mode gets a tinted "coin" behind its emoji — a distinct hue per mode
   gives the grid identity instead of six identical gold tiles */
.mode .e{
  font-size:25px;line-height:1;width:44px;height:44px;margin:0 auto 2px;
  display:grid;place-items:center;border-radius:50%;position:relative;
  background:radial-gradient(closest-side,var(--coin,rgba(212,175,55,.24)),transparent 78%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);
  transition:transform .18s ease,box-shadow .18s ease;
}
.mode[data-mode="young"] .e{--coin:rgba(34,211,238,.30)}
.mode[data-mode="old"] .e{--coin:rgba(148,163,184,.30)}
.mode[data-mode="glow"] .e{--coin:rgba(244,114,182,.32)}
.mode[data-mode="retro80s"] .e{--coin:rgba(167,139,250,.32)}
.mode[data-mode="toon"] .e{--coin:rgba(251,146,60,.32)}
.mode[data-mode="royal"] .e{--coin:rgba(212,175,55,.36)}
.mode:hover .e{transform:scale(1.12)}
.mode.on .e{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),0 0 16px var(--coin,rgba(212,175,55,.3));
  animation:mode-coin var(--dur-2) var(--ease-spring);
}
@keyframes mode-coin{0%{transform:scale(1)}50%{transform:scale(1.14)}100%{transform:scale(1)}}
.mode b{display:block;margin-top:6px;font-size:15px}

.go{
  width:100%;margin-top:18px;font-family:inherit;font-weight:800;font-size:18px;cursor:pointer;
  border:none;border-radius:16px;padding:17px;color:#0a0e1a;position:relative;overflow:hidden;
  background:linear-gradient(135deg,var(--gold),var(--gold2) 60%,var(--gold));background-size:200% 200%;
  box-shadow:var(--glow-gold), inset 0 1px 0 rgba(255,255,255,.35);
  transition:transform .18s ease,box-shadow .18s ease,background-position .3s ease;
}
.go::after{
  content:'';position:absolute;top:0;bottom:0;width:40%;left:-55%;
  background:linear-gradient(105deg,transparent,rgba(255,255,255,.45),transparent);
  transform:skewX(-20deg);transition:left .6s ease;
}
.go:hover{transform:translateY(-2px);box-shadow:0 16px 44px rgba(212,175,55,.45), inset 0 1px 0 rgba(255,255,255,.35);background-position:100% 0}
.go:hover::after{left:130%}
.go:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none;background:linear-gradient(135deg,#7a6a2e,#8f7f45)}
.go:disabled::after{display:none}

/* before / after preview figures */
.prev{display:flex;gap:14px;justify-content:center;margin-top:8px;flex-wrap:wrap}
.prev figure{flex:1;min-width:180px;max-width:330px;position:relative}
.prev img{
  width:100%;border-radius:16px;border:1px solid var(--line);display:block;background:var(--bg2);
  box-shadow:0 12px 32px rgba(2,6,18,.45);
}
.prev figcaption{
  position:absolute;top:10px;inset-inline-start:10px;margin:0;
  background:rgba(7,11,22,.72);border:1px solid var(--line-soft);
  color:var(--text);font-weight:700;font-size:12.5px;
  border-radius:999px;padding:4px 12px;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.prev figcaption.after{
  color:#0a0e1a;border-color:transparent;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  box-shadow:0 6px 18px rgba(212,175,55,.4);
}
.prev img{cursor:zoom-in}
.prev figure .zoom-badge{
  position:absolute;bottom:10px;inset-inline-end:10px;
  width:34px;height:34px;display:flex;align-items:center;justify-content:center;
  font-size:15px;border-radius:50%;background:rgba(7,11,22,.72);border:1px solid var(--line-soft);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);pointer-events:none;
  box-shadow:0 4px 14px rgba(0,0,0,.4)}
.prev-hint{text-align:center;color:var(--muted);font-size:12.5px;margin-top:10px}
/* full-screen image viewer */
.tf-lightbox{position:fixed;inset:0;z-index:130;display:flex;align-items:center;justify-content:center;
  background:rgba(3,6,14,.92);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  padding:20px;opacity:0;transition:opacity .2s ease;cursor:zoom-out}
.tf-lightbox.show{opacity:1}
.tf-lightbox img{max-width:96vw;max-height:90vh;object-fit:contain;border-radius:14px;
  box-shadow:0 24px 70px rgba(0,0,0,.6);cursor:default}
.tf-lightbox-x{position:absolute;top:16px;inset-inline-end:16px;width:44px;height:44px;
  border-radius:50%;border:1px solid rgba(255,255,255,.2);background:rgba(20,26,42,.9);
  color:#fff;font-size:20px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center}
.tf-lightbox-x:hover{background:rgba(254,44,85,.85)}

/* loading */
.loading{text-align:center;padding:28px 24px}
.loading .sub{color:var(--muted);font-size:15px;margin-top:4px;min-height:1.6em}
.loading-hint{display:block;color:var(--muted);opacity:.75;margin-top:10px;font-size:12.5px}
.spin{
  width:52px;height:52px;border:4px solid var(--line);border-top-color:var(--gold);border-right-color:rgba(212,175,55,.4);
  border-radius:50%;margin:0 auto 14px;animation:sp 1s cubic-bezier(.55,.15,.45,.85) infinite;
  box-shadow:0 0 30px rgba(212,175,55,.12);
}
@keyframes sp{to{transform:rotate(360deg)}}

.actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:20px}

/* ============================================================
   Examples — before/after gallery
   ============================================================ */
.examples-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.ex-card{padding:18px;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.ex-card:hover{transform:translateY(-4px);border-color:rgba(212,175,55,.4);box-shadow:0 22px 60px rgba(2,6,18,.6)}
.ex-pair{display:flex;align-items:center;gap:10px}
.ex-fig{flex:1;min-width:0}
.ex-thumb{
  aspect-ratio:3/4;border-radius:14px;overflow:hidden;border:1px solid var(--line);
  background:linear-gradient(160deg,var(--card2),var(--bg2));position:relative;
}
.ex-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}
.ex-card:hover .ex-thumb img{transform:scale(1.06)}
.ex-thumb.missing img{display:none}
.ex-thumb.missing::after{
  content:'✨';position:absolute;inset:0;display:grid;place-items:center;font-size:36px;opacity:.55;
}
.ex-fig figcaption{text-align:center;margin-top:9px;font-weight:700;color:var(--muted);font-size:14px}
.ex-fig figcaption.gold{color:var(--gold2)}
.ex-fig.after .ex-thumb{border-color:rgba(212,175,55,.55);box-shadow:0 8px 26px rgba(212,175,55,.16)}
.ex-videos{margin-top:18px}
.ex-thumb.ex-vid video{width:100%;height:100%;object-fit:cover;display:block}
.ex-arrow{font-size:22px;color:var(--gold);flex:0 0 auto;font-weight:900;animation:nudge 1.8s ease-in-out infinite}
@keyframes nudge{0%,100%{transform:translateX(0)}50%{transform:translateX(-5px)}}

/* ============================================================
   Pricing
   ============================================================ */
.pricing-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:18px;align-items:stretch;
  max-width:980px;margin:0 auto;
}
.price-card{
  text-align:center;position:relative;display:flex;flex-direction:column;gap:6px;padding:32px 22px 24px;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.price-card:hover{transform:translateY(-5px);border-color:rgba(212,175,55,.45);box-shadow:0 24px 64px rgba(2,6,18,.6)}
.price-card h3{font-size:20px;font-weight:800;letter-spacing:.3px}
.price{
  font-size:46px;font-weight:900;line-height:1.15;color:var(--gold2);
}
.credits-amt{color:var(--cyan);font-weight:700;font-size:15px}
/* tabular figures — prices/ages/credits shouldn't visibly reflow width as digits change */
.price,.hero-stats b,#ageOut,.credits-amt{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}

/* Hebrew RTL metrics — Heebo needs looser line-height and no Latin-tuned
   letter-spacing to read cleanly at size */
:root[lang="he"] .hero-title,:root[lang="he"] .grad{letter-spacing:normal}
:root[lang="he"] body{line-height:1.6}
:root[lang="he"] .section-eyebrow{letter-spacing:.5px;font-size:13px}
.perks{list-style:none;color:var(--muted);font-size:14px;margin:14px 0 20px;display:grid;gap:8px;padding:0;text-align:right}
.perks li{padding-inline-start:2px}
.price-card .btn{margin-top:auto;width:100%}
.price-card.featured{
  border-color:rgba(212,175,55,.75);
  background:
    linear-gradient(180deg,rgba(212,175,55,.09),transparent 30%),
    linear-gradient(180deg,#1c2542,var(--card-solid));
  box-shadow:0 18px 56px rgba(212,175,55,.22), inset 0 1px 0 rgba(255,255,255,.07);
}
.badge-best{
  position:absolute;top:-14px;right:50%;transform:translateX(50%);
  background:linear-gradient(135deg,var(--gold),var(--gold2));color:#0a0e1a;
  font-weight:800;font-size:13px;border-radius:999px;padding:5px 16px;white-space:nowrap;
  box-shadow:0 8px 22px rgba(212,175,55,.45);
}
.pricing-note{text-align:center;color:var(--muted);margin-top:24px;font-size:14px}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list{max-width:760px;margin:0 auto;display:grid;gap:12px}
.faq-list details{
  background:linear-gradient(165deg,rgba(28,37,66,.6),rgba(16,22,41,.75));
  border:1px solid var(--line-soft);border-radius:16px;overflow:hidden;
  transition:border-color .2s ease,box-shadow .2s ease;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.faq-list details:hover{border-color:rgba(212,175,55,.3)}
.faq-list details[open]{border-color:rgba(212,175,55,.5);box-shadow:0 12px 36px rgba(2,6,18,.4)}
.faq-list summary{
  cursor:pointer;font-weight:700;padding:17px 20px;list-style:none;position:relative;
  padding-inline-end:48px;user-select:none;transition:color .15s ease;
}
.faq-list details[open] summary{color:var(--gold2)}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{
  content:'+';position:absolute;inset-inline-end:18px;top:50%;transform:translateY(-50%);
  width:26px;height:26px;display:grid;place-items:center;border-radius:50%;
  border:1px solid rgba(212,175,55,.4);
  color:var(--gold);font-size:19px;font-weight:400;transition:transform .25s ease,background .2s ease,color .2s ease;line-height:1;
}
.faq-list details[open] summary::after{
  transform:translateY(-50%) rotate(45deg);
  background:linear-gradient(135deg,var(--gold),var(--gold2));color:#0a0e1a;border-color:transparent;
}
.faq-list details p{padding:0 20px 18px;color:var(--muted)}

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  border-top:1px solid var(--line-soft);margin-top:48px;padding:32px 18px 96px;
  text-align:center;color:var(--muted);font-size:13px;position:relative;
}
.site-footer::before{
  content:'';position:absolute;top:-1px;left:10%;right:10%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(212,175,55,.4),transparent);
}
.footer-links{display:flex;gap:18px;justify-content:center;margin-bottom:10px;flex-wrap:wrap}
.site-footer a{color:var(--gold2);text-decoration:none}
.site-footer a:hover{text-decoration:underline}

/* ============================================================
   Responsive
   ============================================================ */

/* tablets & below */
@media (max-width:900px){
  .examples-grid{grid-template-columns:1fr;max-width:520px;margin:0 auto}
  .pricing-grid{grid-template-columns:1fr;max-width:440px}
  .price-card.featured{order:-1}
  .header-nav{display:none}
  /* mobile: hamburger takes over; move lang + login + CTA into the menu so the
     monthly billing badge always has room and never gets clipped off-screen */
  .nav-toggle{display:flex}
  #tfLangSel,#tfAcct,.header-cta{display:none !important}
  #creditsSlot{margin-inline-start:auto}
  .header-inner{gap:10px}
}

/* featured pack pops only on wide screens */
@media (min-width:901px){
  .price-card.featured{transform:scale(1.05)}
  .price-card.featured:hover{transform:scale(1.05) translateY(-4px)}
}

/* phones */
@media (max-width:560px){
  .hero{padding:54px 0 44px}
  .section{padding:44px 0}
  .modes{grid-template-columns:repeat(2,1fr)}
  .card{padding:18px;border-radius:18px}
  .header-inner{gap:10px;padding:8px 12px}
  .brand{font-size:18px}
  .btn-lg{padding:14px 20px;font-size:15px}
  .actions .btn{flex:1 1 100%;justify-content:center}
  .prev figure{min-width:140px}
  .ex-pair{gap:8px}
  .ex-arrow{font-size:18px}
  .steps{grid-template-columns:1fr;max-width:420px}
  .hero-float{display:none}

  /* hero CTAs: stacked, equal width, centered */
  .hero-cta{flex-direction:column;align-items:center;gap:10px}
  .hero-cta .btn-lg{width:100%;max-width:330px}

  /* trust strip: neat aligned gallery — 3 equal pills, no ugly 1+2 wrap */
  .trust-strip{display:grid;grid-template-columns:1fr;gap:9px;max-width:300px;margin:22px auto 0}
  .trust-strip li{text-align:center;padding:11px 14px;font-size:13.5px;justify-self:stretch}

  /* hero stats: clean 2×2 gallery card */
  .hero-stats{display:grid;grid-template-columns:1fr 1fr;max-width:330px;margin-top:26px;gap:0;border-radius:20px;overflow:hidden}
  .hero-stats div + div::before{display:none}
  .hero-stats div{padding:16px 8px}
  .hero-stats div:nth-child(-n+2){border-bottom:1px solid var(--line-soft)}
  .hero-stats div:nth-child(odd){border-inline-start:1px solid var(--line-soft)}
  .hero-stats b{font-size:21px}
  .hero-stats span{font-size:12px;white-space:nowrap}

  .hero-eyebrow{font-size:12.5px;padding:6px 13px}

  /* EVERY text input ≥16px on phones — otherwise iOS Safari auto-zooms on focus,
     the zoom sticks, and the whole page looks cropped (words cut at the edges).
     Covers the injected widgets too (chat / voice / support / billing gate). */
  input:not([type=range]):not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px !important}
}

/* Apple HIG tap targets for the injected chip buttons (their styles live in JS) */
.tf-chat-chip,.tf-support-chip{min-height:44px !important;display:inline-flex !important;align-items:center !important}

/* age + place option rows */
.opt{margin-top:20px}
.opt-label{font-weight:800;font-size:15px;color:var(--gold2);margin-bottom:10px}
.opt-hint{font-weight:500;font-size:12.5px;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{font-family:inherit;font-size:14px;font-weight:700;cursor:pointer;color:var(--text);
  background:rgba(14,20,37,.8);border:1.5px solid var(--line);border-radius:999px;min-height:40px;padding:8px 15px;
  transition:border-color .15s ease,background .15s ease,color .15s ease,transform .12s ease,box-shadow .15s ease}
.chip:hover{border-color:rgba(212,175,55,.55);transform:translateY(-1px)}
.chip:active{transform:scale(.96)}
.chip.on{border-color:var(--gold);color:#0a0e1a;
  background:linear-gradient(135deg,var(--gold),var(--gold2));box-shadow:0 6px 18px rgba(212,175,55,.3)}
.age-exact{display:flex;align-items:center;gap:12px;margin-top:14px}
.age-exact #ageSlider{flex:1;min-width:0;accent-color:var(--gold);height:6px;cursor:pointer}
.age-exact #ageOut{font-weight:800;font-size:14px;color:var(--gold2);white-space:nowrap;text-align:left;direction:rtl}

/* narrow phones (390px target) */
@media (max-width:400px){
  .trust-strip li{font-size:12.5px;padding:7px 12px}
  .hero-title{font-size:33px}
  .price{font-size:38px}
}

/* on phones show a compact header CTA — but only while the credits badge isn't
   there yet (brand + badge + CTA together overflow a 390px row) */
@media (max-width:480px){
  .header-cta{padding:8px 13px;font-size:13px;border-radius:10px}
  .header-inner:has(.tf-billing-badge) .header-cta{display:none}
  /* compact badge so brand + badge always fit a 390px row */
  #creditsSlot .tf-billing-badge{font-size:12px !important;padding:6px 10px !important;gap:4px !important;min-height:32px !important}
}

/* ============================================================
   Cinematic generation reveal (skeleton · progress · wipe)
   ============================================================ */
/* shimmering placeholder — reused by the generation loader AND the examples
   gallery while thumbs load */
.tf-skeleton{
  background:linear-gradient(100deg,var(--bg2) 20%,#20294a 40%,var(--bg2) 60%);
  background-size:200% 100%;
  animation:tf-shimmer 1.4s linear infinite;
  border-radius:16px;
}
@keyframes tf-shimmer{to{background-position:-200% 0}}

/* two tall skeleton panes standing in for before/after while generating */
.gen-skel-row{display:flex;gap:14px;justify-content:center}
.gen-skel{flex:1;max-width:330px;aspect-ratio:3/4}

/* slim gradient progress bar under the skeletons */
.tf-progress{
  height:8px;border-radius:999px;background:rgba(255,255,255,.08);
  overflow:hidden;margin:16px auto 0;max-width:340px;
}
.tf-progress-fill{
  height:100%;width:0;border-radius:999px;
  background:linear-gradient(90deg,var(--cyan),var(--gold2));
  transition:width .4s ease;box-shadow:0 0 12px rgba(34,211,238,.5);
}

/* the after-image slides in with a saturating wipe when it lands */
@keyframes reveal-wipe{
  from{clip-path:inset(0 0 0 100%);filter:saturate(.4) brightness(.6)}
  to{clip-path:inset(0);filter:none}
}
#afterImg.in{animation:reveal-wipe .9s cubic-bezier(.22,.61,.36,1)}

/* the whole result panel lands with a soft scale-up once generation
   finishes (app.js adds .landing) */
#resultBox.landing{animation:result-land var(--dur-3) var(--ease-out)}
@keyframes result-land{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:none}}

/* ============================================================
   Advanced options — collapsible <details> pill
   ============================================================ */
.adv-opts{margin-top:18px}
.adv-opts>summary{
  cursor:pointer;list-style:none;user-select:none;
  display:inline-flex;align-items:center;gap:8px;
  font-family:inherit;font-weight:800;font-size:14px;color:var(--gold2);
  background:rgba(212,175,55,.08);border:1.5px solid var(--line);
  border-radius:999px;padding:10px 18px;min-height:44px;
  transition:border-color .15s ease,background .15s ease,color .15s ease;
}
.adv-opts>summary::-webkit-details-marker{display:none}
.adv-opts>summary::after{
  content:'▾';font-size:12px;color:var(--gold);transition:transform .22s ease;margin-inline-start:2px;
}
.adv-opts[open]>summary::after{transform:rotate(180deg)}
.adv-opts>summary:hover{border-color:rgba(212,175,55,.55);background:rgba(212,175,55,.14);color:var(--gold3)}
.adv-opts[open]>summary{border-color:rgba(212,175,55,.5)}
.adv-opts>summary>*{pointer-events:none}
.adv-opts .adv-body{
  margin-top:14px;padding:16px 18px;border-radius:var(--r-md);
  background:rgba(14,20,37,.5);border:1px solid var(--line-soft);
}

/* ============================================================
   Hero before/after proof card — slow cross-fade
   ============================================================ */
.hero-proof{
  position:relative;width:min(300px,72vw);aspect-ratio:3/4;margin:30px auto 0;
  border-radius:20px;overflow:hidden;border:1px solid var(--line);
  box-shadow:0 22px 60px rgba(2,6,18,.55), inset 0 1px 0 rgba(255,255,255,.05);
  background:var(--bg2);
}
.hero-proof img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;
}
.hero-proof .hp-after{animation:hero-xfade 6s ease-in-out infinite}
@keyframes hero-xfade{
  0%,42%{opacity:0}
  58%,92%{opacity:1}
  100%{opacity:0}
}
.hero-proof .lbl{
  position:absolute;bottom:12px;margin:0;z-index:2;
  background:rgba(7,11,22,.72);border:1px solid var(--line-soft);
  color:var(--text);font-weight:700;font-size:12px;
  border-radius:999px;padding:4px 12px;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.hero-proof .lbl.before{inset-inline-start:12px}
.hero-proof .lbl.after{inset-inline-end:12px;color:#0a0e1a;border-color:transparent;
  background:linear-gradient(135deg,var(--gold),var(--gold2));box-shadow:0 6px 18px rgba(212,175,55,.4)}

/* ============================================================
   NEW — Mobile sticky CTA (appended block; markup added by app.js)
   Kept separate from the owner's hand-maintained @media blocks above.
   ============================================================ */
@media (max-width:900px){
  .mobile-cta{
    position:fixed;left:0;right:0;bottom:0;z-index:70;
    display:flex;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));
    background:rgba(7,11,22,.88);backdrop-filter:blur(16px) saturate(1.6);-webkit-backdrop-filter:blur(16px) saturate(1.6);
    border-top:1px solid var(--line-soft);box-shadow:0 -12px 32px rgba(2,6,18,.5);
  }
  .mobile-cta .mcta-btn{
    flex:1;width:100%;color:#fff;font-family:inherit;font-weight:800;font-size:16px;
    text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;
    padding:15px 20px;border-radius:var(--btn-r);
    background:linear-gradient(120deg,#25F4EE 0%,#000 42%,#000 58%,#FE2C55 100%);
    background-size:200% 200%;box-shadow:0 8px 24px rgba(254,44,85,.35),0 0 0 1.5px rgba(255,255,255,.12) inset;
    transition:background-position var(--dur-2) var(--ease-io);
  }
  .mobile-cta .mcta-btn:active{transform:var(--press)}
  .mobile-cta .mcta-btn:hover{background-position:100% 0}
}
@media (min-width:901px){
  .mobile-cta{display:none !important}
}
/* NEW — enriched footer: quick links row + repeat CTA */
.footer-quick{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--sp-2) var(--sp-5);margin-bottom:var(--sp-4)}
.footer-quick a{color:var(--muted);text-decoration:none;font-weight:600;font-size:14px;transition:color var(--dur-1) var(--ease-io)}
.footer-quick a:hover{color:var(--gold2)}
.footer-cta{margin:var(--sp-3) auto var(--sp-2)}
/* room so the mobile sticky CTA never covers the footer's last row */
@media (max-width:900px){ footer{padding-bottom:96px} }

/* v7.4 — mobile menu: scroll INSIDE the panel. It had no max-height, so a long menu
   overflowed under the sticky CTA with no way to reach the bottom items; now the panel
   itself scrolls (invisible scrollbar), and the page behind stays put. */
.mobile-menu{max-height:calc(100vh - 170px);max-height:calc(100dvh - 170px);overflow-y:auto;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;scrollbar-width:none;
  padding-bottom:calc(26px + env(safe-area-inset-bottom,0px))}
.mobile-menu::-webkit-scrollbar{width:0;height:0;display:none}
/* gallery / invite rows in the mobile menu — same look as the nav links */
.mm-extra{font-weight:700;font-size:16px;padding:13px 12px;border-radius:12px;display:flex;align-items:center;gap:10px;
  background:none;border:0;color:var(--text);cursor:pointer;text-align:start;font-family:inherit;width:100%;
  transition:background .15s ease,color .15s ease}
.mm-extra:hover,.mm-extra:active{background:rgba(212,175,55,.1);color:var(--gold2)}

/* ============================================================
   Premium polish layer (2026-07) — micro-interactions, view
   transitions, luxury depth. Append-only; token-driven.
   ============================================================ */

/* view switching (TFRouter toggles display) — re-triggers this entrance */
@media (prefers-reduced-motion: no-preference){
  main>.section, section.hero{animation:tfViewIn .45s var(--ease-out,cubic-bezier(.22,1,.36,1)) both}
  @keyframes tfViewIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
}

/* buttons: lift + gold bloom */
.btn{transition:transform .18s var(--ease-out,ease),box-shadow .25s ease,filter .2s ease}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0) scale(.97)}
.btn-gold:hover{box-shadow:0 10px 34px rgba(212,175,55,.4),0 2px 10px rgba(0,0,0,.35);filter:brightness(1.06)}
.btn-ghost:hover{box-shadow:0 8px 24px rgba(0,0,0,.35)}

/* cards: cohesive hover depth (pricing, examples, generic) */
.card{transition:transform .25s var(--ease-out,ease),box-shadow .3s ease,border-color .25s ease}
.price-card:hover,.ex-card:hover{transform:translateY(-4px);border-color:rgba(212,175,55,.45);
  box-shadow:0 18px 48px rgba(0,0,0,.5),0 0 0 1px rgba(212,175,55,.15)}
.price-card.featured{position:relative;overflow:hidden}
.price-card.featured::after{content:'';position:absolute;top:0;inset-inline-start:-75%;width:50%;height:100%;
  background:linear-gradient(105deg,transparent,rgba(242,213,116,.14),transparent);transform:skewX(-18deg);
  animation:tfSheen 5.5s ease-in-out infinite;pointer-events:none}
@keyframes tfSheen{0%,72%{inset-inline-start:-75%}88%,100%{inset-inline-start:125%}}

/* header: glassy depth over the ambient video */
.site-header{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  background:rgba(7,11,22,.72);border-bottom:1px solid rgba(212,175,55,.12)}

/* chat: give the center of the app a hero-grade glow */
#chat #chatMount{border:1px solid rgba(212,175,55,.3);
  box-shadow:0 24px 70px rgba(0,0,0,.45),0 0 40px rgba(212,175,55,.06)}

/* smooth anchor travel */
@media (prefers-reduced-motion: no-preference){html{scroll-behavior:smooth}}

/* reduced motion: kill the decorative loops */
@media (prefers-reduced-motion: reduce){
  .price-card.featured::after{animation:none;display:none}
}

/* ============================================================
   2026-07-16 · Clean-SaaS header (Railroad.ai brief) + glossy pills
   Desktop-only styling — phones keep their own header via the
   existing @media blocks (untouched, Tuvia owns those).
   ============================================================ */
/* nav = floating glass pill, centered between brand and actions */
.header-nav{
  margin-inline:auto;gap:2px;padding:5px 6px;border-radius:999px;
  background:rgba(255,255,255,.045);border:1px solid rgba(120,140,190,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 4px 18px rgba(0,0,0,.25);
}
.header-nav a{font-weight:600;padding:8px 15px;border-radius:999px}
.header-nav a:hover{color:var(--text);background:rgba(255,255,255,.08)}
/* "Share to TikTok" is an action, not navigation — desktop nav stays semantic
   (the share entry still lives in the mobile menu + in-app share flows) */
.header-nav #navShare{display:none}
/* language switcher: quiet ghost pill */
#tfLangSel{border-radius:999px !important;background:rgba(255,255,255,.04) !important;
  border:1px solid rgba(120,140,190,.16) !important;font-weight:600}
/* CTA: glossy glass pill with a warm underglow (the "ideas" buttons) */
.header-cta{
  border-radius:999px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 -6px 12px rgba(0,0,0,.18),
    0 8px 26px rgba(212,175,55,.32);
}
.header-cta:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.6),inset 0 -6px 12px rgba(0,0,0,.14),
  0 10px 32px rgba(212,175,55,.48)}
/* account chip rides the same glass language */
#tfAcct{background:rgba(255,255,255,.04) !important;border-color:rgba(120,140,190,.16) !important}
/* SaaS convention: the brand IS the home link — no "Home" item in the pill.
   (Home stays in the mobile menu.) Wider row so the trial badge never clips. */
.header-nav a[href="#hero"]{display:none}
.header-inner{max-width:1240px}
#creditsSlot .tf-billing-badge{border-radius:999px}
/* compact-but-complete trial badge + slightly tighter nav so everything
   breathes even on 1100px laptops (no media query needed) */
.header-nav a{padding:8px 13px}
#creditsSlot .tf-billing-badge{font-size:13px !important;padding:7px 13px !important}
