/*
Theme Name: Finance Track
Theme URI: https://finance-track.app
Author: MD Arshad
Description: Custom WordPress theme for Finance Track — pixel-matched to HTML designs. AdSense-ready, fully editable via WordPress Customizer.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: ft
Tags: blog, custom-menu, featured-images, custom-logo
*/

/* =====================================================
   CSS VARIABLES — matched from HTML files exactly
   ===================================================== */
:root {
  --primary:        #02335d;
  --secondary:      #00658d;
  --accent-orange:  #ffa15e;
  --accent-dark:    #532500;
  --green:          #10b981;
  --purple:         #7c6fff;
  --red:            #ef4444;
  --amber:          #f59e0b;

  --surface:        #f9f9fd;
  --surface-low:    #f4f3f7;
  --surface-mid:    #eeedf2;
  --surface-high:   #e8e8ec;
  --white:          #ffffff;

  --on-surface:     #1a1c1f;
  --on-surface-var: #43474f;
  --muted:          #73777f;
  --outline:        #e2e2e6;
  --outline-var:    #c3c6d0;

  --font-head:      'Plus Jakarta Sans', sans-serif;
  --font-body:      'Geist', system-ui, sans-serif;

  --radius-sm:      6px;
  --radius:         8px;
  --radius-md:      12px;
  --radius-lg:      14px;
  --radius-xl:      16px;
  --radius-full:    9999px;

  --shadow-nav:     0 4px 20px rgba(0,0,0,.05);
  --shadow-card:    0 8px 24px rgba(2,51,93,.08);
  --shadow-hover:   0 8px 24px rgba(2,51,93,.08);

  --max-w:          1152px; /* max-w-6xl */
  --header-h:       80px;
  --admin-bar-h:    0px;
  --offset:         calc(var(--header-h) + var(--admin-bar-h));
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-low); }
::-webkit-scrollbar-thumb { background: rgba(2,51,93,.3); border-radius: 3px; }
::selection { background: rgba(2,51,93,.15); color: var(--on-surface); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* =====================================================
   LAYOUT
   ===================================================== */
.wrap {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 768px) {
  .wrap { padding-left: 48px; padding-right: 48px; }
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
.t-head-xl {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.t-head-lg {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
}
.t-head-md {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}
.t-head-sm {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
}
.t-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(2,51,93,.25); }

.btn-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 10px;
  padding: 14px 32px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(2,51,93,.3);
  text-decoration: none;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(2,51,93,.35); }

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  transition: border-color .25s, box-shadow .25s, transform .2s;
}
.card:hover {
  border-color: rgba(2,51,93,.2);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* =====================================================
   PILLS / BADGES
   ===================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
}
.pill-navy {
  background: rgba(2,51,93,.1);
  color: var(--primary);
  border: 1px solid rgba(2,51,93,.2);
}

/* =====================================================
   ADSENSE SLOTS
   ===================================================== */
.adsense-slot {
  background: var(--surface-low);
  border: 1px dashed var(--outline-var);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
}
.adsense-slot ins, .adsense-slot > * { width: 100%; }

/* =====================================================
   HEADER / NAV
   ===================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
  box-shadow: var(--shadow-nav);
  transition: box-shadow .3s;
}
#site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.12); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px) {
  .header-inner { padding: 0 48px; }
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
/* When custom logo: .site-logo is a div wrapper, the_custom_logo() outputs its own <a><img> */
.site-logo .custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0; /* remove inline-block gap */
}
.site-logo .custom-logo-link img,
.site-logo .custom-logo {
  height: 44px !important;
  width: auto !important;
  max-width: 200px;
  max-height: 44px;
  object-fit: contain;
  display: block;
}
.logo-icon-wrap {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon-wrap .material-symbols-outlined {
  color: #fff;
  font-size: 20px;
}
.logo-text-wrap .logo-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  color: var(--primary);
  line-height: 1;
}
.logo-text-wrap .logo-domain {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* Desktop nav */
.site-nav {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 768px) { .site-nav { display: flex; } }

.site-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--on-surface-var);
  transition: color .2s;
  text-decoration: none;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active,
.site-nav .current-menu-item > a {
  color: var(--primary);
}
.site-nav .current-menu-item > a {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 12px;
}
@media (min-width: 768px) { .nav-actions { display: flex; } }
.nav-actions .sign-in {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface-var);
  text-decoration: none;
}

/* Mobile toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle .material-symbols-outlined { color: var(--primary); font-size: 24px; }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--outline);
  padding: 16px 24px;
}
@media (min-width: 768px) { .mobile-menu { display: none !important; } }
.mobile-menu.open { display: block; }
.mobile-menu .nav-link {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--on-surface-var);
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--surface-low);
}
.mobile-menu .nav-link:hover { color: var(--primary); }
.mobile-menu .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  padding: 14px 0;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .material-symbols-outlined { font-size: 14px; }
.breadcrumb span:last-child { color: var(--primary); }


/* Footer logo image */
.footer-logo-wrap { margin-bottom: 12px; }
.footer-logo-img-link { display: inline-block; line-height: 0; }
.footer-logo-img {
  height: 40px;
  width: auto;
  max-width: 180px;
  max-height: 40px;
  object-fit: contain;
  display: block;
  /* Invert dark logos to white for dark footer background */
  filter: brightness(0) invert(1);
}
/* If logo is already light/white, add this class via customizer or remove filter */
.footer-logo-img.no-invert { filter: none; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--primary);
  color: #8fa3bd;
  padding: 64px 24px 40px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  line-height: 1;
}
.footer-domain { font-size: 10px; color: rgba(255,255,255,.4); }
.footer-desc { font-size: 13px; line-height: 1.6; margin: 12px 0 16px; }
.footer-app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.footer-col-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: #8fa3bd; text-decoration: none; }
.footer-links a:hover { color: var(--accent-orange); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 12px;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* =====================================================
   READING PROGRESS BAR
   ===================================================== */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent-orange));
  z-index: 100;
  transition: width .1s linear;
}

/* =====================================================
   HOME PAGE — HERO
   ===================================================== */
.hero-section {
  background: linear-gradient(160deg, var(--surface-low) 0%, var(--surface-mid) 60%, #e8e8ef 100%);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.hero-bg-blob {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2,51,93,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
@media (min-width: 1024px) {
  .hero-inner { flex-direction: row; align-items: center; }
}
.hero-left { width: 100%; }
@media (min-width: 1024px) { .hero-left { width: 50%; } }

.hero-heading { color: var(--on-surface); }
.hero-heading .accent { color: var(--secondary); }

.hero-desc {
  font-size: 18px;
  line-height: 1.75;
  color: var(--on-surface-var);
  max-width: 480px;
  margin: 16px 0 20px;
}
.hero-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--on-surface-var);
}
.hero-check .material-symbols-outlined { color: var(--green); font-size: 16px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.hero-trust-divider { width: 1px; height: 16px; background: var(--outline); }

/* Hero mockup */
.hero-right {
  width: 100%;
  position: relative;
}
@media (min-width: 1024px) { .hero-right { width: 50%; } }

.hero-float-badge {
  position: absolute;
  top: -16px;
  right: 16px;
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: 0 8px 24px rgba(2,51,93,.12);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-float-badge .badge-icon {
  width: 32px;
  height: 32px;
  background: rgba(16,185,129,.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-float-badge .badge-icon .material-symbols-outlined { color: var(--green); font-size: 18px; }
.hero-float-badge .badge-title { font-size: 13px; font-weight: 700; color: var(--on-surface); }
.hero-float-badge .badge-sub { font-size: 11px; color: var(--muted); }

/* App mockup dark card */
.mockup-card {
  background: #0e0f1a;
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  font-family: var(--font-body);
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.2);
}
.mockup-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.mockup-stat {
  background: #161728;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.mockup-label {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.mockup-val { font-size: 16px; font-weight: 700; }
.mockup-val.green { color: var(--green); }
.mockup-val.red { color: var(--red); }
.mockup-val.purple { color: var(--purple); }
.mockup-bar-track {
  height: 6px;
  border-radius: 3px;
  background: #1e2035;
  overflow: hidden;
  margin-top: 8px;
}
.mockup-bar-fill {
  height: 100%;
  border-radius: 3px;
}
.mockup-emi {
  background: #161728;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

/* =====================================================
   HOME PAGE — PROBLEM/SOLUTION SECTION
   ===================================================== */
.problems-section { padding: 64px 24px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-family: var(--font-head); font-weight: 700; color: var(--on-surface); }
.section-sub { color: var(--muted); font-size: 16px; margin-top: 8px; }

.problems-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .problems-grid { grid-template-columns: repeat(3, 1fr); } }

.problem-card { padding: 24px; }
.problem-card .emoji { font-size: 28px; margin-bottom: 12px; }
.problem-fix {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-low);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-var);
}
.problem-fix .material-symbols-outlined { color: var(--green); font-size: 18px; }

/* =====================================================
   HOME PAGE — FEATURES SECTION
   ===================================================== */
.features-section {
  background: var(--surface-low);
  padding: 64px 24px;
}
.features-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card { padding: 24px; }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card .card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
}
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.feature-card.featured {
  border: 1.5px solid var(--primary);
  position: relative;
  overflow: hidden;
}
.feature-unique-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 700;
}

/* =====================================================
   HOME PAGE — STATS / TESTIMONIALS
   ===================================================== */
.stats-section { padding: 64px 24px; }
.stats-grid {
  max-width: var(--max-w);
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 36px;
}
.stat-label { font-size: 14px; color: var(--muted); margin-top: 4px; }

.testimonials-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card { padding: 24px; }
.stars { display: flex; gap: 2px; margin-bottom: 12px; }
.stars .material-symbols-outlined { color: var(--accent-orange); font-size: 16px; }
.testimonial-text { font-size: 14px; color: var(--on-surface-var); line-height: 1.7; margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.author-name { font-size: 13px; font-weight: 700; }
.author-role { font-size: 11px; color: var(--muted); }

/* =====================================================
   HOME PAGE — LATEST POSTS
   ===================================================== */
.latest-posts-section {
  background: var(--surface-low);
  padding: 64px 24px;
}
.posts-header {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.posts-header a { color: var(--primary); font-weight: 700; font-size: 13px; }
.posts-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card { overflow: hidden; }
.post-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #fff;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}
.post-body { padding: 20px; }
.post-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.post-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--on-surface);
  margin-bottom: 8px;
}
.post-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.read-more {
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* =====================================================
   HOME PAGE — PRICING
   ===================================================== */
.pricing-section { padding: 64px 24px; }
.pricing-grid {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }

.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--outline);
  border-radius: 16px;
  padding: 32px;
  transition: all .25s;
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(2,51,93,.15);
}
.pricing-tier {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.pricing-tier.pop { color: var(--primary); }
.pricing-amount {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 36px;
  color: var(--on-surface);
  margin-bottom: 4px;
}
.pricing-amount.pop { color: var(--primary); }
.pricing-amount span { font-size: 16px; font-weight: 400; color: var(--muted); }
.pricing-desc { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.pricing-badge {
  background: rgba(2,51,93,.06);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 18px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--on-surface-var);
  margin-bottom: 10px;
}
.check-item .material-symbols-outlined { color: var(--green); font-size: 18px; }
.cross-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #aaa;
  margin-bottom: 10px;
}
.cross-item .material-symbols-outlined { color: var(--outline-var); font-size: 18px; }

/* =====================================================
   HOME PAGE — NEWSLETTER
   ===================================================== */
.newsletter-section { padding: 64px 24px; }
.newsletter-box {
  max-width: var(--max-w);
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary), #234a75);
  border-radius: 20px;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}
.newsletter-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 33%;
  height: 100%;
  background: rgba(255,255,255,.03);
  transform: skewX(12deg);
  pointer-events: none;
}
.newsletter-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  position: relative;
}
@media (min-width: 768px) { .newsletter-inner { flex-direction: row; } }
.newsletter-copy { color: #fff; }
.newsletter-copy h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 12px;
}
.newsletter-copy p { opacity: .8; font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.newsletter-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #fff;
  margin-bottom: 8px;
}
.newsletter-checks .material-symbols-outlined { font-size: 18px; }
.newsletter-form-wrap {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  width: 100%;
}
@media (min-width: 768px) { .newsletter-form-wrap { width: 45%; flex-shrink: 0; } }
.newsletter-form-wrap input[type="email"] {
  width: 100%;
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--on-surface);
  outline: none;
  margin-bottom: 12px;
}
.newsletter-form-wrap input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2,51,93,.08);
}
.newsletter-form-wrap .privacy { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; }

/* =====================================================
   BLOG PAGE
   ===================================================== */
.blog-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 64px 24px;
  text-align: center;
  color: #fff;
}
.blog-hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 38px);
  margin-bottom: 12px;
}
.blog-hero p { color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.7; margin-bottom: 28px; }
.blog-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.blog-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.blog-tag.active { background: #fff; color: var(--primary); }
.blog-tag:not(.active) { background: rgba(255,255,255,.15); color: #fff; }
.blog-tag:hover:not(.active) { background: rgba(255,255,255,.25); }

.blog-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1024px) { .blog-layout { grid-template-columns: 2fr 1fr; } }

/* Featured article */
.featured-article {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}
.featured-article .feat-thumb {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.featured-article .feat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.featured-article:hover .feat-thumb img { transform: scale(1.05); }
.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}
.read-time-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,.5);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.featured-article .feat-body { padding: 28px; }
.feat-body .feat-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.feat-body h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
  color: var(--on-surface);
  margin-bottom: 10px;
}
.feat-body p { font-size: 15px; color: var(--on-surface-var); line-height: 1.7; margin-bottom: 20px; }

/* Article grid */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
.article-card-sm { overflow: hidden; }
.article-card-sm .thumb { height: 160px; overflow: hidden; }
.article-card-sm .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-card-sm:hover .thumb img { transform: scale(1.05); }
.article-card-sm .body { padding: 20px; }

/* Blog sidebar */
.blog-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 24px;
}
.sidebar-widget-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.app-cta-widget {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  padding: 24px;
  color: #fff;
}
.app-cta-widget .icon-wrap {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.app-cta-widget h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
}
.app-cta-widget p { font-size: 13px; opacity: .8; line-height: 1.6; margin-bottom: 16px; }
.app-cta-link {
  display: block;
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.trending-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.trending-tag {
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 12px;
  color: var(--on-surface-var);
  text-decoration: none;
}
.trending-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.popular-list { display: flex; flex-direction: column; gap: 16px; }
.popular-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
}
.popular-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.popular-item .title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.4;
}
.popular-item .views { font-size: 11px; color: var(--muted); margin-top: 2px; }

.nl-widget { background: var(--surface-low); }
.nl-widget h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--on-surface);
  margin-bottom: 8px;
}
.nl-widget p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.nl-widget input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  outline: none;
  margin-bottom: 10px;
}

/* =====================================================
   SINGLE POST
   ===================================================== */
.post-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) { .post-layout { grid-template-columns: 2fr 1fr; } }

.post-main { min-width: 0; }
.post-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.post-cat-tag {
  background: rgba(2,51,93,.08);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.post-date, .post-read-time { font-size: 13px; color: var(--muted); }
.post-dot { color: var(--outline); }
.post-h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 20px;
}
.post-author-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface-low);
  border-radius: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.author-avatar-lg {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content:center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.author-name-lg {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--on-surface);
}
.author-role-lg { font-size: 12px; color: var(--muted); }
.post-views {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-views .material-symbols-outlined { font-size: 14px; }
.post-featured-img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}

/* Article body styles */
.article-body h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--primary);
  border-bottom: 1px solid var(--outline);
  padding-bottom: 12px;
  margin: 40px 0 18px;
}
.article-body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--primary);
  margin: 32px 0 12px;
}
.article-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--on-surface-var);
  margin-bottom: 18px;
}
.article-body a { color: var(--secondary); border-bottom: 1px solid rgba(0,101,141,.25); }
.article-body a:hover { border-bottom-color: var(--secondary); }
.article-body blockquote {
  border-left: 4px solid var(--secondary);
  background: var(--surface-low);
  padding: 18px 24px;
  border-radius: 0 10px 10px 0;
  color: var(--primary);
  font-style: italic;
  margin: 28px 0;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.article-body li { margin-bottom: 8px; line-height: 1.7; color: var(--on-surface-var); }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body strong { color: var(--on-surface); }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.article-body th {
  background: var(--surface-mid);
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 700;
  padding: 12px 16px;
  border: 1px solid var(--outline);
  text-align: left;
}
.article-body td {
  padding: 10px 16px;
  border: 1px solid var(--outline);
  color: var(--on-surface-var);
}
.article-body tr:nth-child(even) td { background: var(--surface); }
.article-body img { border-radius: var(--radius-md); margin: 20px 0; }

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  padding-top: 20px;
  border-top: 1px solid var(--outline);
}
.post-tag {
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: 12px;
  color: var(--on-surface-var);
  text-decoration: none;
}
.post-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* App CTA banner in post */
.post-app-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 768px) { .post-app-cta { flex-direction: row; align-items: center; justify-content: space-between; } }
.post-app-cta .copy { color: #fff; }
.post-app-cta h3 { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.post-app-cta p { font-size: 14px; opacity: .8; }
.post-app-cta-btn {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
}

/* Related posts */
.related-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
.related-item {
  display: flex;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: 10px;
  padding: 14px;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.related-item:hover { border-color: rgba(2,51,93,.2); box-shadow: 0 4px 12px rgba(2,51,93,.08); }
.related-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.related-item .rel-cat {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}
.related-item .rel-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.4;
}

/* Post sidebar — sticky TOC */
.post-sidebar { display: flex; flex-direction: column; gap: 24px; }
.toc-widget {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: calc(var(--offset) + 16px);
}
.toc-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.toc-list { list-style: none; padding: 0; }
.toc-list li { font-size: 13px; color: var(--on-surface-var); line-height: 1.8; }
.toc-list a { color: inherit; text-decoration: none; padding-left: 12px; }
.toc-list .toc-active { border-left: 2px solid var(--primary); padding-left: 10px; color: var(--primary); font-weight: 600; }
.toc-list .toc-h3 { padding-left: 20px; font-size: 12px; }
.toc-list .toc-h3 a { padding-left: 0; }

/* =====================================================
   APP PAGE
   ===================================================== */
.app-hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--secondary) 60%, #0f6e56 100%);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.app-hero-blob {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-full);
}
.app-hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  margin-bottom: 16px;
}
.app-hero p { font-size: 18px; color: rgba(255,255,255,.8); max-width: 580px; margin: 0 auto 32px; line-height: 1.7; }
.app-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.app-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 600px;
  margin: 40px auto 0;
}
.app-hero-stat { text-align: center; }
.app-hero-stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}
.app-hero-stat .lbl { font-size: 11px; color: rgba(255,255,255,.6); }

/* Feature deep-dive */
.feature-deep {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px;
}
.feature-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
@media (min-width: 1024px) { .feature-pair { grid-template-columns: repeat(2, 1fr); } }
.feature-pair .pill { margin-bottom: 16px; }
.feature-pair h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 12px;
}
.feature-pair > div > p {
  font-size: 16px;
  color: var(--on-surface-var);
  line-height: 1.75;
  margin-bottom: 20px;
}
.feature-checklist { list-style: none; padding: 0; }
.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--on-surface-var);
}
.feature-checklist .material-symbols-outlined { color: var(--green); font-size: 18px; margin-top: 2px; }

.screen-mockup {
  background: #0e0f1a;
  border-radius: 20px;
  padding: 24px;
  font-family: var(--font-body);
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.screen-label {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.mockup-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.mockup-cell {
  background: #161728;
  border-radius: 10px;
  padding: 14px;
}
.mockup-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mockup-row-item:last-child { border-bottom: none; }

/* All features grid */
.all-features-section { background: var(--surface-low); padding: 64px 24px; }
.all-features-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .all-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .all-features-grid { grid-template-columns: repeat(3, 1fr); } }
.feat-check-card {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color .2s, box-shadow .2s;
}
.feat-check-card:hover { border-color: rgba(2,51,93,.2); box-shadow: var(--shadow-card); }
.feat-check-card .feat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.feat-check-card .feat-name { font-weight: 700; font-size: 15px; }
.feat-check-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* FAQ */
.faq-section { padding: 64px 24px; }
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
}
.faq-q {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--on-surface);
  user-select: none;
}
.faq-q:hover { background: var(--surface-low); }
.faq-icon { transition: transform .2s; color: var(--muted); font-size: 20px; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* App CTA section */
.app-cta-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 80px 24px;
  text-align: center;
}
.app-cta-section h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 34px);
  color: #fff;
  margin-bottom: 14px;
}
.app-cta-section p {
  color: rgba(255,255,255,.8);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.app-cta-section .note { color: rgba(255,255,255,.45); font-size: 12px; margin-top: 16px; }

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 80px 24px;
  overflow: hidden;
  position: relative;
}
.about-hero-blob {
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-full);
}
.about-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  position: relative;
}
@media (min-width: 768px) { .about-hero-inner { flex-direction: row; } }
.about-hero-copy { color: #fff; }
.about-hero-copy h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  margin-bottom: 16px;
}
.about-hero-copy p { color: rgba(255,255,255,.8); font-size: 16px; line-height: 1.75; margin-bottom: 28px; }
.about-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.about-stat-card {
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.about-stat-card .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  color: #fff;
}
.about-stat-card .lbl { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 4px; }
.about-hero-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
@media (min-width: 768px) { .about-hero-copy, .about-hero .img-wrap { width: 50%; } }

/* Mission */
.mission-section { background: var(--surface-low); padding: 64px 24px; }
.mission-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.mission-inner h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  color: var(--on-surface);
  margin-bottom: 14px;
}
.mission-inner .lead {
  font-size: 17px;
  color: var(--on-surface-var);
  line-height: 1.8;
  margin-bottom: 40px;
}
.mission-cards {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .mission-cards { grid-template-columns: repeat(3, 1fr); } }
.mission-card { padding: 24px; }
.mission-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.mission-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}
.mission-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Story section */
.story-section { padding: 64px 24px; }
.story-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
@media (min-width: 768px) { .story-inner { flex-direction: row; } }
.story-copy h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 14px;
}
.story-copy p { font-size: 16px; color: var(--on-surface-var); line-height: 1.8; margin-bottom: 14px; }
.story-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.story-pill {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}
@media (min-width: 768px) { .story-copy, .story-tech { width: 50%; } }

/* Tech stack card */
.tech-stack-card {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
}
.tech-stack-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--on-surface);
  margin-bottom: 20px;
}
.tech-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-low);
}
.tech-row:last-child { border-bottom: none; }
.tech-icon {
  width: 32px;
  height: 32px;
  background: var(--surface-low);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.tech-name { font-size: 13px; font-weight: 600; color: var(--on-surface); }
.tech-role { font-size: 11px; color: var(--muted); }

/* Roadmap */
.roadmap-section { background: var(--surface-low); padding: 64px 24px; }
.roadmap-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .roadmap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .roadmap-grid { grid-template-columns: repeat(4, 1fr); } }
.roadmap-card { padding: 20px; }
.roadmap-badge {
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
}
.roadmap-card h3 { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.roadmap-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* About CTA */
.about-cta { padding: 64px 24px; text-align: center; }
.about-cta h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 28px;
  color: var(--on-surface);
  margin-bottom: 12px;
}
.about-cta p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.about-cta .cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-hero { padding: 40px 24px 0; }
.contact-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.contact-hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.2;
  color: var(--on-surface);
  margin-bottom: 10px;
}
.contact-hero p { font-size: 17px; color: var(--muted); line-height: 1.7; max-width: 560px; }

.contact-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 1fr; } }

.contact-info-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-info-card .icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-card .info-label { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.contact-info-card .info-val { font-size: 13px; color: var(--muted); }
.contact-info-card .info-note { font-size: 11px; color: #aaa; margin-top: 2px; }

.try-app-box {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  padding: 24px;
  color: #fff;
}
.try-app-box h3 { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.try-app-box p { font-size: 13px; opacity: .8; line-height: 1.6; margin-bottom: 14px; }
.try-app-btn {
  display: block;
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

/* Contact form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(2,51,93,.06);
}
.contact-form-wrap h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 4px;
}
.contact-form-wrap > p { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--on-surface);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.field-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2,51,93,.08); }
.field-group { margin-bottom: 14px; }
.form-success {
  display: none;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.25);
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  color: #047857;
  margin-bottom: 20px;
}
.form-success.show { display: flex; align-items: center; gap: 8px; }
.form-success .material-symbols-outlined { font-size: 18px; }
.form-error {
  display: none;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  color: #b91c1c;
  margin-bottom: 20px;
}
.form-error.show { display: flex; align-items: center; gap: 8px; }

/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-page { padding-top: var(--offset); }
.legal-inner { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-notice {
  background: rgba(2,51,93,.05);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--primary);
  line-height: 1.6;
}
.legal-body h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--outline);
}
.legal-body p { font-size: 15px; color: var(--on-surface-var); line-height: 1.85; margin-bottom: 14px; }
.legal-body ul { padding-left: 22px; margin-bottom: 16px; }
.legal-body li { font-size: 15px; color: var(--on-surface-var); line-height: 1.7; margin-bottom: 8px; list-style: disc; }
.legal-body a { color: var(--secondary); }
.legal-body strong { color: var(--on-surface); }

/* =====================================================
   404 PAGE
   ===================================================== */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}
.page-404 .err-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 120px;
  color: var(--surface-mid);
  line-height: 1;
  margin-bottom: 16px;
}
.page-404 h2 { font-family: var(--font-head); font-size: 28px; color: var(--on-surface); margin-bottom: 12px; }
.page-404 p { font-size: 16px; color: var(--muted); margin-bottom: 32px; }

/* =====================================================
   ARCHIVE / SEARCH RESULTS
   ===================================================== */
.archive-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 64px 24px;
  text-align: center;
  color: #fff;
}
.archive-header h1 { font-family: var(--font-head); font-weight: 800; font-size: 32px; }
.archive-header p { color: rgba(255,255,255,.8); margin-top: 8px; }
.archive-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .archive-grid { grid-template-columns: repeat(3, 1fr); } }

/* =====================================================
   PAGE TEMPLATE (DEFAULT)
   ===================================================== */
.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: calc(var(--offset) + 48px) 24px 80px;
}
.page-content h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 38px);
  color: var(--on-surface);
  margin-bottom: 24px;
}

/* =====================================================
   MATERIAL SYMBOLS
   ===================================================== */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* =====================================================
   UTILITY
   ===================================================== */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.pt-20 { padding-top: var(--offset); } /* exact fixed header height */

/* =====================================================
   WORDPRESS ADMIN BAR COMPENSATION
   ===================================================== */
/* WP admin bar is 32px on desktop, 46px on mobile */
body.admin-bar {
  --admin-bar-h: 32px;
}
@media (max-width: 782px) {
  body.admin-bar {
    --admin-bar-h: 46px;
  }
}
/* WP adds margin-top to #wpadminbar automatically;
   we also push our fixed header down to sit below it */
body.admin-bar #site-header {
  top: var(--admin-bar-h);
}




/* Leaderboard slot above image spans full column width */
.post-ad-above-image .adsense-slot,
.post-ad-above-image ins,
.post-ad-above-image > * {
  width: 100%;
}

/* =====================================================
   SINGLE POST — full layout (mirrors AIDG structure)
   ===================================================== */

.ft-single-wrap { padding-bottom: 0; }

/* Post header */
.ft-post-header { padding: 20px 0 28px; }

.ft-post-cat-badge {
  display: inline-block;
  padding: 3px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  background: rgba(2,51,93,.08);
  color: var(--primary);
  margin-bottom: 14px;
  text-decoration: none;
}
.ft-post-cat-badge:hover { background: rgba(2,51,93,.14); }

.ft-post-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ft-post-meta-row span { font-size: 13px; color: var(--muted); }

.ft-post-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 24px;
}

.ft-author-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--surface-low);
  border-radius: var(--radius-md);
  margin-bottom: 0;
  flex-wrap: wrap;
}
.ft-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.ft-author-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--on-surface);
}
.ft-author-role { font-size: 12px; color: var(--muted); }
.ft-post-views {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ft-post-views .material-symbols-outlined { font-size: 14px; }

.ft-post-hero-img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}

/* Ad placeholder styling */
.ft-post-ad {
  border-radius: var(--radius);
}

/* Two-column post layout */
.ft-post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 80px;
  align-items: start;
}
@media (min-width: 1024px) {
  .ft-post-layout { grid-template-columns: 1fr 300px; }
}

/* Post sidebar */
.ft-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  .ft-post-sidebar {
    position: sticky;
    top: calc(var(--offset) + 16px);
    align-self: start;
  }
}

/* ---- SIDEBAR NEWSLETTER WIDGET ---- */
.ft-sidebar-nl {
  background: linear-gradient(135deg, var(--primary), #1a4a7a);
  border-radius: 14px;
  padding: 24px;
  color: #fff;
}
.ft-sidebar-nl-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.ft-sidebar-nl-desc {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  margin-bottom: 16px;
}
.ft-sidebar-nl-input {
  width: 100%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  margin-bottom: 10px;
  transition: border-color .2s;
}
.ft-sidebar-nl-input::placeholder { color: rgba(255,255,255,.5); }
.ft-sidebar-nl-input:focus { border-color: rgba(255,255,255,.5); }
.ft-sidebar-nl-btn {
  width: 100%;
  background: var(--accent-orange);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 11px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: filter .2s;
}
.ft-sidebar-nl-btn:hover { filter: brightness(1.1); }
.ft-sidebar-nl-btn:disabled { opacity: .6; cursor: not-allowed; }
.ft-sidebar-nl-note {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  text-align: center;
  margin-top: 8px;
}

/* Tags */
.ft-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  padding-top: 20px;
  border-top: 1px solid var(--outline);
  align-items: center;
}
.ft-tags-label { font-size: 12px; color: var(--muted); }

/* Related articles */
.ft-related-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--on-surface);
  margin-bottom: 16px;
}
.ft-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .ft-related-grid { grid-template-columns: repeat(2, 1fr); }
}
.ft-related-card {
  display: flex;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 14px;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
  align-items: flex-start;
}
.ft-related-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.ft-related-card img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.ft-related-no-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--surface-mid);
  flex-shrink: 0;
}
.ft-related-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--primary);
  margin-bottom: 4px;
}
.ft-related-post-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.4;
}

/* Prev/Next nav */
.ft-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.ft-post-nav-item {
  padding: 16px;
  display: block;
  text-decoration: none;
}
.ft-post-nav-item--next { text-align: right; }
.ft-post-nav-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 4px;
}
.ft-post-nav-post-title {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--on-surface);
  line-height: 1.4;
}

/* ---- BOTTOM NEWSLETTER SECTION ---- */
.ft-post-nl-section {
  background: var(--primary);
  padding: 64px 0;
  text-align: center;
  margin-top: 0;
}
.ft-post-nl-section h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(22px, 4vw, 28px);
  color: #fff;
  margin-bottom: 12px;
}
.ft-post-nl-section > .wrap > p {
  color: rgba(255,255,255,.75);
  font-size: 16px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.ft-post-nl-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.ft-post-nl-form input {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}
.ft-post-nl-form input::placeholder { color: rgba(255,255,255,.55); }
.ft-post-nl-form input:focus { border-color: rgba(255,255,255,.5); }
.ft-post-nl-btn {
  background: var(--accent-orange);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: filter .2s;
  white-space: nowrap;
}
.ft-post-nl-btn:hover { filter: brightness(1.1); }
.ft-post-nl-btn:disabled { opacity: .6; cursor: not-allowed; }
