/* SEV7N Guide — Shared Stylesheet */
/* Matches sev7n.app design tokens: light/dark themes, sugar/forest accent */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Dark theme (default) ── */
:root,
html[data-theme="dark"] {
  /* Surfaces */
  --bg:               #000000;
  --surface:          rgba(10,10,10,0.90);
  --elevated:         #111111;
  /* Text */
  --text:             #f8fafc;
  --text-muted:       rgba(148,163,184,0.65);
  --text-subtle:      rgba(100,116,139,0.45);
  --action-text:      #ffffff;
  /* Borders */
  --border:           rgba(255,255,255,0.07);
  /* Brand */
  --action:           #7c3aed;
  --action-hover:     #6d28d9;
  --brand-highlight:  #f59e0b;
  --success:          #34d399;
  --destructive:      #f87171;
  /* Component-specific */
  --nav-bg:           rgba(0,0,0,0.88);
  --nav-border:       rgba(255,255,255,0.06);
  --hero-glow:        rgba(124,58,237,0.16);
  --cta-bg:           linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(21,51,38,0.22) 100%);
  --cta-border:       rgba(124,58,237,0.22);
  --bar-track:        rgba(255,255,255,0.07);
  --sep-color:        rgba(255,255,255,0.14);
  --card-hover-border:rgba(124,58,237,0.38);
  --card-hover-bg:    #161616;
  --phone-border:     rgba(255,255,255,0.12);
  --toggle-bg:        #1a1a1a;
  --toggle-border:    rgba(255,255,255,0.1);
  /* Geometry */
  --radius-card:      24px;
  --radius-button:    14px;
  --max-width:        760px;
}

/* ── Light theme — matches sev7n.app sugar theme ── */
html[data-theme="light"] {
  --bg:               #f5f6f7;
  --surface:          rgba(255,255,255,0.82);
  --elevated:         #ffffff;
  --text:             #2c2f30;
  --text-muted:       rgba(89,92,93,0.72);
  --text-subtle:      rgba(89,92,93,0.45);
  --action-text:      #ffffff;
  --border:           rgba(17,24,39,0.08);
  --action:           #406253;
  --action-hover:     #345247;
  --brand-highlight:  #d97706;
  --success:          #16a34a;
  --destructive:      #d74747;
  --nav-bg:           rgba(245,246,247,0.92);
  --nav-border:       rgba(17,24,39,0.08);
  --hero-glow:        rgba(64,98,83,0.07);
  --cta-bg:           linear-gradient(135deg, rgba(64,98,83,0.06) 0%, rgba(245,158,11,0.08) 100%);
  --cta-border:       rgba(64,98,83,0.16);
  --bar-track:        rgba(0,0,0,0.07);
  --sep-color:        rgba(0,0,0,0.14);
  --card-hover-border:rgba(64,98,83,0.28);
  --card-hover-bg:    rgba(255,255,255,0.96);
  --phone-border:     rgba(0,0,0,0.14);
  --toggle-bg:        #ffffff;
  --toggle-border:    rgba(17,24,39,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: var(--text); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--text); margin: 2.5rem 0 0.75rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); color: var(--text); margin: 1.75rem 0 0.5rem; }
h4 { font-size: 1.1rem; font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; font-weight: 700; margin: 1.25rem 0 0.4rem; }

p { margin-bottom: 1rem; color: var(--text); }
a { color: var(--brand-highlight); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: var(--text); font-weight: 600; }

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
li { margin-bottom: 0.4rem; line-height: 1.65; }

/* ── Layout ── */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,246,247,0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgb(243 244 246);
  padding: 0 1.5rem;
  transition: background 0.25s, border-color 0.25s;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.nav-brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

.nav-brand-text {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111827;
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #111827;
}

.nav-guide {
  position: relative;
}

.nav-language {
  position: relative;
}

.nav-guide-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-guide:hover .nav-guide-toggle,
.nav-guide:focus-within .nav-guide-toggle {
  color: #111827;
}

.nav-guide-caret {
  font-size: 0.75rem;
  transform: translateY(-1px);
}

.nav-guide-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15,23,42,0.12);
  padding: 0.5rem;
  display: none;
}

.nav-guide:hover .nav-guide-menu,
.nav-guide:focus-within .nav-guide-menu {
  display: block;
}

.nav-language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.nav-language-toggle::after {
  content: '▾';
  font-size: 0.75rem;
  transform: translateY(-1px);
}

.nav-language.is-open .nav-language-toggle {
  color: #111827;
}

.nav-language-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  min-width: 170px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15,23,42,0.12);
  padding: 0.5rem;
  display: none;
}

.nav-language.is-open .nav-language-menu {
  display: block;
}

.nav-guide-menu a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  color: rgba(55,65,81,0.88);
  line-height: 1.35;
}

.nav-guide-menu a:hover,
.nav-guide-menu a.active {
  background: rgba(17,24,39,0.04);
  color: #111827;
  text-decoration: none;
}

.nav-language-menu a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  color: rgba(55,65,81,0.88);
  line-height: 1.35;
}

.nav-language-menu a:hover,
.nav-language-menu a.active {
  background: rgba(17,24,39,0.04);
  color: #111827;
  text-decoration: none;
}

.nav-cta {
  display: none; /* shown on desktop only — mobile uses drawer CTA */
  align-items: center;
  justify-content: center;
  background: #406253;
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0em;
  transition: box-shadow 0.2s ease, transform 0.15s ease, filter 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: #345247; box-shadow: 0 12px 28px rgba(64, 98, 83, 0.22); transform: translateY(-1px); text-decoration: none; }

/* ── Hamburger button ── */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.nav-hamburger:hover { background: rgba(17,24,39,0.06); }
.nav-hamburger span {
  display: block;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.15s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ── */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1.5rem 1.75rem;
  border-top: 1px solid rgba(17,24,39,0.07);
  background: rgba(245,246,247,0.98);
}
.mobile-nav.is-open { display: flex; }

.mobile-nav-link {
  display: block;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid rgba(17,24,39,0.06);
  transition: color 0.15s;
}
.mobile-nav-link:last-of-type { border-bottom: none; }
.mobile-nav-link:hover { color: #111827; text-decoration: none; }
.mobile-nav-link.is-active { color: #111827; font-weight: 600; }

.mobile-nav-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 1.25rem 0 0.5rem;
}

.mobile-nav-lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mobile-nav-lang-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(17,24,39,0.06);
  color: #374151;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-lang-btn:hover { background: rgba(17,24,39,0.11); text-decoration: none; }
.mobile-nav-lang-btn.is-active { background: #406253; color: white; }

.mobile-nav-cta {
  display: block;
  margin-top: 1.5rem;
  text-align: center;
  background: #406253;
  color: white;
  padding: 0.875rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.mobile-nav-cta:hover { background: #345247; text-decoration: none; }

@media (min-width: 640px) {
  .nav-hamburger { display: none; }
  .mobile-nav { display: none !important; }
}

/* ── Hero ── */
.hero {
  padding: 3.5rem 1.25rem 2.5rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, var(--hero-glow) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-highlight);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.25rem;
}

.hero h1 { margin-bottom: 1rem; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-meta {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 0.5rem;
}

/* ── Article Body ── */
.article-body {
  padding: 2.5rem 1.25rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* ── Cards / Callouts ── */
.callout {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--action);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.callout.highlight { border-left-color: var(--brand-highlight); }
.callout.success   { border-left-color: var(--success); }

.callout-title {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-highlight);
  margin-bottom: 0.5rem;
}
.callout.success .callout-title { color: var(--success); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 480px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

.feature-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--card-hover-border); }
.feature-icon { font-size: 1.75rem; margin-bottom: 0.6rem; display: block; }
.feature-card h4 { margin-top: 0; color: var(--text); }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

/* ── Screenshot Mockup ── */
.screenshot-frame {
  margin: 2rem auto;
  max-width: 320px;
}

.phone-shell {
  background: #111;
  border: 2px solid var(--phone-border);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04);
}
html[data-theme="light"] .phone-shell {
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
}

.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-screenshot-real {
  width: 100%;
  display: block;
  border-radius: 28px;
}

.phone-screenshot-crop-wrap {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}
.phone-screenshot-crop-wrap img {
  width: 100%;
  display: block;
}

.tip-screenshot {
  margin-top: 1rem;
  max-width: 220px;
}
.tip-screenshot .phone-shell {
  padding: 8px;
  border-radius: 28px;
}
.tip-screenshot .phone-screenshot-real {
  border-radius: 20px;
}

.screenshot-caption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 0.75rem;
}

/* ── Stats Mockup ── */
.stats-mockup {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  margin: 1.75rem 0;
}
.stats-mockup-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}
.stat-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 80px;
  flex-shrink: 0;
}
.stat-bar-outer {
  flex: 1;
  height: 6px;
  background: var(--bar-track);
  border-radius: 999px;
  overflow: hidden;
}
.stat-bar-inner {
  height: 100%;
  border-radius: 999px;
}
.stat-value {
  font-size: 0.85rem;
  font-weight: 700;
  width: 28px;
  text-align: right;
}

/* ── Timeline Mockup ── */
.timeline-mockup {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  margin: 1.75rem 0;
}
.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.tl-item:last-child { border-bottom: none; }
.tl-time {
  font-size: 0.7rem;
  color: var(--text-subtle);
  font-family: monospace;
  width: 38px;
  flex-shrink: 0;
  padding-top: 2px;
}
.tl-icon { font-size: 1.1rem; width: 24px; flex-shrink: 0; text-align: center; }
.tl-text { font-size: 0.82rem; }
.tl-player { font-weight: 600; color: var(--text); }
.tl-detail { color: var(--text-muted); font-size: 0.78rem; }

/* ── CTA Block ── */
.cta-block {
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  border-radius: var(--radius-card);
  padding: 2.25rem 1.75rem;
  text-align: center;
  margin: 2.5rem 0;
}
.cta-block h2 { margin-top: 0; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.cta-block p { color: var(--text-muted); margin-bottom: 1.5rem; }

.btn-primary {
  display: inline-block;
  background: var(--action);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-button);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--action-hover); transform: translateY(-1px); text-decoration: none; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  font-weight: 500;
  font-size: 0.9rem;
  margin-left: 0.75rem;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
html[data-theme="dark"] .btn-secondary:hover { border-color: rgba(255,255,255,0.2); color: var(--text); text-decoration: none; }
html[data-theme="light"] .btn-secondary:hover { border-color: rgba(0,0,0,0.2); color: var(--text); text-decoration: none; }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center; }

/* ── Step List ── */
.step-list { list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: steps; }
.step-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  counter-increment: steps;
}
.step-list li::before {
  content: counter(steps);
  background: var(--action);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.faq-q::before {
  content: 'Q';
  background: rgba(245,158,11,0.15);
  color: var(--brand-highlight);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 1px;
}
.faq-a {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 1.6rem;
  margin: 0;
}

/* ── TOC ── */
.toc {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.75rem;
}
.toc ol { padding-left: 1.25rem; margin: 0; }
.toc li { margin-bottom: 0.3rem; }
.toc a { color: var(--text-muted); font-size: 0.9rem; }
.toc a:hover { color: var(--brand-highlight); text-decoration: none; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-subtle);
  padding: 1.25rem 1.25rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
}
.breadcrumb a { color: var(--text-subtle); }
.breadcrumb a:hover { color: var(--text-muted); }
.breadcrumb .sep { color: var(--sep-color); }

/* ── Related Articles ── */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 540px) {
  .related-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.related-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.15s;
}
.related-card:hover { border-color: var(--card-hover-border); transform: translateY(-2px); }
.related-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-highlight);
  margin-bottom: 0.4rem;
}
.related-card h4 {
  font-size: 0.88rem;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ── Footer ── */
.site-footer {
  background: #ffffff;
  border-top: 1px solid rgb(243 244 246);
  padding: 4rem 1.5rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand-head {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-brand-mark {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.footer-brand-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111827;
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(55,65,81,0.78);
  margin-bottom: 0;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  color: #111827;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.footer-links a { font-size: 0.92rem; color: rgba(55,65,81,0.78); }
.footer-links a:hover { color: #111827; }

.footer-bottom {
  max-width: 1120px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(243 244 246);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(107,114,128,0.9);
}

.footer-copy,
.footer-note {
  margin: 0;
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .hero { padding: 4.5rem 1.25rem 3rem; }
  .article-body { padding: 3rem 1.25rem 5rem; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .footer-inner { grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr; }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ── Utilities ── */
.highlight { color: var(--brand-highlight); }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  color: var(--success);
  border: 1px solid rgba(34,197,94,0.2);
  vertical-align: middle;
  margin-left: 0.4rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── Tips page ── */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 1.75rem 0;
}

.tip-card {
  background: var(--elevated);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: background 0.15s;
}
.tip-card:hover { background: var(--card-hover-bg); }

.tip-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.tip-icon-wrap.amber {
  background: rgba(245,158,11,0.10);
  border-color: rgba(245,158,11,0.20);
}
.tip-icon-wrap.green {
  background: rgba(34,197,94,0.10);
  border-color: rgba(34,197,94,0.20);
}
.tip-icon-wrap.blue {
  background: rgba(37,99,235,0.10);
  border-color: rgba(37,99,235,0.20);
}
.tip-icon-wrap.red {
  background: rgba(248,113,113,0.10);
  border-color: rgba(248,113,113,0.20);
}

.tip-body h4 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.tip-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.tip-path {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.tip-path-step {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  color: var(--text-muted);
  white-space: nowrap;
}
html[data-theme="light"] .tip-path-step {
  background: rgba(0,0,0,0.04);
}
.tip-path-arrow {
  font-size: 0.65rem;
  color: var(--text-subtle);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 2.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
