/* ==========================================================================
   SIFRA — site layer. Loads after style.css / motion.css / pages.css.
   Only adds what the live site needs on top of the design system:
   policies dropdown, account menu, legal pages, testimonials, payment links.
   ========================================================================== */

/* ---------- Policies dropdown in the nav (Strictly Downward Menu) ---------- */
.nav-drop { position: relative !important; white-space: nowrap !important; }
.nav-drop > a { display: inline-flex !important; align-items: center !important; gap: 5px !important; white-space: nowrap !important; word-break: keep-all !important; }
.nav-drop > a svg { width: 10px !important; height: 10px !important; transition: transform .3s ease !important; flex-shrink: 0 !important; }
.nav-drop:hover > a svg, .nav-drop:focus-within > a svg { transform: rotate(180deg) !important; }
.nav-drop-panel {
  position: absolute !important; left: 50% !important; top: calc(100% + 8px) !important;
  transform: translateX(-50%) !important; width: 290px !important; min-width: 280px !important;
  box-sizing: border-box !important; display: flex !important; flex-direction: column !important;
  flex-wrap: nowrap !important; gap: 2px !important; padding: 8px !important; border-radius: 18px !important;
  background: rgba(8, 13, 28, 0.96) !important; border: 1px solid rgba(140, 170, 255, 0.16) !important;
  -webkit-backdrop-filter: blur(20px) !important; backdrop-filter: blur(20px) !important;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 9, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
  opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; z-index: 1000 !important;
  transition: opacity .25s ease, transform .25s ease !important;
}
.nav-drop::after { content: "" !important; position: absolute !important; left: 0 !important; right: 0 !important; top: 100% !important; height: 14px !important; }
.nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel {
  opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; transform: translateX(-50%) !important;
}
.nav-drop-panel a {
  display: flex !important; flex-direction: column !important; align-items: flex-start !important;
  justify-content: center !important; width: 100% !important; box-sizing: border-box !important;
  padding: 8px 12px !important; border-radius: 10px !important; text-decoration: none !important;
  white-space: normal !important; text-align: left !important; background: transparent !important;
  border: none !important; transition: background .2s ease !important;
}
.nav-drop-panel a:hover { background: rgba(255, 255, 255, 0.07) !important; }
.nav-drop-panel a b { font-size: 13px !important; font-weight: 600 !important; color: #ffffff !important; line-height: 1.3 !important; display: block !important; text-align: left !important; white-space: normal !important; }
.nav-drop-panel a span { font-size: 11px !important; color: var(--muted, #94a3b8) !important; line-height: 1.3 !important; display: block !important; margin-top: 2px !important; text-align: left !important; white-space: normal !important; }
.nav-drop-panel a.all { border-top: 1px solid rgba(255, 255, 255, 0.08) !important; border-radius: 0 0 10px 10px !important; margin-top: 4px !important; padding-top: 10px !important; }
.nav-drop-panel a.all b { color: #60a5fa !important; font-size: 12.5px !important; }
.nav.light .nav-drop-panel a b { color: var(--fg); }

/* ---------- SIFRA Chrome & Navigation System V2 ---------- */
.nav { height: 66px !important; }
.nav-inner {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  max-width: 1400px !important;
}

/* Nav Links - Strict Single Line, No Wrapping */
.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}
.nav-links > li {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.nav-links > li > a {
  display: inline-flex !important;
  position: relative !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 6px 11px 10px !important;
  border-radius: 999px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--fg-2, #cbd5e1) !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0 !important;
  line-height: normal !important;
  transition: color .2s ease, background .2s ease !important;
}
.nav-links > li > a:hover {
  color: var(--fg, #ffffff) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
.nav-links > li > a[aria-current="page"] {
  color: #ffffff !important;
  font-weight: 600 !important;
}
/* Active indicator blue line: strictly UNDER the tab name, centered below */
.nav-links > li > a[aria-current="page"]::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 18px !important;
  height: 2px !important;
  border-radius: 2px !important;
  background: #3b82f6 !important;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8) !important;
  display: block !important;
  margin: 0 !important;
}

/* Nav CTA: Cohesive 3-Pill Suite (Local Engine, Search, Account) */
.nav-cta {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  flex-shrink: 0 !important;
}

/* 1. Local Engine Pill */
.nav-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 36px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  font-family: var(--mono, "JetBrains Mono", monospace) !important;
  font-size: 11px !important;
  font-weight: 550 !important;
  letter-spacing: .06em !important;
  color: var(--fg-2, #cbd5e1) !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  transition: border-color .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease !important;
}
.nav-status:hover {
  border-color: rgba(61, 220, 151, 0.45) !important;
  background: rgba(255, 255, 255, 0.065) !important;
  color: var(--fg, #fff) !important;
  box-shadow: 0 4px 14px -3px rgba(61, 220, 151, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
.nav-status .dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #3ddc97 !important;
  box-shadow: 0 0 8px rgba(61, 220, 151, 0.8) !important;
  animation: pulse 2.4s infinite !important;
  flex-shrink: 0 !important;
}

/* 2. Search Bar Pill */
.nav-search {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 36px !important;
  padding: 0 9px 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  color: var(--muted, #94a3b8) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: border-color .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease !important;
}
.nav-search:hover {
  color: var(--fg, #fff) !important;
  border-color: rgba(96, 165, 250, 0.45) !important;
  background: rgba(255, 255, 255, 0.065) !important;
  box-shadow: 0 4px 16px -4px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
.nav-search svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
  opacity: 0.85 !important;
}
.nav-search kbd {
  font-family: var(--mono, "JetBrains Mono", monospace) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  padding: 2px 6px !important;
  border-radius: 5px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--fg-2, #cbd5e1) !important;
  line-height: normal !important;
}

/* 3. User Icon / Profile Pill */
.nav-auth {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}
.acct {
  position: relative !important;
  flex-shrink: 0 !important;
}
.acct-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 36px !important;
  padding: 0 12px 0 4px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--fg, #fff) !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease !important;
}
.acct-btn:hover {
  border-color: rgba(96, 165, 250, 0.45) !important;
  background: rgba(255, 255, 255, 0.065) !important;
  box-shadow: 0 4px 16px -4px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
.acct-av {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  background: radial-gradient(circle at 50% 40%, #1e3a8a, #0f172a) !important;
  box-shadow: inset 0 0 0 1.5px rgba(96, 165, 250, 0.6) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #93c5fd !important;
  flex-shrink: 0 !important;
}
.acct-name {
  max-width: 140px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
}
.acct-btn svg {
  width: 11px !important;
  height: 11px !important;
  color: var(--muted, #94a3b8) !important;
  flex-shrink: 0 !important;
  transition: transform .25s ease !important;
}
.acct.open .acct-btn svg {
  transform: rotate(180deg) !important;
}

/* Unauthenticated Auth Buttons */
.nav-auth .btn-sm {
  height: 36px !important;
  line-height: 36px !important;
  padding: 0 15px !important;
  font-size: 13px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* Responsive Navigation Breakpoints */
@media (max-width: 1340px) {
  .nav-inner { gap: 12px !important; }
  .nav-links { gap: 2px !important; }
  .nav-links a { padding: 6px 9px !important; font-size: 13px !important; }
  .nav-cta { gap: 7px !important; }
}
@media (max-width: 1180px) {
  .nav-status { display: none !important; }
}
@media (max-width: 1040px) {
  .nav-links { display: none !important; }
  .nav-status { display: none !important; }
  .nav-search { display: none !important; }
  .menu-btn { display: block !important; }
}
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 250px; padding: 8px; border-radius: 18px; z-index: 5;
  background: rgba(8, 13, 28, .96); border: 1px solid rgba(140, 170, 255, .14); box-shadow: 0 30px 80px -30px rgba(0, 0, 9, .9);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s linear .25s;
}
.acct.open .acct-menu, .acct:hover .acct-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.acct-who { display: grid; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-who b { font-size: 14px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; }
.acct-who span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.acct-who em { justify-self: start; margin-top: 6px; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: var(--ember-2); border: 1px solid rgba(96, 165, 250, .35); }
.acct-who em.admin { color: #ffc46b; border-color: rgba(255, 196, 107, .4); }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; font-size: 14px; color: var(--fg-2); }
.acct-menu a:hover, .acct-menu button:hover { background: rgba(255, 255, 255, .05); color: var(--fg); }
.acct-menu .danger { color: #f87171; }
.nav.light .acct-btn { color: var(--ink); border-color: rgba(0, 0, 9, .18); }
.m-auth { display: grid; gap: 10px; margin-top: 24px; }
.m-auth .btn { margin: 0 !important; }
@media (max-width: 1100px) { .nav-status { display: none !important; } }
@media (max-width: 900px) { .nav-auth { display: none; } }

/* ---------- Hero extras ---------- */
.hero-checks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--fg-2); }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember-2); box-shadow: 0 0 8px var(--ember); }
.hero-sub { display: block; font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: 0; color: var(--fg-2); margin-top: 14px; }

/* ---------- Media library cards ---------- */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.media-grid .card { min-height: 240px; }
.media-grid .card .formats { margin-bottom: 8px; }
.note-line { margin: 28px 0 0; color: var(--muted); font-size: 16px; max-width: 760px; }
@media (max-width: 900px) { .media-grid { grid-template-columns: 1fr; } }

/* ---------- Voice demo ---------- */
.voice-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 40px; }
.voice-demo > div { border-radius: 22px; border: 1px solid rgba(140, 170, 255, .12); background: linear-gradient(180deg, rgba(22, 32, 64, .45), rgba(8, 13, 28, .7)); padding: 22px 24px; }
.voice-demo .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.voice-demo pre { margin: 12px 0 0; font-family: var(--mono); font-size: 14px; color: #bfdbfe; white-space: pre-wrap; }
.voice-demo p { margin: 12px 0 0; font-size: 18px; color: var(--fg); }
@media (max-width: 760px) { .voice-demo { grid-template-columns: 1fr; } }

/* ---------- Persona presets (Make it yours) ---------- */
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.presets span { font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); }
.presets span:first-child { border-color: rgba(96, 165, 250, .5); color: #93c5fd; }

/* ---------- Pricing: payment links under each plan ---------- */
.plan .pay { display: grid; gap: 6px; margin-top: -8px; font-family: var(--mono); font-size: 11.5px; text-align: center; }
.plan .pay a, .plan .pay button { color: inherit; opacity: .62; transition: opacity .25s; }
.plan .pay a:hover, .plan .pay button:hover { opacity: 1; }
.plan .tagline { margin: 6px 0 0; font-size: 14px; opacity: .72; }
.btn.is-busy { opacity: .7; pointer-events: none; }
.team-ticks span { white-space: nowrap; }
.team-ticks em { font-style: normal; }
.compare-row small { display: block; font-size: 12px; opacity: .6; font-weight: 500; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { margin: 0; border-radius: 28px; padding: clamp(24px, 2.6vw, 34px); border: 1px solid rgba(140, 170, 255, .12); background: linear-gradient(180deg, rgba(22, 32, 64, .45), rgba(8, 13, 28, .72)); display: flex; flex-direction: column; gap: 22px; }
.quote .stars { color: #ffc46b; letter-spacing: .3em; font-size: 14px; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.5; color: var(--fg); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: radial-gradient(circle at 50% 40%, #12224a, #0a1226); box-shadow: inset 0 0 0 1.5px #5b8cff; flex: none; }
.quote b { display: block; font-size: 16px; }
.quote figcaption span { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Comparison table (SIFRA vs cloud) ---------- */
.table td small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.table td:first-child { text-align: left; font-weight: 600; }
.table td.cell { text-align: left !important; font-size: 15px; }
.table td.cell.yes { color: #bbf7d0; font-weight: 500; }
.table td.cell.no { color: var(--muted); }

/* ---------- Contact form consent + done state ---------- */
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ember); flex: none; }
.consent a { color: var(--ember-2); text-decoration: underline; }
.consent.err { animation: shake .4s; color: #f87171; }

/* ---------- Legal pages ---------- */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 2px; }
.legal-toc .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.legal-toc a { padding: 9px 14px; border-radius: 12px; font-size: 15px; color: var(--fg-2); border-left: 2px solid transparent; transition: background .25s, color .25s, border-color .25s; }
.legal-toc a:hover { background: rgba(255, 255, 255, .04); color: var(--fg); }
.legal-toc a[aria-current="page"] { color: var(--fg); border-left-color: var(--ember); background: rgba(59, 130, 246, .08); }
.legal-body { display: grid; gap: 16px; min-width: 0; }
.legal-body > * { min-width: 0; }
.lblock { border-radius: 24px; padding: clamp(24px, 3vw, 36px); border: 1px solid rgba(140, 170, 255, .12); background: linear-gradient(180deg, rgba(22, 32, 64, .4), rgba(8, 13, 28, .7)); }
.lblock.hl { border-color: rgba(96, 165, 250, .4); box-shadow: 0 30px 80px -50px rgba(37, 99, 235, .8); }
.lblock .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ember-2); margin-bottom: 12px; display: block; }
.lblock h2, .lblock h3 { margin: 0 0 14px; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.01em; font-weight: 700; }
.lblock h4 { margin: 18px 0 8px; font-size: 18px; }
.lblock p, .lblock li { color: var(--fg-2); font-size: 17px; line-height: 1.6; }
.lblock p { margin: 0 0 12px; }
.lblock p:last-child { margin-bottom: 0; }
.lblock ul, .lblock ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.lblock strong, .lblock b { color: var(--fg); }
.lblock a { color: var(--ember-2); text-decoration: underline; text-underline-offset: 3px; }
.lblock code { font-family: var(--mono); font-size: .88em; color: #bfdbfe; }
.lblock .table-wrap { margin-top: 12px; }
.lblock .table td, .lblock .table th { text-align: left !important; font-size: 15px; }
.legal-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
@media (max-width: 960px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .legal-toc .k { display: none; }
  .legal-toc a { white-space: nowrap; border-left: 0; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
  .legal-toc a[aria-current="page"] { border-color: var(--ember); }
}

/* Policies hub */
.hub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hub a { display: grid; gap: 8px; padding: 28px; border-radius: 24px; border: 1px solid rgba(140, 170, 255, .12); background: linear-gradient(180deg, rgba(22, 32, 64, .4), rgba(8, 13, 28, .7)); transition: border-color .35s, transform .5s var(--ease); }
.hub a:hover { border-color: rgba(96, 165, 250, .45); transform: translateY(-4px); }
.hub .idx { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ember-2); }
.hub b { font-size: 24px; letter-spacing: -.01em; }
.hub span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .hub { grid-template-columns: 1fr; } }

/* ---------- Founder contact line ---------- */
.founder a { color: var(--ember-2); }

/* ---------- Footer extras ---------- */
.footer-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #93c5fd; }
.footer-contact li { display: grid; gap: 2px; }
.footer-contact span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.footer-contact a { color: var(--fg-2); word-break: break-all; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) var(--gutter) 60px; }
.nf .code { font-size: clamp(120px, 26vw, 320px); font-weight: 700; line-height: .8; background: var(--heat); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Account modal (Tailwind inside .tw) ---------- */
.tw .btn-main { background: linear-gradient(180deg, #4f8ff8, #2f6fe8); color: #fff; border-radius: 999px; font-weight: 700; letter-spacing: .04em; }
.tw .btn-ghost { border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg); background: rgba(255, 255, 255, .02); }
.tw .glass { background: rgba(8, 13, 28, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(140, 170, 255, .14); }
.tw .glow-card { background: linear-gradient(180deg, rgba(22, 32, 64, .55), rgba(8, 13, 28, .95)); border: 1px solid rgba(140, 170, 255, .16); border-radius: 28px; }
.tw .fld { width: 100%; background: rgba(8, 13, 28, .7); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; color: var(--fg); font: inherit; font-size: 15px; outline: none; }
.tw .fld:focus { border-color: var(--ember); box-shadow: 0 0 0 4px rgba(59, 130, 246, .14); }
.tw input, .tw button, .tw select, .tw textarea { font-family: inherit; }
.tw .text-gradient { background: linear-gradient(180deg, #fff, #b8c2d6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
#authModal { z-index: 120 !important; }

/* ---------- Performance ----------
   1. Sections that are off-screen freeze their animations (site.js toggles .is-off),
      so a phone only animates what is actually visible.
   2. Voice/wave bars animate transform (GPU) instead of height (layout every frame). */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }
.wave i { height: 90%; transform-origin: 50% 50%; animation-name: waveT; will-change: transform; }
@keyframes waveT { from { transform: scaleY(.11); } to { transform: scaleY(1); } }
.voice.on .vwave i { height: 100%; transform-origin: 50% 100%; animation-name: vwaveT; }
@keyframes vwaveT { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
/* `clip` (unlike `hidden`) doesn't create a scroll container, so sticky/pinned sections keep
   working in every Safari version; browsers without `clip` keep style.css's `hidden`. */
body { overflow-x: clip; }
/* Phones: no double-tap zoom delay; iOS zooms the page when an input's text is under 16px */
html { touch-action: manipulation; }
@media (max-width: 860px) {
  input, select, textarea, .tw input, .tw select, .tw textarea { font-size: 16px !important; }
}
@media (max-width: 860px) {
  /* blur behind fixed bars is the most expensive effect on phones; a denser tint looks the same */
  .nav.scrolled, .localnav { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(5, 9, 20, .94) !important; }
  .nav.light.scrolled, .localnav.light { background: rgba(236, 241, 248, .96) !important; }
  .team-ticks em { display: none; }
}

/* ---------- Numbers inside gradient tiles: give the counting span its own fill
   (a child with its own layer escapes the parent's background-clip:text and disappears) */
.perf-tile .v .odo-col, .perf-tile .v .odo-strip span, .perf-tile .v > span[data-count] {
  -webkit-text-fill-color: #e3edff; color: #e3edff;
}

.principles-2 { grid-template-columns: repeat(2, 1fr); }
/* ✓ / — cells must stay table cells (pages.css makes .yes inline-block, which breaks the row) */
.table td.yes, .table td.no { display: table-cell; }

/* ==========================================================================
   Phones & small tablets (≤ 860px): the same scroll-pinned effects as desktop,
   re-laid out to fit a portrait screen (all pins use svh so the URL bar can't break them).
   ========================================================================== */
@media (max-width: 860px) {
  /* one header bar, fully opaque */
  .localnav { display: none !important; }
  .nav.scrolled { background: rgba(5, 9, 20, .97) !important; }

  /* "Why local" statement: pinned word-by-word scrub, like desktop */
  .statement { height: 220vh; }
  .statement-sticky { padding: 0 var(--gutter); }
  .statement-text { font-size: clamp(28px, 8vw, 42px); }
  .statement-foot { gap: 10px 22px; margin-top: 28px; }

  /* "Why SIFRA" cards: slide over each other (sticky), like desktop */
  .scard { min-height: 0; margin-bottom: 16px; }
  .scard-art { min-height: 160px; }

  /* SIFRA vs cloud table → one card per capability */
  #compare .table-wrap { background: none; border: 0; overflow: visible; }
  #compare .table thead { display: none; }
  #compare .table, #compare .table tbody, #compare .table tr, #compare .table td { display: block; width: 100%; }
  #compare .table tr { padding: 20px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-1); }
  #compare .table td { border: 0; padding: 6px 0; text-align: left !important; background: none !important; }
  #compare .table td:first-child { font-size: 18px; padding-bottom: 10px; }
  #compare .table td.cell::before { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 3px; }
  #compare .table td:nth-child(2)::before { content: "SIFRA Intelligence"; color: var(--ember-2); }
  #compare .table td:nth-child(3)::before { content: "Other Cloud AIs"; color: var(--muted); }
  #compare .table tr:hover td { background: none; }

  .principles-2 { grid-template-columns: 1fr !important; }

  /* Sticky story: pinned, device on top, one step at a time underneath */
  .story { height: 420vh; }
  .story-sticky { position: sticky; top: 0; height: 100svh; padding: calc(var(--nav-h) + 14px) 0 14px; align-items: flex-start; }
  .story-grid { gap: 18px; align-content: start; }
  .story-device-col { order: -1; }
  .story-device-col .device { aspect-ratio: auto; height: 42svh; min-height: 0; }
  .story-device-col .screen { overflow: hidden; }
  .story-steps { gap: 0; }
  .story-step { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); }
  .story-step.active { opacity: 1; transform: none; }
  .story-step h3 { font-size: clamp(26px, 7vw, 34px); margin: 8px 0 10px; }
  .story-step p { font-size: 15px; }
  .story-step ul { display: none; }
  .story-rail { display: flex; margin-bottom: 12px; }

  /* Product reveal: pinned zoom-in of the app window */
  .zoom { height: 220vh; }
  .zoom-sticky { position: sticky; height: 100svh; padding: 0; justify-content: flex-end; }
  .zoom-head { position: absolute; top: calc(var(--nav-h) + 4svh); }
  .zoom-head .h1 { font-size: clamp(30px, 8.4vw, 42px); }
  .app-fit { margin: 0 0 14svh; }

  /* Who it's for: pinned sideways gallery driven by vertical scroll */
  .hs-sticky { position: sticky; height: 100svh; padding: 0; }
  .hs-track { overflow: visible; width: max-content; scroll-snap-type: none; padding-bottom: 0; }
  .hs-intro { width: 84vw; }
  .persona { width: 80vw !important; }
  .hs-progress, .hs-count { display: block; }

  /* Exploded architecture: pinned, stack explodes then steps through layers */
  .arch { height: 320vh; }
  .arch-sticky { position: sticky; height: 100svh; padding: calc(var(--nav-h) + 8px) 0 8px; align-items: flex-start; }
  .arch .h2 { font-size: clamp(24px, 6.6vw, 32px); }
  .arch .lede { display: none; }
  .arch-stage { height: 36svh; margin-top: 4svh; }
  .stack { width: min(200px, 48vw); transform: translateY(34px) rotateX(58deg) rotateZ(var(--rz, -34deg)); }
  .arch-list { margin-top: 6px; gap: 0; }
  .arch-list li { padding: 6px 10px; opacity: .45; }
  .arch-list li b { font-size: 15px; }
  .arch-list li span:last-child { grid-template-rows: 0fr; font-size: 13px; }
  .arch-list li.on span:last-child { grid-template-rows: 1fr; }
}

/* ---------- Region-specific copy on pricing (toggled by the region switch) ---------- */
[data-pricing]:not([data-region="inr"]) [data-region-show="inr"],
[data-pricing][data-region="inr"] [data-region-show="usd"] { display: none !important; }
.st-topics label b { font-size: 15px; }

/* ==========================================================================
   Phone GPU budget. The animated full-page aurora (pages.css body::before) is a
   fixed, oversized, constantly-moving layer under everything: it forced ~120
   sections/elements onto their own GPU layers and made phones stutter. On phones
   the same tint is painted once on the body instead.
   ========================================================================== */
@media (max-width: 860px) {
  body::before { display: none; }
  body { background:
    radial-gradient(130vw 90vh at 15% 0%, rgba(37,99,235,.12), transparent 62%) no-repeat,
    radial-gradient(110vw 80vh at 90% 30vh, rgba(99,102,241,.08), transparent 60%) no-repeat,
    #050914; }
  .wave i { will-change: auto; }
  .btn-ghost, .chip, .hero-meter { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Phones: keep every animation, but drop the parts that make a phone GPU redo
   expensive work on every frame (live blurs, frosted glass over moving content,
   animated glows). Movement, fades and timing are unchanged. */
@media (max-width: 860px) {
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .persona .p-prompt, .persona .p-ic { background: rgba(10, 14, 30, .72); }
  .statement-text .w, .screen .tok { filter: none; }
  @keyframes vflip { from { opacity: 0; transform: translateY(40%); } }
  @keyframes roll { from { transform: translateY(45%); opacity: 0; } }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
  @keyframes vtOut { to { opacity: 0; transform: scale(.985); } }
  @keyframes core { 0%, 70%, 100% { background-color: rgba(96,165,250,.08); } 18% { background-color: rgba(96,165,250,.8); } }
  .cta-orb { animation: none; }
}

/* HQ map: dots and the animated marker live in two stacked SVGs (see map.js) */
.geo-map { position: relative; }
.geo-map svg.geo-over { position: absolute; left: 0; top: 0; will-change: transform; }

/* Hero shape switcher is shown on phones too, centred under the particle core */
@media (max-width: 860px) {
  .hero-hud { display: grid; left: var(--gutter); right: var(--gutter); top: calc(21svh + 138px); text-align: center; font-size: 9.5px; gap: 4px; }
  .hero-hud > span:nth-child(2) { display: none; }
  .hero-hud .shape-dots { justify-content: center; }
  .hero-hud .shape-dots button { height: 4px; padding: 0; position: relative; }
  .hero-hud .shape-dots button::after { content: ""; position: absolute; inset: -12px -4px; } /* bigger tap target */
}

/* =========================================================================
   LANGUAGES SECTION — Prominent Highlights & Searchable Directory
   ========================================================================= */
.lang-featured {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 36px;
  margin-bottom: 24px;
}
.lang-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}
.lang-pill:hover {
  background: rgba(34, 211, 238, 0.06);
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-2px);
}
.lang-pill b {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.lang-pill span {
  font-size: 11px;
  color: var(--muted, #94a3b8);
  font-family: var(--font-mono, monospace);
}
.lang-directory-card {
  background: rgba(8, 12, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  margin-top: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}
.lang-directory-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}
.lang-dir-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-dir-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.lang-dir-count {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.lang-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 7px 14px;
  min-width: 280px;
  transition: border-color 0.2s ease;
}
.lang-search-box:focus-within {
  border-color: #22d3ee;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.15);
}
.lang-search-box svg {
  color: #64748b;
  flex-shrink: 0;
}
.lang-search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
  outline: none;
}
.lang-search-box input::placeholder {
  color: #64748b;
}
.lang-search-box button {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 12px;
  padding: 0 2px;
}
.lang-scroll-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 6px;
}
.lang-scroll-container::-webkit-scrollbar {
  width: 5px;
}
.lang-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}
.lang-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
.lang-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.4);
}
.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  color: #e2e8f0;
  transition: all 0.15s ease;
}
.lang-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.lang-item .lang-name {
  font-weight: 500;
}
.lang-item .lang-script {
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  margin-left: 8px;
}
.lang-no-match {
  padding: 32px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

/* =========================================================================
   DOWNLOADS DEDICATED PAGE
   ========================================================================= */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.download-card {
  background: rgba(10, 15, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.download-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 24px rgba(34, 211, 238, 0.08);
  transform: translateY(-4px);
}
.download-card.highlight-card {
  border-color: rgba(34, 211, 238, 0.3);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.05) 0%, rgba(10, 15, 30, 0.7) 100%);
}
.dl-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.03em;
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.35);
}
.dl-badge.alt {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.15);
}
.dl-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22d3ee;
  margin-bottom: 20px;
}
.dl-platform {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}
.dl-arch {
  font-size: 13px;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  margin-bottom: 14px;
}
.dl-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 20px;
  flex-grow: 1;
}
.dl-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
  margin-bottom: 24px;
}
.dl-meta b {
  color: #e2e8f0;
}
.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
.dl-url-hint {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-mono, monospace);
  word-break: break-all;
}
.dl-url-hint code {
  color: #94a3b8;
}
.specs-grid, .install-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.spec-card, .step-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 24px 20px;
}
.spec-tag, .step-num {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: #22d3ee;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 8px;
}
.spec-card h4, .step-box h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}
.spec-card p, .step-box p {
  font-size: 12.5px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
}

/* SIFRA Updated Architecture Styling */
.pricing-feature-bullets {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
}
.pricing-feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2, #404a60);
  line-height: 1.5;
  margin-bottom: 12px;
}
.plan.featured .pricing-feature-bullets li {
  color: #b8c2d6;
}
.pricing-feature-bullets svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ember-2, #60a5fa);
}


/* ---------- SIFRA Sovereign Auth Architecture ---------- */
/* ==========================================================================
   SIFRA INTELLIGENCE — Sovereign Authentication Architecture
   Inspired by Apple ID & NVIDIA Enterprise Account standard
   Precision dark mode, zero clutter, cinema-grade glassmorphism
   ========================================================================== */

/* Strict Utility lock */
.auth-step-hidden {
  display: none !important;
}

/* Page Viewport Stage */
.auth-viewport {
  position: relative;
  min-height: calc(100vh - var(--nav-h, 66px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 72px) 20px clamp(48px, 8vw, 96px);
  background:
    radial-gradient(ellipse 700px 350px at 50% 0%, rgba(59, 130, 246, 0.12), transparent 70%),
    radial-gradient(circle 600px at 50% 100%, rgba(30, 58, 138, 0.08), transparent 70%),
    var(--bg, #060815);
  overflow: hidden;
}

/* Subtle background precision grid */
.auth-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Centered Authentication Terminal Box */
.auth-card-clean {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: rgba(10, 14, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 40px) clamp(22px, 4vw, 36px);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 
    0 30px 80px -20px rgba(0, 0, 9, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: border-color 0.3s ease;
}

/* Card Header */
.auth-head {
  text-align: center;
  margin-bottom: 24px;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fg-2, #b8c2d6);
  text-transform: uppercase;
}

.auth-brand-badge .brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember, #3b82f6);
  box-shadow: 0 0 8px var(--ember, #3b82f6);
}

.auth-title {
  font-family: var(--font, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif);
  font-size: clamp(22px, 3.2vw, 27px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.25;
}

.auth-subtitle {
  font-size: 13.5px;
  color: var(--muted, #7e8aa3);
  margin: 0;
  line-height: 1.5;
}

/* Mode Switcher Pills (Top Segmented Control) */
.auth-segment {
  display: flex;
  padding: 4px;
  background: rgba(5, 8, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-segment-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted, #7e8aa3);
  text-decoration: none;
  transition: all 0.2s ease;
  user-select: none;
}

.auth-segment-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.auth-segment-tab.active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Alert Boxes */
.auth-msg {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-msg.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.auth-msg.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.auth-msg.hidden {
  display: none !important;
}

/* Mandatory Compliance Consent Cards */
.auth-consent-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-consent-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  cursor: pointer;
}

.auth-consent-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.035);
}

.auth-consent-card.checked {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 16px -4px rgba(59, 130, 246, 0.2);
}

.auth-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 8, 20, 0.8);
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.auth-checkbox:hover {
  border-color: var(--ember, #3b82f6);
}

.auth-checkbox:checked {
  background: var(--ember, #3b82f6);
  border-color: var(--ember, #3b82f6);
}

.auth-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-consent-text {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--fg-2, #cbd5e1);
  user-select: none;
  margin: 0;
}

.auth-consent-text a {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.auth-consent-text a:hover {
  color: #93c5fd;
}

/* Google OAuth Button */
.auth-btn-google {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.auth-btn-google:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-0.5px);
}

.auth-btn-google:active:not(:disabled) {
  transform: translateY(0);
}

.auth-btn-google:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.8);
}

.auth-btn-google svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hairline Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--muted, #7e8aa3);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* Form Layout */
.auth-form-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-2, #b8c2d6);
  letter-spacing: 0.02em;
}

.auth-label .req {
  color: #60a5fa;
  font-weight: 700;
  margin-left: 3px;
}

.auth-label .auth-link-inline {
  font-size: 11.5px;
  font-weight: 500;
  color: #60a5fa;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-label .auth-link-inline:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: rgba(6, 9, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.auth-input.has-toggle {
  padding-right: 42px;
}

.auth-input::placeholder {
  color: rgba(148, 163, 184, 0.45);
}

.auth-input:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.auth-input:focus {
  border-color: var(--ember, #3b82f6);
  background: rgba(6, 9, 22, 0.95);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

/* Custom calendar color picker */
.auth-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.auth-input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.auth-toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted, #7e8aa3);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.auth-toggle-pass:hover {
  color: #ffffff;
}

/* 2-Column Row for Desktop */
.auth-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .auth-row-dual {
    grid-template-columns: 1fr;
  }
}

/* Primary CTA Button */
.auth-btn-primary {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  user-select: none;
}

.auth-btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-0.5px);
}

.auth-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.auth-btn-primary:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  filter: grayscale(0.6);
}

/* Step 2: OTP Verification Card */
.auth-otp-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.auth-otp-icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}

.auth-otp-head {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.auth-otp-sub {
  font-size: 13px;
  color: var(--muted, #7e8aa3);
  margin: 0;
  line-height: 1.45;
}

.auth-otp-target {
  color: #ffffff;
  font-family: var(--mono, monospace);
  font-weight: 600;
}

.auth-otp-input {
  width: 100%;
  height: 54px;
  padding: 0 12px;
  background: rgba(6, 9, 22, 0.85);
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  color: #60a5fa;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 12px;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.auth-otp-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
  background: rgba(6, 9, 22, 0.98);
}

.auth-otp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.auth-link-btn {
  background: none;
  border: none;
  color: var(--muted, #7e8aa3);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.auth-link-btn:hover {
  color: #60a5fa;
}

/* Card Bottom Footer */
.auth-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  font-size: 13px;
  color: var(--muted, #7e8aa3);
}

.auth-foot a {
  color: #60a5fa;
  font-weight: 600;
  margin-left: 4px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-foot a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Security Ribbon */
.auth-security-note {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.6);
  font-family: var(--mono, monospace);
  letter-spacing: 0.02em;
}

.auth-security-note span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Spinner */
.auth-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

/* Guaranteed Table Visibility for Legal, Security & DPDP Policy Tables */
.table-wrap tbody tr,
.lblock .table-wrap tbody tr,
.legal .table-wrap tbody tr,
.table-wrap.in tbody tr,
.table-wrap.reveal tbody tr {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
.table-wrap .table td, .table-wrap .table th {
  padding: 14px 16px;
  vertical-align: middle;
}
