/* =============================================================
   Open Door Digital — Shared Styles
   Brand: Indigo #4F46E5 | Teal #14B8A6 | Navy #1E293B
   ============================================================= */

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

:root {
  --indigo:       #4F46E5;
  --indigo-dark:  #3730A3;
  --indigo-light: #EEF2FF;
  --teal:         #14B8A6;
  --teal-dark:    #0D9488;
  --teal-light:   #CCFBF1;
  --navy:         #1E293B;
  --text:         #1E293B;
  --muted:        #64748B;
  --subtle:       #94A3B8;
  --bg:           #F8FAFC;
  --white:        #FFFFFF;
  --border:       #E2E8F0;
  --red:          #EF4444;
  --amber:        #F59E0B;
  --green:        #22C55E;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:    0 10px 28px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  --radius:       10px;
  --radius-lg:    16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--muted); line-height: 1.75; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--indigo);
  color: var(--white);
}
.btn-primary:hover { background: var(--indigo-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-teal {
  background: var(--teal);
  color: var(--white);
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--indigo);
  border: 2px solid var(--indigo);
}
.btn-outline:hover { background: var(--indigo); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-lg { padding: .9rem 2.25rem; font-size: 1.0625rem; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--navy);
}
.nav-logo .logo-mark {
  width: 32px; height: 32px;
  background: var(--indigo);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo .logo-mark svg { fill: none; stroke: #fff; stroke-width: 2.5; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .9375rem; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--indigo); }
.nav-links a.active { color: var(--indigo); }
.nav-cta { margin-left: .5rem; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2D3F5F 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(79,70,229,.25) 0%, transparent 65%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.4);
  color: #FCA5A5;
  padding: .35rem .9rem;
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero-badge .dot { width: 7px; height: 7px; background: #EF4444; border-radius: 50%; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--teal); }
.hero p { color: rgba(255,255,255,.75); font-size: 1.125rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat-num span { color: var(--teal); }
.hero-stat-label { font-size: .8125rem; color: rgba(255,255,255,.6); margin-top: .3rem; }

/* ── Warning Banner ── */
.law-banner {
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 0;
  text-align: center;
}
.law-banner p { color: rgba(255,255,255,.9); font-size: .9375rem; margin: 0; }
.law-banner strong { color: var(--teal); }

/* ── Section Labels ── */
.section-label {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal);
  margin-bottom: .75rem;
}
.section-heading { margin-bottom: .75rem; }
.section-sub { font-size: 1.0625rem; max-width: 600px; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-sub { margin: 0 auto; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-md); }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-number {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--indigo-light);
  color: var(--indigo);
  font-weight: 800;
  font-size: 1.125rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.step h3 { margin-bottom: .5rem; }

/* ── Issue Types Grid ── */
.issue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.issue-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.issue-icon {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.issue-item h4 { margin-bottom: .25rem; }
.issue-item p { font-size: .9rem; }

/* ── Sector Cards ── */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.sector-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  transition: all .2s;
  cursor: default;
}
.sector-card:hover { border-color: var(--indigo); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sector-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.sector-card h4 { margin-bottom: .35rem; }
.sector-card p { font-size: .875rem; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.plan {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.plan.featured {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12), var(--shadow-lg);
  transform: scale(1.025);
  position: relative;
}
.plan-badge {
  background: var(--indigo);
  color: var(--white);
  text-align: center;
  padding: .45rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.plan-header { padding: 2rem 2rem 1.5rem; }
.plan-name { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: .4rem; margin: .75rem 0 .5rem; }
.plan-price .amount { font-size: 2.75rem; font-weight: 800; color: var(--navy); line-height: 1; }
.plan-price .period { color: var(--muted); font-size: .9rem; }
.plan-desc { font-size: .9375rem; }
.plan-features { padding: 0 2rem 2rem; list-style: none; }
.plan-features li { display: flex; align-items: flex-start; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.plan-features li .check { color: var(--green); font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }
.plan-features li .cross { color: var(--subtle); font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }
.plan-cta { padding: 0 2rem 2rem; }
.plan-cta .btn { width: 100%; justify-content: center; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none; border: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0;
  font-size: 1rem; font-weight: 600;
  color: var(--navy); cursor: pointer; text-align: left; gap: 1rem;
}
.faq-q .chevron { transition: transform .25s; flex-shrink: 0; }
.faq-q.open .chevron { transform: rotate(180deg); }
.faq-a { display: none; padding-bottom: 1.25rem; }
.faq-a.open { display: block; }
.faq-a p { font-size: .9375rem; }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,.8); margin-bottom: 2rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ── Form ── */
.check-form {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  max-width: 640px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: .875rem; font-weight: 600; color: var(--navy); }
input, textarea, select {
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9375rem;
  font-family: inherit;
  color: var(--navy);
  background: var(--white);
  transition: border-color .15s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.form-note { font-size: .8125rem; color: var(--muted); margin-top: .5rem; }
.submit-row { margin-top: 1.5rem; }
.submit-row .btn { width: 100%; justify-content: center; }

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0 2rem;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .9rem; max-width: 280px; margin-top: .75rem; }
.footer-col h5 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a { font-size: .9rem; color: rgba(255,255,255,.7); }
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: rgba(255,255,255,.4); font-size: .85rem; }
.footer-bottom a { color: rgba(255,255,255,.5); font-size: .85rem; }
.footer-bottom a:hover { color: var(--teal); }

/* ── Privacy page ── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.375rem; margin: 2.5rem 0 .75rem; }
.prose h3 { font-size: 1.1rem; margin: 1.75rem 0 .5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul li { margin-bottom: .4rem; color: var(--muted); font-size: .9375rem; }
.prose a { color: var(--indigo); text-decoration: underline; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-hero p { margin-top: .75rem; font-size: 1.0625rem; }

/* ── Comparison table ── */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.compare-table th, .compare-table td { padding: .85rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .9375rem; }
.compare-table thead th { background: var(--indigo); color: var(--white); font-weight: 700; }
.compare-table thead th:first-child { border-radius: 10px 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 10px 0 0; }
.compare-table tbody tr:hover { background: var(--bg); }
.compare-table td:first-child { font-weight: 500; color: var(--navy); }
.compare-table .yes { color: var(--green); font-weight: 700; }
.compare-table .no  { color: var(--subtle); }

/* ── Responsive grids ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ── Utilities ── */
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-indigo { color: var(--indigo); }
.bg-subtle { background: var(--bg); }
.bg-navy { background: var(--navy); }
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-0  { margin-bottom: 0; }
.inline-flex { display: inline-flex; align-items: center; gap: .4rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
  .steps { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .issue-grid { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 4rem 0 3.5rem; }
}
