/* Shared styles for the per-tool landing pages (contract-analyzer.html, ...).
   Colors, fonts, nav and footer copy the home page (index.html) so the pages
   look like one site; index.html keeps its own inline copy. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange:        #e05c2e;
  --orange-dark:   #c44d24;
  --orange-tint:   #fef3ee;
  --orange-border: #f5c4ad;
  --blue:          #2563eb;
  --blue-dark:     #1d4ed8;
  --blue-tint:     #eff6ff;
  --blue-border:   #bfdbfe;
  --black:         #1c1c1e;
  --gray-1:        #3a3a3c;
  --gray-2:        #666;
  --gray-3:        #999;
  --gray-4:        #bbb;
  --divider:       #e8e4de;
  --bg-alt:        #fafafa;
  --white:         #fff;
  --ok:            #16a34a;
  --warn:          #d97706;
  --bad:           #dc2626;
  --accent:        var(--blue);
  --accent-dark:   var(--blue-dark);
  --accent-tint:   var(--blue-tint);
  --accent-border: var(--blue-border);
  --radius:        10px;
  --radius-lg:     16px;
}
.theme-personal {
  --accent:        var(--orange);
  --accent-dark:   var(--orange-dark);
  --accent-tint:   var(--orange-tint);
  --accent-border: var(--orange-border);
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--black); background: var(--white);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17,17,17,0.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid #2a2a2a;
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.3px; color: #fff; }
.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: var(--white);
}
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 7px; background: var(--orange); color: var(--white); transition: background 0.15s; white-space: nowrap; }
.nav-links a:hover { background: var(--orange-dark); }

/* ── Buttons ── */
.btn-primary, .btn-secondary {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--white); color: var(--black); border: 1.5px solid var(--divider); }
.btn-secondary:hover { border-color: var(--gray-4); transform: translateY(-1px); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Hero ── */
.tool-hero { padding: 80px 24px 72px; background: var(--accent-tint); border-bottom: 1px solid var(--accent-border); }
.app-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 14px; margin-bottom: 20px;
  background: var(--white); border: 1px solid var(--accent-border); color: var(--accent-dark);
}
.app-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tool-hero h1 {
  font-size: clamp(34px, 5.5vw, 56px); font-weight: 800; letter-spacing: -1.5px;
  line-height: 1.08; margin-bottom: 18px; max-width: 760px;
}
.tool-hero h1 em { color: var(--accent); font-style: normal; }
.tool-hero .lead { font-size: 19px; color: var(--gray-1); line-height: 1.65; max-width: 620px; margin-bottom: 32px; }
.hero-note { font-size: 13px; color: var(--gray-2); margin-top: 16px; }

/* ── Sections ── */
.section { padding: 72px 24px; border-bottom: 1px solid var(--divider); }
.section-alt { background: var(--bg-alt); }
.section-label { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; letter-spacing: -0.5px; line-height: 1.18; margin-bottom: 14px; }
.section-sub { font-size: 17px; color: var(--gray-2); max-width: 620px; line-height: 1.65; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 40px; }
.card {
  background: var(--white); border: 1px solid var(--divider); border-radius: var(--radius-lg); padding: 24px;
}
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--gray-2); line-height: 1.6; }
.card-highlight { border: 1.5px solid var(--accent-border); background: var(--accent-tint); }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 40px; }
.steps li { counter-increment: step; }
.steps li::before {
  content: "Step " counter(step); display: block; font-size: 11px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.steps h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.steps p { font-size: 14px; color: var(--gray-2); line-height: 1.6; }

/* Callout */
.callout {
  display: flex; gap: 10px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius);
  padding: 14px 16px; font-size: 14px; line-height: 1.6; color: #92400e; margin-top: 28px;
}
.callout strong { color: #78350f; }

/* Example result */
.example {
  margin-top: 40px; background: var(--white); border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}
.example-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.example-title { font-size: 15px; font-weight: 700; }
.example-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-3); }
.risk { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #fef2f2; color: var(--bad); border: 1px solid #fecaca; }
.flag { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: var(--radius); font-size: 14px; line-height: 1.55; margin-top: 8px; }
.flag-icon { flex-shrink: 0; font-weight: 700; width: 18px; text-align: center; }
.flag-ok   { background: #f0fdf4; color: #14532d; } .flag-ok .flag-icon { color: var(--ok); }
.flag-warn { background: #fffbeb; color: #78350f; } .flag-warn .flag-icon { color: var(--warn); }
.flag-bad  { background: #fef2f2; color: #7f1d1d; } .flag-bad .flag-icon { color: var(--bad); }
.example-foot { font-size: 12px; color: var(--gray-3); margin-top: 14px; }

/* ATS score example */
.score-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.score-num { font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1; color: var(--ok); }
.score-of { font-size: 14px; color: var(--gray-3); }
.score-grade { font-size: 15px; font-weight: 700; }
.ex-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-3); margin: 18px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--divider); background: var(--white); color: var(--gray-1); }
.chip-found { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.chip-miss { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }

/* Resume before/after example */
.ba { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; }
.ba-box { background: var(--white); border: 1px solid var(--divider); border-radius: var(--radius-lg); padding: 22px; }
.ba-box.after { border: 1.5px solid var(--accent-border); box-shadow: 0 12px 36px rgba(0,0,0,0.06); }
.ba-box ul { padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--gray-1); }
.ba-box li { margin-bottom: 6px; }
.ba-quote { font-size: 14px; line-height: 1.6; color: var(--gray-2); font-style: italic; }
.ba-job { font-size: 14px; font-weight: 700; margin-bottom: 8px; }

/* Pricing */
.price-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 36px; }
.price { background: var(--white); border: 1px solid var(--divider); border-radius: var(--radius-lg); padding: 22px; }
.price-tools { font-size: 13px; font-weight: 600; color: var(--gray-2); margin-bottom: 6px; }
.price-amt { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.price-amt span { font-size: 14px; font-weight: 400; color: var(--gray-3); letter-spacing: 0; }
.fine { font-size: 13px; color: var(--gray-2); line-height: 1.65; margin-top: 18px; max-width: 760px; }

/* FAQ */
.faq { margin-top: 32px; }
.faq-item { background: var(--white); border: 1px solid var(--divider); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 18px; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex-shrink: 0; width: 9px; height: 9px; margin-top: -4px;
  border-right: 2px solid var(--gray-3); border-bottom: 2px solid var(--gray-3);
  transform: rotate(45deg); transition: transform 0.2s;
}
.faq-item[open] summary { color: var(--accent-dark); border-bottom: 1px solid var(--divider); }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq-answer { padding: 14px 18px 16px; font-size: 14px; color: var(--gray-2); line-height: 1.65; }
.faq-answer a, .fine a, .callout a { color: var(--accent); text-decoration: underline; }

/* Closing CTA */
.cta { background: var(--black); color: var(--white); padding: 80px 24px; text-align: center; }
.cta h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; }
.cta p { color: var(--gray-4); margin: 0 auto 32px; max-width: 520px; }
.cta .actions { justify-content: center; }
.cta .btn-secondary { background: transparent; color: var(--white); border-color: #3a3a3c; }
.cta .btn-secondary:hover { border-color: var(--gray-3); }

/* ── Footer ── */
footer { background: var(--black); border-top: 1px solid #2a2a2e; padding: 36px 24px; }
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-mark {
  width: 28px; height: 28px; border-radius: 6px; background: var(--orange);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--white);
}
.footer-brand { display: flex; flex-direction: column; gap: 1px; }
.footer-logo-name { font-size: 14px; font-weight: 800; color: var(--white); }
.footer-logo-sub { font-size: 11px; color: var(--gray-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-links a { font-size: 13px; color: var(--gray-3); }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: var(--gray-3); }

@media (max-width: 768px) {
  .nav-links li:not(:last-child) { display: none; }
  .tool-hero { padding: 56px 16px 52px; }
  .tool-hero h1 { letter-spacing: -1px; }
  .section { padding: 56px 16px; }
  .cta { padding: 64px 16px; }
  footer { padding: 32px 16px; }
  .nav-inner { padding: 0 16px; }
}
