/* exAI share page styles (extracted from index.html for strict CSP) */
:root {
  --bg: #0A0A0F;
  --card-bg: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.05);
  --pink: #E85AAD;
  --pink-brand: #B9348B;
  --t1: rgba(255, 255, 255, 0.9);
  --t2: rgba(255, 255, 255, 0.45);
  --t3: rgba(255, 255, 255, 0.25);
  --t4: rgba(255, 255, 255, 0.1);
  --f: -apple-system, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html,
body {
  background: #050508;
  color: var(--t1);
  font-family: var(--f);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased
}

/* ═══ LAYOUT ═══ */
.frame-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px
}

.phone {
  width: 100%;
  max-width: 375px;
  position: relative
}

/* The share card — 9:16 aspect ratio like Flutter AspectRatio(9/16) */
.sc {
  aspect-ratio: 9/16;
  background: var(--bg);
  border-radius: 20px;
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn .4s ease;
}

/* Desktop phone frame */
@media(min-width:520px) {
  .phone {
    border-radius: 32px;
    border: 3px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 140px rgba(232, 90, 173, 0.03);
    overflow: hidden;
  }

  .sc {
    border-radius: 0
  }

  .notch {
    display: block;
    width: 126px;
    height: 30px;
    background: #000;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10
  }

  .dt-cta {
    display: block;
    text-align: center;
    margin-top: 24px;
    animation: fadeUp .4s ease .5s both
  }

  .mob-cta {
    display: none
  }
}

@media(max-width:519px) {
  .frame-wrap {
    padding: 0
  }

  .sc {
    border-radius: 0;
    aspect-ratio: auto;
    min-height: 100dvh
  }

  .notch {
    display: none
  }

  .dt-cta {
    display: none
  }

  .mob-cta {
    display: block
  }
}

/* ═══ HEADER — Flutter _header() ═══ */
.h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  flex-shrink: 0
}

.h-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px
}

.h-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--t3)
}

/* ═══ BODY — Flutter Expanded(child: _body()) ═══ */
.b {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0;
  overflow-y: auto
}

/* ═══ FOOTER — Flutter _footer() ═══ */
.ft {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0
}

.ft-l {
  display: flex;
  align-items: center;
  gap: 6px
}

.ft-logo {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--pink-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff
}

.ft-txt {
  font-size: 11px;
  font-weight: 500;
  color: var(--t3)
}

.ft-feat {
  font-size: 9px;
  color: var(--t4)
}

/* ═══ STATEMENT ═══ */
.badge {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 14px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  width: fit-content;
  max-width: fit-content
}

.bg-g {
  background: rgba(52, 199, 89, 0.12);
  color: #34C759
}

.bg-a {
  background: rgba(255, 159, 10, 0.12);
  color: #FF9F0A
}

.bg-r {
  background: rgba(255, 69, 58, 0.12);
  color: #FF453A
}

.bg-p {
  background: rgba(232, 90, 173, 0.12);
  color: var(--pink)
}

.s-body {
  font-size: 20px;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.4;
  letter-spacing: -0.3px
}

.s-sub {
  margin-top: 14px;
  font-size: 12px;
  color: var(--t3);
  line-height: 1.5
}

/* ═══ COMPARISON ═══ */
.cm-lb {
  font-size: 9px;
  font-weight: 600;
  color: var(--t3);
  letter-spacing: .5px;
  margin-bottom: 8px
}

.cm-bx {
  padding: 12px 14px;
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 12px
}

.cm-tx {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.5
}

.cm-ar {
  text-align: center;
  color: var(--t3);
  margin: 4px 0 12px;
  font-size: 16px
}

.cm-ln {
  color: var(--pink)
}

.cm-bn {
  background: rgba(232, 90, 173, 0.06);
  border: 1px solid rgba(232, 90, 173, 0.08)
}

.cm-st {
  font-size: 10px;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 4px
}

/* ═══ RESPONSES ═══ */
.ri {
  padding: 12px 14px;
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 8px
}

.rt {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 4px
}

.rm {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.45
}

.tp {
  color: #34C759
}

.tl {
  color: #FF9F0A
}

.td {
  color: #FF453A
}

/* ═══ QUOTE ═══ */
.qw {
  text-align: center
}

.ql {
  font-size: 10px;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 1px;
  margin-bottom: 16px
}

.qm {
  font-size: 28px;
  color: var(--pink);
  opacity: .3;
  line-height: 1;
  margin-bottom: 8px
}

.qt {
  font-size: 18px;
  font-style: italic;
  color: rgba(255, 255, 255, .75);
  line-height: 1.6
}

.qs {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 14px;
  background: var(--card-bg);
  border-radius: 10px;
  font-size: 11px;
  color: var(--t3)
}

/* ═══ LIST ═══ */
.lh {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px
}

.lc {
  font-size: 28px;
  font-weight: 500
}

.ll {
  font-size: 11px;
  color: var(--t3)
}

.li {
  padding: 11px;
  border-radius: 10px;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 10px
}

.ld {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0
}

.lt2 {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.4
}

/* ═══ STATS ═══ */
.sp {
  font-size: 36px;
  font-weight: 500;
  color: var(--pink);
  text-align: center
}

.sbw {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--card-bg);
  margin: 12px 0;
  overflow: hidden
}

.sb {
  height: 100%;
  border-radius: 3px;
  background: var(--pink)
}

.sls {
  display: flex;
  justify-content: space-between
}

.sl {
  font-size: 10px;
  color: var(--t3)
}

.sbd {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.5;
  margin-top: 12px
}

/* ═══ CHAT BUBBLE ═══ */
.bl {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 8px
}

.blt {
  color: var(--t3)
}

.bla {
  color: var(--pink)
}

.bb {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 14px
}

.bbt {
  background: var(--card-bg);
  border-radius: 14px 14px 14px 4px;
  color: var(--t2)
}

.bba {
  background: rgba(232, 90, 173, 0.06);
  border-radius: 4px 14px 14px 14px;
  color: rgba(255, 255, 255, .7)
}

/* ═══ SCORECARD ═══ */
.ss {
  font-size: 48px;
  font-weight: 500;
  color: var(--pink);
  text-align: center
}

.sm {
  font-size: 11px;
  color: var(--t3);
  text-align: center
}

.sg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px
}

.si {
  padding: 10px;
  background: var(--card-bg);
  border-radius: 12px;
  text-align: center
}

.sv {
  font-size: 22px;
  font-weight: 500
}

.sx {
  font-size: 9px;
  color: var(--t3);
  margin-top: 3px
}

/* ═══ MULTI-CARD ═══ */
.cl {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.ci {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  animation: fadeUp .35s ease both
}

.ci:nth-child(1) {
  animation-delay: .1s
}

.ci:nth-child(2) {
  animation-delay: .17s
}

.ci:nth-child(3) {
  animation-delay: .24s
}

.ci:nth-child(4) {
  animation-delay: .31s
}

.ci:nth-child(5) {
  animation-delay: .38s
}

.ch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px
}

.ce {
  font-size: 12px
}

.ct {
  font-size: 10px;
  font-weight: 600;
  color: var(--t3);
  letter-spacing: .2px
}

.cb {
  font-size: 13px;
  line-height: 1.6;
  color: var(--t2)
}

.cu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px
}

.cu li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--t2);
  padding-left: 12px;
  position: relative
}

.cu li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pink);
  opacity: .6
}

/* ═══ CTA ═══ */
.cta-ln {
  font-size: 13px;
  color: var(--t3);
  margin-bottom: 12px;
  line-height: 1.5
}

.cta-bt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: transparent;
  color: var(--pink);
  border: 1px solid rgba(232, 90, 173, .2);
  border-radius: 999px;
  font-family: var(--f);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s
}

.cta-bt:hover {
  background: rgba(232, 90, 173, .06);
  border-color: rgba(232, 90, 173, .35)
}

.cta-sb {
  font-size: 10px;
  color: var(--t4);
  margin-top: 6px
}

/* ═══ LOADING ═══ */
.ldw {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px
}

.ldd {
  width: 6px;
  height: 6px;
  background: var(--pink);
  border-radius: 50%;
  animation: pulse 1.2s infinite
}

.ldt {
  font-size: 12px;
  color: var(--t3)
}

.err {
  text-align: center;
  padding: 60px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center
}

.eri {
  font-size: 24px;
  margin-bottom: 10px;
  opacity: .3
}

.erm {
  font-size: 13px;
  color: var(--t3)
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: .15
  }

  50% {
    opacity: 1
  }
}

/* ═══ v1-hardening additions ═══ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0
}
.cta-bt:focus-visible, .st-links a:focus-visible {
  outline: 2px solid var(--pink); outline-offset: 3px
}
.ld-red { background: #E24B4A }
.st-logo {
  width: 64px; height: 64px; border-radius: 16px; margin-bottom: 18px; display: block
}
.st-title { font-size: 18px; font-weight: 600; color: var(--t1); margin-bottom: 8px }
.st-msg { font-size: 13px; color: var(--t2); line-height: 1.5; max-width: 280px; margin: 0 auto 22px }
.st-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px
}
.st-links a { font-size: 11px; color: var(--t3); text-decoration: none }
.st-links a:hover { color: var(--t2) }
.legal-ft {
  text-align: center; padding: 18px 16px 24px; font-size: 10px; color: var(--t4)
}
.legal-ft a { color: var(--t3); text-decoration: none; margin: 0 6px }
.legal-ft a:hover { color: var(--t2) }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
}
