/* ==========================================================================
   VITALO7 — Base + Components
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { color: var(--text); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-muted); line-height: 1.6; }

.eyebrow {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--mint-deep);
}
:root[data-theme="dark"] .eyebrow,
:root:not([data-theme="light"]) .eyebrow { color: var(--mint); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--mint); } }

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

/* --- Layout --- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-sm { padding-block: clamp(40px, 6vw, 72px); }
.stack > * + * { margin-top: var(--sp-2); }
.center { text-align: center; }
.grid { display: grid; gap: var(--sp-3); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--mint); color: var(--btn-fg); padding: 10px 18px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --- Wordmark (brand-book construction: apex A, mint 7) --- */
.wordmark {
  display: inline-flex; align-items: baseline; gap: 0;
  font-family: var(--font-display); font-weight: 300; font-size: 1.35rem;
  letter-spacing: 0.24em; color: var(--text); text-decoration: none; white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark .wm-a { width: .62em; height: .66em; overflow: visible; margin: 0 .055em 0 .02em; transform: translateX(-.09em); }
.wordmark .wm-7 { color: var(--brand-mark); font-weight: 400; letter-spacing: 0; margin-left: .04em; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  padding: 13px 24px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: var(--btn-fg); box-shadow: 0 6px 20px rgba(0,230,166,.28); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(0,230,166,.38); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint-deep); }
:root[data-theme="dark"] .btn-ghost:hover { color: var(--mint); }

/* --- Cards --- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: var(--sp-3); box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card-link { color: inherit; text-decoration: none; display: block; }
.card-link:hover { text-decoration: none; }
.card-hover:hover { transform: translateY(-3px); border-color: rgba(0,230,166,.4); }

/* --- Pills / tags --- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); color: var(--text-muted);
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-good { background: var(--good); } .dot-warn { background: var(--warn); } .dot-bad { background: var(--bad); }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); height: 68px; }
.nav-links { display: flex; align-items: center; gap: var(--sp-3); list-style: none; padding: 0; margin: 0; }
.nav-links a { color: var(--text-muted); font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: var(--sp-2); }

.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--border-strong); border-radius: 50%;
  color: var(--text); cursor: pointer; transition: border-color var(--dur), color var(--dur);
}
.theme-toggle:hover { border-color: var(--mint); color: var(--mint-deep); }
:root[data-theme="dark"] .theme-toggle:hover { color: var(--mint); }
.theme-toggle .icon-sun { display: none; } .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease);
  }
  .nav-links li { width: 100%; border-top: 1px solid var(--border); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a { display: block; padding: 16px 24px; }
  .site-header.open .nav-links { max-height: 60vh; }
}

/* ============================ HERO ============================ */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.hero-inner { position: relative; padding-block: clamp(56px, 10vw, 120px); }
.hero h1 { margin-top: var(--sp-2); max-width: 15ch; }
.hero .lead { margin-top: var(--sp-3); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

.gradient-rule { height: 3px; width: 120px; border-radius: 2px; background: linear-gradient(90deg, var(--mint), var(--cyan) 55%, var(--violet)); }

/* Proof strip */
.proof { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-8); }
.proof .stat .num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--brand-mark); line-height: 1; }
.proof .stat .lbl { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-top: 6px; }

/* ============================ SECTION HEADS ============================ */
.sec-head { max-width: 60ch; margin-bottom: var(--sp-6); }
.sec-head .gradient-rule { margin-bottom: var(--sp-3); }

/* Pillars (7) */
.pillars { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pillar { text-align: left; }
.pillar .n { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; color: var(--brand-mark); }
.pillar h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; margin-top: 8px; }
.pillar p { color: var(--text-muted); font-size: .92rem; margin-top: 4px; }

/* Value cards */
.values { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.value .n { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--brand-mark); }
.value h3 { margin-top: 6px; font-family: var(--font-body); font-size: 1.05rem; }
.value p { color: var(--text-muted); font-size: .92rem; margin-top: 6px; }

/* Product feature */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-6); align-items: center; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }
.verdict-demo { display: flex; flex-direction: column; gap: var(--sp-2); }
.verdict-row { display: flex; align-items: center; gap: var(--sp-2); }
.ring {
  width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text);
  background: conic-gradient(var(--mint) calc(var(--v,92) * 1%), var(--border) 0);
  -webkit-mask: radial-gradient(circle 20px at center, transparent 98%, #000 100%);
          mask: radial-gradient(circle 20px at center, transparent 98%, #000 100%);
}
.verdict-card { flex: 1; }
.verdict-card .top { display: flex; justify-content: space-between; align-items: baseline; }
.verdict-card .top strong { font-size: 1.02rem; }
.verdict-card .top .grade { font-family: var(--font-display); font-weight: 700; color: var(--good-ink); letter-spacing: .06em; }

/* Blog cards */
.posts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post .kicker { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.post h3 { margin-top: 10px; font-size: 1.18rem; }
.post p { color: var(--text-muted); font-size: .93rem; margin-top: 10px; }
.post .more { margin-top: 14px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-mark); }

/* CTA band */
.cta-band { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-modal); padding: clamp(32px, 6vw, 64px); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--hero-glow); }
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }

/* ============================ BREADCRUMB ============================ */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--text-faint); }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: var(--text-muted); }

/* ============================ ARTICLE ============================ */
.article-hero { padding-block: var(--sp-6) var(--sp-3); }
.article-hero .pill { margin-bottom: var(--sp-2); }
.article-hero h1 { max-width: 20ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: var(--sp-3); font-family: var(--font-mono); font-size: .78rem; color: var(--text-muted); }
.byline .sep { opacity: .5; }

.article-body { max-width: 72ch; margin-inline: auto; padding-block: var(--sp-3) var(--sp-8); }
.article-body > * + * { margin-top: var(--sp-3); }
.article-body p { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.article-body h2 { margin-top: var(--sp-8); font-size: 1.55rem; padding-bottom: var(--sp-1); border-bottom: 2px solid var(--mint); display: inline-block; }
.article-body h3 { margin-top: var(--sp-4); font-family: var(--font-body); font-size: 1.12rem; color: var(--brand-mark); }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: 8px; }
.article-body li { font-size: 1.02rem; line-height: 1.6; }
.article-body strong { color: var(--text); }

.callout {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--mint);
  border-radius: var(--r-input); padding: var(--sp-3);
}
.callout p { font-size: .98rem !important; color: var(--text-muted); }

.sources-box {
  margin-top: var(--sp-4); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: var(--sp-3);
}
.sources-box .eyebrow { display: block; margin-bottom: 8px; }
.sources-box p { font-size: .84rem !important; color: var(--text-muted); line-height: 1.7; }

.article-footer-nav { display: flex; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; padding-top: var(--sp-4); border-top: 1px solid var(--border); }

/* Blog index intro */
.blog-intro { max-width: 68ch; }

/* ============================ VIDEO CARDS ============================ */
.videos { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.video-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.video-card .thumb {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; margin: 0;
  background: var(--surface-2); cursor: pointer; display: block; overflow: hidden;
}
.video-card .thumb.is-short { aspect-ratio: 9 / 16; max-height: 420px; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.video-card .thumb:hover img { transform: scale(1.04); }
.video-card .thumb iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Play button overlay */
.video-card .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(11,14,19,0) 40%, rgba(11,14,19,.45) 100%);
  transition: background .3s ease;
}
.video-card .thumb:hover .play { background: linear-gradient(180deg, rgba(11,14,19,.1) 40%, rgba(11,14,19,.55) 100%); }
.video-card .play svg {
  width: 56px; height: 56px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.4));
  transition: transform .25s ease;
}
.video-card .thumb:hover .play svg { transform: scale(1.1); }
.video-card .thumb:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }

.video-card .meta { padding: var(--sp-2) var(--sp-3) var(--sp-3); }
.video-card .meta .kicker { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.video-card .meta h3 { margin-top: 8px; font-size: 1.02rem; line-height: 1.4; }

.videos-cta { display: flex; justify-content: center; margin-top: var(--sp-4); }

/* ============================ FOOTER ============================ */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elev); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--sp-4); padding-block: var(--sp-8) var(--sp-4); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-2); font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: .93rem; }
.footer-col a:hover { color: var(--text); }
.footer-tag { color: var(--text-muted); font-size: .9rem; margin-top: var(--sp-2); max-width: 34ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2); padding-block: var(--sp-3); border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: var(--text-faint); }
