/* AI Companion Reviews — design system
   Niche: AI girlfriend / NSFW AI tools
   Aesthetic: dark sensual, pink/magenta gradients, premium feel
   Performance target: under 30KB, mobile Lighthouse ≥ 90 */

:root {
  /* Base palette — deep midnight */
  --bg: #08080f;
  --bg-soft: #0d0d1a;
  --surface: #14142a;
  --surface-2: #1c1c3a;
  --surface-3: #25254d;
  --border: #2a2a55;
  --border-soft: rgba(255, 255, 255, 0.06);

  /* Text */
  --text: #f0f0fa;
  --text-muted: #a0a0c8;
  --text-dim: #6a6a90;

  /* Accent — pink/magenta primary, neon purple secondary */
  --accent: #ff3d7f;
  --accent-hover: #ff5a92;
  --accent-soft: rgba(255, 61, 127, 0.12);
  --accent-line: rgba(255, 61, 127, 0.35);
  --accent-2: #b94aff;
  --accent-2-soft: rgba(185, 74, 255, 0.12);
  --gradient: linear-gradient(135deg, #ff3d7f 0%, #b94aff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255,61,127,0.18) 0%, rgba(185,74,255,0.18) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(255,61,127,0.45) 0%, rgba(185,74,255,0.45) 100%);

  /* States */
  --good: #4ade80;
  --bad: #f87171;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-pink: 0 8px 32px rgba(255, 61, 127, 0.18);
  --shadow-purple: 0 8px 32px rgba(185, 74, 255, 0.18);

  /* Layout */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at top right, rgba(185, 74, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(255, 61, 127, 0.06) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 940px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* HEADER */
.page-header { margin-bottom: 36px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-line);
  margin-bottom: 20px;
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

h1 {
  font-size: clamp(30px, 5.2vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(180deg, #fff 0%, #d4d4f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 18px;
  line-height: 1.6;
}

.byline {
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.byline strong { color: var(--text-muted); font-weight: 600; }

/* VERDICT BOX */
.verdict-box {
  position: relative;
  display: flex;
  gap: 26px;
  align-items: stretch;
  background: var(--surface);
  border-radius: var(--radius);
  margin: 36px 0;
  overflow: hidden;
  box-shadow: var(--shadow-pink);
}

.verdict-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1.5px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.verdict-rating {
  flex-shrink: 0;
  text-align: center;
  padding: 24px 28px 24px 28px;
  background: var(--gradient-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 130px;
  border-right: 1px solid var(--border-soft);
}

.rating-num {
  display: block;
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.rating-out {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.rating-stars {
  display: block;
  font-size: 14px;
  margin-top: 10px;
  letter-spacing: 3px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.verdict-text {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.6;
  padding: 22px 26px 22px 0;
}

.verdict-text strong { color: #fff; font-weight: 600; }

.verdict-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--accent-line);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.verdict-text a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* SECTION DIVIDER (replaces hr) */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 30%, var(--border) 70%, transparent 100%);
  margin: 56px 0;
  border: none;
  position: relative;
}

.divider::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* SECTIONS */
section { margin-bottom: 8px; }

h2 {
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 18px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-top: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}

p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.7;
}

p strong { color: #fff; font-weight: 600; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { color: var(--accent-hover); }

/* TWO-COLUMN ROW */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.col-left, .col-text { min-width: 0; }

.col-photo {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.text-block { margin-bottom: 24px; }

/* PHOTO FRAME */
.photo-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(255, 61, 127, 0.08) 100%);
}

.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  min-height: 280px;
  object-fit: cover;
}

.photo-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 10px;
  padding: 0 6px 4px;
  text-align: center;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* POLL */
.poll-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}

.poll-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}

.poll-header {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.4;
}

.poll-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.poll-options { display: flex; flex-direction: column; gap: 9px; }

.poll-option {
  display: block;
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  color: var(--text);
}

.poll-option:hover:not(.voted) {
  border-color: var(--accent);
  background: rgba(255, 61, 127, 0.04);
  transform: translateX(2px);
}

.poll-option.voted { cursor: default; }

.poll-option.selected {
  border-color: var(--accent);
  background: rgba(255, 61, 127, 0.08);
  box-shadow: var(--shadow-pink);
}

.poll-option-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
  position: relative;
}

.poll-bar {
  display: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  margin-top: 10px;
  overflow: hidden;
  z-index: 2;
  position: relative;
}

.poll-option.voted .poll-bar { display: block; }

.poll-bar-fill {
  height: 100%;
  background: var(--gradient);
  width: 0;
  border-radius: var(--radius-pill);
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.poll-option-count {
  display: none;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 600;
  z-index: 2;
  position: relative;
  letter-spacing: 0.02em;
}

.poll-option.voted .poll-option-count { display: block; }

/* CTA */
.cta-card {
  background: var(--gradient-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255, 61, 127, 0.13) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 50%, rgba(185, 74, 255, 0.10) 0%, transparent 55%);
  pointer-events: none;
}

.cta-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}

.cta-button {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  padding: 15px 36px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-pink);
  position: relative;
  letter-spacing: 0.02em;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 61, 127, 0.45);
  color: #fff;
}

.cta-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
  margin-bottom: 0;
  position: relative;
  max-width: 380px;
  line-height: 1.5;
}

/* DISAMBIG / lists */
.disambig-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.disambig-list li {
  padding: 14px 18px 14px 44px;
  position: relative;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
  color: var(--text);
}

.disambig-list li:last-child { border-bottom: none; }

.disambig-list li::before {
  content: "→";
  position: absolute;
  left: 18px;
  color: var(--accent);
  font-weight: 700;
}

.disambig-list li strong { color: #fff; }

.check-list, .x-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}

.check-list li, .x-list li {
  padding: 9px 0 9px 32px;
  position: relative;
  font-size: 15px;
  line-height: 1.55;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 20px;
  height: 20px;
  background: rgba(74, 222, 128, 0.15);
  color: var(--good);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.x-list li::before {
  content: "✕";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 20px;
  height: 20px;
  background: rgba(248, 113, 113, 0.15);
  color: var(--bad);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.check-list li strong, .x-list li strong { color: #fff; }

/* COMPARISON TABLE */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.compare-card.highlight {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(255, 61, 127, 0.04) 100%);
  box-shadow: var(--shadow-pink);
}

.compare-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}

.compare-card .compare-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-soft);
}

.compare-card .compare-row:last-child { border-bottom: none; }

.compare-card .compare-row .label {
  color: var(--text-dim);
}

.compare-card .compare-row .value {
  color: var(--text);
  font-weight: 500;
}

/* ALTERNATIVES GRID */
.alts-intro {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.alts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 26px 0;
}

.alt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: all 0.25s ease;
  overflow: hidden;
}

.alt-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.alt-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-pink);
}

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

.alt-rank {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow-pink);
  letter-spacing: -0.02em;
}

.alt-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: -0.01em;
}

.alt-pitch {
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.6;
}

.alt-why {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.55;
  padding-left: 12px;
  border-left: 2px solid var(--accent-line);
}

.alt-why em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.alt-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #fff;
  border: 1.5px solid var(--accent);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.alt-cta:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  transform: translateX(2px);
  box-shadow: var(--shadow-pink);
}

.alt-cta::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s ease;
}

.alt-cta:hover::after { transform: translateX(3px); }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--accent-line);
  background: var(--surface-2);
}

.faq-item h3 {
  font-size: 15.5px;
  margin-top: 0;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 600;
  line-height: 1.35;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* FOOTER */
footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gradient);
}

footer p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

footer p strong { color: var(--text); font-weight: 600; }

footer .disclosure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13px;
  color: var(--text);
  position: relative;
}

footer .disclosure::before {
  content: "Disclosure";
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--bg);
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

footer .muted {
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
  margin-top: 16px;
}

footer a { color: var(--accent); }
footer a:hover { color: var(--accent-hover); }

/* RESPONSIVE */
@media (max-width: 760px) {
  .page { padding: 32px 18px 60px; }
  .row { grid-template-columns: 1fr; gap: 24px; }
  .alts-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .verdict-box { flex-direction: column; }
  .verdict-rating {
    flex-direction: row;
    justify-content: center;
    gap: 14px;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    padding: 20px;
    min-width: 0;
  }
  .verdict-rating .rating-num { font-size: 38px; }
  .verdict-rating .rating-stars { margin-top: 0; }
  .verdict-text { padding: 22px 24px; font-size: 15px; }
  .photo-frame { max-width: 100%; }
  .divider { margin: 36px 0; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
}

@media (max-width: 420px) {
  h1 { font-size: 24px; }
  .subtitle { font-size: 16px; }
  .alt-card { padding: 20px; }
  .verdict-text { font-size: 14.5px; padding: 20px; }
}

/* PRINT */
@media print {
  .cta-card, .poll-card, .alt-cta { display: none; }
  body { background: white; color: black; }
  .verdict-box { box-shadow: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
