/* Ideom — landing styles. Adapted from Prisma cinematic spec. */

:root {
  --bg: #000000;
  --about-bg: #101010;
  --card-bg: #212121;
  --card-bg-2: #181818;
  --primary: #E8B89A;
  --primary-strong: #E1E0CC;
  --primary-soft: rgba(225, 224, 204, 0.8);
  --muted: #9a9a90;
  --muted-2: #6f6f66;
  --line: rgba(225, 224, 204, 0.12);
  --line-strong: rgba(225, 224, 204, 0.24);
  --danger: #d97757;
  --ok: #9ec48a;
}

* {
  font-family: 'Almarai', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--primary-strong);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.serif-it {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}

/* Noise textures (SVG fractal) */
.noise-overlay {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}
.bg-noise {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  height: 100vh;
  padding: 16px;
  background: var(--bg);
}
@media (min-width: 768px) { .hero { padding: 24px; } }

.hero-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 768px) { .hero-frame { border-radius: 32px; } }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Navbar pill */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  gap: 12px;
  z-index: 1000;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
@media (min-width: 640px) { .navbar { padding: 10px 20px; top: 20px; } }
@media (min-width: 768px) { .navbar { padding: 12px 32px; top: 24px; } }

.navbar a {
  color: var(--primary-soft);
  font-size: 10px;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.navbar a:hover { color: var(--primary-strong); }
@media (min-width: 640px) { .navbar a { font-size: 12px; } }
@media (min-width: 768px) { .navbar a { font-size: 14px; } }

.navbar-brand {
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.01em;
  border-right: 1px solid rgba(225,224,204,0.25);
  padding-right: 16px;
  margin-right: 4px;
}
@media (min-width: 768px) { .navbar-brand { font-size: 15px; padding-right: 22px; } }

.nav-links { display: flex; align-items: center; gap: 12px; }
@media (min-width: 640px) { .nav-links { gap: 24px; } }
@media (min-width: 768px) { .nav-links { gap: 48px; } }
@media (min-width: 1024px) { .nav-links { gap: 56px; } }

.nav-hamburger { display: none; background: none; border: none; color: var(--primary-strong); cursor: pointer; padding: 4px; line-height: 1; }

@media (max-width: 359px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: #0d0d0b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px 20px;
    z-index: 999;
  }
  .nav-links.open a { font-size: 13px; }
  .nav-hamburger { display: flex; align-items: center; }
  .navbar { gap: 8px; position: relative; }
}

/* Hero content bottom grid */
.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 5;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: end;
}
@media (min-width: 768px) { .hero-content { padding: 40px; gap: 24px; } }
@media (min-width: 1024px) { .hero-content { padding: 56px; } }

.hero-title-wrap {
  grid-column: 1 / -1;
  position: relative;
}
@media (min-width: 1024px) { .hero-title-wrap { grid-column: 1 / span 8; } }

.hero-title {
  color: var(--primary-strong);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.055em;
  font-size: 11vw;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
@media (min-width: 480px) { .hero-title { font-size: 12vw; } }
@media (min-width: 640px) { .hero-title { font-size: 12vw; } }
@media (min-width: 768px) { .hero-title { font-size: 13vw; } }
@media (min-width: 1024px) { .hero-title { font-size: 9.5vw; letter-spacing: -0.05em; } }
@media (min-width: 1280px) { .hero-title { font-size: 9vw; } }

.hero-title .word { display: inline-block; position: relative; overflow: hidden; padding: 0.05em 0; line-height: 0.95; }
.hero-title .word > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-title.in .word > span { transform: translateY(0); }
.hero-title .word:nth-child(2) > span { transition-delay: 0.12s; }
.hero-title .word:nth-child(3) > span { transition-delay: 0.22s; }
.hero-title .word:nth-child(4) > span { transition-delay: 0.32s; }

.hero-title .ast {
  position: absolute;
  top: 0.05em;
  font-size: 0.18em;
  margin-left: 0.05em;
  opacity: 0;
  transition: opacity 0.6s ease 1.1s;
  color: var(--primary-strong);
}
.hero-title.in .ast { opacity: 1; }

.hero-right {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 460px;
}
@media (min-width: 1024px) { .hero-right { grid-column: 9 / span 4; max-width: none; padding-bottom: 6px; } }

.hero-desc {
  color: rgba(222, 219, 200, 0.72);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}
.hero-content.in .hero-desc { opacity: 1; transform: translateY(0); }
@media (min-width: 768px) { .hero-desc { font-size: 15px; } }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  align-self: flex-start;
  transition: gap 0.3s ease, transform 0.2s ease;
  font-family: inherit;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s, gap 0.3s ease;
}
.hero-content.in .hero-cta { opacity: 1; transform: translateY(0); }
.hero-cta:hover { gap: 14px; }
.hero-cta .circ {
  background: #000;
  color: var(--primary-strong);
  width: 36px; height: 36px;
  border-radius: 999px;
  display: grid; place-items: center;
  transition: transform 0.25s ease;
}
.hero-cta:hover .circ { transform: scale(1.1); }
@media (min-width: 640px) { .hero-cta { font-size: 16px; padding: 9px 9px 9px 24px; } .hero-cta .circ { width: 40px; height: 40px; } }

/* ---------- Generic section ---------- */
.section {
  background: var(--bg);
  padding: 48px 24px;
}
@media (min-width: 768px) { .section { padding: 112px 40px; } }

.section-label {
  color: var(--primary);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  text-align: center;
}
@media (min-width: 768px) { .section-label { font-size: 12px; } }

.section-title {
  color: var(--primary-strong);
  text-align: center;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-size: 32px;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.12em 0.28em;
}
@media (min-width: 640px) { .section-title { font-size: 40px; } }
@media (min-width: 768px) { .section-title { font-size: 52px; line-height: 0.9; } }
@media (min-width: 1024px) { .section-title { font-size: 64px; } }

.section-title .word { display: inline-block; overflow: hidden; padding: 0.04em 0; }
.section-title .word > span { display: inline-block; transform: translateY(120%); transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1); }
.section-title.in .word > span { transform: translateY(0); }

/* ---------- Tester ---------- */
.tester-section {
  background: var(--bg);
  padding: 48px 16px 64px;
  position: relative;
}
@media (min-width: 768px) { .tester-section { padding: 120px 32px; } }

.tester-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.tester-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 36px;
  gap: 14px;
}

.detector-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}
.detector-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--primary-soft);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.detector-chip .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: #6c6c63;
}
.detector-chip.bypassed .dot { background: var(--ok); box-shadow: 0 0 8px rgba(158, 196, 138, 0.6); }
.detector-chip.bypassed { color: var(--primary-strong); border-color: rgba(158, 196, 138, 0.35); }

.tester-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .tester-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
  }
}

.tester-pane {
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) {
  .tester-pane.left { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: none; }
  .tester-pane.right { border-top-left-radius: 0; border-bottom-left-radius: 0; }
}

.tester-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.tester-pane-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}
.tester-pane-title .num {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: rgba(222,219,200,0.08);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 11px;
  color: var(--primary-strong);
  letter-spacing: 0;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.score-pill .label { color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 9px; }
.score-pill .v { color: var(--primary-strong); font-weight: 700; }
.score-pill.ai .v { color: #f0a98c; }
.score-pill.human .v { color: var(--ok); }

.tester-textarea {
  flex: 1;
  width: 100%;
  resize: none;
  background: transparent;
  border: none;
  color: var(--primary-strong);
  font-size: 14px;
  line-height: 1.55;
  padding: 4px 2px;
  outline: none;
  font-family: inherit;
}
.tester-textarea::placeholder { color: var(--muted-2); }

.tester-output {
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--primary-strong);
  white-space: pre-wrap;
  padding: 4px 2px;
  overflow-y: auto;
}
.tester-output.empty { color: var(--muted-2); }

.tester-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  gap: 10px;
}

.tester-divider {
  display: none;
  position: relative;
  width: 56px;
  align-items: center;
  justify-content: center;
}
@media (min-width: 900px) { .tester-divider { display: flex; } }
.tester-divider::before {
  content: "";
  position: absolute;
  inset: 28px 27px;
  border-left: 1px dashed var(--line);
}
.tester-divider .knob {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--primary);
  color: #000;
  display: grid; place-items: center;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(0,0,0,0.6), 0 12px 32px rgba(222,219,200,0.18);
}
.tester-divider .knob:hover { transform: scale(1.06); }
.tester-divider .knob:disabled { background: #2a2a2a; color: #555; cursor: not-allowed; box-shadow: 0 0 0 6px rgba(0,0,0,0.6); }

.humanize-mobile {
  display: flex;
  justify-content: center;
}
@media (min-width: 900px) { .humanize-mobile { display: none; } }
.humanize-mobile button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: #000;
  border: none; border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}
.humanize-mobile button:disabled { background: #2a2a2a; color: #777; }

/* Humanizing tip */
.humanizing-tip {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 10px 0 14px;
  min-height: 20px;
  transition: opacity 0.4s ease;
  letter-spacing: 0.01em;
}

/* Shimmer */
.shimmer-line {
  height: 12px;
  background: linear-gradient(90deg, rgba(222,219,200,0.04) 0%, rgba(222,219,200,0.16) 40%, rgba(222,219,200,0.04) 80%);
  background-size: 220% 100%;
  border-radius: 4px;
  margin: 6px 0;
  animation: shimmer 1.4s ease-in-out infinite;
}
.shimmer-line:nth-child(1) { width: 92%; animation-delay: 0s; }
.shimmer-line:nth-child(2) { width: 78%; animation-delay: 0.1s; }
.shimmer-line:nth-child(3) { width: 88%; animation-delay: 0.2s; }
.shimmer-line:nth-child(4) { width: 64%; animation-delay: 0.3s; }
.shimmer-line:nth-child(5) { width: 82%; animation-delay: 0.4s; }
.shimmer-line:nth-child(6) { width: 48%; animation-delay: 0.5s; }
@keyframes shimmer {
  0% { background-position: 220% 0; }
  100% { background-position: -20% 0; }
}

/* Output reveal */
.tester-output .word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  animation: wordIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  margin-right: 0.25em;
}
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- About / How it works ---------- */
.about-card {
  background: var(--about-bg);
  border-radius: 24px;
  padding: 56px 28px;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--line);
}
@media (min-width: 768px) { .about-card { padding: 96px 64px; border-radius: 32px; } }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 56px;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 72px; } }

.step-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.step-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--primary);
  opacity: 0.6;
  line-height: 1;
}
.step-title {
  font-size: 19px;
  color: var(--primary-strong);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.step-desc {
  color: rgba(222, 219, 200, 0.62);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.step-illu {
  height: 64px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* about scroll text */
.about-paragraph {
  color: var(--primary);
  font-size: 14px;
  line-height: 1.55;
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
}
@media (min-width: 768px) { .about-paragraph { font-size: 17px; line-height: 1.6; margin-top: 36px; } }
.about-paragraph .ch {
  opacity: 0.2;
  transition: opacity 0.4s linear;
}
.about-paragraph .ch.lit { opacity: 1; }

/* ---------- Features ---------- */
.features-section {
  position: relative;
  background: var(--bg);
  padding: 48px 16px 64px;
  overflow: hidden;
}
@media (min-width: 768px) { .features-section { padding: 120px 32px; } }

.features-noise {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  pointer-events: none;
}

.features-shell { position: relative; max-width: 1240px; margin: 0 auto; }

.features-head {
  text-align: left;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 880px;
}
.features-head h2 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--primary-strong);
  margin: 0;
}
.features-head h2.muted { color: #6f6f66; }
@media (min-width: 768px) { .features-head h2 { font-size: 32px; } }
@media (min-width: 1024px) { .features-head h2 { font-size: 40px; } }

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: 1.1fr 1fr 1fr; gap: 4px; height: 480px; } }

.feature-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card.in { opacity: 1; transform: scale(1); }
.feature-card.video-card { padding: 0; background: #111; }
@media (min-width: 1024px) { .feature-card { min-height: 0; } }

.feature-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-card .video-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
}
.feature-card .video-cap {
  position: relative;
  margin-top: auto;
  padding: 22px;
  color: var(--primary-strong);
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 400;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feature-card .video-cap .small {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-soft);
}

.feature-card .feat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--primary);
  margin-bottom: 14px;
}
@media (min-width: 640px) { .feature-card .feat-icon { width: 48px; height: 48px; } }

.feature-card .feat-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--primary-strong);
  margin-bottom: 14px;
}
.feature-card .feat-title .num {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.18em;
}

.feat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #a8a89c;
}
.feat-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }

.feat-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 500;
  align-self: flex-start;
}
.feat-link svg { transform: rotate(-45deg); transition: transform 0.25s ease; }
.feat-link:hover svg { transform: rotate(-45deg) translate(2px, -2px); }

/* ---------- FAQ ---------- */
.faq-section {
  background: var(--bg);
  padding: 48px 16px 64px;
}
@media (min-width: 768px) { .faq-section { padding: 120px 32px; } }

.faq-shell { max-width: 920px; margin: 0 auto; }

.faq-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 48px;
  align-items: end;
}
@media (min-width: 768px) { .faq-head { grid-template-columns: auto 1fr; gap: 32px; } }

.faq-head .label-col {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.faq-head h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--primary-strong);
  margin: 0;
}
@media (min-width: 768px) { .faq-head h2 { font-size: 48px; line-height: 0.9; } }

.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--primary-strong);
  text-align: left;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}
@media (min-width: 768px) { .faq-q { font-size: 19px; padding: 26px 0; } }
.faq-q .plus {
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.2s ease;
  color: var(--primary);
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--primary); color: #000; border-color: var(--primary); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-a-inner {
  padding: 0 0 24px;
  color: rgba(222,219,200,0.72);
  font-size: 14px;
  line-height: 1.6;
  max-width: 720px;
}
@media (min-width: 768px) { .faq-a-inner { font-size: 15px; } }

/* ---------- Waitlist ---------- */
.waitlist-section {
  background: var(--bg);
  padding: 48px 16px 48px;
}
@media (min-width: 768px) { .waitlist-section { padding: 120px 40px 80px; } }

.waitlist-card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--about-bg);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 56px 28px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .waitlist-card { padding: 88px 64px; border-radius: 32px; } }

.waitlist-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(60% 80% at 90% 0%, rgba(222,219,200,0.10), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(222,219,200,0.06), transparent 60%);
  pointer-events: none;
}

.waitlist-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) { .waitlist-shell { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

.waitlist-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--primary-strong);
  margin: 0 0 18px;
}
@media (min-width: 768px) { .waitlist-title { font-size: 56px; } }

.waitlist-sub {
  color: rgba(222,219,200,0.72);
  font-size: 15px;
  line-height: 1.55;
  max-width: 460px;
  margin: 0 0 24px;
}

.spots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.spots .live-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(158,196,138,0.6);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(158,196,138,0.6); }
  100% { box-shadow: 0 0 0 12px rgba(158,196,138,0); }
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 18px;
}
.waitlist-form label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.waitlist-form input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--primary-strong);
  font-size: 16px;
  padding: 10px 2px 12px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.25s ease;
}
.waitlist-form input::placeholder { color: var(--muted-2); }
.waitlist-form input:focus { border-bottom-color: var(--primary); }
.waitlist-form .field { display: flex; flex-direction: column; gap: 6px; }

.waitlist-submit {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 12px 14px 12px 22px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  transition: gap 0.25s ease;
}
.waitlist-submit:hover { gap: 18px; }
.waitlist-submit .circ {
  background: #000; color: var(--primary-strong);
  width: 36px; height: 36px;
  border-radius: 999px;
  display: grid; place-items: center;
  transition: transform 0.25s ease;
}
.waitlist-submit:hover .circ { transform: scale(1.08); }

.waitlist-success {
  display: flex; flex-direction: column; gap: 8px;
  text-align: center;
  padding: 20px 0;
  color: var(--primary-strong);
}
.waitlist-success .ok {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: rgba(158, 196, 138, 0.15);
  border: 1px solid rgba(158, 196, 138, 0.45);
  color: var(--ok);
  display: grid; place-items: center;
  margin: 0 auto 8px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 56px 24px 0;
}
.footer-main {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand-col { grid-column: 1 / -1; }
}
.footer-brand-col { display: flex; flex-direction: column; gap: 12px; }
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-strong);
  letter-spacing: -0.02em;
}
.footer-logo sup { font-size: 12px; }
.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 260px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.footer-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--primary-strong); }

.footer-anpc {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 480px) {
  .footer-anpc { gap: 6px; }
}
@media (max-width: 768px) {
  .anpc-badge { padding: 5px 8px; gap: 6px; border-radius: 7px; }
  .anpc-badge-title { font-size: 8px; }
  .anpc-badge-btn { font-size: 7px; padding: 2px 8px; }
  .anpc-badge-logo { gap: 4px; padding-right: 6px; }
  .anpc-logo-text strong { font-size: 10px; }
  .anpc-logo-text small { font-size: 5px; max-width: 54px; }
  .anpc-logo-text em { font-size: 7px; }
  .anpc-stars { font-size: 6px; }
}
.anpc-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #1e3a8a;
  border-radius: 10px;
  padding: 8px 14px;
  text-decoration: none;
  background: #fff;
  color: #1e3a8a;
  transition: opacity 0.2s;
  flex-shrink: 1;
  min-width: 0;
}
.anpc-badge:hover { opacity: 0.85; }
.anpc-badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.anpc-badge-title {
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 11px;
  color: #1e3a8a;
  text-align: center;
  line-height: 1.3;
}
.anpc-badge-btn {
  background: #1e3a8a;
  color: #fff;
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 10px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  letter-spacing: 0.05em;
}
.anpc-badge-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 2px solid #1e3a8a;
  padding-right: 10px;
}
.anpc-stars {
  font-size: 8px;
  color: #f5c000;
  line-height: 1.3;
  text-align: center;
}
.anpc-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.anpc-logo-text strong {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: #1e3a8a;
  line-height: 1;
}
.anpc-logo-text small {
  font-family: Arial, sans-serif;
  font-size: 6px;
  color: #1e3a8a;
  line-height: 1.3;
  max-width: 72px;
}
.anpc-logo-text em {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 9px;
  color: #1e3a8a;
}

/* utility */
.center { text-align: center; }
.muted { color: var(--muted); }
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.in { opacity: 1; transform: translateY(0); }

/* Hide scrollbar inside output */
.tester-output::-webkit-scrollbar { width: 6px; }
.tester-output::-webkit-scrollbar-thumb { background: rgba(222,219,200,0.15); border-radius: 6px; }

/* ---------- New 2-step tester flow ---------- */
.tester-full-pane {
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

/* Analyzing overlay — blur pe deasupra textului */
.analyzing-overlay {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(13, 13, 13, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.analyzing-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(232, 184, 154, 0.12);
  border: 1px solid rgba(232, 184, 154, 0.3);
  color: var(--primary);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  animation: pulse-badge 1.6s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.tester-analyze-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 14px 30px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 28px rgba(232,184,154,0.25);
}
.tester-analyze-btn:hover { transform: scale(1.03); }
.tester-analyze-btn:disabled { background: #2a2a2a; color: #555; cursor: not-allowed; box-shadow: none; transform: none; }

.tester-results { display: flex; flex-direction: column; gap: 16px; }

/* AI Gauge Card */
.ai-gauge-card {
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px 28px;
  text-align: center;
}
.ai-score-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.ai-score-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

/* Gauge SVG */
.gauge-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}
.gauge-svg {
  width: 100%;
  max-width: 240px;
  height: auto;
}

/* Result output textbox */
.result-output-wrap {
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.result-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  gap: 10px;
}
.result-output-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--primary-strong);
  min-height: 120px;
}
.result-output-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease;
}
.copy-btn:hover { transform: scale(1.03); }
.reset-lnk {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.reset-lnk:hover { color: var(--primary-soft); }

/* Detector progress section */
.detector-progress {
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px 28px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.det-spinner-circle {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(232, 184, 154, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.det-current-label {
  font-size: 14px;
  color: var(--muted);
  min-height: 20px;
  transition: opacity 0.25s ease;
}
.det-current-label strong {
  color: var(--primary-strong);
  font-weight: 600;
}

.det-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.det-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #f0a98c);
  animation: fillProgress linear forwards;
}
@keyframes fillProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Caught detector chips */
.detector-chip.caught .dot { background: var(--danger); box-shadow: 0 0 8px rgba(217,119,87,0.55); }
.detector-chip.caught { color: var(--primary-strong); border-color: rgba(217,119,87,0.3); }

@keyframes chipPop {
  from { opacity: 0; transform: translateY(6px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chip-reveal {
  opacity: 0;
  animation: chipPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Humanize gate */
.humanize-gate {
  background: linear-gradient(135deg, rgba(232,184,154,0.07) 0%, rgba(232,184,154,0.02) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 28px;
}
.humanize-gate-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--primary-strong);
  margin: 0 0 8px;
}
@media (min-width: 768px) { .humanize-gate-title { font-size: 24px; } }
.humanize-gate-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.55;
}
.gate-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gate-email-input {
  flex: 1;
  min-width: 180px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--primary-strong);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease;
}
.gate-email-input:focus { border-color: var(--primary); }
.gate-email-input::placeholder { color: var(--muted-2); }
.gate-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: transform 0.2s ease;
}
.gate-submit-btn:hover { transform: scale(1.03); }

.humanize-gate { display: flex; justify-content: center; }

@keyframes gateReveal {
  from { opacity: 0; transform: translateY(-8px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0);    max-height: 100px; }
}
.gate-form--reveal {
  animation: gateReveal 0.3s ease forwards;
  overflow: hidden;
}

/* Score comparison (done state) */
.score-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}
.score-comp-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.score-comp-val {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
@media (min-width: 768px) { .score-comp-val { font-size: 64px; } }
.score-comp-lbl {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Result panes (before/after) */
.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .result-grid { grid-template-columns: 1fr 1fr; } }

.result-pane {
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
}
.result-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.result-pane-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--primary-strong);
}
.result-pane-text.muted { color: rgba(222,219,200,0.38); }

/* ---------- CLASS PROB PILLS ---------- */
.class-prob-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.prob-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.prob-pill.prob-ai    { background: rgba(217,119,87,0.15); color: #d97757; border: 1px solid rgba(217,119,87,0.35); }
.prob-pill.prob-mixed { background: rgba(234,179,8,0.1);  color: #ca8a04; border: 1px solid rgba(234,179,8,0.3); }
.prob-pill.prob-human { background: rgba(158,196,138,0.1);color: #9ec48a; border: 1px solid rgba(158,196,138,0.3); }

/* ---------- SENTENCE HIGHLIGHT BOX ---------- */
.sentence-highlight-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 20px 22px;
  margin-top: 16px;
}
.sentence-highlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.sentence-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #6b6b5e;
}
.sentence-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.sentence-text {
  font-size: 14px;
  line-height: 2;
  color: #c8c7b4;
}
.top-ai-sentences {
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 14px;
}
.top-ai-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6b5e;
  margin-bottom: 10px;
}
.top-ai-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.top-ai-prob {
  font-size: 11px;
  font-weight: 800;
  color: #d97757;
  background: rgba(217,119,87,0.12);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.top-ai-text {
  font-size: 13px;
  color: #8a8a7a;
  line-height: 1.5;
}

/* ---------- AUTH MODAL ---------- */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.auth-modal {
  background: #131310;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  position: relative;
}
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #6b6b5e;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.auth-close:hover { color: #c8c7b4; }
.auth-header { margin-bottom: 24px; }
.auth-title { font-size: 20px; font-weight: 800; color: #e8e7d4; letter-spacing: -0.02em; margin-bottom: 4px; }
.auth-sub { font-size: 13px; color: #6b6b5e; }
.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1a1a1a;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}
.auth-google-btn:hover { opacity: 0.9; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #4a4a40;
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}
.auth-tabs {
  display: flex;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.auth-tabs button {
  flex: 1;
  background: transparent;
  border: none;
  color: #6b6b5e;
  font-size: 13px;
  font-weight: 600;
  padding: 9px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.auth-tabs button.active { background: rgba(255,255,255,0.07); color: #e8e7d4; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 12px 14px;
  color: #e8e7d4;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.auth-input:focus { border-color: rgba(232,184,154,0.5); }
.auth-input::placeholder { color: #4a4a40; }
.auth-error { font-size: 12px; color: #d97757; padding: 2px 0; }
.auth-submit-btn {
  background: var(--primary);
  color: #0a0a08;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
  transition: opacity 0.15s;
}
.auth-submit-btn:hover { opacity: 0.9; }
.auth-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- LIMIT CARD ---------- */
.limit-card {
  background: rgba(217,119,87,0.07);
  border: 1px solid rgba(217,119,87,0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-top: 8px;
}
.limit-title { font-size: 16px; font-weight: 700; color: #e8e7d4; margin-bottom: 6px; }
.limit-sub { font-size: 13px; color: #8a8a7a; margin-bottom: 16px; }
