/* Structure for /reviews/ pages. Colours come from CSS variables so each
   review can mirror the palette of the product it covers: reviewPage()
   emits an override block when a review passes a `theme`.

   Defaults below are the AI Secrets Challenge palette (violet on white). */

:root {
  /* accent + links */
  --accent: #7d12ce;
  --accent-deep: #4a0a7e;
  --accent-soft: #f3e9fc;
  --accent-border: #e2cff5;
  --accent-hover: #c81e8e;

  /* page */
  --bg: #ffffff;
  --bg-tint: #f9f5fd;
  --ink: #1c1530;
  --ink-dim: #4b4462;
  --ink-faint: #8a819e;

  /* hero (can be light or dark, so it carries its own ink) */
  --hero-bg: linear-gradient(180deg, #f4ecfb 0%, #ffffff 100%);
  --hero-ink: #1c1530;
  --hero-ink-dim: #4b4462;
  --hero-ink-faint: #8a819e;
  --hero-accent: #7d12ce;
  --hero-pill-bg: #f3e9fc;
  --hero-pill-ink: #4a0a7e;
  --hero-pill-border: #e2cff5;

  /* announcement bar */
  --topbar-bg: #7d12ce;
  --topbar-ink: #ffffff;
  --topbar-pill-bg: #ffffff;
  --topbar-pill-ink: #7d12ce;

  /* call to action */
  --cta-from: #5fdd7f;
  --cta-to: #2eb857;
  --cta-shadow: rgba(46, 184, 87, 0.38);
  --cta-dot: #2ec95c;

  /* callout box */
  --warn-bg: #fdf3d3;
  --warn-border: #f0e0a6;
  --warn-mark: #e0392b;

  /* type */
  --font-head: "Poppins", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-dim);
  font-size: 1.06rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 800;
}

h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

strong {
  color: var(--ink);
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.container.narrow {
  width: min(760px, 92%);
}

/* ---- top announcement bar ---- */

.review-topbar {
  background: var(--topbar-bg);
  color: var(--topbar-ink);
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 1rem;
  letter-spacing: 0.01em;
}

.review-topbar .topbar-pill {
  display: inline-block;
  background: var(--topbar-pill-bg);
  color: var(--topbar-pill-ink);
  border-radius: 999px;
  padding: 0.05rem 0.7rem;
  font-weight: 700;
  margin-right: 0.5rem;
  font-size: 0.85rem;
}

/* ---- hero ---- */

.page-hero {
  background: var(--hero-bg);
  padding: 3.2rem 0 2.6rem;
  text-align: center;
  color: var(--hero-ink-dim);
}

.page-hero h1 {
  color: var(--hero-ink);
}

.page-hero .accent {
  color: var(--hero-accent);
}

.page-hero .lead {
  color: var(--hero-ink-dim);
}

.page-hero .lead strong {
  color: var(--hero-ink);
}

.page-hero .disclosure {
  color: var(--hero-ink-faint);
}

.hero-logo {
  margin: 0 auto 1.4rem;
  max-width: 310px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--hero-pill-bg);
  border: 1px solid var(--hero-pill-border);
  color: var(--hero-pill-ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  margin-bottom: 1.3rem;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cta-dot);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 201, 92, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(46, 201, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 201, 92, 0); }
}

.accent {
  color: var(--accent);
  font-style: italic;
}

.lead {
  font-size: 1.16rem;
  color: var(--ink-dim);
  margin-top: 1.2rem;
}

.disclosure {
  font-size: 0.86rem;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 1.2rem;
}

/* ---- CTA ---- */

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.cta-demand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.page-hero .cta-demand {
  color: var(--hero-ink);
}

.cta-demand strong {
  font-weight: 800;
  color: inherit;
}

.demand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fdeeee;
  border: 1.5px solid #f0433d;
  color: #e02b25;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
}

.demand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0433d;
  box-shadow: 0 0 0 3px rgba(240, 67, 61, 0.2);
  animation: pulse-red 1.6s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(240, 67, 61, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(240, 67, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 67, 61, 0); }
}

.btn-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: min(560px, 100%);
  background: linear-gradient(135deg, var(--cta-from) 0%, var(--cta-to) 100%);
  color: #fff;
  text-decoration: none;
  text-align: center;
  border-radius: 16px;
  padding: 1.15rem 2rem 1.05rem;
  box-shadow: 0 12px 28px var(--cta-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px var(--cta-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-cta-main {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  line-height: 1.25;
}

.btn-cta-arrow {
  display: inline-block;
  opacity: 0.85;
  transition: transform 0.15s ease;
}

.btn-cta:hover .btn-cta-arrow {
  transform: translateX(5px);
}

.btn-cta-sub {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-under {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.page-hero .cta-under {
  color: var(--hero-ink-dim);
}

.cta-under-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--cta-dot);
  position: relative;
  flex-shrink: 0;
}

.cta-under-dot::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--cta-dot);
}

/* ---- sections ---- */

.section {
  padding: 2.6rem 0;
}

.section-alt {
  background: var(--bg-tint);
  border-top: 1px solid var(--accent-border);
  border-bottom: 1px solid var(--accent-border);
}

.prose p + p,
.prose ul,
.prose ol {
  margin-top: 1.15rem;
}

.prose h2 {
  margin-top: 1rem;
  margin-bottom: 0.9rem;
}

.prose img + h2 {
  margin-top: 2rem;
}

.prose h3 {
  margin-top: 1.8rem;
  color: var(--accent);
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.55rem;
}

.prose li::marker {
  color: var(--accent);
}

.prose img {
  margin: 1.6rem auto;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 27, 76, 0.14);
}

.prose img.img-portrait {
  max-width: 420px;
  width: 100%;
}

/* Product shots that already sit on transparency look better without
   the card treatment. */
.prose img.img-plain {
  border-radius: 0;
  box-shadow: none;
}

.prose img.img-plain.img-portrait {
  max-width: 320px;
}

/* ---- TL;DR + quick facts ----
   Self-contained summary at the top of the article. Answer engines lift
   this block, so it carries the entities, dates and price in one place. */

.tldr {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
}

.tldr-label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.tldr p:last-child {
  color: var(--ink);
  font-size: 1.02rem;
  margin: 0;
}

.quick-facts {
  margin-top: 1.3rem;
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  overflow: hidden;
}

.quick-facts > div {
  display: grid;
  grid-template-columns: minmax(110px, 28%) 1fr;
  gap: 1rem;
  padding: 0.7rem 1.15rem;
  border-bottom: 1px solid var(--accent-border);
}

.quick-facts > div:last-child {
  border-bottom: none;
}

.quick-facts > div:nth-child(odd) {
  background: var(--bg-tint);
}

.quick-facts dt {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.88rem;
}

.quick-facts dd {
  color: var(--ink-dim);
  font-size: 0.96rem;
}

@media (max-width: 560px) {
  .quick-facts > div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

/* ---- author box (E-E-A-T: who wrote this and why it can be trusted) ---- */

.author-box {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--bg-tint);
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
}

.author-avatar {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
}

.author-label {
  font-family: var(--font-head);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent);
}

.author-box h3 {
  margin: 0.15rem 0 0.55rem;
}

.author-box p {
  font-size: 0.96rem;
}

.author-box p + p {
  margin-top: 0.7rem;
}

.author-disclaimer {
  margin-top: 0.9rem;
  font-size: 0.81rem;
  color: var(--ink-faint);
  font-style: italic;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .author-box {
    flex-direction: column;
    gap: 0.9rem;
  }
}

/* ---- comparison table ---- */

.compare-wrap {
  overflow-x: auto;
  margin: 1.6rem 0;
  border: 1px solid var(--accent-border);
  border-radius: 12px;
}

.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 0.95rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--accent-border);
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table thead th {
  background: var(--accent-soft);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.86rem;
  line-height: 1.35;
}

.compare-table thead th a {
  color: var(--accent);
}

.compare-table tbody th {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.86rem;
  white-space: nowrap;
}

.compare-table td {
  color: var(--ink-dim);
}

.compare-table .is-current {
  background: var(--bg-tint);
}

.compare-table thead .is-current {
  box-shadow: inset 0 3px 0 var(--accent);
}

.here-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.2rem;
}

/* ---- callout: what something does NOT include ---- */

.callout-warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  margin: 1.9rem 0;
}

.callout-warn h3 {
  margin: 0 0 1rem;
  text-align: center;
  color: var(--ink);
  font-size: 1.06rem;
}

.callout-warn ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.4rem 1.4rem;
}

.callout-warn li {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.97rem;
}

.callout-warn li::before {
  content: "\2715";
  color: var(--warn-mark);
  font-weight: 700;
  flex-shrink: 0;
}

.callout-warn p {
  margin-top: 1.1rem;
  font-size: 0.97rem;
  color: var(--ink-dim);
}

/* ---- FAQ ---- */

.faq-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  background: var(--bg);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list summary h3 {
  color: var(--ink);
  font-size: 1.02rem;
}

.faq-list details[open] summary h3 {
  color: var(--accent);
}

.faq-list details p {
  margin-top: 0.8rem;
  font-size: 0.98rem;
}

#faq h2 {
  text-align: center;
}

/* ---- fineprint ---- */

.fineprint {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 0.8rem;
  text-align: center;
}

@media (max-width: 640px) {
  .page-hero {
    padding: 2.2rem 0 1.8rem;
  }

  .btn-cta {
    width: 100%;
  }

  .cta-demand {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }
}

/* Entity disambiguation note: which of the similarly named things this
   page is actually about. */
.disambig {
  margin-top: 1.1rem;
  padding: 0.85rem 1.1rem;
  border: 1px dashed var(--accent-border);
  border-radius: 10px;
  background: var(--bg-tint);
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.6;
}

.disambig strong {
  color: var(--ink);
}
