/* ============================================================
   Finance Calc – Marketing Website Stylesheet
   Theme mirrors the React Native app (ThemeContext.tsx)
   Primary: #1E3A8A | Nav: #315688 | Secondary: #059669
   ============================================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  --primary:        #1E3A8A;
  --primary-dark:   #15296b;
  --primary-nav:    #315688;
  --primary-light:  rgba(30, 58, 138, 0.08);
  --secondary:      #059669;
  --secondary-dark: #047857;
  --secondary-light:rgba(5, 150, 105, 0.08);
  --accent-blue:    #3B82F6;
  --accent-purple:  #8B5CF6;
  --accent-amber:   #F59E0B;
  --accent-cyan:    #06B6D4;
  --bg:             #F8FAFC;
  --surface:        #FFFFFF;
  --text:           #1F2937;
  --text-secondary: #6B7280;
  --border:         #E5E7EB;
  --error:          #DC2626;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.14);
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --max-width: 1100px;
  --nav-height: 68px;
  --transition: .2s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, textarea, select { font-family: inherit; }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary-color { color: var(--secondary); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ---------- Typography ---------- */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .85; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30,58,138,.3);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 20px rgba(30,58,138,.4); }

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5,150,105,.3);
}
.btn-secondary:hover { background: var(--secondary-dark); box-shadow: 0 6px 20px rgba(5,150,105,.4); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover { background: var(--primary-light); }

.btn-lg { padding: 16px 32px; font-size: 17px; min-height: 52px; border-radius: 10px; }
.btn-sm { padding: 9px 18px; font-size: 14px; min-height: 36px; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  transition: var(--transition);
  border: 1px solid #333;
}
.btn-store:hover { background: #222; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.btn-store .store-icon { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.btn-store .store-icon svg { width: 22px; height: 22px; fill: #fff; }
.btn-store .store-text { display: flex; flex-direction: column; text-align: left; }
.btn-store .store-sub { font-size: 10px; opacity: .75; font-weight: 400; }
.btn-store .store-name { font-size: 16px; font-weight: 700; line-height: 1.2; }

/* Small "Continue on Browser" – intentionally understated */
.btn-browser {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.5);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
  transition: var(--transition);
  background: transparent;
  letter-spacing: .1px;
}
.btn-browser:hover {
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.05);
}
/* Tiny browser link for navbar */
.btn-browser-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  padding: 5px 11px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.18);
  white-space: nowrap;
  transition: var(--transition);
  margin-left: 8px;
}
.btn-browser-nav:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); }

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.nav-brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-cta { margin-left: 8px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--primary-nav);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
.mobile-nav a:hover { color: #fff; }
.mobile-nav .btn { margin-top: 16px; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-nav) 50%, #3c6298 100%);
  padding: 80px 0 100px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}
.hero h1 span { color: #7dd3c8; }
.hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 32px;
}
.hero-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.hero-stat span { font-size: 13px; color: rgba(255,255,255,.65); }

/* Phone mockup */
.phone-mockup {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.phone-frame {
  width: 240px;
  background: #0F172A;
  border-radius: 36px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 2px rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.05);
  position: relative;
}
.phone-notch {
  width: 80px;
  height: 20px;
  background: #0F172A;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 10px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 2px rgba(255,255,255,.05);
}
.phone-screen {
  background: #1E293B;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9/18;
  position: relative;
}
.phone-topbar {
  background: var(--primary-nav);
  padding: 12px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.phone-topbar span { color: #fff; font-size: 13px; font-weight: 700; }
.phone-content { padding: 12px; }
.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.phone-card {
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.phone-card .p-icon { font-size: 20px; }
.phone-card .p-label { font-size: 9px; font-weight: 600; color: #94A3B8; text-align: center; }
.pc-blue   { background: #172554; }
.pc-green  { background: #052e16; }
.pc-purple { background: #1e1b4b; }
.pc-amber  { background: #1c1400; }

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-item span { font-size: 13px; color: var(--text-secondary); }

/* ---------- Feature Cards Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.fi-blue   { background: #EBF4FF; }
.fi-green  { background: #D1FAE5; }
.fi-purple { background: #EDE9FE; }
.fi-amber  { background: #FEF3C7; }
.fi-cyan   { background: #ECFEFF; }
.fi-rose   { background: #FFF1F2; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ---------- Calculator Showcase ---------- */
.calculators-section { background: var(--surface); }
.calc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.calc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.calc-item:hover {
  background: var(--primary-light);
  border-color: rgba(30,58,138,.2);
  transform: translateX(4px);
}
.calc-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.calc-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.calc-item p  { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

/* ---------- How It Works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 48px;
  counter-reset: steps;
}
.step-item {
  text-align: center;
  position: relative;
}
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(30,58,138,.35);
}
.step-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-item p  { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ---------- Download CTA ---------- */
.download-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-nav));
  position: relative;
  overflow: hidden;
}
.download-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  right: -100px;
  bottom: -150px;
  pointer-events: none;
}
.download-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.download-inner h2 { font-size: clamp(26px,4vw,38px); font-weight: 800; color: #fff; margin-bottom: 12px; }
.download-inner p  { font-size: 17px; color: rgba(255,255,255,.75); margin-bottom: 40px; max-width: 520px; margin-left: auto; margin-right: auto; }
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.divider-or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px auto;
  max-width: 320px;
  color: rgba(255,255,255,.4);
  font-size: 13px;
}
.divider-or::before, .divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.15);
}

/* ---------- Footer ---------- */
footer {
  background: #0F172A;
  color: rgba(255,255,255,.7);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px; }
.footer-brand h3 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.footer-brand p  { font-size: 14px; line-height: 1.7; max-width: 260px; }
.footer-col h4   { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a    { display: block; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-links a:hover { color: #fff; }

/* ---------- Page Banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-nav));
  padding: 56px 0;
  text-align: center;
}
.page-banner h1 { font-size: clamp(26px,4vw,40px); font-weight: 800; color: #fff; margin-bottom: 10px; }
.page-banner p  { font-size: 16px; color: rgba(255,255,255,.75); }

/* ---------- Content Pages (Privacy, Terms) ---------- */
.content-page { background: var(--surface); }
.content-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}
.content-body h2 { font-size: 22px; font-weight: 700; color: var(--text); margin: 36px 0 12px; }
.content-body h3 { font-size: 17px; font-weight: 600; color: var(--text); margin: 24px 0 8px; }
.content-body p  { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 14px; }
.content-body ul { margin: 0 0 14px 20px; }
.content-body ul li { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 6px; list-style: disc; }
.content-body a  { color: var(--primary); text-decoration: underline; }
.content-date   { font-size: 13px; color: var(--text-secondary); margin-bottom: 32px; }
.toc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.toc h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.toc ol { margin-left: 16px; }
.toc ol li { font-size: 14px; line-height: 1.8; }
.toc ol li a { color: var(--primary); text-decoration: none; }
.toc ol li a:hover { text-decoration: underline; }

/* ---------- Features Detail Page ---------- */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.feature-detail:last-child { border-bottom: none; }
.feature-detail.reverse { direction: rtl; }
.feature-detail.reverse > * { direction: ltr; }
.fd-content h2 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.fd-content p  { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 14px; }
.fd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.fd-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--primary-light);
  color: var(--primary);
}
.fd-visual {
  background: linear-gradient(135deg, #EBF4FF, #EDE9FE);
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  box-shadow: var(--shadow-md);
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  margin-top: 48px;
}
.contact-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.contact-info > p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.contact-item a, .contact-item p { font-size: 14px; color: var(--text-secondary); }
.contact-item a:hover { color: var(--primary); }

/* Contact Form */
.contact-form-wrap {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact-form-wrap h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
  outline: none;
  min-height: 44px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30,58,138,.08);
}
.form-group input.error,
.form-group textarea.error { border-color: var(--error); }
.form-group .field-error { font-size: 12px; color: var(--error); margin-top: 4px; }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-success {
  text-align: center;
  padding: 40px;
  display: none;
}
.form-success .success-icon { font-size: 56px; margin-bottom: 16px; }
.form-success h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--text-secondary); font-size: 15px; }

/* ---------- Badges / Chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--secondary-light); color: var(--secondary); }

/* ---------- Platform strip ---------- */
.platform-strip {
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}
.platform-strip p { font-size: 14px; color: var(--primary); font-weight: 500; }
.platform-icons { display: flex; gap: 20px; font-size: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .phone-mockup { display: none; }

  .stats-grid { gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .calc-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .feature-detail { grid-template-columns: 1fr; }
  .feature-detail.reverse { direction: ltr; }
  .fd-visual { display: none; }

  .section { padding: 56px 0; }
  .download-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.blog-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.blog-card-thumb {
  aspect-ratio: 16/8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.blog-tag { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--secondary); }
.blog-date { font-size: 12px; color: var(--text-secondary); }
.blog-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; flex: 1; }
.blog-read-more { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--primary); margin-top: 16px; transition: var(--transition); }
.blog-read-more:hover { gap: 8px; }

/* Article page */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 60px 24px; }
.article-header { margin-bottom: 40px; }
.article-header h1 { font-size: clamp(26px,4vw,38px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-secondary); }
.article-meta .tag { color: var(--secondary); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.article-hero { font-size: 80px; text-align: center; padding: 40px 0; background: linear-gradient(135deg,#EBF4FF,#EDE9FE); border-radius: var(--radius-xl); margin-bottom: 40px; }
.article-body h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; color: var(--text); }
.article-body h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; color: var(--text); }
.article-body p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; }
.article-body li { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 6px; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--primary); text-decoration: underline; }
.callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.callout p { margin: 0; color: var(--primary); font-weight: 500; }
.article-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-nav));
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
  margin-top: 48px;
}
.article-cta h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.article-cta p { font-size: 15px; color: rgba(255,255,255,.75); margin-bottom: 24px; }
.article-cta .cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; transition: var(--transition); }
.back-link:hover { color: var(--primary); }

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}
