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

:root {
  --blue: #0e7de5;
  --blue-hover: #4ea2f2;
  --orange: #f67a3d;
  --heading: #0b111e;
  --body: #2d3748;
  --secondary: #4a5568;
  --muted: #718096;
  --border: #e2e8f0;
  --border-light: #edf2f7;
  --bg: #fcfcfc;
  --bg-alt: #f7f8fc;
  --bg-dark: #0b111e;
  --white: #ffffff;
  --green: #09bb03;
  --red: #ed0b0b;
  --star: #f59e0b;
  --star-bg: #e2e8f0;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */
.container { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* --- Hero --- */
.hero {
  background: var(--bg-dark);
  padding: 72px 24px 64px;
}
.hero .container { max-width: 780px; }
.hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 18px;
  color: #a0aec0;
  line-height: 1.7;
}
.hero-meta {
  margin-top: 28px;
  font-size: 14px;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
}

/* Hero score badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-badge-score {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}
.hero-badge-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
}
.hero-badge-divider {
  color: rgba(255,255,255,0.2);
}

/* --- Star rating system --- */
.stars-wrap {
  position: relative;
  display: inline-block;
  font-size: 18px;
  letter-spacing: 3px;
  line-height: 1;
  color: var(--star-bg);
  white-space: nowrap;
}
.stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--star);
}
.hero-badge .stars-wrap {
  font-size: 16px;
  letter-spacing: 2px;
}

/* --- Sections --- */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }

h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
  margin-bottom: 24px;
}
h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.4;
  margin-bottom: 8px;
}
h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 12px;
}

p { margin-bottom: 20px; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-hover); }

ul.content-list { padding-left: 24px; margin-bottom: 20px; }
ul.content-list li { margin-bottom: 8px; line-height: 1.7; }

/* --- Ratings panel --- */
.ratings-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 40px 0 0;
  max-width: 500px;
}
.rating-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.rating-row:last-child { border-bottom: none; }
.rating-label {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--secondary);
}
.rating-stars {
  flex-shrink: 0;
  margin: 0 16px;
}
.rating-value {
  flex-shrink: 0;
  width: 28px;
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
}

/* --- Verdict grid (pros/cons) --- */
.verdict-section {
  margin: 32px 0;
}
.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.verdict-pros, .verdict-cons {
  border-radius: var(--radius);
  padding: 28px 24px;
}
.verdict-pros {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
}
.verdict-cons {
  background: #fffbeb;
  border: 1px solid #fef3c7;
}
.verdict-pros h4, .verdict-cons h4 {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.verdict-pros h4 { color: #15803d; }
.verdict-cons h4 { color: #b45309; }
.verdict-pros ul, .verdict-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.verdict-pros li, .verdict-cons li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}
.verdict-pros li::before, .verdict-cons li::before {
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  content: "";
  background-size: 16px 16px;
  background-repeat: no-repeat;
}
.verdict-pros li::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.verdict-cons li::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}
.verdict-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-primary:hover { background: #e56a2d; color: var(--white); }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--secondary);
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* --- Key highlights --- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.highlight-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  background: #f0f4ff;
}
.highlight-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.highlight-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
}
.highlight-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* --- Content images --- */
.content-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin: 24px 0;
}

/* --- Video embed --- */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Speed results --- */
.speed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.speed-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.speed-item-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.speed-item-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
}
.speed-item-value.excellent { color: var(--green); }
.speed-item-value.good { color: var(--blue); }
.speed-item-context {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* --- Tooltips (CSS-only) --- */
[data-tooltip] {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--muted);
}
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--heading);
  color: var(--white);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

/* --- Pricing table --- */
.pricing-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 500px;
}
.pricing-table th, .pricing-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.pricing-table thead th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--heading);
  font-size: 14px;
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover td { background: #fafbfe; }
.pricing-table .highlight-row { background: #f0f7ff; }

/* --- Support grid --- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.support-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.support-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  background: #f0f4ff;
}
.support-card-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.support-card-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
}
.support-card-note {
  font-size: 13px;
  color: var(--secondary);
  margin-top: 4px;
  line-height: 1.4;
}

/* --- Verdict box --- */
.verdict-box {
  background: linear-gradient(135deg, #f0f4ff 0%, #f7f8fc 100%);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 28px 32px;
  margin: 32px 0;
  font-size: 17px;
  line-height: 1.75;
}
.verdict-box strong { color: var(--blue); }

/* --- Tip box --- */
.tip-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 32px 0;
  font-size: 16px;
  line-height: 1.7;
  position: relative;
  padding-left: 72px;
}
.tip-box::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 28px;
  width: 32px;
  height: 32px;
  background: #e8f2fd;
  border-radius: 8px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%230e7de5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
  background-size: 18px 18px;
  background-repeat: no-repeat;
  background-position: center;
}
.tip-box strong { color: var(--heading); }

/* --- Section divider --- */
.section-anchor { scroll-margin-top: 24px; }

/* --- Help cards --- */
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.help-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.help-card:hover {
  border-color: var(--blue);
  background: var(--bg-alt);
}
.help-card-title { font-size: 19px; font-weight: 600; color: var(--heading); margin-bottom: 8px; }
.help-card-desc { font-size: 15px; color: var(--secondary); line-height: 1.6; margin-bottom: 16px; }
.help-card-link { font-size: 15px; font-weight: 500; color: var(--blue); }
.help-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.help-icon.purple { background: #f0e8fd; }
.help-icon.blue { background: #e8f2fd; }

/* --- Course CTA --- */
.course-cta { background: var(--bg-dark); padding: 72px 0; }
.course-cta-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.course-cta-step {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--orange); margin-bottom: 16px;
}
.course-cta-title {
  font-size: clamp(26px, 4vw, 34px); font-weight: 700;
  color: var(--white); line-height: 1.3; margin-bottom: 16px;
}
.course-cta-desc { font-size: 17px; color: #a0aec0; line-height: 1.7; margin-bottom: 32px; }
.course-cta-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.course-cta-meta { font-size: 14px; color: #4a5568; }

/* --- Related reviews --- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 32px;
}
.related-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  text-decoration: none; display: flex; flex-direction: column;
  transition: border-color 0.2s, background 0.2s;
}
.related-card:hover { border-color: var(--blue); background: var(--bg-alt); }
.related-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px; flex-shrink: 0;
}
.related-icon.blue { background: #e8f2fd; }
.related-icon.green { background: #e6f9e6; }
.related-icon.purple { background: #f0e8fd; }
.related-icon.orange { background: #fef0e8; }
.related-card-title { font-size: 17px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.related-card-desc { font-size: 14px; color: var(--secondary); line-height: 1.6; flex: 1; }
.related-card-link { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--blue); }
.related-card-link::after { content: " \2192"; }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  padding: 20px 0; font-size: 17px; font-weight: 600;
  color: var(--heading); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; color: var(--muted);
  font-weight: 400; flex-shrink: 0; margin-left: 16px;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 0 24px; font-size: 17px; line-height: 1.8; }

/* --- Author card --- */
.author-card {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 32px; background: var(--bg-alt); border-radius: var(--radius);
}
.author-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-info { flex: 1; }
.author-name { font-size: 18px; font-weight: 700; color: var(--heading); margin-bottom: 2px; }
.author-role { font-size: 14px; color: var(--blue); font-weight: 500; margin-bottom: 10px; }
.author-bio { font-size: 15px; color: var(--secondary); line-height: 1.7; margin-bottom: 0; }

/* --- Sidebar newsletter --- */
.sidebar-newsletter {
  position: fixed; left: 32px; top: 50%;
  transform: translateY(-50%) translateX(20px);
  width: 230px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  opacity: 0; transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none; z-index: 50;
}
.sidebar-newsletter.active { opacity: 1; transform: translateY(-50%) translateX(0); pointer-events: auto; }
.sidebar-nl-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; font-size: 18px;
  color: var(--muted); cursor: pointer; padding: 4px; line-height: 1;
}
.sidebar-nl-close:hover { color: var(--heading); }
.sidebar-nl-icon {
  width: 36px; height: 36px; background: #eef4fd; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.sidebar-nl-title { font-size: 16px; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.sidebar-nl-desc { font-size: 13px; color: var(--secondary); line-height: 1.5; margin-bottom: 14px; }
.sidebar-nl-form { display: flex; flex-direction: column; gap: 8px; }
.sidebar-nl-input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 3px; background: var(--white); color: var(--heading);
  font-size: 13px; font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.sidebar-nl-input::placeholder { color: var(--muted); }
.sidebar-nl-input:focus { border-color: var(--blue); }
.sidebar-nl-btn {
  width: 100%; padding: 9px; background: var(--blue); color: var(--white);
  border: none; border-radius: 3px; font-size: 13px; font-weight: 600;
  font-family: 'DM Sans', sans-serif; cursor: pointer; transition: background 0.2s;
}
.sidebar-nl-btn:hover { background: var(--blue-hover); }
@media (max-width: 1280px) { .sidebar-newsletter { display: none; } }

/* --- Scroll reveal --- */
.reveal-ready .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-ready .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-ready .reveal-grow {
  opacity: 0; transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-ready .reveal-grow.visible { opacity: 1; transform: scale(1); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { padding: 48px 24px 44px; }
  section { padding: 48px 0; }
  .ratings-panel { padding: 20px; }
  .verdict-grid { grid-template-columns: 1fr; }
  .verdict-cta { flex-direction: column; gap: 12px; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: 1fr; }
  .author-card { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; }
  .tip-box { padding-left: 20px; padding-top: 68px; }
  .tip-box::before { left: 20px; top: 24px; }
  .speed-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .support-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}