/* ----------------------------------------
   More Client Playbook — Design System
   ---------------------------------------- */

:root {
  --ink: #0B1220;
  --ink-2: #1F2937;
  --muted: #475569;
  --muted-2: #64748B;
  --line: #E5E9F0;
  --line-soft: #EEF2F6;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-3: #F1F5F9;

  --brand: #0F766E;
  --brand-2: #115E59;
  --brand-soft: #ECFDF5;
  --brand-tint: #CCFBF1;
  --accent: #F59E0B;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;

  --sh-1: 0 1px 2px rgba(11, 18, 32, 0.05);
  --sh-2: 0 4px 14px -2px rgba(11, 18, 32, 0.07), 0 1px 2px rgba(11, 18, 32, 0.04);
  --sh-3: 0 14px 36px -10px rgba(11, 18, 32, 0.16), 0 4px 10px -4px rgba(11, 18, 32, 0.06);
  --sh-brand: 0 8px 22px -6px rgba(15, 118, 110, 0.36);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

::selection {
  background: var(--brand-tint);
  color: var(--brand-2);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
a:hover { color: var(--brand-2); }

img, svg { display: block; max-width: 100%; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

*:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
}

/* Typography */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  letter-spacing: -0.028em;
  line-height: 1.06;
}
h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.024em;
}
h3 {
  font-size: 19px;
  line-height: 1.35;
}
h4 { font-size: 15px; }

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}

.muted { color: var(--muted); }

/* ----------------------------------------
   Header / Nav
   ---------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.012em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--surface-3);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  margin-left: 6px;
  border-radius: 8px;
  background: var(--ink);
  color: white !important;
  font-size: 13.5px;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--ink-2) !important;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  color: var(--ink-2);
}
.menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle .icon-close { display: none; }
.site-header.is-open .menu-toggle .icon-open { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px -10px rgba(11, 18, 32, 0.12);
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }
  .nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15.5px;
  }
  .nav-cta {
    height: auto;
    padding: 12px 14px;
    margin: 4px 0 0;
    justify-content: center;
  }
  .site-header.is-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.16s var(--ease), box-shadow 0.18s var(--ease), color 0.16s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
  color: white;
}
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--brand {
  background: var(--brand);
  box-shadow: var(--sh-brand);
}
.btn--brand:hover { background: var(--brand-2); }

.btn--ghost {
  background: white;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--sh-1);
}
.btn--ghost:hover {
  background: var(--surface-3);
  color: var(--ink);
  border-color: var(--line);
}

.btn--lg { height: 50px; padding: 0 24px; font-size: 15.5px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn--block { width: 100%; }

.btn .arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.18s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ----------------------------------------
   Eyebrow
   ---------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

/* ----------------------------------------
   Hero — homepage
   ---------------------------------------- */

.hero {
  position: relative;
  padding: 72px 0 48px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero h1 { max-width: 16ch; margin-top: 18px; }
.hero .lead { margin-top: 18px; max-width: 56ch; }

.hero-cta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-trust {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-trust .label {
  font-size: 13px;
  color: var(--muted);
  margin-right: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s var(--ease);
}
.chip:hover {
  border-color: var(--brand);
  color: var(--brand-2);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

@media (max-width: 880px) {
  .hero { padding: 48px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Search */

.search {
  margin-top: 24px;
  display: flex;
  gap: 6px;
  max-width: 560px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: var(--sh-1);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.10);
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.search-input-wrap svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 11px 12px 11px 36px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}
.search input::placeholder { color: var(--muted-2); font-weight: 400; }
.search .btn { flex: 0 0 auto; height: 40px; }

/* Hero side panel */

.hero-panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, white, var(--surface-2));
  box-shadow: var(--sh-2);
}
.hero-panel-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-panel-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--line);
}
.hero-panel-list {
  display: grid;
  gap: 10px;
}
.hero-panel-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line-soft);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.hero-panel-item:hover {
  border-color: var(--brand-tint);
  transform: translateX(2px);
}
.hero-panel-item .num {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.hero-panel-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ----------------------------------------
   Sections
   ---------------------------------------- */

.section { padding: 72px 0; position: relative; }
.section--tight { padding: 48px 0; }
.section--bg { background: var(--surface-2); }

@media (max-width: 720px) {
  .section { padding: 48px 0; }
}

.section-head {
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}
.section-head h2 { margin-top: 10px; max-width: 22ch; }
.section-head p { max-width: 46ch; }

@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 14px; }
}

/* Grid */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ----------------------------------------
   Cards
   ---------------------------------------- */

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: white;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  display: flex;
  flex-direction: column;
}

.card--linked { cursor: pointer; }
.card--linked:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
  border-color: transparent;
}

.card .tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.card .tag.is-live {
  background: var(--brand-soft);
  color: var(--brand-2);
}
.card .tag.is-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 6px;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}
.card .tag.is-soon {
  background: #FFF7ED;
  color: #9A3412;
}

.card h3 { font-size: 19px; }
.card h3 + p { margin-top: 8px; }

.card-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.card-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--brand);
  font-weight: 600;
  font-size: 14.5px;
}
.card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s var(--ease);
}
.card--linked:hover .card-link svg,
.card-link:hover svg {
  transform: translateX(3px);
}

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

.cta {
  margin: 16px 0;
  padding: 40px;
  border-radius: var(--r-2xl);
  background: radial-gradient(circle at 0% 100%, rgba(15, 118, 110, 0.55), transparent 55%), linear-gradient(135deg, #0B1220, #1F2937);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 60%);
  pointer-events: none;
}
.cta h2 { color: white; }
.cta p { color: rgba(255, 255, 255, 0.76); margin-top: 10px; max-width: 52ch; }
.cta .btn {
  background: white;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.cta .btn:hover { background: var(--surface-2); color: var(--ink); }

@media (max-width: 720px) {
  .cta { grid-template-columns: 1fr; padding: 28px; }
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer .brand {
  font-size: 14px;
  color: var(--muted);
}
.footer a:hover { color: var(--ink); }

/* ----------------------------------------
   Article (playbook) layout
   ---------------------------------------- */

.article-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}
.article-hero .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.article-hero .meta a { color: var(--muted); }
.article-hero .meta a:hover { color: var(--brand); }
.article-hero .meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
}
.article-hero h1 {
  max-width: 22ch;
  font-size: clamp(30px, 4.2vw, 46px);
}
.article-hero .lead {
  margin-top: 16px;
  max-width: 60ch;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.article-tags span {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  background: var(--surface-3);
  color: var(--ink-2);
}

.article-callout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.callout {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.callout .label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.callout .value {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.callout p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.callout.is-brand {
  background: linear-gradient(135deg, #064E3B, #0F766E);
  border-color: transparent;
  color: white;
}
.callout.is-brand .label { color: rgba(255,255,255,0.7); }
.callout.is-brand .value { color: white; }
.callout.is-brand p { color: rgba(255,255,255,0.78); }

@media (max-width: 640px) {
  .article-callout { grid-template-columns: 1fr; }
}

.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: start;
  padding: 56px 0 96px;
}

@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; }
  .toc-rail { display: none; }
}
@media (max-width: 880px) {
  .article-layout { grid-template-columns: 1fr; gap: 36px; padding-bottom: 64px; }
  .article-aside { position: static; }
}

.article-body {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 68ch;
}
.article-body > section + section { margin-top: 48px; }
.article-body h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin-bottom: 14px;
  scroll-margin-top: 96px;
}
.article-body h3 {
  font-size: 18px;
  margin: 28px 0 8px;
  color: var(--ink);
}
.article-body p { margin: 12px 0; }
.article-body p strong { color: var(--ink); }

/* TOC (left rail) */

.toc-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 2px;
  font-size: 13.5px;
}
.toc-label {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc-rail a {
  display: block;
  padding: 7px 0 7px 14px;
  color: var(--muted);
  border-left: 2px solid var(--line-soft);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.toc-rail a:hover { color: var(--ink); }
.toc-rail a.is-active {
  color: var(--ink);
  border-left-color: var(--brand);
  font-weight: 600;
}

/* Aside */

.article-aside {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
}
.aside-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.aside-card h3 { font-size: 15px; margin-bottom: 8px; }
.aside-card p { font-size: 13.5px; line-height: 1.55; }
.aside-card .btn {
  margin-top: 14px;
  width: 100%;
}

/* Script block */

.script {
  margin: 14px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  position: relative;
}
.script .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.script .label::before {
  content: "";
  width: 12px; height: 1px;
  background: var(--brand);
}
.script p {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
  font-size: 15.5px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s var(--ease);
}
.copy-btn svg { width: 12px; height: 12px; }
.copy-btn:hover { color: var(--brand-2); border-color: var(--brand-tint); }
.copy-btn.is-copied {
  color: var(--brand-2);
  border-color: var(--brand-tint);
  background: var(--brand-soft);
}

/* Checklist */

.checklist {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding: 10px 0 10px 32px;
  line-height: 1.55;
  color: var(--ink-2);
  font-size: 15.5px;
  border-bottom: 1px solid var(--line-soft);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-tint);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 17px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* Table */

.table-wrap {
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 540px;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}
th {
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
tbody tr + tr td { border-top: 1px solid var(--line-soft); }
td { color: var(--ink-2); line-height: 1.5; }
td:first-child { color: var(--ink); font-weight: 500; }

/* Reading progress */

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  z-index: 100;
  transition: width 0.05s linear;
  border-radius: 0 4px 4px 0;
}

/* ----------------------------------------
   Calculator
   ---------------------------------------- */

.calc {
  display: grid;
  gap: 16px;
}
.calc-field {
  display: grid;
  gap: 6px;
}
.calc-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.calc-field .hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.calc-input { position: relative; display: flex; align-items: center; }
.calc-input input,
.calc-input select.calc-select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  transition: border 0.15s var(--ease), box-shadow 0.15s var(--ease);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.calc-input input::-webkit-outer-spin-button,
.calc-input input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.calc-input input:focus,
.calc-input select.calc-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}
.calc-input select.calc-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.calc-input--prefix input { padding-left: 32px; }
.calc-input--suffix input { padding-right: 40px; }
.calc-input .prefix,
.calc-input .suffix {
  position: absolute;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}
.calc-input .prefix { left: 14px; }
.calc-input .suffix { right: 14px; }

.calc-results {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}
.calc-result {
  padding: 22px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--line);
}
.calc-result.primary {
  background: radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.4), transparent 60%), linear-gradient(135deg, #0B1220, #1F2937);
  border-color: transparent;
  color: white;
}
.calc-result span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.calc-result strong {
  display: block;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -0.028em;
  margin: 8px 0 10px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.calc-result.primary span { color: rgba(255, 255, 255, 0.66); }
.calc-result.primary strong { color: white; }
.calc-result.primary p { color: rgba(255, 255, 255, 0.78); }
.calc-result p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ----------------------------------------
   Reveal on scroll
   ---------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}

/* ----------------------------------------
   Comparison page
   ---------------------------------------- */

.compare-pick {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  padding: 28px;
  border-radius: var(--r-2xl);
  background: radial-gradient(circle at 0% 100%, rgba(15, 118, 110, 0.55), transparent 55%), linear-gradient(135deg, #0B1220, #1F2937);
  color: white;
  position: relative;
  overflow: hidden;
}
.compare-pick::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.20), transparent 60%);
  pointer-events: none;
}
.compare-pick .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}
.compare-pick .label::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--accent);
}
.compare-pick h2 { color: white; margin-top: 10px; font-size: clamp(24px, 3.2vw, 32px); }
.compare-pick p { color: rgba(255, 255, 255, 0.78); margin-top: 10px; max-width: 52ch; }
.compare-pick-aside {
  position: relative;
  z-index: 1;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 10px;
}
.compare-pick-aside .pick-name {
  font-size: 24px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}
.compare-pick-aside .pick-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.compare-pick-aside p { color: rgba(255,255,255,0.78); font-size: 14px; }
.compare-pick-aside .btn {
  background: var(--accent);
  color: #1F2937;
  margin-top: 4px;
}
.compare-pick-aside .btn:hover { background: #FBBF24; color: #1F2937; }

@media (max-width: 880px) {
  .compare-pick { grid-template-columns: 1fr; padding: 24px; }
}

/* Compare table */

.compare-table-wrap {
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 680px;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}
.compare-table thead th {
  background: var(--surface-2);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.compare-table tbody tr + tr td { border-top: 1px solid var(--line-soft); }
.compare-table .prod {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}
.compare-table .prod-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}
.compare-table .pick-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Product cards */

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: white;
  transition: box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}
.product-card:hover {
  box-shadow: var(--sh-3);
  transform: translateY(-2px);
}
.product-card.is-pick {
  border-color: var(--brand);
  background: linear-gradient(180deg, #F0FDF9, white 30%);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.product-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.product-head .prod-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}
.product-head h3 {
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}
.product-head .product-tagline {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
}

.product-content > p { color: var(--ink-2); font-size: 15px; }
.product-meta {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.product-meta .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
}
.product-meta .pill strong { color: var(--ink); font-weight: 600; }

.product-side {
  display: grid;
  align-content: start;
  gap: 14px;
}
.pros-cons {
  display: grid;
  gap: 12px;
}
.pros-cons .label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pros .label { color: var(--brand-2); }
.cons .label { color: #B91C1C; }
.pros-cons ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.pros-cons li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.pros li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand-tint);
}
.pros li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.cons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FEF2F2;
  border: 1px solid #FECACA;
}
.cons li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  background:
    linear-gradient(45deg, transparent 45%, #B91C1C 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #B91C1C 45% 55%, transparent 55%);
}

.product-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

@media (max-width: 880px) {
  .product-card { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
}

/* Disclosure */

.disclosure {
  margin: 32px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Number label/value pair in product head when long */
@media (max-width: 480px) {
  .product-head { flex-wrap: wrap; }
  .product-head h3 { font-size: 19px; }
}
