:root {
  --text: #0f172a;
  --muted: #64748b;
  --white: #ffffff;
  --brand: #2563eb;
  --brand-2: #7c3aed;
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: rgba(255, 255, 255, 0.80);
  --border: rgba(15, 23, 42, 0.10);
  --focus: rgba(37, 99, 235, 0.20);
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
  --shadow-strong: 0 20px 60px rgba(2, 6, 23, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(37, 99, 235, 0.08), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(124, 58, 237, 0.06), transparent 60%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

/* Landing + App/Auth: one consistent premium DARK theme */
:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) {
  /* Override design tokens locally */
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --bg: #070b16;
  --surface: rgba(15, 23, 42, 0.78);
  --surface-2: rgba(15, 23, 42, 0.64);
  --border: rgba(255, 255, 255, 0.12);
  --focus: rgba(37, 99, 235, 0.28);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
  --shadow-strong: 0 26px 90px rgba(0, 0, 0, 0.62);

  background:
    radial-gradient(1100px 680px at 10% -10%, rgba(37, 99, 235, 0.26), transparent 60%),
    radial-gradient(980px 640px at 92% 0%, rgba(124, 58, 237, 0.18), transparent 58%),
    radial-gradient(880px 540px at 55% 120%, rgba(14, 165, 233, 0.10), transparent 55%),
    #070b16;
}

:is(body.landing, body.auth-page, body[data-tt-require-auth="1"])::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045) 0,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px,
      transparent 62px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 62px
    );
  opacity: 0.10;
}

:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) > * {
  position: relative;
  z-index: 1;
}



body.landing .container {
  max-width: 1180px;
}

/* Navbar + top chrome in dark mode */
:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) .navbar {
  background: rgba(15, 23, 42, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) .navbar.scrolled {
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 14px 55px rgba(0, 0, 0, 0.45);
}

:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) .nav-links a {
  color: rgba(255, 255, 255, 0.82);
}

:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) .nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) .lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) .lang-btn-top {
  color: rgba(255, 255, 255, 0.70);
  opacity: 1;
}

:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) .lang-btn-sub {
  color: rgba(255, 255, 255, 0.86);
}

/* Readability: force landing page text to white */
:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]),
:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) main,
:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) header,
:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) footer {
  color: rgba(255, 255, 255, 0.92);
}

:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) a { color: rgba(255, 255, 255, 0.92); }

:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) h1,
:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) h2,
:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) h3,
:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) h4,
:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) h5,
:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) h6 {
  color: rgba(255, 255, 255, 0.96);
}

body.landing p,
body.landing li,
body.landing .section-head p,
body.landing .section-subtitle,
body.landing .logo-strip-title,
body.landing .demo-q-sub,
body.landing .demo-explain-text,
body.landing .price-note,
body.landing .faq-item p,
body.landing .who,
body.landing .bullet-text {
  color: rgba(255, 255, 255, 0.70);
}

body.landing .demo-kicker,
body.landing .benefit-kicker,
body.landing .dash-kicker,
body.landing .kpi-label {
  color: rgba(255, 255, 255, 0.72);
}

body.landing .demo-list,
body.landing .demo-list li {
  color: rgba(255, 255, 255, 0.86);
}

/* Hero stays premium + clean, same theme (no separate palette) */
body.landing .hero {
  background: transparent;
  color: var(--text);
  padding: 64px 0 44px;
}

body.landing .hero-bg { display: none; }

body.landing .hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.35);
  animation: none;
}

/* Mobile: keep the same size/position, but make the badge feel like a premium micro-card */
@media (max-width: 720px) {
  body.landing .hero-badge {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background:
      radial-gradient(520px 180px at 18% 0%, rgba(37, 99, 235, 0.26), transparent 62%),
      radial-gradient(520px 180px at 88% 0%, rgba(124, 58, 237, 0.22), transparent 62%),
      rgba(15, 23, 42, 0.58);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.46);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  }

  body.landing .hero-badge::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
    opacity: 0.45;
    transform: translate3d(-20%, -20%, 0);
    pointer-events: none;
  }

  body.landing .hero-badge::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.60), rgba(124, 58, 237, 0.45), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.35;
    pointer-events: none;
  }
}

body.landing .hero-title {
  letter-spacing: -0.9px;
}

body.landing .hero-subtitle {
  color: var(--muted);
}

body.landing .hero-note {
  color: rgba(255, 255, 255, 0.70);
}

body.landing .stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.landing .stat-label {
  color: rgba(255, 255, 255, 0.72);
}

body.landing .preview-card {
  background:
    radial-gradient(900px 360px at 15% 0%, rgba(37, 99, 235, 0.16), transparent 62%),
    rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-strong);
  color: var(--text);
  backdrop-filter: blur(14px);
  animation: none;
}

body.landing .preview-card {
  cursor: pointer;
  user-select: none;
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 220ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 220ms ease;
}

body.landing .preview-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.30), var(--shadow-strong);
}

@media (hover: hover) and (pointer: fine) {
  body.landing .preview-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.20);
  }
}

body.landing .preview-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(124, 58, 237, 0.35), rgba(255, 255, 255, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
}

body.landing .q-tr,
body.landing .preview-footer { color: rgba(255, 255, 255, 0.68); }

body.landing .q-tr[data-tt="previewTranslation"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

body.landing .q-tr[data-tt="previewTranslation"]::before {
  content: "\2726";
  opacity: 0.85;
}

@keyframes ttPopIn {
  from { opacity: 0; transform: translate3d(0, 6px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

body.landing .tt-anim {
  animation: ttPopIn 420ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

body.landing .preview-reveal {
  margin: 8px 12px 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: max-height 520ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 260ms ease, transform 260ms ease;
}

body.landing .preview-reveal-title {
  margin: 12px 0 8px;
  font-weight: 950;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

body.landing .preview-reveal-line {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.80);
  font-weight: 750;
  line-height: 1.45;
}

body.landing .preview-card.is-revealed .preview-reveal {
  max-height: 240px;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  padding: 12px 0 2px;
}

body.landing .preview-card.is-revealed .preview-footer {
  color: rgba(255, 255, 255, 0.78);
}

@media (prefers-reduced-motion: reduce) {
  body.landing .preview-card,
  body.landing .preview-reveal {
    transition: none !important;
  }
  body.landing .tt-anim {
    animation: none !important;
  }
}

body.landing .answer {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

/* Buttons: consistent premium dark UI */
:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  :is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
  }
}

/* Consistent surfaces across the whole landing */
body.landing .trust {
  background: rgba(15, 23, 42, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
}

body.landing .trust-item,
body.landing .benefit-pill,
body.landing .logo {
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30);
}

body.landing .logo {
  animation: none;
  background-image: none;
}

body.landing .section-alt {
  background: rgba(15, 23, 42, 0.52);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

body.landing .section-gradient {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10) 0%, rgba(124, 58, 237, 0.08) 100%);
}

body.landing .card,
body.landing .step,
body.landing .testimonial,
body.landing .faq-item,
body.landing .price-card,
body.landing .demo-surface {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

/* Pricing: ensure price parts are readable on the dark surface */
body.landing #pricing .currency,
body.landing #pricing .period {
  color: rgba(255, 255, 255, 0.74);
}

body.landing #pricing .amount {
  color: rgba(255, 255, 255, 0.96);
}

body.landing .step-num {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(124, 58, 237, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

/* App/Auth: match landing step number contrast */
:is(body.auth-page, body[data-tt-require-auth="1"]) .step-num {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(124, 58, 237, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

body.landing .card p,
body.landing .step p,
body.landing .testimonial p,
body.landing .who,
body.landing .faq-item p,
body.landing .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

body.landing .stars {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
}

body.landing .demo-list li,
body.landing .bullets li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

/* CTA: same dark theme, slightly stronger emphasis only */
body.landing .cta {
  background: rgba(15, 23, 42, 0.62);
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

body.landing .cta p {
  color: rgba(255, 255, 255, 0.74);
}

body.landing .cta-note {
  color: rgba(255, 255, 255, 0.70);
}

@media (min-width: 980px) {
  body.landing .hero-title { font-size: 52px; }
  body.landing .hero-subtitle { font-size: 17px; }
}

body.has-bottom-nav {
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
}

/* Better keyboard focus visibility */
:where(a, button, input, select, textarea, .btn, .lang-btn, .auth-tab, .tt-option):focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
}

:where(a, button, input, select, textarea, .btn, .lang-btn, .auth-tab, .tt-option) {
  -webkit-tap-highlight-color: transparent;
}

/* Faster feeling taps on mobile (no double-tap delay semantics) */
:where(a, button, .btn, .lang-btn, .auth-tab, .tt-option, .bottom-nav-item, .link-btn) {
  touch-action: manipulation;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
}

@media (max-width: 360px) {
  .container { padding: 0 14px; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--white);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 1000;
}

:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) .skip-link {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.skip-link:focus { left: 10px; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.18s ease, background 0.18s ease;
}


.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.10);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 18px; /* emoji fallback */
  line-height: 1;
}
.brand-text { font-size: 16px; }

/* Animated logo (inline SVG) */
.tt-logo {
  width: 30px;
  height: 30px;
  display: block;
  color: rgba(255, 255, 255, 0.96);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
  transform: translateZ(0);
}

.tt-logo .tt-logo-orbit {
  transform-origin: 32px 32px;
  animation: tt-logo-spin 6.5s linear infinite;
}

.tt-logo .tt-logo-mark {
  transform-origin: 32px 32px;
  animation: tt-logo-float 2.6s ease-in-out infinite;
}

.tt-logo .tt-logo-spark {
  transform-origin: 48px 16px;
  animation: tt-logo-pulse 1.8s ease-in-out infinite;
}

.brand:hover .tt-logo .tt-logo-orbit {
  animation-duration: 3.8s;
}

@keyframes tt-logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes tt-logo-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-1.6px); }
}

@keyframes tt-logo-pulse {
  0%, 100% { opacity: 0.65; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.06); }
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  color: rgba(15, 23, 42, 0.82);
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-links a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: rgba(15, 23, 42, 1);
}

.nav-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.lang-btn {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--white);
  color: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
  text-align: left;
  display: grid;
  gap: 2px;
  line-height: 1.1;
  position: relative;
  overflow: hidden;
}

.lang-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  background: radial-gradient(520px 160px at 30% 0%, rgba(37, 99, 235, 0.20), transparent 60%),
    radial-gradient(520px 160px at 90% 0%, rgba(124, 58, 237, 0.14), transparent 60%);
}

@media (hover: hover) and (pointer: fine) {
  .lang-btn:hover::before { opacity: 1; }
}

.lang-btn-top {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.8;
}

.lang-btn-main {
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-btn-sub {
  font-size: 11px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.62);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-width: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.28);
  color: rgba(255, 255, 255, 0.92);
}

:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) .lang-pill {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(37, 99, 235, 0.32);
}

/* Premium navbar CTA */
.nav-cta {
  text-align: left;
  line-height: 1.05;
}

.nav-cta-title {
  display: block;
  font-size: 13px;
  font-weight: 950;
}

/* Optional shorter mobile label for the navbar CTA */
.nav-cta-title--short { display: none; }

/* Landing navbar: slightly smaller controls for a premium look (desktop/tablet) */
body.landing .navbar .lang-btn,
body.landing .navbar .btn.btn-small {
  padding: 9px 10px;
  min-height: 40px;
}

body.landing .navbar .lang-btn-main { font-size: 13px; }
body.landing .navbar .lang-btn-sub { font-size: 10px; font-weight: 850; opacity: 0.88; }

/* Keep mobile tap targets comfortably large */
@media (max-width: 720px) {
  body.landing .navbar .lang-btn,
  body.landing .navbar .btn.btn-small {
    padding: 10px 12px;
    min-height: 44px;
  }
}

/* One-time premium nudge for language toggle (matches brand + focus tokens) */
.lang-btn.tt-attn::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.992);
  border: 1px solid rgba(37, 99, 235, 0.55);
  box-shadow:
    0 0 0 0 rgba(37, 99, 235, 0),
    0 14px 34px rgba(2, 6, 23, 0.10);
  animation: ttLangAttention 1.75s ease-out 1;
}

/* Gradient ring enhancement where supported */
@supports (-webkit-mask: linear-gradient(#000 0 0) content-box) {
  .lang-btn.tt-attn::after {
    border: none;
    padding: 1px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
}

@keyframes ttLangAttention {
  0% { opacity: 0; transform: scale(0.992); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0), 0 12px 28px rgba(2, 6, 23, 0.06); }
  18% { opacity: 1; transform: scale(1.000); box-shadow: 0 0 0 6px var(--focus), 0 14px 34px rgba(2, 6, 23, 0.10); }
  58% { opacity: 0.92; transform: scale(1.006); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.10), 0 16px 38px rgba(2, 6, 23, 0.12); }
  100% { opacity: 0; transform: scale(1.028); box-shadow: 0 0 0 16px rgba(37, 99, 235, 0.00), 0 14px 34px rgba(2, 6, 23, 0.06); }
}

/* Generic attention pulse for other important bilingual controls (e.g. translations toggle) */
.btn.tt-attn,
.tt-seg.tt-attn {
  position: relative;
  transform: translateZ(0);
}

.btn.tt-attn::after,
.tt-seg.tt-attn::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.992);
  border: 1px solid rgba(37, 99, 235, 0.55);
  box-shadow:
    0 0 0 0 rgba(37, 99, 235, 0),
    0 14px 34px rgba(2, 6, 23, 0.12);
  animation: ttBtnAttention 1.85s ease-out 1;
}

@supports (-webkit-mask: linear-gradient(#000 0 0) content-box) {
  .btn.tt-attn::after,
  .tt-seg.tt-attn::after {
    border: none;
    padding: 1px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
}

@keyframes ttBtnAttention {
  0% { opacity: 0; transform: scale(0.992); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0), 0 12px 28px rgba(2, 6, 23, 0.06); }
  20% { opacity: 1; transform: scale(1.000); box-shadow: 0 0 0 6px var(--focus), 0 14px 34px rgba(2, 6, 23, 0.12); }
  60% { opacity: 0.92; transform: scale(1.004); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.10), 0 16px 38px rgba(2, 6, 23, 0.12); }
  100% { opacity: 0; transform: scale(1.024); box-shadow: 0 0 0 16px rgba(37, 99, 235, 0.00), 0 14px 34px rgba(2, 6, 23, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
  .lang-btn.tt-attn::after {
    animation: none;
    opacity: 0;
  }

  .btn.tt-attn::after,
  .tt-seg.tt-attn::after {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 420px) {
  /* Keep the navbar tidy on very small screens */
  .lang-btn-top { display: none; }
  .lang-btn-sub { font-size: 10px; }
  .lang-btn { padding: 10px 10px; }

  .nav-cta-title { font-size: 13px; }
}

/* Account / Auth */
.auth-page {
  /* Background + tokens are provided by the shared dark theme above. */
  background: var(--bg);
}

.auth-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 18px;
}

.auth-hero-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-hero h2 {
  margin: 10px 0 8px;
}

.auth-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.auth-hero p {
  margin: 0 auto;
  color: var(--muted);
  font-weight: 700;
}


.auth-panel {
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}


.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.auth-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 14px;
  padding: 12px 12px;
  font-weight: 900;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.72);
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.96);
}

.auth-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 8px 10px;
  box-shadow: none;
}

.auth-card h3 {
  margin: 2px 0 10px;
  font-size: 18px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.form-submit {
  width: 100%;
}

@media (min-width: 520px) {
  .form-submit {
    width: auto;
    min-width: 180px;
  }
}

@media (max-width: 520px) {
  .auth-panel { padding: 12px; }
  .form-row { align-items: stretch; }
  .link-btn { width: 100%; text-align: center; padding: 10px 12px; border-radius: 12px; background: rgba(37, 99, 235, 0.06); }
  .link-btn:hover { text-decoration: none; background: rgba(37, 99, 235, 0.10); }
}

.auth-config {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 16px 16px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  margin: 16px 0;
}

.auth-config-title {
  font-weight: 900;
  margin-bottom: 4px;
}

.auth-status {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 14px 0 18px;
}

.auth-status-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.auth-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.auth-status-text {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.84);
}

.auth-user-email {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.96);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 52vw;
}

@media (max-width: 520px) {
  /* Account: make signed-in status read cleanly on phones */
  .auth-status { padding: 12px 12px; gap: 12px; }

  .auth-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .auth-user-email {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .auth-status-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-content: stretch;
  }

  .auth-status-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.auth-hero-email {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.96);
}

.link-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: 2px;
  text-align: left;
  color: rgba(147, 197, 253, 0.98);
  font-weight: 800;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Practice: keep Skip comfortably tappable */
button.link-btn[data-tt="skip"] {
  min-width: 64px;
  min-height: 32px;
  padding: 8px 10px;
  border-radius: 12px;
}

@media (max-width: 520px) {
  .link-btn {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.06);
  }

  .link-btn:hover {
    text-decoration: none;
    background: rgba(37, 99, 235, 0.10);
  }
}

/* Dark-mode safe form styling on auth + protected app pages */
:is(body.auth-page, body[data-tt-require-auth="1"]) .form-label {
  color: rgba(255, 255, 255, 0.82);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .form-input {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .form-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .form-input:focus {
  border-color: rgba(147, 197, 253, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .auth-message {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.90);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-option {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-option.selected {
  border-color: rgba(147, 197, 253, 0.60);
  background: rgba(37, 99, 235, 0.14);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-option.correct {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.16);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-option.wrong {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.16);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

/* Practice/Mock UI: ensure all TT surfaces stay dark on auth/protected pages */
:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-feedback,
:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-result {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-explain {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-vocab {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-vocab-row {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-vocab-tr {
  color: rgba(255, 255, 255, 0.70);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-modal-sheet {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 30px 95px rgba(0, 0, 0, 0.65);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-modal-title {
  color: rgba(255, 255, 255, 0.96);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-qnav-pill {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-qnav-pill.unanswered {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-qnav-btn {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

/* Ensure core card surfaces are readable in the app dark theme */
body[data-tt-require-auth="1"] .card,
body[data-tt-require-auth="1"] .step,
body[data-tt-require-auth="1"] .faq-item,
body[data-tt-require-auth="1"] .testimonial {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

body[data-tt-require-auth="1"] .card p,
body[data-tt-require-auth="1"] .step p,
body[data-tt-require-auth="1"] .testimonial p {
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 860px) {
  .auth-user-email { max-width: 70vw; }
}

@media (max-width: 620px) {
  .auth-status {
    grid-template-columns: 1fr;
  }

  .auth-status-actions {
    width: 100%;
    justify-content: stretch;
  }

  .auth-status-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.auth-form {
  display: grid;
  gap: 10px;
}

.form-label {
  font-weight: 800;
  color: rgba(15, 23, 42, 0.86);
  font-size: 13px;
}

.form-input {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
}

/* iOS Safari will zoom the page for font-sizes < 16px on inputs */
@media (max-width: 720px) {
  .form-input { font-size: 16px; }
}

.form-input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.form-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.auth-message {
  margin-top: 14px;
  border-radius: var(--radius);
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}
.tt-options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.tt-option {
  width: 100%;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.75);
  padding: 12px 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.9);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  min-height: 44px;
}
@media (hover: hover) and (pointer: fine) {
  .tt-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.08);
  }
}
.tt-option.selected {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}
.tt-option.correct {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.10);
}
.tt-option.wrong {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.10);
}
.tt-option:disabled {
  opacity: 0.92;
  cursor: not-allowed;
}
.tt-feedback,
.tt-result {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}
.tt-session-result {
  margin-top: 16px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .03));
}
.tt-session-headline {
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 18px;
  margin-bottom: 6px;
}
.tt-session-score {
  font-weight: 700;
  color: rgba(255, 255, 255, .95);
  margin-bottom: 4px;
}
.tt-session-sub {
  color: rgba(255, 255, 255, .72);
  margin-bottom: 12px;
}
.tt-session-wronglist {
  display: grid;
  gap: 10px;
}
.tt-session-perfect {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, .25);
  background: rgba(34, 197, 94, .10);
  color: rgba(220, 255, 235, .95);
}
.tt-wrong-item {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .18);
  overflow: hidden;
}
.tt-wrong-summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
}
.tt-wrong-item summary::-webkit-details-marker { display: none; }
.tt-wrong-item[open] .tt-wrong-summary {
  background: rgba(255, 255, 255, .04);
}
.tt-wrong-body {
  padding: 12px 12px 14px;
  color: rgba(255, 255, 255, .78);
}
.tt-wrong-qtr {
  color: rgba(255, 255, 255, .85);
  margin-bottom: 10px;
}
.tt-wrong-your,
.tt-wrong-correct,
.tt-wrong-expltitle {
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .85);
}
.tt-wrong-yourval {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(244, 63, 94, .22);
  background: rgba(244, 63, 94, .10);
}
.tt-wrong-correctval {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, .22);
  background: rgba(34, 197, 94, .10);
}
.tt-wrong-expl {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .82);
}
.tt-session-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.tt-session-actions .btn {
  flex: 1;
}

/* Topic-session progress + finish button */
.tt-session-progress{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
}
.tt-session-progressbar{
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  overflow:hidden;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);
}
.tt-session-progressfill{
  height:100%;
  width:0%;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(99,102,241,.95), rgba(168,85,247,.90));
  box-shadow:0 0 24px rgba(168,85,247,.22);
  transition:width .25s ease;
}
.tt-session-progressmeta{
  margin-top:8px;
  font-size:13px;
  color:rgba(255,255,255,.72);
}

.tt-finish-early{
  white-space:nowrap;
}
@media (max-width: 520px){
  /* Keep the row usable on very small widths */
  .tt-finish-early{
    padding-left:12px;
    padding-right:12px;
  }
}

@media (max-width: 520px) {
  .tt-session-actions { flex-direction: column; }
}

.tt-feedback.good,
.tt-result.good {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.10);
}
.tt-feedback.bad,
.tt-result.bad {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.10);
}

.tt-result-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tt-explain {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-weight: 800;
}

.tt-vocab {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.65);
}

.tt-vocab-title {
  font-weight: 900;
  margin-bottom: 8px;
}

.tt-vocab-list {
  display: grid;
  gap: 8px;
}

.tt-vocab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.75);
}

.tt-vocab-en {
  font-weight: 900;
}

.tt-vocab-tr {
  color: var(--muted);
  font-weight: 800;
}
.tt-radio {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.75);
  padding: 10px 12px;
  font-weight: 800;
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-radio {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-radio input {
  accent-color: rgba(147, 197, 253, 0.95);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-radio.is-selected {
  border-color: rgba(147, 197, 253, 0.55);
  background: rgba(37, 99, 235, 0.14);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-radio.is-selected input {
  accent-color: rgba(59, 130, 246, 0.98);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-radio.is-correct {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-radio.is-wrong {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-radio.is-correct input {
  accent-color: rgba(16, 185, 129, 0.95);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-radio.is-wrong input {
  accent-color: rgba(239, 68, 68, 0.95);
}

@media (max-width: 520px) {
  .tt-radio { padding: 12px 12px; gap: 12px; }
  .tt-radio input { width: 18px; height: 18px; }
}
.tt-radio input {
  margin-top: 2px;
}
.tt-timer {
  font-variant-numeric: tabular-nums;
}
.tt-timer.urgent {
  color: rgba(239, 68, 68, 0.95);
}

.tt-mock-toolbar {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tt-mock-toolbar .btn {
  padding: 10px 12px;
  border-radius: 14px;
}

/* Mock test: header meta row that actually behaves well on mobile */
.tt-mock-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tt-mock-meta .form-hint {
  margin: 0;
  font-weight: 800;
}

@media (max-width: 520px) {
  .tt-mock-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    text-align: left;
  }

  .tt-mock-meta .form-hint:last-child {
    grid-column: 1 / -1;
  }

  .tt-mock-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .tt-mock-toolbar .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  /* Mock test navigation buttons: make them thumb-friendly */
  [data-tt="mockBody"] .form-row .btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }

  [data-tt="mockBody"] .form-row .form-submit {
    flex: 1 1 100%;
  }
}

@media (max-width: 360px) {
  .tt-mock-toolbar { grid-template-columns: 1fr; }
}

/* When the question list modal is open, hide bottom nav so nothing clashes */
body.tt-modal-open .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.tt-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.tt-modal.open {
  display: block;
}

.tt-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(6px);
}

.tt-modal-sheet {
  position: absolute;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  width: min(720px, calc(100% - 24px));
  max-height: min(78vh, 640px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.35);
  padding: 12px;
}

.tt-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tt-modal-title {
  font-weight: 950;
  letter-spacing: -0.01em;
}

.tt-modal-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.tt-modal-meta .tt-spacer {
  width: 10px;
}

.tt-qnav-legend {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tt-qnav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.85);
}

.tt-qnav-pill.answered {
  border-color: rgba(16, 185, 129, 0.30);
  background: rgba(16, 185, 129, 0.10);
}

.tt-qnav-pill.unanswered {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.04);
}

.tt-qnav-pill.flagged {
  border-color: rgba(245, 158, 11, 0.30);
  background: rgba(245, 158, 11, 0.10);
}

.tt-qnav-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 520px) {
  .tt-qnav-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

.tt-qnav-btn {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  min-height: 40px;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.92);
  cursor: pointer;
}

.tt-qnav-btn.is-answered {
  border-color: rgba(16, 185, 129, 0.30);
  background: rgba(16, 185, 129, 0.10);
}

.tt-qnav-btn.is-flagged {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.tt-qnav-btn.is-current {
  border-color: rgba(37, 99, 235, 0.50);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.tt-modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Study mode */
.tt-studybar {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.55);
}

.tt-studybar-left {
  display: grid;
  gap: 2px;
  min-width: 160px;
}

.tt-studybar-title {
  font-weight: 950;
  letter-spacing: -0.01em;
}

.tt-studybar-sub {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.62);
}

.tt-studybar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tt-bilingual-main {
  display: block;
  font-weight: 950;
  line-height: 1.25;
}

.tt-bilingual-sub {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(15, 23, 42, 0.16);
  color: rgba(15, 23, 42, 0.84);
  font-weight: 850;
  line-height: 1.35;
}

.tt-bilingual-hint {
  display: block;
  margin-top: 8px;
  color: rgba(15, 23, 42, 0.55);
  font-size: 12px;
  font-weight: 800;
}

/* Tap-to-reveal hint animation (added/removed by JS) */
.tt-bilingual-hint.tt-hint-attn {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.10);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.10);
  animation: ttHintPulse 2.4s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.tt-bilingual-hint.tt-hint-attn::after {
  content: ' →';
  opacity: 0.95;
  display: inline-block;
  transform: translateX(0);
  animation: ttHintArrow 1.2s ease-in-out 2;
}

@keyframes ttHintPulse {
  0% { transform: translate3d(0, 6px, 0); opacity: 0.0; }
  18% { transform: translate3d(0, 0, 0); opacity: 1; }
  55% { transform: translate3d(0, 0, 0); opacity: 1; }
  100% { transform: translate3d(0, 0, 0); opacity: 0.92; }
}

@keyframes ttHintArrow {
  0% { transform: translateX(0); }
  50% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

.tt-opt-main {
  font-weight: 900;
  line-height: 1.25;
}

.tt-opt-sub {
  margin-top: 6px;
  color: rgba(15, 23, 42, 0.66);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.tt-study-body {
  margin-top: 10px;
}

.tt-study-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.tt-study-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.70);
  margin-top: 10px;
}

.tt-study-label {
  font-weight: 950;
  letter-spacing: -0.01em;
}

.tt-study-seg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.tt-study-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.tt-seg {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 950;
  cursor: pointer;
  min-height: 44px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tt-seg.is-active {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.tt-vocab-row.tt-vocab-flash {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.75);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-studybar {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-studybar-sub {
  color: rgba(255, 255, 255, 0.66);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-bilingual-sub {
  border-top-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-bilingual-hint {
  color: rgba(255, 255, 255, 0.60);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-opt-sub {
  color: rgba(255, 255, 255, 0.68);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-study-row {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-seg {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .tt-seg.is-active {
  border-color: rgba(147, 197, 253, 0.60);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22);
}

.tt-flagged {
  border-color: rgba(245, 158, 11, 0.35) !important;
  background: rgba(245, 158, 11, 0.10) !important;
}

.auth-message.success {
  border-color: rgba(16, 185, 129, 0.30);
  background: rgba(16, 185, 129, 0.08);
}

.auth-message.error {
  border-color: rgba(239, 68, 68, 0.30);
  background: rgba(239, 68, 68, 0.08);
}

.nav-toggle {
  display: none;
  appearance: none;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.nav-toggle-lines {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(15, 23, 42, 0.8);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(15, 23, 42, 0.8);
}

.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) .nav-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) .nav-toggle-lines,
:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) .nav-toggle-lines::before,
:is(body.landing, body.auth-page, body[data-tt-require-auth="1"]) .nav-toggle-lines::after {
  background: rgba(255, 255, 255, 0.92);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .tt-logo .tt-logo-orbit,
  .tt-logo .tt-logo-mark,
  .tt-logo .tt-logo-spark {
    animation: none !important;
  }
}

/* Anchor jump offsets (sticky navbar) */
:is(header, section)[id] { scroll-margin-top: 96px; }
@media (max-width: 520px) {
  :is(header, section)[id] { scroll-margin-top: 84px; }
}

.btn:active { transform: translateY(1px); }
.btn-small { padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.btn-large { padding: 16px 22px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.32);
    transform: translateY(-1px);
  }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.06);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(37, 99, 235, 0.22);
    transform: translateY(-1px);
  }
}

/* Keep secondary buttons readable on dark surfaces (landing hero / CTA sections) */
.hero .btn-secondary,
.cta .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .hero .btn-secondary:hover,
  .cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(124, 58, 237, 0.35), transparent 55%),
    radial-gradient(900px 600px at 80% 30%, rgba(37, 99, 235, 0.35), transparent 55%),
    linear-gradient(135deg, #0b1220 0%, #0f172a 60%, #0b1220 100%);
  color: var(--white);
  padding: 56px 0 44px;
}

.hero-bg {
  position: absolute;
  inset: -120px;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  mix-blend-mode: screen;
  animation: blobFloat 10s ease-in-out infinite;
}

.blob-1 {
  left: 4%;
  top: 10%;
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.9), rgba(124, 58, 237, 0) 60%);
  animation-duration: 12s;
}

.blob-2 {
  right: 8%;
  top: 18%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.9), rgba(37, 99, 235, 0) 60%);
  animation-duration: 14s;
  animation-delay: -2s;
}

.blob-3 {
  left: 35%;
  bottom: 2%;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.6), rgba(14, 165, 233, 0) 60%);
  animation-duration: 16s;
  animation-delay: -6s;
}

@keyframes blobFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, -18px, 0) scale(1.05); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: heroIn 700ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  animation: badgeGlow 2.8s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
  50% { box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22); }
}

.hero-title {
  margin: 14px 0 12px;
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.hero-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

.hero-stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}

.stat-number { font-size: 22px; font-weight: 900; }
.stat-label { font-size: 12px; color: rgba(255, 255, 255, 0.8); font-weight: 700; }

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* High-conversion offer section (landing) */
.sell {
  padding: 34px 0 10px;
}

.sell-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: start;
}

.sell-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.sell-title {
  margin: 10px 0 10px;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.5px;
}

.sell-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 750;
  max-width: 64ch;
}

.sell-points {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.sell-points li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 12px 12px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.88);
}

.sell-points li::before {
  content: "\2713";
  display: inline-block;
  margin-right: 10px;
  color: rgba(52, 211, 153, 0.92);
}

.sell-card {
  z-index: 10;
  position: relative;
  top: auto;
}

/* Only use sticky on tall viewports so the card never clips content. */
@media (min-width: 900px) and (min-height: 860px) {
  .sell-card {
    position: sticky;
    top: 92px;
  }
}

.sell-steps {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.sell-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.sell-step-title {
  font-weight: 950;
  margin-bottom: 2px;
}

.sell-step-text {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
  font-size: 13px;
}

.sell-cta {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Desktop: keep CTAs clearly visible in the left column (no scroll needed). */
.sell-cta-side { display: none; }

@media (min-width: 900px) {
  .sell-cta-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
    gap: 10px;
  }

  .sell-cta-side .btn {
    width: 100%;
    justify-content: center;
  }

  .sell-card .sell-cta { display: none; }
}

.sell-note {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.70);
  font-size: 13px;
}

.hero-preview {
  display: flex;
  justify-content: flex-end;
}

.preview-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
  animation: cardFloat 6.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes cardFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

.preview-top { display: flex; gap: 10px; align-items: center; }

.chip {
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(37, 99, 235, 0.32);
  color: rgba(255, 255, 255, 0.92);
}

.chip-muted {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
}

.preview-q { padding: 14px 12px 8px; }
.q-en { margin: 0; font-weight: 900; }
.q-tr { margin: 6px 0 0; color: rgba(255, 255, 255, 0.75); font-size: 13px; }

.sign {
  margin: 14px 0 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  font-size: 44px;
  text-align: center;
  padding: 18px 10px;
}

.preview-answers {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
}

.answer {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.preview-footer {
  padding: 10px 12px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Trust bar */
.trust {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.trust-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 14px 0;
}

.trust-item {
  font-weight: 800;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.72);
  background: rgba(2, 6, 23, 0.03);
  border: 1px solid rgba(2, 6, 23, 0.06);
  padding: 10px 12px;
  border-radius: 999px;
}

/* Logo strip */
.logo-strip {
  padding-bottom: 18px;
}

/* Premium card treatment for the strip (keeps the white trust section but adds a premium surface) */
.premium-strip {
  margin-top: 14px;
  padding: 16px 16px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background:
    radial-gradient(760px 240px at 20% 0%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(760px 240px at 90% 0%, rgba(124, 58, 237, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.10);
  backdrop-filter: blur(10px);
}

/* Landing uses a premium DARK theme: keep this strip on-brand (no white card). */
body.landing .premium-strip {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(760px 240px at 20% 0%, rgba(37, 99, 235, 0.16), transparent 60%),
    radial-gradient(760px 240px at 90% 0%, rgba(124, 58, 237, 0.12), transparent 60%),
    rgba(15, 23, 42, 0.62);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
}

.logo-strip-title {
  text-align: center;
  margin: 0 0 12px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.logo {
  font-weight: 900;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.72);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 50%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 10px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
  background-size: 200% 100%;
  animation: shimmer 5.5s ease-in-out infinite;
}

@media (max-width: 520px) {
  .premium-strip {
    padding: 14px 12px;
    border-radius: 18px;
  }

  /* Make the logo chips equal-feel on phone */
  .logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-items: stretch;
  }

  .logo {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 10px;
  }
}

@media (max-width: 360px) {
  .logos {
    grid-template-columns: 1fr;
  }
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

/* Sections */
.section { padding: 64px 0; }
.section-alt {
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Dashboard (app-style) */
.dash-hero {
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(900px 420px at 80% 0%, rgba(124, 58, 237, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.90));
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.10);
}

.dash-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.dash-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.7);
  background: rgba(2, 6, 23, 0.03);
  border: 1px solid rgba(2, 6, 23, 0.06);
  padding: 8px 10px;
  border-radius: 999px;
}

.dash-title {
  margin: 10px 0 6px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.dash-subtitle {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
  font-weight: 750;
  max-width: 62ch;
}

.dash-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.kpi-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.06);
}

.kpi-label {
  font-size: 12px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.65);
}

.kpi-value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.3px;
}

.dash-note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
  font-weight: 800;
}

.dash-reco {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
}

.dash-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
}

.dash-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.60);
}

.dash-card-title {
  margin-top: 8px;
  font-weight: 950;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.dash-card-sub {
  margin-top: 6px;
  color: rgba(15, 23, 42, 0.70);
  font-weight: 750;
  font-size: 13px;
}

/* Dashboard: dark theme overrides for protected pages */
body[data-tt-require-auth="1"] .dash-hero {
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(900px 420px at 80% 0%, rgba(124, 58, 237, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.72));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
}

body[data-tt-require-auth="1"] .dash-kicker {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-tt-require-auth="1"] .dash-subtitle,
body[data-tt-require-auth="1"] .dash-note {
  color: rgba(255, 255, 255, 0.72);
}

body[data-tt-require-auth="1"] .kpi-card {
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

body[data-tt-require-auth="1"] .kpi-label {
  color: rgba(255, 255, 255, 0.70);
}

body[data-tt-require-auth="1"] .dash-card {
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

body[data-tt-require-auth="1"] .dash-card-kicker {
  color: rgba(255, 255, 255, 0.78);
}

body[data-tt-require-auth="1"] .dash-card-sub {
  color: rgba(255, 255, 255, 0.70);
}

.dash-card-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .dash-reco { grid-template-columns: 1fr; }
  .dash-card-actions .btn { width: 100%; }
}

@media (max-width: 720px) {
  .dash-title { font-size: 28px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .dash-actions .btn { width: 100%; }
}

/* Demo */
.demo-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
}

.demo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.7);
  background: rgba(2, 6, 23, 0.03);
  border: 1px solid rgba(2, 6, 23, 0.06);
  padding: 8px 10px;
  border-radius: 999px;
}

.demo-title {
  margin: 12px 0 10px;
  font-size: 26px;
  letter-spacing: -0.3px;
}

.demo-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
  color: rgba(15, 23, 42, 0.82);
  font-weight: 800;
}

.demo-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  background: rgba(2, 6, 23, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 12px 12px;
}

.tick {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: rgba(22, 163, 74, 1);
  font-weight: 900;
  margin-top: 1px;
}

.demo-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.demo-surface {
  border-radius: 26px;
  background: radial-gradient(700px 320px at 20% 20%, rgba(124, 58, 237, 0.10), transparent 55%),
    radial-gradient(700px 320px at 80% 30%, rgba(37, 99, 235, 0.10), transparent 55%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.01));
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 16px;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.10);
}

.demo-phone {
  border-radius: 24px;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  overflow: hidden;
}

.demo-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.demo-topbar .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.demo-topbar-title {
  margin-left: auto;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.demo-card {
  padding: 14px;
}

.demo-card-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.demo-q {
  padding: 14px 0 10px;
}

.demo-q-title {
  font-weight: 900;
  letter-spacing: -0.2px;
}

.demo-q-sub {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.demo-opts {
  display: grid;
  gap: 10px;
}

.demo-opt {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px;
  font-weight: 800;
}

.demo-explain {
  margin-top: 12px;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.20);
  border-radius: 16px;
  padding: 12px;
}

.demo-explain-title { font-weight: 900; font-size: 12px; opacity: 0.92; }
.demo-explain-text { margin-top: 6px; color: rgba(255, 255, 255, 0.86); font-size: 13px; }

.section-gradient {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.4px;
}

.section-head p { margin: 0; color: var(--muted); }

/* Benefits */
.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit {
  border-color: rgba(15, 23, 42, 0.10);
}

.benefit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(124, 58, 237, 0.14));
  border: 1px solid rgba(37, 99, 235, 0.18);
  font-size: 20px;
}

.benefit-kicker {
  font-weight: 900;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.7);
  background: rgba(2, 6, 23, 0.03);
  border: 1px solid rgba(2, 6, 23, 0.06);
  padding: 8px 10px;
  border-radius: 999px;
}

.benefit-strip {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.benefit-pill {
  font-weight: 900;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.75);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
  padding: 10px 12px;
  border-radius: 999px;
}

.grid { display: grid; gap: 16px; }
.grid.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(124, 58, 237, 0.16), rgba(15, 23, 42, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.28);
  }

  .card:hover::before { opacity: 1; }
}

.card-icon { font-size: 28px; }
.card h3 { margin: 10px 0 8px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); }

/* Steps */
.grid.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.22);
  font-weight: 900;
  color: rgba(15, 23, 42, 0.85);
}

.step h3 { margin: 12px 0 8px; }
.step p { margin: 0; color: var(--muted); }

/* Testimonials */
.grid.testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.testimonial {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
}

.stars {
  color: #f59e0b;
  letter-spacing: 1px;
  font-size: 14px;
  margin-bottom: 10px;
}

.testimonial p { margin: 0; color: rgba(15, 23, 42, 0.86); }
.who { margin-top: 12px; color: var(--muted); font-weight: 800; font-size: 13px; }

/* Proof images */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 860px) {
  .proof-grid { grid-template-columns: 1fr; }
}

.proof-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.proof-link {
  display: block;
  outline: none;
  cursor: default;
}

.proof-link:focus-visible {
  box-shadow: 0 0 0 4px var(--focus);
}

.proof-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.proof-cap {
  padding: 12px 14px;
}

.proof-cap-title {
  font-weight: 900;
  letter-spacing: -0.2px;
}

.proof-cap-text {
  color: var(--muted);
  font-size: 14px;
}

.proof-cta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.proof-note {
  color: var(--muted);
  font-weight: 700;
}

.proof-note-mobile { display: none; }

@media (max-width: 860px) {
  .proof-note-mobile { display: inline-block; margin-top: 10px; }
  .proof-note-desktop { display: none; }
}

/* Explain */
.explain {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.explain-text h2 { margin-top: 0; }

.bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.bullets li {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.bullet-title { display: block; font-weight: 900; margin-bottom: 4px; }
.bullet-text { display: block; color: var(--muted); }

.explain-box {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 16px;
  color: #fff;
  box-shadow: var(--shadow);
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.compare-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px;
  text-align: center;
}

.compare-list {
  margin: 10px 0 0;
  padding-left: 18px;
  text-align: left;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.45;
}

.compare-list li {
  margin: 6px 0;
}

.compare-label { font-weight: 900; opacity: 0.9; font-size: 13px; }
.compare-value { font-size: 38px; font-weight: 900; margin: 6px 0; }
.compare-value.bad { color: #fca5a5; }
.compare-value.good { color: #86efac; }
.compare-sub { font-size: 12px; opacity: 0.85; }

/* Pricing */
.grid.pricing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.pricing-single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

@media (min-width: 900px) {
  /* Pricing only: let the section use full available width on desktop,
     while keeping content centered and not awkwardly stretched. */
  body.landing #pricing .pricing-container {
    max-width: none;
    width: 100%;
  }

  body.landing #pricing .pricing-content {
    width: min(1320px, 100%);
    margin: 0 auto;
  }

  body.landing #pricing .pricing-single {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    justify-items: stretch;
    width: 100%;
  }

  body.landing #pricing .price-card.price-lifetime {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 980px) {
  /* Pricing (desktop only): premium layout + strong hierarchy, mobile untouched */
  body.landing #pricing.section {
    padding: 44px 0;
  }

  body.landing #pricing .price-card.price-lifetime {
    width: 100%;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;

    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    column-gap: 34px;
    row-gap: 12px;
    align-items: start;

    padding: 26px 28px;
    border-radius: 26px;
    overflow: hidden;
    position: relative;

    transition:
      transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1),
      box-shadow 280ms cubic-bezier(0.2, 0.9, 0.2, 1),
      border-color 280ms ease,
      background-color 280ms ease;
  }

  /* Subtle premium sheen and depth */
  body.landing #pricing .price-card.price-lifetime::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(900px 380px at 12% 0%, rgba(124, 58, 237, 0.18), transparent 58%),
      radial-gradient(760px 360px at 92% 10%, rgba(37, 99, 235, 0.16), transparent 58%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 55%);
    opacity: 0.9;
  }

  /* Animated premium sheen layer (desktop only) */
  body.landing #pricing .price-card.price-lifetime::after {
    content: "";
    position: absolute;
    inset: -2px;
    pointer-events: none;
    background:
      linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 35%,
        rgba(255, 255, 255, 0.02) 48%,
        transparent 65%
      );
    background-size: 240% 100%;
    background-position: -120% 0;
    opacity: 0.55;
    mix-blend-mode: overlay;
    animation: pricingSheen 8.5s ease-in-out infinite;
  }

  body.landing #pricing .price-card.price-lifetime > * {
    position: relative;
    min-width: 0; /* allow shrink/wrap inside grid */
  }

  /* Make the badge feel like a product tag (desktop only) */
  body.landing #pricing .price-card.price-lifetime .badge {
    position: static;
    justify-self: end;
    margin: 0 0 2px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }

  body.landing #pricing .price-card.price-lifetime h3 {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.02em;
  }

  body.landing #pricing .price-card.price-lifetime .price-desc,
  body.landing #pricing .price-card.price-lifetime .list {
    grid-column: 1;
  }

  body.landing #pricing .price-card.price-lifetime .price-highlights,
  body.landing #pricing .price-card.price-lifetime .price,
  body.landing #pricing .price-card.price-lifetime .btn,
  body.landing #pricing .price-card.price-lifetime .price-note {
    grid-column: 2;
  }

  body.landing #pricing .price-card.price-lifetime .price-desc {
    margin-top: 8px;
    font-size: 1.02rem;
    line-height: 1.45;
  }

  body.landing #pricing .price-card.price-lifetime .price-highlights {
    margin-top: 2px;
    justify-content: flex-start;
    padding: 12px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.landing #pricing .price-card.price-lifetime .price {
    margin: 12px 0 10px;
    padding: 14px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    justify-content: center;
    gap: 10px;
  }

  body.landing #pricing .price-card.price-lifetime .currency {
    font-size: 15px;
    font-weight: 900;
    opacity: 0.95;
  }

  body.landing #pricing .price-card.price-lifetime .amount {
    font-size: 40px;
    letter-spacing: -0.02em;
    display: inline-block;
    text-shadow:
      0 0 0 rgba(37, 99, 235, 0),
      0 0 0 rgba(124, 58, 237, 0);
    animation: pricingAmountPulse 3.2s ease-in-out infinite;
  }

  body.landing #pricing .price-card.price-lifetime .period {
    font-size: 13px;
    font-weight: 900;
    opacity: 0.9;
  }

  body.landing #pricing .price-card.price-lifetime .list {
    margin: 12px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    font-size: 0.98rem;
    line-height: 1.35;
  }

  body.landing #pricing .price-card.price-lifetime .list li {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
  }

  body.landing #pricing .price-card.price-lifetime .btn {
    width: 100%;
    margin-top: 4px;
    padding: 12px 14px;
    font-size: 15px;
  }

  body.landing #pricing .price-card.price-lifetime .price-note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.78);
    font-size: 11.5px;
    line-height: 1.25;
    opacity: 0.92;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@keyframes pricingSheen {
  0%, 10% { background-position: -160% 0; opacity: 0.32; }
  45% { background-position: 80% 0; opacity: 0.60; }
  70% { background-position: 160% 0; opacity: 0.34; }
  100% { background-position: 220% 0; opacity: 0.30; }
}

@keyframes pricingAmountPulse {
  0%, 100% {
    text-shadow:
      0 0 0 rgba(37, 99, 235, 0),
      0 0 0 rgba(124, 58, 237, 0);
    transform: translate3d(0, 0, 0);
  }
  50% {
    text-shadow:
      0 0 18px rgba(37, 99, 235, 0.22),
      0 0 28px rgba(124, 58, 237, 0.16);
    transform: translate3d(0, -0.5px, 0);
  }
}

/* Pricing (desktop): micro-interactions for a premium feel */
@media (min-width: 980px) and (hover: hover) and (pointer: fine) {
  body.landing #pricing .price-card.featured {
    transform: none;
  }

  body.landing #pricing .price-card.price-lifetime:hover,
  body.landing #pricing .price-card.price-lifetime:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.58);
    border-color: rgba(255, 255, 255, 0.20);
  }

  body.landing #pricing .price-card.price-lifetime:hover::after {
    opacity: 0.70;
  }

  body.landing #pricing .price-card.price-lifetime .chip {
    transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
  }

  body.landing #pricing .price-card.price-lifetime .chip:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
  }

  body.landing #pricing .price-card.price-lifetime .list li:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
  }

  body.landing #pricing .price-card.price-lifetime .btn.btn-primary {
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
  }

  body.landing #pricing .price-card.price-lifetime .btn.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.25);
    filter: saturate(1.05);
  }
}

.price-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
  position: relative;
}

.price-card.featured {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.14);
  transform: translateY(-6px);
}

.price-lifetime {
  background:
    radial-gradient(900px 340px at 20% 0%, rgba(124, 58, 237, 0.08), transparent 55%),
    radial-gradient(900px 340px at 80% 10%, rgba(37, 99, 235, 0.08), transparent 55%),
    #ffffff;
}

.price-note {
  margin-top: 12px;
  color: rgba(15, 23, 42, 0.62);
  font-weight: 900;
  font-size: 12px;
}

.badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 10px; }
.currency { color: rgba(15, 23, 42, 0.6); font-weight: 900; }
.amount { font-size: 40px; font-weight: 900; }
.period { color: rgba(15, 23, 42, 0.6); font-weight: 900; }

.price-desc {
  margin: 10px 0 0;
  color: var(--muted);
}

.price-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.list {
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
}

.faq-item summary { cursor: pointer; font-weight: 900; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 10px 0 0; color: var(--muted); }

/* CTA */
.cta {
  background: linear-gradient(135deg, #0b1220 0%, #0f172a 60%, #0b1220 100%);
  color: #fff;
  padding: 66px 0;
  text-align: center;
}

.cta h2 { margin: 0 0 10px; font-size: 38px; }

.cta p {
  margin: 0 auto 18px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

.cta-note {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
  font-size: 13px;
}

/* App CTA box (dashboard/practice) */
.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.cta-box p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.cta-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .cta-actions .btn { width: 100%; }
}

/* Footer */
.footer {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.86);
  padding: 28px 0;
}

/* Bottom navigation (app-style) */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 720px);
  z-index: 250;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.18);
}

/* Bottom nav: dark mode for auth + protected app pages */
:is(body.auth-page, body[data-tt-require-auth="1"]) .bottom-nav {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
}

.bottom-nav-item {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: rgba(15, 23, 42, 0.78);
  min-height: 50px;
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .bottom-nav-item {
  color: rgba(255, 255, 255, 0.82);
}

.bn-icon {
  font-size: 18px;
  line-height: 1;
}

.bn-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.bottom-nav-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.12));
  border-color: rgba(37, 99, 235, 0.22);
  color: rgba(15, 23, 42, 0.95);
}

:is(body.auth-page, body[data-tt-require-auth="1"]) .bottom-nav-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.20), rgba(124, 58, 237, 0.14));
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.96);
}

.bottom-nav-item.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .bottom-nav-item:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
  }

  :is(body.auth-page, body[data-tt-require-auth="1"]) .bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
  }
}

@supports (padding: max(0px)) {
  .bottom-nav {
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  .bottom-nav {
    width: min(calc(100% - 20px), 720px);
    gap: 4px;
    padding: 6px;
    border-radius: 18px;
  }

  .bottom-nav-item {
    padding: 9px 6px;
    min-height: 48px;
    border-radius: 14px;
  }

  .bn-icon { font-size: 17px; }
  .bn-label { font-size: 10px; }
}

@media (max-width: 380px) {
  .bottom-nav { width: min(calc(100% - 20px), 720px); }
  .bn-label { font-size: 10px; }
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-title { font-weight: 900; margin-bottom: 6px; color: #fff; }

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 850;
  font-size: 13px;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
}

.footer-meta {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 750;
}

.install {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px;
}

.install p { margin: 0 0 10px; font-weight: 800; }

/* Hide install banner on desktop (desktop users can still install from the browser menu). */
@media (min-width: 981px) {
  .install { display: none !important; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-preview { justify-content: flex-start; }
  .grid.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.testimonials { grid-template-columns: 1fr; }
  .explain { grid-template-columns: 1fr; }
  .grid.pricing { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .benefit-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }

  /* Keep top nav from feeling cramped on small desktops */
  .nav-links { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .nav-links a { font-size: 13px; padding: 8px 8px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-grid; place-items: center; }

  .nav-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 10px;
  }

  /* Intentional 2-row mobile navbar:
     Row 1: brand (left) + menu (right)
     Row 2: language (left) + pay (right) */
  .brand { grid-column: 1; justify-self: start; }
  .nav-toggle { grid-column: 2; justify-self: end; }

  .brand { min-width: 0; }

  .brand-text {
    font-size: 14px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-text { font-size: 15px; }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0 2px;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 10px;
  }

  .nav-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 10px;
  }

  /* Make the two top actions equal size on mobile */
  body.landing .navbar .nav-actions {
    width: min(520px, 100%);
    padding: 4px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  }

  body.landing .navbar .nav-actions .lang-btn,
  body.landing .navbar .nav-actions .nav-cta {
    width: 100%;
    min-width: 0;
  }

  body.landing .navbar .nav-actions .lang-btn { justify-self: start; }
  body.landing .navbar .nav-actions .nav-cta { justify-self: end; }

  /* Premium, unified control cluster */
  body.landing .navbar .nav-actions .lang-btn {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
  }

  body.landing .navbar .nav-actions .nav-cta.btn-primary {
    box-shadow: none;
  }

  body.landing .navbar .nav-actions .lang-btn {
    text-align: center;
    justify-items: center;
  }

  body.landing .navbar .nav-actions .lang-btn-main {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.landing .navbar .nav-actions .lang-btn-sub {
    width: 100%;
    text-align: center;
  }

  body.landing .navbar .nav-actions .nav-cta {
    text-align: center;
  }

  .nav-actions .btn { width: auto; }

  /* Keep the action cluster compact on mobile */
  body.landing .navbar .lang-btn,
  body.landing .navbar .btn.btn-small {
    padding: 8px 10px;
    min-height: 40px;
  }

  body.landing .navbar .btn.btn-small {
    font-size: 13px;
    border-radius: 12px;
  }

  body.landing .navbar .nav-cta {
    padding: 8px 10px;
    min-height: 40px;
  }

  body.landing .navbar .nav-cta-title {
    font-size: 12px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Use the shorter CTA label on phones */
  .nav-cta-title--full { display: none; }
  .nav-cta-title--short { display: block; }

  .nav-links.open { display: flex; }
  .hero-title { font-size: 34px; }
  .hero-stats { grid-template-columns: 1fr; }
  .grid.cards { grid-template-columns: 1fr; }
  .trust-row { justify-content: flex-start; }
  .cta h2 { font-size: 30px; }

  .sell-grid { grid-template-columns: 1fr; }
  .sell-card { position: relative; top: auto; max-height: none; overflow: visible; }
}

@media (max-width: 420px) {
  .brand-text { font-size: 15px; }

  /* Keep 2-up buttons until the screen is truly tiny */
}

@media (max-width: 360px) {
  .nav-actions { grid-template-columns: 1fr; }
  body.landing .navbar .nav-actions { width: min(420px, 100%); }
}

@media (max-width: 520px) {
  body.landing .hero { padding: 54px 0 34px; }
  body.landing .hero-title { font-size: 32px; }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-cta .btn { width: 100%; justify-content: center; padding: 13px 16px; }

  .sell { padding: 26px 0 6px; }
  .sell-title { font-size: 26px; }
  .sell-cta { display: grid; grid-template-columns: 1fr; }
  .sell-cta .btn { width: 100%; justify-content: center; }
}

/* iOS safe-area */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }

  .navbar {
    padding-top: max(0px, env(safe-area-inset-top));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

