/* CaliFormas — California legal forms MVP (califormas.com) */
:root {
  --navy: #0b2a4a;
  --navy-deep: #071e36;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #ccfbf1;
  --gold: #d4a017;
  --poppy: #e85d04;
  --poppy-soft: #fff0e6;
  --sand: #f7f4ef;
  --ink: #1a2332;
  --muted: #5b6b7c;
  --line: #e2e8f0;
  --white: #ffffff;
  --danger: #b91c1c;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 42, 74, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Top bar / disclaimer strip */
.top-disclaimer {
  background: var(--navy-deep);
  color: #c8d4e0;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.45rem 1rem;
}
.top-disclaimer strong { color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--poppy) 0%, var(--gold) 55%, #b45309 100%);
  color: #fff;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.28);
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.12rem;
}
.logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.logo-name::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 0.35rem;
  margin-bottom: 0.12rem;
  border-radius: 50%;
  background: var(--poppy);
  vertical-align: middle;
}
.logo-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
  max-width: 16rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.nav-links a:hover { color: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.lang-toggle {
  border: 1px solid var(--line);
  background: var(--sand);
  border-radius: 999px;
  padding: 0.3rem;
  display: inline-flex;
  gap: 0.15rem;
}
.lang-toggle button {
  border: 0; background: transparent;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 700; font-size: 0.8rem;
  cursor: pointer; color: var(--muted);
}
.lang-toggle button.active {
  background: var(--navy); color: #fff;
}
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: 10px; padding: 0.75rem 1.2rem;
  font-weight: 700; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; font-size: 0.95rem;
  transition: 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-deep); color: #fff; }
.btn-outline {
  background: transparent; border-color: var(--line); color: var(--navy);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
.btn-lg { padding: 0.95rem 1.45rem; font-size: 1.05rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(232,93,4,0.12), transparent 42%),
    radial-gradient(ellipse at 15% 20%, rgba(212,160,23,0.14), transparent 40%),
    linear-gradient(180deg, #fff8f2 0%, #ffffff 72%);
  padding: 3.5rem 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--poppy-soft); color: #9a3412;
  font-weight: 700; font-size: 0.8rem;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid #fed7aa;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 1rem;
}
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 38rem; margin: 0 0 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  list-style: none; padding: 0; margin: 0;
  color: var(--muted); font-size: 0.92rem;
}
.hero-points li::before { content: "✓ "; color: var(--teal); font-weight: 800; }
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.35rem;
}
.hero-card h3 { margin: 0 0 0.75rem; color: var(--navy); font-size: 1rem; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.65rem 0; border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.price-row:last-of-type { border-bottom: 0; }
.price-row strong { color: var(--navy); }
.badge-free {
  display: inline-block; margin-top: 0.85rem;
  background: #ecfdf5; color: #047857;
  font-size: 0.8rem; font-weight: 700;
  padding: 0.35rem 0.65rem; border-radius: 8px;
}

/* Sections */
section { padding: 4rem 0; }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.section-head h2 {
  margin: 0 0 0.75rem; color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--muted); }
.alt { background: var(--sand); }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.step {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
  box-shadow: 0 4px 14px rgba(11,42,74,0.04);
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; margin-bottom: 0.85rem;
}
.step h3 { margin: 0 0 0.4rem; color: var(--navy); font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Catalog cards */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.15rem;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  transition: 0.15s ease;
}
.form-card:hover { border-color: #99f6e4; box-shadow: var(--shadow); }
.form-card .tag {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--teal-soft); color: var(--teal-dark);
  padding: 0.25rem 0.55rem; border-radius: 6px;
}
.form-card .tag.biz { background: #e0e7ff; color: #3730a3; }
.form-card h3 { margin: 0; font-size: 1.05rem; color: var(--navy); }
.form-card p { margin: 0; color: var(--muted); font-size: 0.9rem; flex: 1; }
.form-card .meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.35rem; gap: 0.5rem;
}
.form-card .price { font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.live-pill {
  background: #dcfce7; color: #166534;
  font-size: 0.7rem; font-weight: 800;
  padding: 0.2rem 0.5rem; border-radius: 999px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.price-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 1.5rem;
  position: relative;
}
.price-card.featured {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.price-card .ribbon {
  position: absolute; top: -10px; right: 16px;
  background: var(--gold); color: #fff;
  font-size: 0.72rem; font-weight: 800;
  padding: 0.25rem 0.55rem; border-radius: 6px;
}
.price-card h3 { margin: 0 0 0.35rem; color: var(--navy); }
.price-card .amount {
  font-size: 2.2rem; font-weight: 800; color: var(--navy);
  letter-spacing: -0.03em; margin: 0.4rem 0;
}
.price-card .amount span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card ul { margin: 1rem 0 1.25rem; padding-left: 1.1rem; color: var(--muted); }
.price-card li { margin: 0.35rem 0; }
.note-box {
  margin-top: 1.5rem;
  background: #fff7ed; border: 1px solid #fed7aa;
  color: #9a3412; border-radius: 10px;
  padding: 0.9rem 1rem; font-size: 0.92rem; text-align: center;
}

/* Trust / FAQ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.trust-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem; text-align: center;
}
.trust-item .icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
.trust-item h3 { margin: 0 0 0.35rem; font-size: 0.95rem; color: var(--navy); }
.trust-item p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 0.95rem 1.1rem; margin-bottom: 0.65rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { margin-bottom: 0.5rem; }
.faq p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #b8c7d6;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.site-footer h4 { color: #fff; margin: 0 0 0.75rem; font-size: 0.95rem; }
.site-footer a { color: #b8c7d6; display: block; margin: 0.35rem 0; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.15rem; margin-bottom: 0.35rem; letter-spacing: -0.02em; }
.footer-brand::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 0.4rem;
  margin-bottom: 0.1rem;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}
.disclaimer-block {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #91a4b8;
}
.copyright { margin-top: 1rem; font-size: 0.8rem; color: #7a8fa5; }

/* Page chrome */
.page-hero {
  background: linear-gradient(180deg, #fff8f2, #fff);
  padding: 2.5rem 0 1.5rem;
}
.page-hero h1 { margin: 0 0 0.5rem; color: var(--navy); letter-spacing: -0.02em; }
.page-hero p { margin: 0; color: var(--muted); max-width: 40rem; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--teal-dark); }

/* Form detail / wizard */
.wizard-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0 3.5rem;
}
.wizard-main {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 1.5rem;
}
.progress {
  display: flex; gap: 0.4rem; margin-bottom: 1.25rem;
}
.progress .bar {
  flex: 1; height: 6px; border-radius: 999px; background: var(--line);
}
.progress .bar.done { background: var(--teal); }
.progress .bar.current { background: #5eead4; }
.wizard-main h2 { margin: 0 0 0.35rem; color: var(--navy); font-size: 1.35rem; }
.wizard-main .hint { color: var(--muted); margin: 0 0 1.25rem; font-size: 0.95rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-weight: 700; font-size: 0.9rem;
  color: var(--navy); margin-bottom: 0.35rem;
}
.field .help { display: block; font-weight: 500; color: var(--muted); font-size: 0.8rem; margin-top: 0.15rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.7rem 0.85rem; font: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid #99f6e4; border-color: var(--teal);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.wizard-nav {
  display: flex; justify-content: space-between; gap: 0.75rem;
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.side-card {
  background: var(--sand); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.2rem; position: sticky; top: 88px;
}
.side-card h3 { margin: 0 0 0.5rem; color: var(--navy); font-size: 1rem; }
.side-card p, .side-card li { color: var(--muted); font-size: 0.88rem; }
.side-card ul { padding-left: 1.1rem; margin: 0.5rem 0 1rem; }
.warning-banner {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: 10px; padding: 0.85rem 1rem; font-size: 0.88rem;
  margin-bottom: 1.25rem;
}
.sample-banner {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: 10px; padding: 0.85rem 1rem; font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

/* Document preview */
.doc-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  font-family: "Times New Roman", Times, serif;
  font-size: 12.5pt;
  line-height: 1.45;
  color: #111;
  max-width: 8.5in;
  margin: 0 auto;
}
.doc-preview .doc-stamp {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #92400e;
  background: #fef3c7;
  border: 1px dashed #f59e0b;
  display: inline-block;
  padding: 0.3rem 0.55rem;
  margin-bottom: 1rem;
}
.doc-preview h1 {
  font-size: 16pt; text-align: center; margin: 0 0 1rem;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.doc-preview .center { text-align: center; }
.doc-preview .mt { margin-top: 1rem; }
.doc-preview .sig-line {
  margin-top: 2rem;
  border-top: 1px solid #333;
  width: 55%;
  padding-top: 0.25rem;
  font-family: var(--font);
  font-size: 0.85rem;
}
.doc-actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  justify-content: center; margin: 1.5rem 0;
}
.doc-wrap { padding: 2rem 0 3.5rem; background: #eef2f6; }

/* Legal pages */
.prose {
  max-width: 760px; margin: 0 auto; padding: 2rem 0 3.5rem;
}
.prose h1 { color: var(--navy); }
.prose h2 { color: var(--navy); margin-top: 2rem; font-size: 1.2rem; }
.prose p, .prose li { color: var(--muted); }
.placeholder-flag {
  background: #fef3c7; border: 1px solid #fcd34d; color: #92400e;
  padding: 0.75rem 1rem; border-radius: 8px; font-weight: 700; font-size: 0.9rem;
}

/* Catalog filters */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem;
}
.chip {
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 0.4rem 0.85rem;
  font-weight: 700; font-size: 0.85rem; cursor: pointer; color: var(--muted);
}
.chip.active, .chip:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-soft); }

/* Checkout placeholder modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(7,30,54,0.55);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 16px; max-width: 440px; width: 100%;
  padding: 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.modal h3 { margin: 0 0 0.5rem; color: var(--navy); }
.modal p { color: var(--muted); margin: 0 0 1rem; }

@media (max-width: 900px) {
  .hero-grid, .wizard-layout, .footer-grid, .pricing-grid, .trust-grid, .steps {
    grid-template-columns: 1fr;
  }
  .price-card.featured { transform: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem; align-items: flex-start;
  }
  .menu-btn { display: inline-flex; }
  .field-row { grid-template-columns: 1fr; }
  .logo-tagline { display: none; }
}
@media print {
  .top-disclaimer, .site-header, .doc-actions, .site-footer, .sample-banner, .no-print { display: none !important; }
  .doc-wrap { background: #fff; padding: 0; }
  .doc-preview { box-shadow: none; border: 0; }
}

/* Bilingual document note */
.lang-control-note {
  font-size: 0.85rem;
  color: #6b5a3e;
  background: #faf6ee;
  border-left: 3px solid #e8a838;
  padding: 0.6rem 0.85rem;
  margin: 0.75rem 0 1.25rem;
}
.field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, #d6d3cd);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
