:root {
  --bg: #0b0b0a;
  --bg-alt: #131311;
  --panel: #131311;
  --border: #2a2823;
  --border-soft: #1c1b18;
  --text: #ece6d9;
  --text-dim: #a49b89;
  --text-faint: #6d6656;
  --accent: #9bb193;
  --accent-dim: #6d7d67;
  --red: #a15a4e;
  --orange: #b08355;
  --amber: #a79a5a;
  --green: #93ac8c;
  --radius: 2px;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; color: var(--text); }

a { color: inherit; }

.eyebrow {
  font-family: var(--font-sans); text-transform: uppercase; font-size: 11px;
  letter-spacing: 0.22em; color: var(--accent); font-weight: 600; margin: 0 0 18px;
}
.eyebrow.center { text-align: center; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,11,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  height: 68px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.brand { grid-column: 1; justify-self: start; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 1px solid var(--text-dim);
  font-family: var(--font-serif); font-size: 12.5px; letter-spacing: 0.02em; color: var(--text);
}
.brand-slash { color: var(--text-faint); font-size: 13px; }
.brand-full {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-dim);
}

.nav-links {
  grid-column: 2; justify-self: center;
  display: flex; align-items: center; gap: 14px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em;
}
.nav-links a { text-decoration: none; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-divider { color: var(--border); font-size: 11px; }

.nav-auth { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 22px; }
.nav-signin {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-sans); color: var(--text-dim); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.nav-signin:hover { color: var(--text); }

@media (max-width: 860px) {
  .brand-full { display: none; }
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-auth { grid-column: 2; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: transparent; color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-sm { padding: 9px 18px; font-size: 10.5px; }
.btn-full { width: 100%; text-align: center; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 110px 24px 72px; }
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; margin-bottom: 22px;
  font-weight: 500;
}
.hero-sub {
  font-family: var(--font-sans); color: var(--text-dim); font-size: 16px;
  line-height: 1.65; margin: 0 auto 34px; max-width: 560px;
}
.hero-fine {
  color: var(--text-faint); font-size: 10.5px; margin-top: 20px;
  text-transform: uppercase; letter-spacing: 0.14em;
}

/* ---------- credibility strip ---------- */
.credibility {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.credibility-inner {
  max-width: 1180px; margin: 0 auto; padding: 22px 32px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
}
.credibility-item {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint);
  padding: 4px 28px; border-left: 1px solid var(--border);
}
.credibility-item:first-child { border-left: none; }
@media (max-width: 760px) {
  .credibility-item { border-left: none; width: 100%; text-align: center; padding: 6px 12px; }
}

/* ---------- how it works ---------- */
.how { max-width: 1180px; margin: 0 auto; padding: 96px 32px; text-align: center; }
.how h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.section-sub { color: var(--text-dim); font-size: 15px; max-width: 480px; margin: 0 auto 56px; }
.how-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); text-align: left;
}
.how-module {
  border-left: 1px solid var(--border); padding: 0 22px;
  display: flex; flex-direction: column; min-height: 220px;
}
.how-module:first-child { border-left: none; padding-left: 0; }
.module-index { font-family: var(--font-serif); font-size: 22px; color: var(--text-faint); margin-bottom: 14px; }
.how-module h3 { font-family: var(--font-sans); font-size: 13.5px; font-weight: 650; margin-bottom: 10px; color: var(--text); }
.how-module p { color: var(--text-dim); font-size: 12.5px; line-height: 1.55; margin: 0; flex: 1; }
.module-meta {
  display: flex; justify-content: space-between; margin-top: 18px; padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint);
}
@media (max-width: 960px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 22px; }
  .how-module { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 22px; min-height: 0; }
  .how-module:first-child { border-top: none; padding-top: 0; }
}

/* ---------- panels (modal form / results) ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.panel h2 { font-size: 20px; margin-bottom: 6px; }
.panel-sub { color: var(--text-faint); font-size: 12.5px; margin: 0 0 26px; }

#intake-form label {
  display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim); margin-bottom: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#intake-form input, #intake-form select, #intake-form textarea {
  width: 100%; margin-top: 8px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 12px; color: var(--text); font-size: 14px;
  font-family: var(--font-sans); text-transform: none; letter-spacing: normal; resize: vertical;
}
#intake-form input:focus, #intake-form select:focus, #intake-form textarea:focus {
  outline: none; border-color: var(--text-dim);
}
.optional { color: var(--text-faint); font-weight: 400; text-transform: none; letter-spacing: normal; }

.team-section { margin-bottom: 18px; }
.team-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 4px; }
.team-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); white-space: nowrap; }
.team-section .field-hint { margin-top: 0; text-align: right; }
#team-members-container { display: flex; flex-direction: column; }
.team-member { border-top: 1px solid var(--border-soft); padding: 16px 0; }
.team-member:first-child { border-top: 1px solid var(--border); padding-top: 18px; }
.team-member-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.team-member-title {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); font-weight: 600;
}
.team-member-remove {
  background: none; border: 1px solid var(--border); color: var(--text-faint);
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px; border-radius: 0; padding: 0;
}
.team-member-remove:hover { color: var(--text); border-color: var(--text-dim); }
#add-team-member { margin-top: 14px; }
.field-hint {
  display: block; color: var(--text-faint); font-size: 11px; margin-top: 6px;
  font-weight: 400; text-transform: none; letter-spacing: normal;
}

.hidden { display: none !important; }

/* modal */
body.modal-open { overflow: hidden; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(6,6,5,0.82);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 20px; overflow-y: auto;
}
.modal-box {
  position: relative; width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto;
}
.modal-box .panel { margin: 0; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 28px; height: 28px; border-radius: 0; border: 1px solid var(--border);
  background: var(--bg); color: var(--text-dim); font-size: 16px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--text); border-color: var(--text-dim); }

.loading-state { position: relative; padding: 8px 0; }
.scan-line {
  height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 1.6s linear infinite; margin-bottom: 22px;
}
@keyframes scan { 0% { opacity: .15; } 50% { opacity: .8; } 100% { opacity: .15; } }
.loading-steps { list-style: none; padding: 0; margin: 0; }
.loading-steps li {
  padding: 10px 0; color: var(--text-faint); font-size: 12.5px; border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.loading-steps li::before { content: "—"; color: var(--text-faint); }
.loading-steps li.active { color: var(--text); }
.loading-steps li.active::before { content: "—"; color: var(--accent); }
.loading-steps li.done { color: var(--text-dim); }
.loading-steps li.done::before { content: "✓"; color: var(--accent); }

/* ---------- results ---------- */
.score-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 8px; }
.score-figure { flex: 1; }
.score-number {
  font-family: var(--font-serif); font-size: 48px; color: var(--text); line-height: 1;
}
.score-number span { font-size: 18px; color: var(--text-faint); font-weight: 400; }
.score-bar { height: 2px; background: var(--border); margin-top: 14px; }
.score-bar-fill { height: 100%; background: var(--gauge-color, var(--accent)); }
.score-meta { text-align: right; }
.status-tag {
  display: inline-block; padding: 5px 10px; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; border: 1px solid currentColor; margin-bottom: 8px;
}
.status-red { color: var(--red); }
.status-orange { color: var(--orange); }
.status-amber { color: var(--amber); }
.status-green { color: var(--green); }
.score-meta .project-name { font-size: 13.5px; color: var(--text-dim); }

.verdict { color: var(--text-dim); font-size: 14px; margin: 22px 0 26px; line-height: 1.65; }

.cat-list { display: flex; flex-direction: column; margin-bottom: 24px; }
.cat-row { padding: 14px 0; border-top: 1px solid var(--border-soft); }
.cat-row:last-child { border-bottom: 1px solid var(--border-soft); }
.cat-row .cat-top {
  display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim);
}
.cat-row .cat-top strong { font-weight: 650; color: var(--text); letter-spacing: 0.04em; }
.cat-track { height: 2px; background: var(--border); }
.cat-fill { height: 100%; background: var(--accent); }
.cat-notes { list-style: none; padding: 0; margin: 10px 0 0; }
.cat-notes li { font-size: 12px; color: var(--text-faint); padding: 2px 0 2px 14px; position: relative; line-height: 1.5; }
.cat-notes li::before { content: "–"; position: absolute; left: 0; color: var(--text-faint); }

.path-box { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; margin-bottom: 22px; }
.path-box h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent);
  margin: 0 0 16px; font-weight: 600;
}
.path-current { color: var(--text-faint); font-weight: 400; text-transform: none; letter-spacing: normal; font-size: 12px; }
.path-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.path-row { border-bottom: 1px solid var(--border-soft); padding-bottom: 12px; }
.path-row:last-child { border-bottom: none; padding-bottom: 0; }
.path-row-main { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; }
.path-deliverable { font-weight: 500; color: var(--text); }
.path-price { font-family: var(--font-serif); font-weight: 500; color: var(--text); }
.path-row-sub { font-size: 11px; color: var(--text-faint); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.path-total { border-top: 1px solid var(--border); padding-top: 14px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.path-alt { color: var(--text-faint); font-size: 11.5px; }
.path-clear p { color: var(--text-dim); font-size: 13px; margin: 0; }

.flags-box { padding-top: 18px; margin-bottom: 8px; border-top: 1px solid var(--border-soft); }
.flags-box h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); margin: 0 0 10px; font-weight: 600; }
.flags-box ul { margin: 0; padding-left: 16px; }
.flags-box li { font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; line-height: 1.5; }

.strengths-box { padding-top: 18px; margin-top: 14px; border-top: 1px solid var(--border-soft); }
.strengths-box h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 0 0 10px; font-weight: 600; }
.strengths-box ul { margin: 0; padding-left: 16px; }
.strengths-box li { font-size: 12.5px; color: var(--text-dim); margin-bottom: 4px; text-transform: capitalize; }

.fetch-warn { font-size: 11.5px; color: var(--orange); margin-top: 12px; }

/* offer */
.offer-section { margin-top: 26px; }
.offer-box { border-top: 1px solid var(--border); padding-top: 24px; }
.offer-box h2 { font-size: 18px; margin-bottom: 8px; }
.offer-box .offer-sub { color: var(--text-dim); font-size: 12.5px; margin-bottom: 20px; }
.offer-cards { display: flex; flex-direction: column; gap: 16px; }

#restart-analyze { margin-top: 24px; }

/* ---------- pricing ---------- */
.pricing { max-width: 1180px; margin: 0 auto; padding: 96px 32px; text-align: center; }
.pricing h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.pricing-sub { color: var(--text-dim); font-size: 15px; margin: 0 auto 56px; max-width: 520px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; text-align: left; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  border-left: 1px solid var(--border); padding: 32px 28px; position: relative;
}
.price-card:first-child { border-left: none; }
@media (max-width: 860px) { .price-card { border-left: none; border-top: 1px solid var(--border); } .price-card:first-child { border-top: none; } }
.price-card.featured .badge {
  display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 14px; font-weight: 600;
}
.price-card h3 { font-family: var(--font-sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 650; margin-bottom: 16px; color: var(--text-dim); }
.price { font-family: var(--font-serif); font-size: 30px; font-weight: 500; margin-bottom: 16px; color: var(--text); }
.price span { font-size: 13px; color: var(--text-faint); font-weight: 400; font-family: var(--font-sans); }
.price-card p { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; line-height: 1.55; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.price-card li {
  font-size: 12.5px; color: var(--text-dim); padding: 9px 0; position: relative;
  border-top: 1px solid var(--border-soft);
}
.price-card li:first-child { border-top: none; }
.price-card li a { color: inherit; text-decoration: none; display: block; }
.price-card li a:hover { color: var(--text); text-decoration: underline; }
.price-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- faq ---------- */
.faq { max-width: 720px; margin: 0 auto; padding: 96px 32px; }
.faq h2 { text-align: center; font-size: clamp(26px, 3vw, 34px); margin-bottom: 44px; }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 14.5px; font-family: var(--font-serif); }
.faq p { color: var(--text-dim); font-size: 13.5px; margin: 12px 0 0; line-height: 1.6; }

/* ---------- template library ---------- */
.tpl-hero { padding-bottom: 48px; }
.tpl-access-badge {
  display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); border: 1px solid var(--accent); padding: 9px 18px;
}
.tpl-locked {
  display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-faint); border: 1px solid var(--border); padding: 9px 18px;
}
.tpl-list { max-width: 1180px; margin: 0 auto; padding: 0 32px 96px; }
.tpl-item {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px;
  padding: 52px 0; border-top: 1px solid var(--border); scroll-margin-top: 90px;
}
.tpl-item-head h2 { font-size: 26px; margin: 12px 0 16px; }
.tpl-desc { color: var(--text-dim); font-size: 14px; line-height: 1.65; margin-bottom: 24px; max-width: 460px; }
.tpl-validation { border-left: 1px solid var(--border); padding-left: 36px; }
.tpl-validation-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent);
  font-weight: 600; margin: 0 0 14px;
}
.tpl-validation p { color: var(--text-dim); font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.tpl-validation ul { list-style: none; padding: 0; margin: 0 0 24px; }
.tpl-validation li {
  font-size: 12.5px; color: var(--text-dim); padding: 10px 0; border-top: 1px solid var(--border-soft);
  line-height: 1.5;
}
.tpl-validation li:first-child { border-top: none; padding-top: 0; }
@media (max-width: 860px) {
  .tpl-item { grid-template-columns: 1fr; gap: 28px; }
  .tpl-validation { border-left: none; padding-left: 0; border-top: 1px solid var(--border-soft); padding-top: 26px; }
}

.footer { border-top: 1px solid var(--border); padding: 40px 32px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand { font-family: var(--font-serif); font-size: 13px; color: var(--text-dim); }
.footer-brand .dot { color: var(--accent); margin: 0 4px; }
.footer-meta { color: var(--text-faint); font-size: 11.5px; max-width: 480px; text-align: right; }
@media (max-width: 700px) { .footer-inner { flex-direction: column; align-items: flex-start; } .footer-meta { text-align: left; } }
