/* PatentPath — Global Styles */
/* Aesthetic: Refined editorial · Navy + warm cream · Fraunces serif display */

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

:root {
  --navy: #1a3a5c;
  --navy-dark: #0f2540;
  --navy-mid: #2a4f78;
  --gold: #c4923a;
  --gold-light: #e8b96a;
  --cream: #f7f4ee;
  --cream-dark: #ede9e0;
  --white: #ffffff;
  --text-primary: #1a1a18;
  --text-secondary: #4a4a44;
  --text-muted: #888880;
  --border: #ddd9d0;
  --border-light: #eae6dd;
  --green: #2d7a4a;
  --green-bg: #eaf5ee;
  --warn: #b85c00;
  --warn-bg: #fff4e6;
  --red-bg: #fdf0f0;
  --red: #b83232;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(26,58,92,0.08);
  --shadow-lg: 0 8px 32px rgba(26,58,92,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--white);
}

body.app-body { background: var(--cream); }

/* ── Typography ── */
h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: 20px; }
em { font-style: italic; color: var(--gold); }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 64px;
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 32px;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.nav-active { color: var(--navy); font-weight: 500; text-decoration: none; }
.nav-cta, .btn-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover, .btn-cta:hover { background: var(--navy-dark); text-decoration: none; }
.nav-hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--navy); margin-left: auto; }
.nav-app { background: var(--white); }
.nav-progress { display: flex; align-items: center; gap: 12px; flex: 1; }
.progress-text { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.progress-track { flex: 1; max-width: 200px; height: 5px; background: var(--border-light); border-radius: 3px; }
.progress-fill { height: 5px; background: var(--navy); border-radius: 3px; transition: width 0.4s ease; }
.nav-breadcrumb { font-size: 13px; color: var(--text-muted); flex: 1; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: var(--navy-dark); text-decoration: none; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-large { padding: 16px 32px; font-size: 17px; }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-outline:hover { border-color: var(--navy); background: var(--cream); text-decoration: none; }
.btn-ghost {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 15px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-ghost:hover { color: var(--navy); }
.btn-sm { padding: 6px 14px !important; font-size: 13px !important; }

/* ── HERO ── */
.hero {
  padding: 96px 40px 80px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  background: rgba(26,58,92,0.08);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-h1 { margin-bottom: 20px; color: var(--navy-dark); }
.hero-sub { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin: 0 auto 36px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-bottom: 56px; flex-wrap: wrap; }

/* Hero card */
.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.hero-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.avatar-sm {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; flex-shrink: 0;
}
.hc-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.hc-sub { font-size: 12px; color: var(--text-muted); }
.hc-badge { margin-left: auto; font-size: 11px; padding: 4px 10px; border-radius: 20px; background: var(--green-bg); color: var(--green); font-weight: 500; white-space: nowrap; }
.score-row-visual { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.score-item { display: flex; align-items: center; gap: 10px; }
.score-label { font-size: 12px; color: var(--text-muted); width: 130px; flex-shrink: 0; }
.score-bar { flex: 1; height: 6px; background: var(--cream-dark); border-radius: 3px; overflow: hidden; }
.score-fill { height: 6px; background: var(--navy); border-radius: 3px; transition: width 0.8s ease; }
.score-pct { font-size: 13px; font-weight: 500; color: var(--navy); width: 36px; text-align: right; }
.hc-match { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); border-top: 1px solid var(--border-light); padding-top: 16px; }
.match-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ── STEPS BAND ── */
.steps-band { background: var(--cream); padding: 64px 40px; }
.steps-label { text-align: center; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.step-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step-num { font-size: 12px; font-weight: 500; color: var(--gold); letter-spacing: 0.05em; margin-bottom: 10px; }
.step-card h3 { font-size: 17px; margin-bottom: 8px; font-family: 'Fraunces', serif; font-weight: 400; color: var(--navy-dark); }
.step-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* ── FEATURES ── */
.features-section { padding: 80px 40px; max-width: 1100px; margin: 0 auto; }
.features-header { text-align: center; margin-bottom: 56px; }
.features-header h2 { margin-bottom: 14px; color: var(--navy-dark); }
.features-header p { font-size: 17px; color: var(--text-secondary); max-width: 480px; margin: 0 auto; }
.section-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: box-shadow 0.2s, transform 0.2s; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { font-size: 24px; margin-bottom: 14px; color: var(--navy); }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; font-family: 'Fraunces', serif; font-weight: 400; color: var(--navy-dark); }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── CTA BAND ── */
.cta-band { background: var(--navy); padding: 80px 40px; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.7); font-size: 17px; margin-bottom: 32px; }
.cta-disclaimer { margin-top: 20px; font-size: 12px; color: rgba(255,255,255,0.4); }

/* ── FOOTER ── */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 56px 40px 32px; }
.footer-logo { font-family: 'Fraunces', serif; font-size: 20px; color: var(--white); display: flex; align-items: center; gap: 8px; margin-bottom: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 40px; }
.fc-title { font-size: 13px; font-weight: 500; color: var(--white); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-sm { padding: 20px 40px; background: var(--cream); }
.footer-sm .footer-bottom { color: var(--text-muted); border-color: var(--border); }
.footer-sm a { color: var(--navy); }

/* ── APP LAYOUT (Evaluate) ── */
.app-layout { display: flex; min-height: calc(100vh - 65px); }
.app-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border-light);
  padding: 28px 20px;
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
}
.sidebar-title { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.sidebar-steps { display: flex; flex-direction: column; gap: 4px; margin-bottom: 28px; }
.sidebar-step { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); cursor: default; }
.sidebar-step.active { background: var(--cream); }
.ss-dot {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  flex-shrink: 0; background: var(--white);
}
.sidebar-step.active .ss-dot { border-color: var(--navy); color: var(--navy); }
.ss-dot.ss-done { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.ss-label { font-size: 14px; color: var(--text-secondary); }
.sidebar-step.active .ss-label { color: var(--navy); font-weight: 500; }
.confidential-box {
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px;
}
.cb-icon { font-size: 18px; margin-bottom: 6px; }
.cb-title { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.cb-text { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ── FORM STEPS ── */
.app-main { flex: 1; padding: 48px 56px; max-width: 760px; }
.form-step { display: none; animation: fadeIn 0.25s ease; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.step-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.step-title { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 400; color: var(--navy-dark); margin-bottom: 8px; }
.step-sub { font-size: 15px; color: var(--text-secondary); margin-bottom: 32px; }
.form-group { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 7px; }
.label-hint { font-weight: 400; color: var(--text-muted); }
.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,92,0.08); }
.form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  height: 100px;
  resize: vertical;
  transition: border-color 0.15s;
}
.form-textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,92,0.08); }
.pill-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
  user-select: none;
}
.pill:hover { border-color: var(--navy); color: var(--navy); }
.pill.active { border-color: var(--navy); background: rgba(26,58,92,0.07); color: var(--navy); font-weight: 500; }
.disclosure-alert {
  background: var(--warn-bg);
  border: 1px solid #e8a44a;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--warn);
  margin-top: 8px;
  animation: fadeIn 0.2s ease;
}
.form-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border-light); }

/* Processing state */
.processing-state { text-align: center; padding: 48px 0; }
.processing-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 28px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing-steps { margin-top: 28px; text-align: left; max-width: 320px; margin-left: auto; margin-right: auto; }
.ps-item { font-size: 14px; color: var(--text-muted); padding: 8px 0; border-bottom: 1px solid var(--border-light); transition: color 0.3s; }
.ps-item.active { color: var(--text-primary); }
.ps-item.done { color: var(--green); }

/* ── REPORT ── */
.report-header { background: var(--navy); padding: 40px; }
.report-header-inner { max-width: 1100px; margin: 0 auto; }
.report-eyebrow { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.report-title { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 400; color: var(--white); margin-bottom: 14px; }
.report-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.report-tag { font-size: 12px; padding: 4px 12px; border-radius: 20px; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }
.report-tag-green { background: var(--green-bg); color: var(--green); }
.report-layout { display: grid; grid-template-columns: 1fr 300px; max-width: 1100px; margin: 0 auto; gap: 0; }
.report-main { padding: 40px; border-right: 1px solid var(--border-light); }
.report-section { margin-bottom: 44px; }
.report-section .section-eyebrow { margin-bottom: 16px; }

/* Score cards */
.score-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.score-card { background: var(--cream); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px; }
.score-card-main { background: rgba(26,58,92,0.04); border-color: rgba(26,58,92,0.15); }
.sc-label { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.sc-big { font-family: 'Fraunces', serif; font-size: 44px; font-weight: 400; color: var(--navy); line-height: 1; margin-bottom: 10px; }
.sc-big span { font-size: 20px; color: var(--text-muted); }
.sc-bar { height: 6px; background: var(--border-light); border-radius: 3px; margin-bottom: 8px; overflow: hidden; }
.sc-fill { height: 6px; background: var(--navy); border-radius: 3px; }
.sc-sub { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.sc-rec { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 400; margin: 10px 0 8px; }
.sc-rec-green { color: var(--green); }

/* Dimensions */
.dimension-table { display: flex; flex-direction: column; gap: 14px; }
.dim-row { display: flex; align-items: center; gap: 16px; }
.dim-name { font-size: 14px; color: var(--text-primary); width: 220px; flex-shrink: 0; }
.dim-cite { font-size: 12px; color: var(--text-muted); display: block; }
.dim-bar-wrap { flex: 1; height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
.dim-bar-fill { height: 6px; background: var(--navy); border-radius: 3px; }
.dim-bar-fill.dim-bar-warn { background: var(--gold); }
.dim-score { font-size: 13px; font-weight: 500; width: 180px; text-align: right; }
.dim-score.strong { color: var(--green); }
.dim-score.moderate { color: var(--navy); }
.dim-score.warn { color: var(--warn); }

/* Prior art */
.prior-art-list { display: flex; flex-direction: column; gap: 14px; }
.pa-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.pa-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pa-id { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.pa-badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 500; }
.pa-badge-warn { background: var(--warn-bg); color: var(--warn); }
.pa-badge-ok { background: var(--green-bg); color: var(--green); }
.pa-title { font-size: 15px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
.pa-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* Analyst notes */
.analyst-notes p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.disclaimer-box { background: var(--cream); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-top: 20px; }

/* Report sidebar */
.report-sidebar { padding: 32px 24px; background: var(--cream); }
.rs-section-label { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.rs-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.rs-card-highlight { background: rgba(26,58,92,0.05); border-color: rgba(26,58,92,0.2); }
.rs-title { font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.rs-sub { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.atty-card-rs .atty-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.avatar-md {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; flex-shrink: 0;
}
.atty-nm { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.atty-mt { font-size: 12px; color: var(--text-muted); }
.atty-pills-sm { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.atty-pills-sm span { font-size: 11px; padding: 3px 8px; border-radius: 4px; background: var(--cream); border: 1px solid var(--border-light); color: var(--text-secondary); }
.atty-avail { font-size: 12px; color: var(--green); margin-bottom: 12px; }
.atty-btns { display: flex; gap: 8px; }
.rs-small-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 8px; }
.rs-small-note a { color: var(--navy); }

/* ── DIRECTORY ── */
.dir-header { background: var(--navy); padding: 48px 40px; }
.dir-header-inner { max-width: 1100px; margin: 0 auto; }
.dir-title { font-family: 'Fraunces', serif; font-size: 36px; font-weight: 400; color: var(--white); margin-bottom: 10px; }
.dir-sub { font-size: 16px; color: rgba(255,255,255,0.65); }
.dir-layout { display: grid; grid-template-columns: 220px 1fr; max-width: 1100px; margin: 0 auto; gap: 0; }
.dir-sidebar { padding: 28px 20px; background: var(--cream); border-right: 1px solid var(--border-light); position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; }
.filter-section { margin-bottom: 24px; }
.filter-label { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.filter-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); margin-bottom: 7px; cursor: pointer; }
.filter-check input { accent-color: var(--navy); }
.dir-main { padding: 28px 32px; }
.dir-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.dir-search { flex: 1; }
.dir-sort { width: 180px; flex-shrink: 0; }
.dir-count { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.atty-grid { display: flex; flex-direction: column; gap: 16px; }
.atty-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: box-shadow 0.2s; }
.atty-card:hover { box-shadow: var(--shadow); }
.atty-card.featured { border: 2px solid var(--navy); }
.featured-badge { font-size: 12px; font-weight: 500; color: var(--navy); background: rgba(26,58,92,0.08); padding: 4px 12px; border-radius: 20px; display: inline-block; margin-bottom: 14px; }
.ac-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.avatar-lg {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 500; flex-shrink: 0;
}
.ac-info { flex: 1; }
.ac-name { font-size: 17px; font-weight: 500; color: var(--text-primary); margin-bottom: 2px; }
.ac-firm { font-size: 13px; color: var(--text-secondary); }
.ac-loc { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.ac-avail { font-size: 13px; color: var(--text-muted); }
.avail-green { color: var(--green); }
.ac-rate { font-size: 15px; font-weight: 500; color: var(--navy); white-space: nowrap; }
.ac-bio { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.ac-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ac-tags span { font-size: 12px; padding: 4px 10px; border-radius: 4px; background: var(--cream); border: 1px solid var(--border-light); color: var(--text-secondary); }
.ac-creds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cred { font-size: 12px; color: var(--text-muted); padding: 3px 9px; border-radius: 4px; border: 1px solid var(--border-light); }
.ac-actions { display: flex; gap: 10px; border-top: 1px solid var(--border-light); padding-top: 18px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,37,64,0.55);
  display: none; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 18px; cursor: pointer;
  color: var(--text-muted); transition: color 0.15s;
}
.modal-close:hover { color: var(--text-primary); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .score-cards { grid-template-columns: 1fr; }
  .report-layout { grid-template-columns: 1fr; }
  .report-sidebar { border-top: 1px solid var(--border-light); }
  .dir-layout { grid-template-columns: 1fr; }
  .dir-sidebar { display: none; }
  .dim-name { width: 140px; }
  .dim-score { width: 130px; }
}
@media (max-width: 768px) {
  .nav { padding: 0 20px; gap: 16px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 20px; gap: 16px; z-index: 99; }
  .nav-hamburger { display: block; }
  .nav-cta { display: none; }
  .hero { padding: 60px 24px 48px; }
  .app-layout { flex-direction: column; }
  .app-sidebar { display: none; }
  .app-main { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .report-main { padding: 24px; }
  .dim-row { flex-wrap: wrap; gap: 6px; }
  .dim-bar-wrap { order: 3; width: 100%; }
  .dim-score { width: auto; text-align: left; }
  .ac-top { flex-wrap: wrap; }
  .ac-actions { flex-wrap: wrap; }
  .ac-actions .btn-primary, .ac-actions .btn-outline { flex: 1; text-align: center; font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .score-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .score-row-visual .score-label { width: 100px; }
}

/* Print styles for report */
@media print {
  .nav, .report-sidebar { display: none; }
  .report-layout { grid-template-columns: 1fr; }
  .report-main { padding: 20px; }
}
