/* Dreamer — comparison & alternative page styles
   Extends styles.css; load both: styles.css then compare.css
   ─────────────────────────────────────────────────────────── */

/* ── Extra tokens ── */
:root {
  --purple:        #5e5a88;
  --purple-light:  #c7c1f6;
  --purple-xlight: #f0eeff;
  --green:         #1a7f5a;
  --green-bg:      #e8f7f0;
  --red:           #c0384f;
  --red-bg:        #fdeef1;
  --amber:         #b45309;
  --amber-bg:      #fff7ed;
  --row-alt:       rgba(94, 90, 136, 0.04);
  --winner-glow:   0 0 0 2px var(--purple-light), 0 8px 28px rgba(94,90,136,0.14);
}

/* ════════════════════════════════ COMP NAV */

.comp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(249, 249, 254, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  gap: 16px;
}

.comp-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.comp-nav__brand img { width: 32px; height: 32px; }
.comp-nav__brand strong { font-family: var(--font-headline); font-size: 17px; font-weight: 700; }

.comp-nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.comp-nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s;
}
.comp-nav__links a:hover { color: var(--text); }

.comp-nav__cta {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--purple);
  padding: 9px 20px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .18s;
}
.comp-nav__cta:hover { opacity: .85; }

@media (max-width: 640px) { .comp-nav__links { display: none; } }

/* ════════════════════════════════ COMP HERO */

.comp-hero {
  background: linear-gradient(145deg, #110e26 0%, #2e2a55 55%, #4a4477 100%);
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.comp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 20%, rgba(94,90,136,.45) 0%, transparent 70%);
}

.comp-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.comp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(199,193,246,.12);
  border: 1px solid rgba(199,193,246,.2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 22px;
}

.comp-hero__title {
  font-family: var(--font-headline);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 18px;
}

.comp-hero__lede {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(236,232,251,.72);
  max-width: 560px;
  margin: 0 auto 32px;
}

.comp-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(236,232,251,.9);
}
.badge svg { flex-shrink: 0; }
.badge--green { background: rgba(26,127,90,.2); border-color: rgba(26,127,90,.35); color: #6ee7b7; }
.badge--purple { background: rgba(94,90,136,.25); border-color: rgba(199,193,246,.3); color: var(--purple-light); }
.badge--amber  { background: rgba(180,83,9,.2);   border-color: rgba(180,83,9,.3);   color: #fcd34d; }

.comp-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--purple);
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 28px -4px rgba(94,90,136,.55);
  transition: transform .18s, box-shadow .18s;
}
.comp-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -4px rgba(94,90,136,.6);
}

/* ════════════════════════════════ COMP BODY CONTAINER */

.comp-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ════════════════════════════════ SECTION HEADINGS */

.comp-section {
  margin-top: 72px;
}

.comp-section__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

.comp-section__title {
  font-family: var(--font-headline);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  color: var(--midnight);
  letter-spacing: -.5px;
  margin: 0 0 12px;
  line-height: 1.18;
}

.comp-section__desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 0 40px;
}

/* ════════════════════════════════ COMPARISON TABLE */

.comp-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--soft-shadow);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--white);
}

.comp-table thead tr {
  background: var(--midnight-gradient);
}

.comp-table thead th {
  padding: 16px 20px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 14px;
  color: rgba(236,232,251,.9);
  text-align: left;
  white-space: nowrap;
}
.comp-table thead th:first-child { border-radius: 17px 0 0 0; }
.comp-table thead th:last-child  { border-radius: 0 17px 0 0; }

.comp-table thead th.col-winner {
  background: rgba(94,90,136,.45);
  color: #fff;
  position: relative;
}
.comp-table thead th.col-winner::after {
  content: '✦ Recommended';
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--purple-light);
  margin-top: 2px;
}

.comp-table tbody tr { border-bottom: 1px solid var(--line); }
.comp-table tbody tr:last-child { border-bottom: none; }
.comp-table tbody tr:nth-child(even) { background: var(--row-alt); }

.comp-table tbody td {
  padding: 14px 20px;
  color: var(--text);
  vertical-align: middle;
}
.comp-table tbody td:first-child {
  font-weight: 600;
  color: var(--midnight);
}

.comp-table td.col-winner {
  background: var(--purple-xlight);
  font-weight: 600;
  color: var(--purple);
}

.check { color: var(--green);  font-size: 17px; font-weight: 700; }
.cross { color: var(--red);    font-size: 17px; font-weight: 700; }
.dash  { color: var(--muted);  font-size: 17px; }
.tag   {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.tag--green  { background: var(--green-bg);  color: var(--green); }
.tag--red    { background: var(--red-bg);    color: var(--red); }
.tag--amber  { background: var(--amber-bg);  color: var(--amber); }
.tag--purple { background: var(--purple-xlight); color: var(--purple); }

/* ════════════════════════════════ FEATURE DETAIL GRID */

.comp-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .comp-feature-grid { grid-template-columns: 1fr; } }

.comp-feature-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--soft-shadow);
}
.comp-feature-card--winner {
  border-color: var(--purple-light);
  box-shadow: var(--winner-glow);
}

.comp-feature-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.comp-feature-card--winner .comp-feature-card__label {
  color: var(--purple);
}

.comp-feature-card__name {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 800;
  color: var(--midnight);
  margin: 0 0 10px;
}

.comp-feature-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.comp-feature-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.comp-feature-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.45;
}
.comp-feature-card__list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.comp-feature-card--loser .comp-feature-card__list li::before {
  content: '✗';
  color: var(--red);
}

/* ════════════════════════════════ PAIN POINTS */

.pain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(23,23,47,.05);
}
.pain-list li strong { color: var(--midnight); }

/* ════════════════════════════════ PRICING CARDS */

.comp-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 580px) { .comp-pricing-grid { grid-template-columns: 1fr; } }

.comp-price-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--soft-shadow);
}
.comp-price-card--winner {
  border-color: var(--purple-light);
  box-shadow: var(--winner-glow);
  position: relative;
}
.comp-price-card--winner::before {
  content: '✦ Best value';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.comp-price-card__brand {
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.comp-price-card--winner .comp-price-card__brand { color: var(--purple); }

.comp-price-card__amount {
  font-family: var(--font-headline);
  font-size: 40px;
  font-weight: 800;
  color: var(--midnight);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 4px;
}
.comp-price-card__amount span {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.comp-price-card__sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.comp-price-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comp-price-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.4;
}
.comp-price-card__features li .check,
.comp-price-card__features li .cross { font-size: 14px; margin-top: 1px; flex-shrink: 0; }

/* ════════════════════════════════ VERDICT (WHO IT'S FOR) */

.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 580px) { .verdict-grid { grid-template-columns: 1fr; } }

.verdict-card {
  border-radius: 20px;
  padding: 26px;
  border: 1px solid var(--line);
}
.verdict-card--dreamer {
  background: var(--purple-xlight);
  border-color: var(--purple-light);
}
.verdict-card--other {
  background: #fafafa;
}

.verdict-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.verdict-card--dreamer .verdict-card__label { color: var(--purple); }

.verdict-card__title {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 800;
  color: var(--midnight);
  margin: 0 0 14px;
}

.verdict-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.verdict-card__list li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
  padding-left: 18px;
  position: relative;
}
.verdict-card--dreamer .verdict-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}
.verdict-card--other .verdict-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* ════════════════════════════════ INLINE TESTIMONIALS */

.comp-testimonials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comp-testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(23,23,47,.05);
}
.comp-testimonial__stars { color: #f59e0b; font-size: 14px; margin-bottom: 8px; }
.comp-testimonial__quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 14px;
}
.comp-testimonial__quote strong { color: var(--midnight); }
.comp-testimonial__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.comp-testimonial__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.comp-testimonial__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--midnight);
}
.comp-testimonial__role { font-size: 12.5px; color: var(--muted); }

/* ════════════════════════════════ FINAL CTA */

.comp-cta {
  margin-top: 72px;
  text-align: center;
  background: linear-gradient(145deg, #110e26 0%, #2e2a55 55%, #4a4477 100%);
  border-radius: 28px;
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
}
.comp-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 20%, rgba(94,90,136,.5), transparent 70%);
}
.comp-cta__inner { position: relative; z-index: 1; }

.comp-cta__title {
  font-family: var(--font-headline);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.8px;
  margin: 0 0 12px;
}
.comp-cta__desc {
  font-size: 16px;
  color: rgba(236,232,251,.7);
  margin: 0 0 32px;
}
.comp-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.comp-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .18s, opacity .18s;
}
.comp-cta__btn:hover { transform: translateY(-2px); opacity: .9; }
.comp-cta__btn--primary { background: #fff; color: var(--purple); }
.comp-cta__btn--secondary {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(236,232,251,.9);
}

/* ════════════════════════════════ COMP FOOTER */

.comp-footer {
  margin-top: 0;
  padding: 32px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.comp-footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
.comp-footer__brand img { width: 28px; height: 28px; }
.comp-footer__brand strong { font-family: var(--font-headline); font-weight: 700; font-size: 15px; }
.comp-footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.comp-footer__links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.comp-footer__links a:hover { color: var(--text); }
.comp-footer__note { font-size: 12px; color: var(--muted); width: 100%; }

/* ════════════════════════════════ PRICING PAGE */

.pricing-hero {
  text-align: center;
  padding: 72px 24px 56px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}
.pricing-hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.pricing-hero__title {
  font-family: var(--font-headline);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  color: var(--midnight);
  letter-spacing: -1.5px;
  margin: 0 0 14px;
}
.pricing-hero__lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 56px auto 0;
  padding: 0 24px;
}
@media (max-width: 620px) { .pricing-cards { grid-template-columns: 1fr; } }

.p-card {
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}
.p-card--premium {
  background: linear-gradient(145deg, #110e26 0%, #2e2a55 100%);
  border-color: rgba(199,193,246,.3);
  box-shadow: 0 20px 60px rgba(46,42,85,.35);
}
.p-card__tier {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.p-card--premium .p-card__tier { color: var(--purple-light); }
.p-card__price {
  font-family: var(--font-headline);
  font-size: 46px;
  font-weight: 800;
  color: var(--midnight);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 4px;
}
.p-card--premium .p-card__price { color: #fff; }
.p-card__price span { font-size: 18px; font-weight: 500; letter-spacing: 0; }
.p-card--premium .p-card__price span { color: rgba(236,232,251,.6); }
.p-card__sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.p-card--premium .p-card__sub { color: rgba(236,232,251,.55); }
.p-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.p-card--premium .p-card__features { border-color: rgba(255,255,255,.1); }
.p-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}
.p-card--premium .p-card__features li { color: rgba(236,232,251,.85); }
.p-card__features li .check { font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.p-card--premium .p-card__features li .check { color: #86efac; }
.p-card__btn {
  display: block;
  text-align: center;
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .18s, opacity .18s;
}
.p-card__btn:hover { transform: translateY(-1px); opacity: .9; }
.p-card__btn--free { background: var(--purple); color: #fff; }
.p-card__btn--premium { background: #fff; color: var(--purple); }

.pricing-compare-section {
  max-width: 860px;
  margin: 72px auto 0;
  padding: 0 24px;
}

/* ════════════════════════════════ UTILITY */

.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;
}
