/* WriteOffOS — CPA Landing Page Styles */
:root {
  --navy: #1e3a5f;
  --navy-dark: #132640;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --green: #059669;
  --green-50: #ecfdf5;
  --gold: #d97706;
  --gold-50: #fffbeb;
  --text-1: #0f172a;
  --text-2: #334155;
  --text-3: #64748b;
  --text-4: #94a3b8;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #f1f5f9;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::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-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: clamp(4rem, 8vw, 7rem) 0; }

/* Typography */
h1 { font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.lead { font-size: 1.1rem; color: var(--text-2); line-height: 1.75; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: all 200ms var(--ease); border: none; text-decoration: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.35); }
.btn-secondary { background: var(--bg); color: var(--navy); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--blue-light); background: var(--blue-50); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,58,95,0.3); }
.btn-lg { padding: 15px 30px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-xl { padding: 17px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  transition: all 250ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: baseline; gap: 6px; }
.nav-logo .mark { font-size: 1.3rem; font-weight: 900; color: var(--navy); letter-spacing: -0.04em; }
.nav-logo .mark span { color: var(--blue); }
.nav-logo .tag { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--text-2); padding: 8px 14px; border-radius: var(--radius-sm); transition: all 150ms; }
.nav-links a:hover { color: var(--text-1); background: var(--bg-3); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-1); border-radius: 2px; transition: all 250ms; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 998; opacity: 0; pointer-events: none; transition: opacity 250ms; }
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-drawer { position: fixed; top: 0; right: -100%; width: 100%; max-width: 300px; height: 100svh; background: #fff; border-left: 1px solid var(--border); z-index: 999; padding: 80px 28px 40px; display: flex; flex-direction: column; gap: 6px; transition: right 0.3s var(--ease); overflow-y: auto; }
.mobile-drawer.open { right: 0; }
.mobile-drawer a { display: block; padding: 12px 14px; font-size: 1rem; font-weight: 500; color: var(--text-2); border-radius: var(--radius-sm); transition: all 150ms; }
.mobile-drawer a:hover { color: var(--text-1); background: var(--bg-3); }

/* HERO */
.hero {
  padding-top: clamp(100px, 14vw, 140px);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 50%, #f8fafc 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -20%; right: -5%; width: 55vw; height: 55vw;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.07) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 100px; margin-bottom: 24px; }
.hero-eyebrow span { font-size: 0.75rem; font-weight: 600; color: var(--blue); letter-spacing: 0.06em; text-transform: uppercase; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .blue { color: var(--blue); }
.hero .lead { margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 20px; }
.proof-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-3); font-weight: 500; }
.proof-item .check { width: 18px; height: 18px; background: var(--green-50); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: var(--green); flex-shrink: 0; }

/* Hero visual — mock browser */
.hero-visual { position: relative; }
.browser-mock {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-bar { background: var(--bg-3); padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.browser-url { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px; font-size: 0.72rem; color: var(--text-3); }
.browser-body { padding: 24px; }
.mock-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.mock-logo { font-size: 1rem; font-weight: 800; color: var(--navy); }
.mock-badge { padding: 4px 10px; background: var(--green-50); border-radius: 100px; font-size: 0.7rem; font-weight: 600; color: var(--green); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.mock-stat { padding: 14px; background: var(--bg-2); border-radius: var(--radius-md); border: 1px solid var(--border); }
.mock-stat .val { font-size: 1.4rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.mock-stat .lbl { font-size: 0.7rem; color: var(--text-3); }
.mock-clients { display: flex; flex-direction: column; gap: 8px; }
.mock-client { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.mock-client .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-100); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: var(--blue); flex-shrink: 0; }
.mock-client .info { flex: 1; }
.mock-client .name { font-size: 0.8rem; font-weight: 600; color: var(--text-1); }
.mock-client .sub { font-size: 0.68rem; color: var(--text-3); }
.mock-client .status { padding: 3px 8px; border-radius: 100px; font-size: 0.65rem; font-weight: 600; }
.status-ready { background: var(--green-50); color: var(--green); }
.status-pending { background: var(--gold-50); color: var(--gold); }
.status-review { background: var(--blue-50); color: var(--blue); }

/* SECTION HEADERS */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-header .label { display: inline-block; margin-bottom: 14px; }
.section-header p { color: var(--text-2); font-size: 1.05rem; margin-top: 14px; line-height: 1.75; }

/* HOW IT WORKS */
.how { background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps::before {
  content: '';
  position: absolute; top: 28px; left: calc(16.66% + 16px); right: calc(16.66% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-100), var(--blue-light), var(--blue-100));
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--text-2); line-height: 1.7; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 200ms var(--ease);
}
.feature-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { font-size: 1.75rem; margin-bottom: 16px; display: block; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; }

/* WHITE LABEL */
.whitelabel { background: var(--navy); color: #fff; }
.whitelabel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.whitelabel .label { color: #93c5fd; }
.whitelabel h2 { color: #fff; margin-bottom: 16px; }
.whitelabel .lead { color: #94a3b8; margin-bottom: 32px; }
.wl-points { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.wl-point { display: flex; align-items: flex-start; gap: 14px; }
.wl-point .icon { width: 36px; height: 36px; background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.25); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.wl-point .text h4 { font-size: 0.95rem; font-weight: 700; color: #f1f5f9; margin-bottom: 4px; }
.wl-point .text p { font-size: 0.85rem; color: #94a3b8; line-height: 1.6; }
.wl-visual { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-xl); padding: 32px; }
.wl-mock-header { text-align: center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.wl-firm-logo { font-size: 1.1rem; font-weight: 800; color: #f1f5f9; margin-bottom: 4px; }
.wl-firm-sub { font-size: 0.72rem; color: #64748b; letter-spacing: 0.06em; text-transform: uppercase; }
.wl-upload { border: 2px dashed rgba(59,130,246,0.3); border-radius: var(--radius-md); padding: 28px; text-align: center; margin-bottom: 20px; }
.wl-upload .up-icon { font-size: 2rem; margin-bottom: 10px; }
.wl-upload p { font-size: 0.8rem; color: #64748b; }
.wl-upload strong { color: #93c5fd; }
.wl-progress { display: flex; flex-direction: column; gap: 10px; }
.wl-prog-item { display: flex; align-items: center; gap: 10px; }
.wl-prog-item .fname { font-size: 0.75rem; color: #94a3b8; flex: 1; }
.wl-bar { flex: 2; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.wl-bar-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #60a5fa); border-radius: 2px; }
.wl-prog-item .pct { font-size: 0.7rem; color: #60a5fa; font-weight: 600; width: 32px; text-align: right; }

/* PRICING */
.pricing { background: var(--bg-2); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all 200ms var(--ease);
  position: relative;
  overflow: hidden;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1), var(--shadow-lg);
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: 0; right: 28px;
  background: var(--blue); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.price-tier { font-size: 0.8rem; font-weight: 700; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.price-name { font-size: 1.3rem; font-weight: 800; color: var(--text-1); margin-bottom: 4px; }
.price-amt { display: flex; align-items: baseline; gap: 2px; margin: 20px 0 6px; }
.price-amt .dollar { font-size: 1.2rem; font-weight: 700; color: var(--text-2); align-self: flex-start; margin-top: 8px; }
.price-amt .num { font-size: 3rem; font-weight: 900; color: var(--navy); line-height: 1; letter-spacing: -0.04em; }
.price-amt .period { font-size: 0.875rem; color: var(--text-3); }
.price-clients { font-size: 0.82rem; color: var(--text-2); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.price-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--text-2); }
.price-features li .chk { color: var(--green); flex-shrink: 0; font-size: 1rem; }
.price-features li .x { color: var(--text-4); flex-shrink: 0; font-size: 1rem; }
.pricing-note { text-align: center; margin-top: 24px; font-size: 0.85rem; color: var(--text-3); }

/* TESTIMONIALS / SOCIAL PROOF */
.proof-band { background: var(--navy); padding: 28px 0; }
.proof-band-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; }
.proof-stat { text-align: center; padding: 8px 40px; }
.proof-stat + .proof-stat { border-left: 1px solid rgba(255,255,255,0.1); }
.proof-stat .big { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -0.04em; }
.proof-stat .big span { color: #60a5fa; }
.proof-stat .sm { font-size: 0.78rem; color: #94a3b8; margin-top: 4px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: border-color 200ms; }
.faq-item:hover { border-color: var(--blue-light); }
.faq-q { width: 100%; text-align: left; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; cursor: pointer; font-size: 0.95rem; font-weight: 600; color: var(--text-1); font-family: inherit; }
.faq-q .arrow { color: var(--blue); font-size: 1.1rem; transition: transform 250ms var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 350ms var(--ease); }
.faq-a-inner { padding: 0 24px 20px; font-size: 0.9rem; color: var(--text-2); line-height: 1.75; }
.faq-item.open .faq-a { max-height: 400px; }

/* DEMO CTA */
.demo { background: linear-gradient(135deg, var(--navy) 0%, #1a3660 100%); color: #fff; text-align: center; position: relative; overflow: hidden; }
.demo::before { content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(ellipse at center, rgba(37,99,235,0.2) 0%, transparent 70%); pointer-events: none; }
.demo-inner { position: relative; z-index: 1; max-width: 660px; margin: 0 auto; }
.demo h2 { color: #fff; margin-bottom: 16px; }
.demo p { color: #94a3b8; font-size: 1.05rem; margin-bottom: 40px; line-height: 1.75; }

/* Demo form */
.demo-form { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-xl); padding: 40px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: #94a3b8; }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 150ms;
  outline: none;
  width: 100%;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #475569; }
.form-group input:focus, .form-group select:focus { border-color: rgba(96,165,250,0.6); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-group select option { background: var(--navy-dark); }
.form-group textarea { min-height: 90px; resize: vertical; }

/* Footer */
footer { background: var(--text-1); color: #94a3b8; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { font-size: 1.2rem; font-weight: 900; color: #fff; letter-spacing: -0.04em; margin-bottom: 4px; }
.footer-brand .logo span { color: #60a5fa; }
.footer-brand .sub { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #475569; margin-bottom: 14px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 260px; margin-bottom: 16px; }
.footer-ves { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: #475569; }
.footer-ves a { color: #60a5fa; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #64748b; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 0.875rem; transition: color 150ms; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.78rem; color: #334155; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.78rem; color: #334155; transition: color 150ms; }
.footer-links a:hover { color: #94a3b8; }

/* Animations */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger .fade-up:nth-child(2) { transition-delay: 80ms; }
.stagger .fade-up:nth-child(3) { transition-delay: 160ms; }
.stagger .fade-up:nth-child(4) { transition-delay: 240ms; }
.stagger .fade-up:nth-child(5) { transition-delay: 320ms; }
.stagger .fade-up:nth-child(6) { transition-delay: 400ms; }

/* Responsive */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .whitelabel-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .proof-band-inner { gap: 20px; }
  .proof-stat + .proof-stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
