/* ==========================================================================
   Tonee — article.css
   Shared stylesheet for /compare/ and editorial pages.
   Reuses the landing design system (index.html :root tokens, header, footer,
   .btn, .reveal). Brand-rich hero + responsive comparison table + verdict.
   ========================================================================== */

/* ── Tokens (mirror of index.html :root) ── */
:root {
    --primary: #FA4F01;
    --primary-glow: rgba(250, 79, 1, 0.35);
    --primary-soft: rgba(250, 79, 1, 0.08);
    --secondary: #2A364A;
    --secondary-deep: #1E2838;
    --secondary-light: #354564;
    --accent: #FFDCCC;
    --accent-muted: rgba(255, 220, 204, 0.12);
    --teal: #32ADC2;
    --teal-glow: rgba(50, 173, 194, 0.25);
    --white: #FFFFFF;
    --gray-100: #F8F9FC;
    --gray-400: #91A2C0;
    --gray-500: #6B7A94;
    --bg-warm: #FFF9F5;
    --bg-gray: #F6F7FA;
    --text-primary: #2A364A;
    --text-secondary: #6B7A94;
    --border-light: #E2E7F0;
    --shadow-xs: 0 1px 2px rgba(42,54,74,0.04);
    --shadow-card: 0 2px 8px rgba(42,54,74,0.06);
    --shadow-card-hover: 0 12px 32px rgba(42,54,74,0.10);
    --shadow-glow: 0 8px 40px rgba(250, 79, 1, 0.12);
    --radius-card: 16px;
    --container-max: 1100px;
    --reading-max: 720px;
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── Reset & base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg-warm); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-warm);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--primary); margin-bottom: 16px;
}
.section-label::before { content: ''; width: 20px; height: 2px; background: var(--primary); border-radius: 1px; }

/* ── Buttons (cloned from landing) ── */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 12px; font-family: var(--font);
    font-size: 1rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer;
    transition: transform 0.25s var(--ease-out-back), box-shadow 0.25s, opacity 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 12px rgba(250,79,1,0.2); }
.btn--primary:hover { box-shadow: 0 8px 24px rgba(250,79,1,0.3); }
.btn--white { background: var(--white); color: var(--secondary); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.btn--white:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.btn--outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.25); }
.btn--outline:hover { border-color: rgba(255,255,255,0.5); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Sticky header (cloned from landing) ── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: transparent; border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), backdrop-filter 0.4s;
}
.site-header.is-scrolled { border-bottom-color: rgba(255,255,255,0.08); }
@media (min-width: 769px) {
    .site-header.is-scrolled {
        background: rgba(42,54,74,0.85);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    }
}
@media (max-width: 768px) { .site-header.is-scrolled { background: rgba(42,54,74,0.97); } }
.site-header__inner {
    max-width: var(--container-max); margin: 0 auto; padding: 12px 24px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.site-header__logo { font-size: 1.35rem; font-weight: 800; color: var(--white); text-decoration: none; letter-spacing: -0.02em; }
.site-header__logo .dot { color: var(--primary); }
.site-header .btn { padding: 8px 20px; font-size: 0.85rem; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav__link {
    color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem; font-weight: 500;
    padding: 6px 12px; border-radius: 6px; transition: color 0.2s, background 0.2s;
}
.site-nav__link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.site-header__hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 36px; height: 36px; padding: 6px; background: none; border: none; cursor: pointer; z-index: 110;
}
.site-header__hamburger span { display: block; width: 100%; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.site-header__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__hamburger.is-open span:nth-child(2) { opacity: 0; }
.site-header__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav--mobile {
    display: none; position: fixed; inset: 0; z-index: 99; background: rgba(42,54,74,0.98);
    flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.site-nav--mobile.is-open { display: flex; }
.site-nav--mobile .site-nav__link { font-size: 1.2rem; padding: 12px 24px; color: rgba(255,255,255,0.85); }
.site-nav--mobile .site-nav__link:hover { color: var(--white); }
@media (min-width: 769px) { .site-header__hamburger { display: none; } }
@media (max-width: 768px) { .site-nav { display: none; } }

/* ── Article hero (brand-rich, animated) ── */
.a-hero {
    position: relative; overflow: hidden; isolation: isolate;
    background: linear-gradient(160deg, var(--secondary-deep) 0%, var(--secondary) 60%, var(--secondary-light) 130%);
    color: var(--white);
    padding: 132px 24px 72px;
}
.a-hero__orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.45; z-index: -1; pointer-events: none; }
.a-hero__orb--1 { width: 440px; height: 440px; background: var(--primary); top: -130px; left: -90px; animation: orbDrift 19s var(--ease-out-expo) infinite; }
.a-hero__orb--2 { width: 380px; height: 380px; background: var(--teal); bottom: -160px; right: -70px; animation: orbDrift 23s var(--ease-out-expo) infinite reverse; animation-delay: -8s; }
.a-hero__inner { max-width: var(--reading-max); margin: 0 auto; }
.a-hero__cat { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 14px; }
.a-hero .section-label { color: var(--accent); }
.a-hero .section-label::before { background: var(--accent); }
.a-hero__title {
    font-size: clamp(2rem, 5.2vw, 3.1rem); font-weight: 800; line-height: 1.08;
    letter-spacing: -0.02em; margin: 0 0 20px;
}
.a-hero__title .word {
    display: inline-block; opacity: 0; transform: translateY(24px) rotateX(20deg); filter: blur(6px);
    animation: wordReveal 0.8s var(--ease-out-expo) forwards; animation-delay: var(--d, 0s);
}
.a-hero__dek { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 0 28px; }
.a-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 0.86rem; color: rgba(255,255,255,0.62); margin-bottom: 28px; }
.a-hero__meta strong { color: rgba(255,255,255,0.9); font-weight: 700; }
.a-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.a-hero__cta .btn--text { color: rgba(255,255,255,0.78); text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 8px 4px; }
.a-hero__cta .btn--text:hover { color: var(--white); }

/* ── Breadcrumb ── */
.crumbs { font-size: 0.9rem; margin-bottom: 18px; color: rgba(255,255,255,0.7); }
.crumbs a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; text-decoration-color: rgba(255,255,255,0.4); }
.crumbs a:hover { text-decoration-color: var(--white); }
.crumbs span { margin: 0 6px; opacity: 0.5; }
/* On light pages (hub) */
.crumbs--light { color: var(--text-secondary); }
.crumbs--light a { color: var(--text-secondary); }
.crumbs--light a:hover { color: var(--primary); }

/* ── Article body / reading column ── */
.a-body { max-width: var(--reading-max); margin: 0 auto; padding: 56px 24px 24px; }
.a-body > * { margin-left: auto; margin-right: auto; }
.a-prose { font-size: 1.06rem; color: var(--text-primary); }
.a-prose p { margin: 0 0 22px; }
.a-prose h2 {
    font-size: clamp(1.5rem, 3.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.01em;
    line-height: 1.2; margin: 48px 0 14px; scroll-margin-top: 90px;
}
.a-prose h3 { font-size: 1.18rem; font-weight: 700; margin: 32px 0 10px; }
.a-prose ul, .a-prose ol { margin: 0 0 22px; padding-left: 22px; }
.a-prose li { margin-bottom: 9px; }
.a-prose strong { font-weight: 700; }
.a-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.a-prose a:hover { text-decoration-thickness: 2px; }
.a-prose blockquote {
    margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--primary);
    font-size: 1.15rem; font-weight: 600; color: var(--secondary); font-style: normal;
}
.a-prose hr { border: none; border-top: 1px solid var(--border-light); margin: 40px 0; }

/* ── Quick-compare cards (at a glance) ── */
.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 40px; }
.glance__card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow-card); }
.glance__card--tonee { border-color: rgba(250,79,1,0.35); box-shadow: var(--shadow-glow); }
.glance__name { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.glance__name .dot { color: var(--primary); }
.glance__tag { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); margin-bottom: 14px; }
.glance__row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; padding: 7px 0; border-top: 1px solid var(--border-light); }
.glance__row span:first-child { color: var(--text-secondary); }
.glance__row span:last-child { font-weight: 600; text-align: right; }
@media (max-width: 560px) { .glance { grid-template-columns: 1fr; } }

/* ── Comparison table (responsive → cards) ── */
.cmp-wrap { margin: 8px 0 40px; }
.cmp { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.cmp-caption { text-align: left; font-size: 0.8rem; color: var(--text-secondary); margin: 0 0 10px; }
.cmp th, .cmp td { padding: 13px 16px; text-align: left; font-size: 0.92rem; vertical-align: top; }
.cmp thead th { background: var(--secondary); color: var(--white); font-weight: 700; font-size: 0.85rem; }
.cmp thead th.is-tonee { background: var(--primary); }
.cmp tbody th[scope="row"] { font-weight: 700; color: var(--secondary); width: 34%; background: var(--gray-100); }
.cmp tbody tr { border-top: 1px solid var(--border-light); }
.cmp td.is-tonee { background: var(--primary-soft); font-weight: 600; }
.cmp .yes { color: #1B7A42; font-weight: 700; }
.cmp .no { color: var(--text-secondary); }
@media (max-width: 640px) {
    .cmp { border: none; box-shadow: none; background: transparent; }
    .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .cmp tbody tr { display: block; background: var(--white); border: 1px solid var(--border-light); border-radius: 14px; margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
    .cmp tbody th[scope="row"] { display: block; width: 100%; background: var(--secondary); color: var(--white); font-size: 0.95rem; }
    .cmp td { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border-light); }
    .cmp td::before { content: attr(data-label); font-weight: 700; color: var(--text-secondary); flex-shrink: 0; }
    .cmp td.is-tonee { background: var(--primary-soft); }
}

/* ── Callout / aside (honest caveats) ── */
.callout { border-radius: var(--radius-card); padding: 22px 24px; margin: 28px 0; border: 1px solid var(--border-light); background: var(--gray-100); }
.callout__title { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; color: var(--text-secondary); }
.callout p:last-child { margin-bottom: 0; }
.callout--win { background: var(--primary-soft); border-color: rgba(250,79,1,0.22); }
.callout--win .callout__title { color: var(--primary); }
.callout--note { background: var(--primary-soft); border-color: rgba(250,79,1,0.22); border-left: 3px solid var(--primary); }
.callout--note .callout__title { color: var(--primary); }

/* ── Verdict ── */
.verdict { background: var(--white); border: 1px solid var(--border-light); border-left: 4px solid var(--primary); border-radius: var(--radius-card); padding: 28px; margin: 40px 0; box-shadow: var(--shadow-card); }
.verdict h2 { margin-top: 0 !important; }
.verdict__split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.verdict__pick { border: 1px solid var(--border-light); border-radius: 12px; padding: 16px 18px; background: var(--bg-warm); }
.verdict__pick h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 6px; }
.verdict__pick p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }
.verdict__pick--tonee { border-color: rgba(250,79,1,0.3); background: var(--primary-soft); }
@media (max-width: 560px) { .verdict__split { grid-template-columns: 1fr; } }

/* ── CTA band ── */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-deep) 100%); color: var(--white); border-radius: 20px; padding: 44px 32px; margin: 48px auto; text-align: center; max-width: var(--reading-max); }
.cta-band__glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--primary); filter: blur(80px); opacity: 0.35; top: -120px; left: 50%; transform: translateX(-50%); z-index: 0; }
.cta-band > *:not(.cta-band__glow) { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 800; margin: 0 0 10px; letter-spacing: -0.01em; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0 auto 22px; max-width: 460px; }
.cta-band__sub { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 14px; }

/* ── Related ── */
.related { max-width: var(--reading-max); margin: 8px auto 0; padding: 0 24px; }
.related__title { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-secondary); margin-bottom: 14px; }
.related__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.related__card { display: block; background: var(--white); border: 1px solid var(--border-light); border-radius: 14px; padding: 18px 20px; text-decoration: none; color: var(--text-primary); box-shadow: var(--shadow-card); transition: transform 0.25s var(--ease-out-back), box-shadow 0.25s; }
.related__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.related__card span { display: block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 5px; }
.related__card strong { font-size: 1rem; font-weight: 700; }
@media (max-width: 560px) { .related__grid { grid-template-columns: 1fr; } }

/* ── Sources / reviewed note ── */
.reviewed-note { max-width: var(--reading-max); margin: 36px auto 0; padding: 18px 24px; font-size: 0.82rem; color: var(--text-secondary); border-top: 1px solid var(--border-light); }
.reviewed-note strong { color: var(--text-primary); }
.reviewed-note a { color: var(--text-secondary); }

/* ── Hub (compare index) ── */
.hub { max-width: var(--container-max); margin: 0 auto; padding: 132px 24px 24px; }
.hub__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 32px; }
.hub__card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-card); padding: 24px; text-decoration: none; color: var(--text-primary); box-shadow: var(--shadow-card); transition: transform 0.25s var(--ease-out-back), box-shadow 0.25s; }
.hub__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.hub__card span { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin-bottom: 8px; }
.hub__card h3 { font-size: 1.18rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.hub__card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

/* ── Footer (cloned from landing) ── */
.site-footer { background: var(--secondary-deep); padding: 44px 24px; }
.site-footer__inner { max-width: var(--container-max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.site-footer__top { display: flex; align-items: center; gap: 16px; }
.site-footer__brand { font-size: 1.15rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.site-footer__brand .dot { color: var(--primary); }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.site-footer__link { color: var(--gray-500); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.site-footer__link:hover { color: var(--white); }
.site-footer__copy { color: var(--gray-500); font-size: 0.82rem; }
.site-footer__fine { font-size: 0.72rem; color: var(--gray-500); opacity: 0.7; text-align: center; max-width: 540px; margin: 4px auto 0; line-height: 1.5; }

/* ── Scroll reveal (cloned) ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Mobile refinements ── */
@media (max-width: 768px) {
    .a-hero { padding-top: 88px; padding-bottom: 56px; }
    .cta-band { margin: 40px 20px; padding: 36px 24px; }
}

/* ── Keyframes ── */
@keyframes wordReveal { to { opacity: 1; transform: translateY(0) rotateX(0deg); filter: blur(0); } }
@keyframes orbDrift { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.12); } }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .a-hero__title .word { opacity: 1; transform: none; filter: none; }
    .a-hero__orb { animation: none; }
    .reveal { opacity: 1; transform: none; }
}
