/* Light / dark switch button plus the few fixes the light design needs.
   Stays enabled in both themes (theme-toggle.js skips it). */
.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  flex:none;
  padding:0;
  border-radius:999px;
  border:1px solid rgba(244,241,234,.30);
  background:rgba(244,241,234,.08);
  color:#ebe9e4;
  cursor:pointer;
  transition:color .15s ease, border-color .15s ease;
}
.theme-toggle:hover{ color:#fff; background:rgba(102,81,246,.22); border-color:rgba(169,157,255,.75); }
.theme-toggle:focus-visible{ outline:2px solid #a99dff; outline-offset:2px; }

html[data-theme="light"] .theme-toggle{ border-color:rgba(102,81,246,.35); background:rgba(102,81,246,.08); color:#4b3fd6; }
html[data-theme="light"] .theme-toggle:hover{ color:#fff; background:#6651f6; border-color:#6651f6; }

/* Rating cards on the homepage use dark tokens. */
html[data-theme="light"] .cws-card{ color:#2d3242; }
html[data-theme="light"] .cws-card__score b,
html[data-theme="light"] .cws-card:hover .cws-card__score{ color:#14141a; }
html[data-theme="light"] .cws-card__count{ color:#4e5563; }

/* Yearly billing line on the price cards: the light design had a pale lilac. */
html[data-theme="light"] .price-billed{ color:#5b45e8; }

/* Hero: same shape as the dark first screen (three lines, same type scale,
   green verb, green dots), in light colours. */
html[data-theme="light"] .hero .h1,
html[data-theme="light"] .hero-h1{
  font-size:clamp(36px, 3.6vw, 52px);
  line-height:1.02;
  letter-spacing:-.038em;
  font-weight:600;
  color:#14141a;
}
html[data-theme="light"] .hero-h1 .hero-static{ display:block; }
html[data-theme="light"] .hero-rotate-item{ color:#17a34a; }
html[data-theme="light"] .hero-static,
html[data-theme="light"] .hero-line2{ color:#14141a; }
html[data-theme="light"] .hero .p{ color:#383e4f; font-size:18px; line-height:1.6; max-width:54ch; }
html[data-theme="light"] .hero-micro span{ background:#fff; border:1px solid rgba(102,81,246,.35); color:#2d3242; }
html[data-theme="light"] .hero-micro .dot{
  padding:0; border:0; flex:0 0 10px;
  width:10px; height:10px; border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 8px rgba(34,197,94,.45);
}

/* Same typeface as the dark theme (fonts.css loads General Sans on every page). */
html[data-theme="light"] body,
html[data-theme="light"] .btn,
html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3, html[data-theme="light"] h4,
html[data-theme="light"] .h1, html[data-theme="light"] .h2, html[data-theme="light"] .h3,
html[data-theme="light"] .tb-h2, html[data-theme="light"] .wf-h3{
  font-family:"General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3, html[data-theme="light"] h4,
html[data-theme="light"] .h1, html[data-theme="light"] .h2, html[data-theme="light"] .h3,
html[data-theme="light"] .tb-h2, html[data-theme="light"] .wf-h3{ letter-spacing:-.028em; }
html[data-theme="light"] h2, html[data-theme="light"] .h2, html[data-theme="light"] .tb-h2{ font-weight:600; }

/* Value statement under the CRM logos: the dark theme's type scale.
   The light design kept 36px and a 75ch line that left "time." alone. */
html[data-theme="light"] .section-value .h2{ font-size:clamp(34px, 3.6vw, 52px); line-height:1.12; }
@media (min-width:1100px){
  html[data-theme="light"] .section-value .p{ max-width:none; white-space:nowrap; }
}
@media (max-width:520px){
  html[data-theme="light"] .section-value .h2{ font-size:28px; text-align:center; text-wrap:balance; }
  html[data-theme="light"] .section-value .p{ text-align:center; text-wrap:balance; }
}

/* Small grey text in the light theme, one tone darker: each grey is mixed
   30% toward the ink colour (#0b1020); a translucent ink gets the same step
   through its alpha. Only grey text on light surfaces; the dark theme
   never matches these rules. */
html[data-theme="light"]{ --muted:#434b5c; }
html[data-theme="light"] .cv-root{ --muted:#4e4f57; --muted-2:#6d6e77; }
html[data-theme="light"] .tb-sec{ --tb-muted:#4e4f57; }
html[data-theme="light"] .snb{ --mut:#48495f; }
html[data-theme="light"] .p,
html[data-theme="light"] .hero-micro,
html[data-theme="light"] .logos-note,
html[data-theme="light"] .slider-row .hint,
html[data-theme="light"] .kpi .kpi-label,
html[data-theme="light"] .kpi .kpi-sub,
html[data-theme="light"] .price small,
html[data-theme="light"] .plan .desc,
html[data-theme="light"] .cta-points span,
html[data-theme="light"] .post-card p,
html[data-theme="light"] .faq .ans,
html[data-theme="light"] .footer small,
html[data-theme="light"] .article p,
html[data-theme="light"] .article .meta,
html[data-theme="light"] .logos-soon__label{ color:#434b5c; }
html[data-theme="light"] .li-person-meta,
html[data-theme="light"] .li-msg-day,
html[data-theme="light"] .li-msg-time{ color:#4e4f57; }
html[data-theme="light"] .li-msg-blur{ color:#373943; }
html[data-theme="light"] .toggle button:not(.active){ color:#2d364c; }
html[data-theme="light"] .footer .col h5,
html[data-theme="light"] .footer .col .footer-h{ color:rgba(41,36,84,.92); }
html[data-theme="light"] .footer-elsewhere-label,
html[data-theme="light"] .footer-elsewhere-links a{ color:rgba(11,16,32,.8); }
html[data-theme="light"] .error-sub{ color:#4b4c51; }
html[data-theme="light"] .sfx-sub{ color:rgba(0,0,0,.83); }
html[data-theme="light"] .sfx-micro{ color:rgba(0,0,0,.72); }
html[data-theme="light"] .sfx-lead,
html[data-theme="light"] .sfx-faq .ans{ color:rgba(0,0,0,.8); }
html[data-theme="light"] .sfx-step p{ color:rgba(0,0,0,.79); }
html[data-theme="light"] .sfx-flow span,
html[data-theme="light"] .sfx-plan p{ color:rgba(0,0,0,.78); }
html[data-theme="light"] .sfx-plan .pl-price small{ color:rgba(0,0,0,.69); }
html[data-theme="light"] .sfx-split__lead{ color:#37354d; }
html[data-theme="light"] .ft-item p{ color:#3f3d55; }
html[data-theme="light"] #features .bx .p,
html[data-theme="light"] .cap-card p,
html[data-theme="light"] .plan-help > p,
html[data-theme="light"] .plan-help .ph-list span:last-child{ color:#404854; }
@media (max-width:560px){
  html[data-theme="light"] .sec-table td:nth-child(2),
  html[data-theme="light"] .sec-table td:nth-child(3){ color:#404854; }
}
html[data-theme="light"] .sec-table thead th{ color:#59606c; }
html[data-theme="light"] .li-degree,
html[data-theme="light"] .li-sub,
html[data-theme="light"] .li-followers,
html[data-theme="light"] .wf-chat .wf-tools{ color:#434b58; }
html[data-theme="light"] .wf-chat .wf-chat-day,
html[data-theme="light"] .wf-chat .wf-msg-h i,
html[data-theme="light"] .wf-chat .wf-input[data-empty]{ color:#646c7e; }
html[data-theme="light"] .wf-chat .wf-cav{ color:#394457; }
html[data-theme="light"] .wf-chat .wf-bubble p{ color:#2a3241; }
html[data-theme="light"] .invite-subtitle{ color:rgba(17,24,39,.78); }
html[data-theme="light"] .invite-label,
html[data-theme="light"] .invite-note{ color:rgba(17,24,39,.65); }
html[data-theme="light"] .invite-meta{ color:rgba(17,24,39,.72); }
html[data-theme="light"] .reg-plan__label{ color:#4e5063; }
html[data-theme="light"] .reg-plan__detail{ color:#3f4054; }
/* Two greys set in a style attribute (About breadcrumbs, Pricing note). */
html[data-theme="light"] nav[aria-label="Breadcrumbs"][style*="color:#666"]{ color:#4b4c51 !important; }
html[data-theme="light"] p.p[style*="rgba(15,15,16,0.65)"]{ color:rgba(15,15,16,.76) !important; }

/* Smaller on phones so it never pushes into the logo. */
@media (max-width: 760px){ .theme-toggle{ width:36px; height:36px; } .theme-toggle svg{ width:16px; height:16px; } }
