/* ============================================================
   Clear Suite — Design System
   Navy: #0a1628 | Mid navy: #1e3a5f | Accent: #2563eb
   ============================================================ */

:root {
  --navy: #0a1628;
  --navy-mid: #1e3a5f;
  --navy-light: #2d4a6e;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --white: #ffffff;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---- Layout ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 40px 0; }
.section--alt { background: var(--surface); }

/* ---- Nav ---- */
.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.nav__logo {
  font-size: 3.1rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1 !important;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav__logo:hover { text-decoration: none; }
.nav__logo span { color: #60a5fa; font-size: inherit; font-weight: inherit; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  flex-shrink: 0;
}
.nav__links a {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background 0.15s !important;
}
.nav__cta:hover { background: var(--accent-hover) !important; text-decoration: none !important; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); text-decoration: none; color: var(--white); }
.btn--outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn--outline:hover { background: var(--accent-light); text-decoration: none; }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: #f1f5f9; text-decoration: none; color: var(--navy); }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn--ghost-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  text-decoration: none;
  color: var(--white);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.70) 0%,
    rgba(30, 58, 95, 0.62) 100%
  );
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  color: white;
}
.hero__eyebrow {
  display: inline-block;
  background: rgba(37,99,235,0.2);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(147,197,253,0.2);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: #60a5fa; }
.hero p {
  font-size: 18px;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Section headings ---- */
.section__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--navy);
}
.section__sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.section__header { margin-bottom: 28px; }
.section__header--center { text-align: center; }
.section__header--center .section__sub { margin: 0 auto; }

/* ---- Product cards ---- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.product-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  font-size: 22px;
}
.product-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--navy); text-align: center; }
.product-card p { color: var(--text-muted); font-size: 15px; line-height: 1.65; margin-bottom: 24px; }
.product-card__link { font-size: 14px; font-weight: 600; color: var(--accent); text-align: center; display: block; }
.product-card__link::after { content: ' →'; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  background: var(--white);
  position: relative;
}
.pricing-card--featured {
  border-color: var(--accent);
  background: var(--navy);
  color: var(--white);
}
.pricing-card--featured .pricing-card__name { color: #93c5fd; }
.pricing-card--featured .pricing-card__desc { color: #94a3b8; }
.pricing-card--featured ul li { color: #cbd5e1; }
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-card__name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; text-align: center; }
.pricing-card__price { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px; text-align: center; }
.pricing-card__price span { font-size: 16px; font-weight: 500; opacity: 0.6; }
.pricing-card__desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; text-align: center; }
.pricing-card ul { list-style: none; margin-bottom: 28px; }
.pricing-card ul li { font-size: 14px; padding: 6px 0; padding-left: 22px; position: relative; }
.pricing-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pricing-card--featured ul li::before { color: #86efac; }

/* ---- Forms ---- */
.form-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; color: var(--navy); }
.form-card .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-footer { margin-top: 20px; text-align: center; font-size: 14px; color: var(--text-muted); }
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}
.alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ---- Account dashboard ---- */
.dashboard { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; }
.dashboard__header { margin-bottom: 40px; }
.dashboard__header h1 { font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.dashboard__header p { color: var(--text-muted); }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.dash-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.dash-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-card__name { font-size: 16px; font-weight: 700; color: var(--navy); }
.badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.badge--free { background: #f1f5f9; color: #475569; }
.badge--monthly { background: #eff6ff; color: #1d4ed8; }
.badge--annual { background: #eff6ff; color: #1d4ed8; }
.badge--bundle { background: #f0fdf4; color: #15803d; }
.badge--per_doc { background: #fefce8; color: #a16207; }
.dash-card__meta { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.dash-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.blog-card__tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 10px; }
.blog-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--navy); line-height: 1.35; }
.blog-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; }
.blog-card__footer { font-size: 13px; color: var(--text-muted); }
.blog-card__readmore {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 16px;
}
.blog-card__readmore:hover {
  text-decoration: underline;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 48px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.footer__brand { max-width: 280px; }
.footer__logo { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer__tagline { font-size: 13px; line-height: 1.6; }
.footer__col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--white); margin-bottom: 14px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a { font-size: 14px; color: #94a3b8; text-decoration: none; }
.footer__col ul a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* ---- Dividers / utils ---- */
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* ---- Upgrade modal options ---- */
.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
}

.upgrade-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.upgrade-option {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.upgrade-option:hover {
  border-color: var(--accent);
}
.upgrade-option--selected {
  border-color: var(--accent);
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
  background: var(--white);
}
.upgrade-option--selected .upgrade-option__label {
  color: var(--accent);
}
.upgrade-option--selected .upgrade-option__price {
  color: var(--navy);
}
.upgrade-option--selected .upgrade-option__note {
  color: var(--text-muted);
}
.upgrade-option--featured {
  border-color: var(--accent);
  background: var(--accent-light);
}
.upgrade-option__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.upgrade-option__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.upgrade-option__price {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.upgrade-option__price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.upgrade-option__note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---- Page header (interior pages) ---- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 48px;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: #94a3b8; font-size: 17px; }

/* ---- Mobile nav ---- */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 99;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 10px 0; font-size: 15px; }
  .nav__cta { display: inline-block; margin-top: 8px; padding: 10px 16px !important; }
  .section { padding: 56px 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .hero { height: 560px; }
  .hero h1 { font-size: 36px; }
  .form-card { padding: 28px 20px; }
  .dash-grid { grid-template-columns: 1fr; }
}
