/* ════════════════════════════════════════════════════════════════════
   PuenTrade landing — black / white / gray editorial layer.
   Loaded AFTER the inline <style> in login.html and overrides it for the
   marketing page only (everything under .auth-screen). No markup, IDs or
   JS were changed, so i18n, auth modal and counters keep working.
   Light = white page + black ink. Dark = graphite page + off-white ink.
   No colors other than neutrals. To roll back: remove the <link> tag.
   ════════════════════════════════════════════════════════════════════ */

.auth-screen {
  --ed-bg: #ffffff;
  --ed-fg: #0b0b0c;
  --ed-muted: #5c5c5a;
  --ed-line: #dcdcda;
  --ed-soft: #f4f4f2;
  --ed-inv-bg: #0b0b0c;
  --ed-inv-fg: #ffffff;
  --ed-inv-muted: #b5b5b2;
  --ed-display: "Bricolage Grotesque", "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --ed-mono: "IBM Plex Mono", ui-monospace, monospace;
  --accent-blue: var(--ed-fg);
  --accent-blue-hover: var(--ed-muted);
  --accent-blue-light: var(--ed-soft);
  --accent-blue-glow: transparent;
  --text-primary: var(--ed-fg);
  --text-secondary: var(--ed-muted);
  --text-tertiary: var(--ed-muted);
  --border-light: var(--ed-line);
}
html[data-theme="dark"] .auth-screen {
  --ed-bg: #05070a;
  --ed-fg: #eef1f7;
  --ed-muted: #9aa1ae;
  --ed-line: #1f232b;
  --ed-soft: #0f1217;
  --ed-inv-bg: #eef1f7;
  --ed-inv-fg: #05070a;
  --ed-inv-muted: #3a3f48;
}
html body, html[data-theme="dark"] body { background-color: #ffffff; }
html[data-theme="dark"] body { background-color: #05070a !important; }
body::before { display: none !important; }
.auth-bg-glow { display: none !important; }
.auth-screen { background: var(--ed-bg); color: var(--ed-fg); }

/* ── Nav ─────────────────────────────────────────────── */
.auth-screen .premium-nav,
html[data-theme="dark"] .auth-screen .premium-nav {
  background: var(--ed-bg) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--ed-line) !important;
  box-shadow: none !important;
}
.auth-screen .premium-nav { top: 0 !important; left: 0 !important; right: 0 !important; border-radius: 0 !important; margin: 0 !important; }
.auth-screen .nav-brand,
.auth-screen .nav-link { color: var(--ed-fg) !important; }

/* hero: headline spans the page, product shot sits below it */
.auth-screen .auth-split { flex-direction: column !important; align-items: stretch !important; gap: 48px !important; max-width: 1280px !important; padding-top: 128px !important; }
.auth-screen .auth-split__brand { flex: 1 1 auto !important; max-width: 100% !important; width: 100% !important; }
.auth-screen .auth-split__headline { max-width: 17ch; }
.auth-screen .auth-split__desc { max-width: 52ch; }
.auth-screen .auth-split__mockup { flex: 1 1 auto !important; width: 100% !important; max-width: 100% !important; }
.auth-screen .auth-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important; gap: 24px !important; max-width: 100% !important; width: 100% !important; }
.auth-screen .auth-stats-wrap { width: 100% !important; max-width: 100% !important; }
.auth-screen .nav-brand { font-family: var(--ed-display); font-weight: 800; letter-spacing: -0.02em; }
.auth-screen .nav-link { font-weight: 500; opacity: .72; }
.auth-screen .nav-link:hover { opacity: 1; }
.auth-screen .nav-btn,
html[data-theme="dark"] .auth-screen .nav-btn {
  background: var(--ed-inv-bg) !important;
  color: var(--ed-inv-fg) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-weight: 600;
}
.auth-screen .nav-lang-btn,
.auth-screen .theme-btn,
html[data-theme="dark"] .auth-screen .nav-lang-btn {
  background: transparent !important;
  color: var(--ed-fg) !important;
  border: 1px solid var(--ed-line) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

/* ── Hero ────────────────────────────────────────────── */
.auth-screen .auth-split__eyebrow {
  font-family: var(--ed-mono) !important;
  font-size: 12px !important;
  letter-spacing: .08em !important;
  color: var(--ed-muted) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.auth-screen .auth-split__headline,
html[data-theme="dark"] .auth-screen .auth-split__headline {
  font-family: var(--ed-display) !important;
  font-weight: 800 !important;
  font-size: clamp(44px, 7.4vw, 112px) !important;
  line-height: .98 !important;
  letter-spacing: -0.045em !important;
  color: var(--ed-fg) !important;
  text-wrap: balance;
}
:lang(th) .auth-screen .auth-split__headline { line-height: 1.12 !important; letter-spacing: -0.02em !important; }
.auth-screen .shine-text {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--ed-fg) !important;
  animation: none !important;
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .12em;
}
.auth-screen .auth-split__desc,
html[data-theme="dark"] .auth-screen .auth-split__desc { color: var(--ed-muted) !important; font-size: clamp(16px, 1.5vw, 19px); }
.auth-screen .auth-split__desc b { color: var(--ed-fg) !important; }
.auth-screen .auth-split__cta,
.auth-screen #heroStartFreeBtn {
  background: var(--ed-inv-bg) !important;
  color: var(--ed-inv-fg) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  min-height: 52px;
  padding-inline: 28px !important;
  font-weight: 600;
}
.auth-screen .auth-split__cta-secondary,
html[data-theme="dark"] .auth-screen .auth-split__cta-secondary {
  background: transparent !important;
  color: var(--ed-fg) !important;
  border: 1.5px solid var(--ed-fg) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  min-height: 52px;
  padding-inline: 28px !important;
  font-weight: 600;
}
.auth-screen .auth-split__hint { color: var(--ed-muted) !important; }

/* stat row: open list with a rule, not floating cards */
.auth-screen .auth-stats__item,
html[data-theme="dark"] .auth-screen .auth-stats__item {
  background: transparent !important;
  border: 0 !important;
  border-top: 1.5px solid var(--ed-fg) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
  align-items: flex-start !important;
}
.auth-screen .auth-stats__num,
html[data-theme="dark"] .auth-screen .auth-stats__num {
  color: var(--ed-fg) !important;
  font-family: var(--ed-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.auth-screen .auth-stats__label { color: var(--ed-muted) !important; font-family: var(--ed-mono); font-size: 11px !important; letter-spacing: .04em; }

/* product frame: flat, thin black outline */
.auth-screen .auth-split__frame,
.auth-screen .auth-split__float-card {
  border: 1.5px solid var(--ed-fg) !important;
  border-radius: 24px !important;
  box-shadow: none !important;
  background: var(--ed-bg) !important;
  overflow: hidden;
}
.auth-screen .auth-split__frame-bar { background: var(--ed-soft) !important; border-bottom: 1px solid var(--ed-line) !important; }
.auth-screen .auth-split__frame-bar span { background: var(--ed-line) !important; }

/* ── Section headings & small tags ───────────────────── */
.auth-screen section h2 {
  font-family: var(--ed-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.02 !important;
  color: var(--ed-fg) !important;
  text-wrap: balance;
}
.auth-screen section h3 { font-family: var(--ed-display); letter-spacing: -0.02em; }
.auth-screen section [id$="Tag"],
.auth-screen #painTag {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: var(--ed-muted) !important;
  font-family: var(--ed-mono);
  font-size: 12px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}
.auth-screen section p.text-\[var\(--text-tertiary\)\],
.auth-screen section .text-slate-500,
.auth-screen section .text-slate-700,
.auth-screen section .text-slate-400 { color: var(--ed-muted) !important; }

/* neutralise colored utility classes inside the page (only grays remain) */
.auth-screen .text-emerald-700, .auth-screen .text-emerald-600, .auth-screen .text-emerald-500,
.auth-screen .text-rose-500, .auth-screen .text-sky-500, .auth-screen .text-sky-300,
.auth-screen .text-blue-600, .auth-screen .text-amber-500, .auth-screen .text-indigo-500,
.auth-screen .text-violet-500, .auth-screen .text-purple-500 { color: var(--ed-fg) !important; }
.auth-screen [class*="bg-blue-50"], .auth-screen [class*="bg-emerald-50"], .auth-screen [class*="bg-rose-50"],
.auth-screen [class*="bg-sky-50"], .auth-screen [class*="bg-amber-50"], .auth-screen [class*="bg-indigo-50"],
.auth-screen [class*="bg-violet-50"], .auth-screen [class*="bg-purple-50"] { background-color: var(--ed-soft) !important; }
.auth-screen [class*="border-blue-"], .auth-screen [class*="border-emerald-"], .auth-screen [class*="border-rose-"],
.auth-screen [class*="border-sky-"], .auth-screen [class*="border-amber-"] { border-color: var(--ed-line) !important; }
.auth-screen svg[stroke="#059669"] { stroke: var(--ed-fg); }

/* ── Cards (bento, pricing, comparison) ──────────────── */
.auth-screen section .rounded-2xl,
.auth-screen section .rounded-3xl,
.auth-screen section .rounded-xl {
  box-shadow: none !important;
}
.auth-screen section .rounded-2xl { border-radius: 28px !important; }
.auth-screen section .bg-white,
html[data-theme="dark"] .auth-screen section .bg-white {
  background-color: var(--ed-bg) !important;
  border-color: var(--ed-line) !important;
}
.auth-screen section .bg-slate-50,
.auth-screen section .bg-slate-50\/80,
html[data-theme="dark"] .auth-screen section .bg-slate-50,
html[data-theme="dark"] .auth-screen section .bg-slate-50\/80 { background-color: var(--ed-soft) !important; }
.auth-screen section .bg-slate-900,
html[data-theme="dark"] .auth-screen section .bg-slate-900 {
  background-color: var(--ed-inv-bg) !important;
  color: var(--ed-inv-fg) !important;
}
.auth-screen section .bg-slate-900 h3,
.auth-screen section .bg-slate-900 .text-white { color: var(--ed-inv-fg) !important; }
.auth-screen section .bg-slate-900 p,
.auth-screen section .bg-slate-900 .text-slate-300 { color: var(--ed-inv-muted) !important; }
html[data-theme="dark"] .auth-screen section .bg-slate-900 p,
html[data-theme="dark"] .auth-screen section .bg-slate-900 .text-slate-300 { color: #3a3f48 !important; }
.auth-screen section .w-12.h-12 { background: var(--ed-soft) !important; border: 1px solid var(--ed-line) !important; color: var(--ed-fg) !important; }
.auth-screen section .bg-slate-900 .w-12.h-12 { background: transparent !important; border-color: currentColor !important; color: var(--ed-inv-fg) !important; }
.auth-screen section .border-slate-200\/80,
.auth-screen section .border-slate-200\/90,
.auth-screen section .border-slate-200\/70,
.auth-screen section .border-slate-100 { border-color: var(--ed-line) !important; }
.auth-screen section blockquote { border-left: 0 !important; border: 1px solid var(--ed-line) !important; background: var(--ed-bg) !important; }

/* pricing: featured plan = solid outline, no glow */
.auth-screen section .border-2.border-emerald-500 { border: 2px solid var(--ed-fg) !important; }
.auth-screen .pulse-glow { animation: none !important; box-shadow: none !important; }
.auth-screen #pricingProBadge { background: var(--ed-inv-bg) !important; color: var(--ed-inv-fg) !important; box-shadow: none !important; }
.auth-screen section a.bg-slate-900,
.auth-screen section a[id$="Btn"],
.auth-screen section button.trigger-auth-modal,
.auth-screen #ctaBtn {
  background: var(--ed-inv-bg) !important;
  background-image: none !important;
  color: var(--ed-inv-fg) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
.auth-screen section li > span:first-child { color: var(--ed-fg) !important; }

/* tabs in the product tour */
.auth-screen .tour-tab { border-radius: 999px !important; border: 1px solid var(--ed-line) !important; background: transparent !important; color: var(--ed-fg) !important; box-shadow: none !important; }
.auth-screen .tour-tab.is-active { background: var(--ed-inv-bg) !important; color: var(--ed-inv-fg) !important; border-color: var(--ed-inv-bg) !important; }
.auth-screen .tour-frame-wrap { background: transparent !important; padding: 0 !important; animation: none !important; }

/* reviews + FAQ */
.auth-screen .review-card,
.auth-screen .faq-item,
html[data-theme="dark"] .auth-screen .review-card,
html[data-theme="dark"] .auth-screen .faq-item {
  background: var(--ed-bg) !important;
  border: 1px solid var(--ed-line) !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  color: var(--ed-fg) !important;
}
.auth-screen .faq-question { color: var(--ed-fg) !important; font-weight: 600; }
.auth-screen .faq-answer { color: var(--ed-muted) !important; }

/* final CTA: big black block, no gradient */
.auth-screen section > .bg-gradient-to-b {
  background: var(--ed-inv-bg) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: clamp(24px, 3vw, 40px) !important;
  box-shadow: none !important;
}
.auth-screen section > .bg-gradient-to-b h2,
.auth-screen section > .bg-gradient-to-b p { color: var(--ed-inv-fg) !important; }
.auth-screen section > .bg-gradient-to-b p { opacity: .75; }
.auth-screen section > .bg-gradient-to-b #ctaBtn { background: var(--ed-inv-fg) !important; color: var(--ed-inv-bg) !important; }

/* footer */
.auth-screen footer {
  background: var(--ed-bg) !important;
  border-top: 1.5px solid var(--ed-fg) !important;
}
.auth-screen footer, .auth-screen footer .text-\[var\(--text-primary\)\] { color: var(--ed-fg) !important; }
.auth-screen footer .text-\[var\(--text-tertiary\)\], .auth-screen footer .text-slate-400 { color: var(--ed-muted) !important; }
.auth-screen footer a:hover { color: var(--ed-fg) !important; text-decoration: underline; }

/* keyboard focus */
.auth-screen a:focus-visible, .auth-screen button:focus-visible { outline: 2px solid var(--ed-fg); outline-offset: 3px; }

@media (max-width: 720px) {
  .auth-screen .auth-split__headline { font-size: clamp(40px, 12vw, 64px) !important; }
}

/* editorial: section intros are left-aligned */
.auth-screen section > .flex.flex-col.items-center.text-center { align-items: flex-start !important; text-align: left !important; }
.auth-screen section h2 { font-size: clamp(32px, 5vw, 64px) !important; }
.auth-screen section > .flex.flex-col.items-center.text-center h2 { max-width: 16ch; }

@media (max-width: 560px) {
  .auth-screen .nav-btn { display: none !important; }
  .auth-screen .premium-nav-container { padding: 0 16px !important; }
  .auth-screen .nav-actions { gap: 8px !important; }
}

/* sign-in / sign-up modal: same black pill button, no gradient */
.auth-screen .auth-card .btn--primary,
.auth-screen .auth-card button[type="submit"] {
  background: var(--ed-inv-bg) !important;
  background-image: none !important;
  color: var(--ed-inv-fg) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
.auth-screen .auth-card::before, .auth-screen .auth-card::after { background: var(--ed-fg) !important; background-image: none !important; }
.auth-screen .auth-tab.active, .auth-screen .auth-tab.is-active { color: var(--ed-fg) !important; }

/* nav spans the whole viewport (inline CSS capped it at 1400px) */
.auth-screen .premium-nav { max-width: none !important; width: 100% !important; }
.auth-screen .premium-nav-container { max-width: 1280px !important; }
/* logo mark: solid square with a P, matching the editorial design */
.auth-screen .nav-logo-icon {
  width: 34px !important; height: 34px !important; border-radius: 10px;
  background: var(--ed-inv-bg); color: var(--ed-inv-fg);
}
.auth-screen .nav-logo-icon img { display: none !important; }
.auth-screen .nav-logo-icon::after {
  content: "P"; font-family: var(--ed-display); font-weight: 800; font-size: 20px; line-height: 1;
}

/* logo icon removed per request: wordmark only */
.auth-screen .nav-logo-icon { display: none !important; }

/* Thai: lighter, looser type so it reads easily (tight latin tracking crushes Thai marks) */
:lang(th) .auth-screen .auth-split__headline,
html[data-theme="dark"]:lang(th) .auth-screen .auth-split__headline {
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", var(--ed-display), sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(34px, 4.6vw, 68px) !important;
  line-height: 1.32 !important;
  letter-spacing: 0 !important;
  max-width: 24ch;
}
:lang(th) .auth-screen section h2 {
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", var(--ed-display), sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(28px, 3.8vw, 52px) !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  max-width: 24ch !important;
}
:lang(th) .auth-screen section h3,
:lang(th) .auth-screen .nav-brand { letter-spacing: 0; }
:lang(th) .auth-screen .auth-split__desc { line-height: 1.75 !important; }
:lang(th) .auth-screen .shine-text { text-underline-offset: .18em; text-decoration-thickness: .05em; }
:lang(th) .auth-screen .auth-split__btnrow { margin-top: 8px; }
