/* Mentora — shared styles for every page.
   Tokens, components and motion come from the Mentora design canvas
   (Home + Features, light + dark). Dark mode is driven by
   <html data-theme="dark">, set early in each page's <head>. */

/* ---------- Tokens ---------- */
:root {
  --bg: #FBFAFE; --surface: #FFFFFF; --surface-2: #F5F1FE; --ink: #1D1530; --muted: #5E5675;
  --line: #E7E1F5; --primary: #6B34D6; --primary-strong: #5622BD; --primary-ink: #FFFFFF; --primary-soft: #EFE8FD;
  --glow: rgba(124,77,230,.20); --dot: #D6CCEE; --skel: #E3DAF6; --grid: rgba(107,52,214,.10);
  --pulse: rgba(107,52,214,.45); --sheen: rgba(255,255,255,.75);
  --panel: #1E1236; --panel-2: #2A1A4A; --panel-ink: #F4EFFD; --panel-muted: #C4B8E0; --panel-line: #3C2A63; --panel-accent: #B596FA;
  --shadow: 0 24px 60px -28px rgba(60,25,130,.30);
  --banner: #5A2BC8; --banner-deep: #3F1A9A; --banner-shadow: 0 50px 100px -40px rgba(76,32,180,.55);
  --tg-track: #EFE8FD; --tg-knob: #FFFFFF; --tg-x: 0px;
  --danger: #C2253F; --danger-soft: #FDECEF; --danger-ink: #FFFFFF; --ok: #0A7A43; --ok-soft: #E1F6EA;

  --sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --brand: 'Gilda Display', 'Didot', Georgia, serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0F0A1D; --surface: #181030; --surface-2: #20163F; --ink: #F2EDFC; --muted: #B2A8CC;
  --line: #2E2350; --primary: #A684F7; --primary-strong: #BEA3FF; --primary-ink: #140A2C; --primary-soft: #2C1F55;
  --glow: rgba(140,96,255,.26); --dot: #3D3066; --skel: #33285A; --grid: rgba(166,132,247,.12);
  --pulse: rgba(166,132,247,.55); --sheen: rgba(214,196,255,.18);
  --panel: #251A4C; --panel-2: #2F225E; --panel-ink: #F4EFFD; --panel-muted: #C9BEE6; --panel-line: #47367F; --panel-accent: #C2A8FF;
  --shadow: 0 30px 70px -30px rgba(0,0,0,.75);
  --banner: #5A2BC8; --banner-deep: #3F1A9A; --banner-shadow: 0 50px 120px -40px rgba(120,70,255,.45);
  --tg-track: #A684F7; --tg-knob: #140A2C; --tg-x: 28px;
  --danger: #FF8FA0; --danger-soft: #3A1628; --danger-ink: #2A0812; --ok: #5BD99A; --ok-soft: #12352A;
  color-scheme: dark;
}

/* ---------- Base ---------- */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.m-skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 999px;
  background: var(--primary); color: var(--primary-ink);
  font-weight: 600; text-decoration: none;
}
.m-skip:focus { top: 16px; }

.m-root { position: relative; overflow: hidden; }

/* Serif italic accent used inside headlines */
.m-accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.m-accent--primary { color: var(--primary); }

/* ---------- Backdrop ---------- */
.m-grid-bg {
  position: absolute; left: 0; right: 0; top: 0; height: 760px; pointer-events: none;
  background-image: radial-gradient(var(--grid) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 25%, transparent 75%);
}
.m-glow {
  position: absolute; left: 50%; top: 80px; width: 900px; height: 480px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), rgba(0,0,0,0));
}

/* ---------- Header ---------- */
.m-header { position: relative; max-width: 1320px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px); }
.m-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.m-nav-l { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.m-nav-r { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }

.m-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--primary); }
.m-logo-word { font-family: var(--brand); font-size: 31px; font-weight: 400; letter-spacing: 0.01em; line-height: 1; }

.m-link { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 14px; border-radius: 999px; transition: color .2s ease, background .2s ease; }
.m-link:hover { color: var(--primary); background: var(--primary-soft); }
.m-link.is-active { color: var(--primary); font-weight: 700; }

.m-profile { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: var(--primary-soft); color: var(--primary); text-decoration: none; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.m-profile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--pulse); }

.m-toggle { position: relative; display: inline-flex; align-items: center; width: 64px; height: 34px; margin: 0 6px; padding: 4px; box-sizing: border-box; border-radius: 999px; background: var(--tg-track); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s ease; }
.m-toggle:hover { border-color: var(--primary); }
.m-toggle-knob { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; background: var(--tg-knob); color: var(--primary); box-shadow: 0 4px 12px -4px rgba(40,10,100,.45); transform: translateX(var(--tg-x)); transition: transform .4s cubic-bezier(.65,0,.35,1); }
.m-toggle-knob svg { transition: transform .6s ease; }
.m-toggle:hover .m-toggle-knob svg { transform: rotate(180deg); }

/* ---------- Shared motion ---------- */
.m-live { animation: m-pulse 2.2s ease-out infinite; }
@keyframes m-pulse { 0% { box-shadow: 0 0 0 0 var(--pulse); } 70% { box-shadow: 0 0 0 9px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }
.m-live-w { animation: m-pulse-w 2.2s ease-out infinite; }
@keyframes m-pulse-w { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.m-float { animation: m-float 6s ease-in-out infinite; }
.m-float--late { animation-delay: -3s; }
@keyframes m-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes m-sheen { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }

.m-dot-live { display: block; width: 7px; height: 7px; border-radius: 99px; background: var(--primary); }
.m-dot-live--w { background: #FFFFFF; }

/* ---------- Hero (Home) ---------- */
.m-hero { position: relative; max-width: 1000px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 40px) 56px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }

.m-update { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; box-shadow: var(--shadow); }
.m-update::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, var(--sheen) 50%, transparent 70%); transform: translateX(-130%); animation: m-sheen 4.2s ease-in-out infinite; pointer-events: none; z-index: 1; }
.m-update-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.m-update-date { font-weight: 600; font-variant-numeric: tabular-nums; }

.m-h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(46px, 6.6vw, 96px); line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
.m-lede { margin: 0; max-width: 600px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.m-lede strong { color: var(--ink); font-weight: 700; }

/* "Why Mentora" rotating highlight */
.m-why-box { position: relative; overflow: hidden; isolation: isolate; width: min(820px, 100%); margin-top: 22px; box-sizing: border-box; border-radius: 36px; background: var(--banner); color: #FFFFFF; padding: 26px clamp(20px, 4vw, 44px) 14px; box-shadow: 0 40px 90px -30px var(--pulse), 0 0 0 6px var(--primary-soft); display: flex; flex-direction: column; gap: 10px; }
.m-why-box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%); transform: translateX(-130%); animation: m-sheen 5s ease-in-out infinite; pointer-events: none; z-index: -1; }
.m-why-ring { position: absolute; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); pointer-events: none; z-index: -1; }
.m-why-ring--a { width: 420px; height: 420px; right: -140px; top: -210px; }
.m-why-ring--b { width: 260px; height: 260px; left: -110px; bottom: -150px; }
.m-why-top { display: flex; justify-content: center; }
.m-why-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.m-why-row { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; min-height: 112px; }
.m-why-val { font-family: var(--display); font-weight: 800; font-size: clamp(58px, 7.4vw, 108px); line-height: .95; letter-spacing: -0.055em; color: #FFFFFF; font-variant-numeric: tabular-nums; min-width: 3.6ch; text-align: right; white-space: nowrap; }
.m-why-sep { width: 1px; height: 64px; background: rgba(255,255,255,.3); }
.m-why-lab { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.12; color: #FFFFFF; text-align: left; min-width: 13ch; max-width: 16ch; transition: opacity .45s ease, transform .45s ease; }
.m-why-segs { display: flex; gap: 5px; width: min(420px, 100%); margin: 0 auto; }
.m-seg-hit { flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.m-seg { display: block; width: 100%; height: 3px; border-radius: 99px; background: rgba(255,255,255,.22); overflow: hidden; }
.m-seg-fill { display: block; height: 100%; width: 0; border-radius: 99px; background: #FFFFFF; }
.m-seg-hit.is-done .m-seg-fill { width: 100%; opacity: .55; }
.m-seg-hit.is-on .m-seg-fill { animation: m-fill 3.4s linear forwards; }
.m-seg-hit:hover .m-seg { background: rgba(255,255,255,.4); }
@keyframes m-fill { from { width: 0; } to { width: 100%; } }

/* ---------- Feature slider (Home) ---------- */
.m-slider { position: relative; max-width: 1360px; margin: 0 auto; padding: 8px clamp(16px, 3vw, 40px) 104px; }
.m-slider-view { position: relative; overflow: hidden; border-radius: 40px; box-shadow: var(--banner-shadow); }
.m-track { display: flex; transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1); }

.m-slide { position: relative; overflow: hidden; flex: 0 0 100%; min-width: 0; box-sizing: border-box; min-height: 600px; padding: clamp(32px, 5vw, 72px) clamp(28px, 5vw, 80px) 112px; display: flex; align-items: center; }
.m-slide--live { background: var(--banner); color: #FFFFFF; }
.m-slide--soon { background: var(--surface-2); }
.m-slide-grid { position: relative; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px; align-items: center; }
.m-slide-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.m-slide-h { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(42px, 5vw, 76px); line-height: 0.98; letter-spacing: -0.04em; }
.m-slide-p { margin: 0; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.82); max-width: 460px; }
.m-slide--soon .m-slide-grid { color: #FFFFFF; }
.m-slide--soon .m-slide-p { color: rgba(255,255,255,.85); }

.m-badge-live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.m-badge-soon { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.7); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.m-soon { filter: grayscale(1); opacity: .6; }
.m-gray { filter: grayscale(1) brightness(1.15); }
.m-fill { position: absolute; inset: 0; }
.m-circle { position: absolute; border-radius: 999px; pointer-events: none; }

.m-cta-w { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; margin-top: 6px; padding: 0 28px; border-radius: 999px; background: #FFFFFF; color: var(--banner); font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.m-cta-w:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0,0,0,.4); }

.m-slider-controls { position: absolute; left: clamp(28px, 5vw, 80px); right: clamp(28px, 5vw, 80px); bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #FFFFFF; }
.m-dots { display: flex; align-items: center; }
.m-dot-hit { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 44px; background: transparent; border: 0; padding: 0 3px; cursor: pointer; }
.m-dot { display: block; width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.45); transition: width .4s ease, background .4s ease; }
.m-dot-hit[aria-current="true"] .m-dot { width: 34px; background: #FFFFFF; }
.m-slider-nav { display: flex; align-items: center; gap: 10px; }
.m-counter { margin-right: 6px; font-size: 14px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.8); }
.m-counter strong { color: #FFFFFF; }
.m-glass-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.10); color: #FFFFFF; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s ease; }
.m-glass-btn:hover { background: rgba(255,255,255,.22); }

/* ---------- Support panel (Home) ---------- */
.m-support { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 104px; }
.m-panel { position: relative; overflow: hidden; border-radius: 36px; background: var(--panel); color: var(--panel-ink); padding: clamp(36px, 6vw, 80px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; gap: 56px; }
.m-panel-ring { position: absolute; border-radius: 999px; border: 1px solid var(--panel-line); pointer-events: none; }
.m-panel-ring--a { right: -120px; top: -160px; width: 520px; height: 520px; }
.m-panel-ring--b { right: -40px; top: -80px; width: 360px; height: 360px; }
.m-panel-head { position: relative; display: flex; flex-direction: column; gap: 18px; max-width: 680px; }
.m-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--panel-accent); }
.m-panel-h { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.m-panel-h .m-accent { color: var(--panel-accent); }
.m-panel-p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--panel-muted); text-wrap: pretty; }

.m-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 16px; }
.m-step { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px; background: var(--panel-2); border: 1px solid var(--panel-line); }
.m-step.is-current { border-color: var(--panel-accent); }
.m-step-n { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--panel-accent); }
.m-step-t { font-size: 18px; font-weight: 600; }
.m-step-d { font-size: 14.5px; line-height: 1.55; color: var(--panel-muted); }

.m-panel-actions { position: relative; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.m-cta-panel { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--panel-ink); color: var(--panel); font-weight: 600; font-size: 16px; text-decoration: none; }

/* ---------- Footer ---------- */
.m-footer { position: relative; border-top: 1px solid var(--line); background: var(--surface); }
.m-footer-in { max-width: 1240px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 40px) 32px; display: flex; flex-direction: column; gap: 48px; }
.m-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 40px; }
.m-footer-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.m-footer-logo { gap: 10px; }
.m-footer-logo .m-logo-word { font-size: 25px; letter-spacing: 0; line-height: normal; }
.m-footer-tagline { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 260px; }
.m-footer-since { font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.m-footer-col { display: flex; flex-direction: column; gap: 12px; }
.m-footer-h { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.m-foot-link { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s ease; }
.m-foot-link:hover { color: var(--primary); }
.m-foot-link small { font-size: 12px; }
.m-socials { display: flex; gap: 10px; margin-top: 4px; }
.m-social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.m-social:hover { color: var(--primary); border-color: var(--primary); }
.m-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.m-footer-bottom .m-foot-link { font-size: 14px; }
.m-footer-legal { display: flex; gap: 20px; }

/* ---------- Features page ---------- */
.f-intro { position: relative; max-width: 1000px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px) 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.f-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); }
.f-h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(42px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
.f-lede { margin: 0; max-width: 520px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.f-jump { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding-top: 8px; }

.f-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.f-chip:hover { border-color: var(--primary); color: var(--primary); }
.f-chip.is-soon { color: var(--muted); font-weight: 500; }
.f-chip .f-gdot { width: 7px; height: 7px; border-radius: 99px; background: #16A34A; animation: f-pulse-g 2.2s ease-out infinite; }

.f-list { position: relative; max-width: 1240px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 40px) 112px; display: flex; flex-direction: column; gap: 36px; }
.f-card { position: relative; overflow: hidden; border-radius: 40px; background: var(--banner); color: #FFFFFF; min-height: 600px; padding: clamp(28px, 5vw, 72px); box-shadow: var(--banner-shadow); scroll-margin-top: 24px; display: flex; align-items: center; }
.f-card.f-gray { filter: grayscale(1); box-shadow: var(--shadow); }
.f-deco { position: absolute; width: 820px; height: 820px; border-radius: 999px; background: var(--banner-deep); bottom: -340px; pointer-events: none; }
.f-deco.r { right: -240px; } .f-deco.l { left: -240px; }
.f-ring { position: absolute; width: 560px; height: 560px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); bottom: -170px; pointer-events: none; }
.f-ring.r { right: -70px; } .f-ring.l { left: -70px; }
.f-ring2 { position: absolute; width: 320px; height: 320px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); top: -130px; pointer-events: none; }
.f-ring2.r { left: -110px; } .f-ring2.l { right: -110px; }
.f-ghostnum { position: absolute; bottom: -60px; font-family: var(--display); font-weight: 800; font-size: clamp(220px, 30vw, 440px); line-height: .8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.17); pointer-events: none; user-select: none; }
.f-ghostnum.r { left: 2%; } .f-ghostnum.l { right: 2%; }
.f-art { position: absolute; top: 50%; transform: translateY(-50%); width: 44%; display: flex; justify-content: center; z-index: 1; }
.f-art.r { right: 4%; } .f-art.l { left: 4%; }
.f-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 46%; }
.f-text.l { margin-left: auto; }
.f-h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 4.8vw, 70px); line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
.f-h2 .m-accent { color: #E4D6FF; }
.f-p { margin: 0; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.86); max-width: 420px; text-wrap: pretty; }
.f-avail { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #DDF8E8; color: #0A6B38; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.f-avail i { display: block; width: 8px; height: 8px; border-radius: 99px; background: #16A34A; animation: f-pulse-g 2.2s ease-out infinite; }
@keyframes f-pulse-g { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.55); } 70% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.f-soonb { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.75); color: #FFFFFF; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.f-ghost-w { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; margin-top: 6px; padding: 0 28px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); color: #FFFFFF; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .2s ease; }
.f-ghost-w:hover { background: rgba(255,255,255,.14); }

/* ---------- Account menu (header) ---------- */
.m-account { position: relative; }
.m-profile--in { background: var(--primary); color: var(--primary-ink); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--primary-soft); }
.m-profile--in:hover { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--primary-soft), 0 12px 26px -10px var(--pulse); }
.m-profile--in[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--primary); }
.m-avatar { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1; }
.m-avatar-dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 99px; background: #16A34A; border: 2.5px solid var(--bg); }

.m-menu { position: absolute; right: 0; top: calc(100% + 14px); z-index: 30; width: 260px; box-sizing: border-box; padding: 8px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow), 0 2px 8px rgba(30,10,70,.06); text-align: left; transform-origin: top right; animation: m-pop .18s ease-out; }
.m-menu-head { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.m-menu-label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.m-menu-email { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-menu-item { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; min-height: 46px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; transition: background .15s ease, color .15s ease; }
.m-menu-item svg { flex: none; color: var(--muted); transition: color .15s ease; }
.m-menu-item:hover, .m-menu-item:focus-visible { background: var(--surface-2); color: var(--primary); outline: none; }
.m-menu-item:hover svg, .m-menu-item:focus-visible svg { color: currentColor; }
.m-menu-item--exit, .m-menu-item--exit svg { color: var(--danger); }
.m-menu-item--exit:hover, .m-menu-item--exit:focus-visible { background: var(--danger-soft); color: var(--danger); }
@keyframes m-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Dialog, buttons, toast ---------- */
.m-dialog { width: min(420px, calc(100vw - 32px)); box-sizing: border-box; padding: 34px 30px 28px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); text-align: center; }
.m-dialog[open] { animation: m-pop .2s ease-out; }
.m-dialog::backdrop { background: rgba(15,10,29,.5); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.m-dialog-icon { display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 20px; background: var(--danger-soft); color: var(--danger); }
.m-dialog-h { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.05; letter-spacing: -0.03em; }
.m-dialog-p { margin: 0 0 24px; font-size: 15.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.m-dialog .a-error { margin: -8px 0 18px; text-align: left; }
.m-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 15.5px; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.m-btn:disabled { opacity: .65; cursor: progress; }
.m-btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.m-btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.m-btn--danger { background: var(--danger); color: var(--danger-ink); }
.m-btn--danger:hover { transform: translateY(-1px); }
.m-btn--danger-ghost { background: transparent; border-color: var(--danger); color: var(--danger); }
.m-btn--danger-ghost:hover { background: var(--danger-soft); }

.m-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 13px 22px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow); transform: translateX(-50%); animation: m-toast 3.6s ease forwards; }
@keyframes m-toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 6px); } }

.m-footer--slim .m-footer-in { padding-top: 28px; padding-bottom: 28px; }
.m-footer--slim .m-footer-bottom { padding-top: 0; border-top: 0; }

/* ---------- Auth page (log in, sign up, code, reset) ---------- */
.a-shell { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; overflow: hidden; }
.a-glow { position: absolute; left: 50%; top: 46%; width: min(900px, 160vw); height: 680px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--glow), rgba(0,0,0,0)); pointer-events: none; }
.a-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(16px, 4vw, 40px); }
.a-logo { gap: 10px; }
.a-logo .m-logo-word { font-size: 25px; }
.a-top .m-toggle { margin: 0; }
.a-main { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 16px 40px; }
.a-card { width: 100%; max-width: 420px; box-sizing: border-box; padding: clamp(24px, 6vw, 36px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(30,10,70,.04), 0 32px 64px -40px var(--pulse); }
.a-view { display: flex; flex-direction: column; gap: 16px; }
.a-view[hidden] { display: none; }

.a-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 8px; border-radius: 14px; background: var(--surface-2); }
.a-tab { display: flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.a-tab:hover { color: var(--ink); }
.a-tab[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(30,10,70,.08), 0 6px 14px -8px rgba(30,10,70,.25); }
.a-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.a-h { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; }
.a-h:focus { outline: none; }
.a-sub { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.a-strong { color: var(--ink); font-weight: 700; word-break: break-all; }

.a-field { display: flex; flex-direction: column; gap: 7px; }
.a-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.a-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.a-input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 15.5px; transition: border-color .2s ease, box-shadow .2s ease; }
.a-input::placeholder { color: var(--muted); opacity: .5; }
.a-input:hover { border-color: var(--dot); }
.a-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.a-input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.a-pass { position: relative; display: block; }
.a-pass .a-input { padding-right: 50px; }
.a-eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.a-eye:hover, .a-eye[aria-pressed="true"] { color: var(--primary); background: var(--primary-soft); }
.a-hint { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13px; line-height: 1.5; color: var(--danger); }
.a-hint[hidden] { display: none; }
.a-hint-fix { padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.a-rules { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.a-rule { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600; transition: background .2s ease, color .2s ease; }
.a-rule i { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; box-sizing: border-box; border-radius: 99px; border: 1.5px solid var(--dot); color: transparent; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.a-rule.is-ok { background: var(--ok-soft); color: var(--ok); }
.a-rule.is-ok i { background: var(--ok); border-color: var(--ok); color: var(--surface); }

.a-link { padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.a-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.a-link:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.a-foot { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); text-align: center; }
.a-timer { font-variant-numeric: tabular-nums; }
.a-back { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--muted); text-decoration: none; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.a-back:hover { color: var(--primary); border-color: var(--primary); }

.a-error, .a-ok { margin: 0; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.a-error { background: var(--danger-soft); color: var(--danger); }
.a-ok { background: var(--ok-soft); color: var(--ok); }
.a-error[hidden], .a-ok[hidden] { display: none; }

.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; margin-top: 4px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--primary); color: var(--primary-ink); font-size: 15.5px; font-weight: 700; cursor: pointer; transition: background .2s ease, box-shadow .2s ease; }
.a-btn:hover { background: var(--primary-strong); box-shadow: 0 12px 24px -14px var(--pulse); }
.a-btn:disabled { opacity: .7; cursor: progress; box-shadow: none; }

.a-otp-set { margin: 0; padding: 0; border: 0; min-width: 0; }
.a-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.a-otp-box { width: 100%; min-width: 0; height: 56px; box-sizing: border-box; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--display); font-size: 24px; font-weight: 700; text-align: center; caret-color: var(--primary); transition: border-color .2s ease, box-shadow .2s ease; }
.a-otp-box:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.a-done { align-items: center; text-align: center; padding: 16px 0 8px; }
.a-icon-ok { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ok-soft); color: var(--ok); }

.a-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px clamp(16px, 4vw, 40px); font-size: 13px; color: var(--muted); }
.a-bottom-links { display: flex; gap: 18px; }
.a-bottom a { color: inherit; text-decoration: none; }
.a-bottom a:hover { color: var(--primary); }

/* ---------- My Account ---------- */
.ac-main { position: relative; max-width: 880px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 88px; display: flex; flex-direction: column; gap: 22px; }
.ac-main[aria-busy="true"] .ac-card, .ac-main[aria-busy="true"] .ac-hero { opacity: .55; }
.ac-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 8px; transition: opacity .3s ease; }
.ac-avatar { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 30px; background: var(--primary); color: var(--primary-ink); font-family: var(--display); font-weight: 700; font-size: 42px; box-shadow: 0 22px 44px -20px var(--pulse), 0 0 0 6px var(--primary-soft); }
.ac-hero-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ac-h { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -0.045em; overflow-wrap: anywhere; }
.ac-card { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 4vw, 36px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: opacity .3s ease; }
.ac-card-h { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.ac-p { margin: -8px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.ac-rows { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ac-row { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 18px; background: var(--surface-2); min-width: 0; }
.ac-k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ac-v { margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.ac-badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 13.5px; font-weight: 700; }
.ac-badge i { width: 8px; height: 8px; border-radius: 99px; background: currentColor; }
.ac-form { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.ac-btn { align-self: flex-start; }
.ac-exit { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ac-exit .ac-p { margin-top: 6px; }

/* ---------- Mockup illustrations (decorative) ---------- */
.mk-bar { display: block; border-radius: 99px; }
.mk-tag { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .f-card { flex-direction: column; align-items: stretch; gap: 40px; min-height: 0; }
  .f-art { position: static; transform: none; width: 100%; order: 2; }
  .f-text { max-width: 100%; margin-left: 0 !important; }
}
@media (max-width: 880px) {
  .m-head { grid-template-columns: 1fr; justify-items: center; }
  .m-head .m-logo { order: -1; }
  .m-nav-l, .m-nav-r { justify-content: center; }
  .m-banner-visual { display: none !important; }
}
@media (max-width: 620px) {
  .a-otp { gap: 6px; }
  .a-otp-box { height: 50px; font-size: 22px; border-radius: 10px; }
  .ac-exit .m-btn { width: 100%; }
  .ac-rows { grid-template-columns: 1fr; }
  .m-why-val, .m-why-lab { text-align: center; min-width: 0; max-width: none; }
  .m-why-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .m-update::after, .m-why-box::after, .m-live, .m-live-w, .m-float, .f-avail i, .f-chip .f-gdot, .m-menu, .m-dialog[open], .m-toast { animation: none; }
  .m-track { transition: none !important; }
  .m-seg-hit.is-on .m-seg-fill { animation: none; width: 100%; }
}
