/* ============================================
   MY TABLET RESOURCE — SHARED DESIGN SYSTEM
   Dark editorial. Premium. Scroll-trap ready.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

:root {
  /* Core palette */
  --bg:        #0b0f1a;
  --bg2:       #111827;
  --bg3:       #1a2235;
  --surface:   rgba(255,255,255,0.04);
  --surface2:  rgba(255,255,255,0.08);
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);

  /* Accent */
  --green:     #00e676;
  --green-dim: rgba(0,230,118,0.12);
  --orange:    #ff6d3b;
  --purple:    #818cf8;

  /* Text */
  --text:      #f1f5f9;
  --text2:     #94a3b8;
  --text3:     #475569;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Layout */
  --max:    780px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── PROGRESS BAR ── */
#progress-bar {
  position: fixed; top:0; left:0;
  height: 2px; width: 0%;
  background: var(--green);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ── NAV ── */
.site-nav {
  position: sticky; top:0;
  background: rgba(11,15,26,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 999;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--green); }

.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 14px; color: var(--text2);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--green); }

.nav-cta {
  background: var(--green); color: var(--bg);
  padding: 8px 18px; border-radius: 100px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s, filter 0.15s;
}
.nav-cta:hover { transform: scale(1.03); filter: brightness(1.08); }

/* ── HERO ── */
.article-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 20px;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.article-hero h1 em { font-style: italic; color: var(--orange); }

.hero-sub {
  font-size: 19px; color: var(--text2);
  max-width: 600px; margin-bottom: 24px;
}

.meta {
  display: flex; align-items: center;
  gap: 14px; font-size: 13px; color: var(--text3);
  flex-wrap: wrap;
}
.meta .dot { opacity: 0.3; }

/* ── CONTENT WRAPPER ── */
.article-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 100px;
}

/* ── TYPOGRAPHY ── */
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 26px;
  letter-spacing: -0.8px; line-height: 1.2;
  margin: 56px 0 18px;
  color: var(--text);
}

.article-body h3 {
  font-weight: 500; font-size: 19px;
  margin: 36px 0 12px; color: var(--text);
}

.article-body p { margin-bottom: 20px; color: var(--text2); }
.article-body p strong { color: var(--text); font-weight: 500; }

/* ── DISCLOSURE ── */
.disclosure {
  font-size: 13px; color: var(--text3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 32px;
}

/* ── VERDICT BOX ── */
.verdict-box {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 26px 28px; margin: 32px 0;
}
.verdict-box .vb-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 8px;
}
.verdict-box h2 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  letter-spacing: -0.5px; margin: 0 0 10px !important;
  color: var(--text) !important;
}
.verdict-box p { font-size: 15px; color: var(--text2); margin: 0; }

/* ── SCORE CARDS ── */
.score-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 28px 0;
}

.score-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px; position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.score-card:hover { transform: translateY(-3px); border-color: var(--border2); }
.score-card.winner { border-color: var(--green); }

.winner-badge {
  position: absolute; top: -10px; right: 14px;
  background: var(--green); color: var(--bg);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
}

.brand { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.score-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 48px; line-height: 1; color: var(--text);
  margin-bottom: 2px;
}
.score-label { font-size: 12px; color: var(--text3); }

.bars { margin-top: 16px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; font-size: 12px; }
.bar-lbl { width: 80px; color: var(--text3); flex-shrink: 0; }
.bar-track {
  flex: 1; height: 4px;
  background: var(--surface2); border-radius: 10px; overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 10px;
  background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.bar-fill.alt { background: var(--purple); }
.bar-fill.visible { transform: scaleX(1); }

/* ── REAL TALK ── */
.real-talk {
  background: rgba(255,109,59,0.08);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 28px 0;
  font-size: 16px; font-style: italic;
  color: var(--text2);
}
.real-talk strong {
  display: block; font-style: normal;
  font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 6px;
}

/* ── USER QUOTE ── */
.user-quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px; margin: 24px 0;
}
.user-quote p { font-size: 15px; font-style: italic; color: var(--text2); margin-bottom: 10px; }
.user-quote .reviewer { font-size: 12px; color: var(--text3); font-style: normal; margin: 0; }

/* ── PROS CONS ── */
.pros-cons {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 24px 0;
}
.pros, .cons {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.pros { border-top: 2px solid var(--green); }
.cons { border-top: 2px solid var(--orange); }
.pros h4, .cons h4 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 12px;
}
.pros h4 { color: var(--green); }
.cons h4 { color: var(--orange); }
.pros li, .cons li {
  list-style: none; font-size: 14px;
  padding: 4px 0 4px 18px;
  position: relative; color: var(--text2); line-height: 1.5;
}
.pros li::before { content:'✓'; position:absolute; left:0; color:var(--green); font-weight:700; }
.cons li::before { content:'✗'; position:absolute; left:0; color:var(--orange); }

/* ── COMPARE TABLE ── */
.compare-wrap { overflow-x: auto; margin: 28px 0; }
.compare-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.compare-table th {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  padding: 12px 16px; background: var(--bg3); color: var(--text);
  text-align: left; border-bottom: 1px solid var(--border2);
}
.compare-table td {
  padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text2);
}
.compare-table tr:nth-child(even) td { background: var(--surface); }
.compare-table .win { color: var(--green); font-weight: 500; }

/* ── BUY BOX ── */
.buy-box {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 24px; margin: 36px 0;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.buy-info { flex: 1; min-width: 180px; }
.buy-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.buy-price { font-size: 26px; font-weight: 700; color: var(--text); }
.buy-note { font-size: 12px; color: var(--text3); }
.buy-btn {
  display: inline-block;
  background: var(--green); color: var(--bg);
  padding: 13px 26px; border-radius: 100px;
  font-weight: 500; font-size: 14px;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.15s, filter 0.15s;
}
.buy-btn:hover { transform: scale(1.04); filter: brightness(1.08); }
.buy-badge { font-size: 11px; color: var(--text3); margin-top: 6px; text-align: center; }

/* ── PERSONA GRID ── */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 12px; margin: 24px 0;
}
.persona-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.persona-card:hover { border-color: var(--green); transform: translateY(-2px); }
.persona-icon { font-size: 26px; margin-bottom: 10px; display: block; }
.persona-type { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.persona-rec { font-size: 13px; color: var(--text3); line-height: 1.5; }

/* ── FINAL VERDICT ── */
.final-verdict {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-top: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 36px; margin: 48px 0; text-align: center;
}
.fv-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.final-verdict h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 3.5vw, 34px);
  letter-spacing: -1px; color: var(--text) !important;
  margin: 0 0 14px !important;
}
.final-verdict p { font-size: 15px; color: var(--text2); max-width: 500px; margin: 0 auto 24px; }
.final-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--green); color: var(--bg);
  padding: 13px 26px; border-radius: 100px;
  font-weight: 500; font-size: 14px; text-decoration: none;
  transition: transform 0.15s;
}
.btn-primary:hover { transform: scale(1.04); }
.btn-ghost {
  background: var(--surface2); color: var(--text);
  padding: 13px 26px; border-radius: 100px;
  font-weight: 500; font-size: 14px; text-decoration: none;
  border: 1px solid var(--border2);
  transition: background 0.15s;
}
.btn-ghost:hover { background: var(--surface); }

/* ── MORE ARTICLES ── */
.more-section { border-top: 1px solid var(--border); padding-top: 48px; margin-top: 60px; }
.more-section h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; letter-spacing: -0.5px; margin-bottom: 20px;
}
.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.article-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--text);
  transition: transform 0.2s, border-color 0.2s;
}
.article-card:hover { transform: translateY(-4px); border-color: var(--border2); }
.card-img {
  height: 100px; background: var(--bg3);
  display: flex; align-items: center;
  justify-content: center; font-size: 32px;
}
.card-body { padding: 14px; }
.card-tag { font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.3; letter-spacing: -0.3px; }

/* ── FADE IN ── */
.fade { opacity:0; transform:translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade.in { opacity:1; transform:translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 580px) {
  .score-grid, .pros-cons { grid-template-columns: 1fr; }
  .buy-box { flex-direction: column; }
  .nav-links { display: none; }
}
