@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #101d2d;
  --navy-deep: #0a1421;
  --charcoal: #222a31;
  --ink: #26313b;
  --slate: #53687a;
  --steel: #72899a;
  --ivory: #f7f4ed;
  --paper: #fffdf8;
  --mist: #e9edf0;
  --line: #d8dfe2;
  --gold: #b08a4a;
  --gold-light: #d4b67a;
  --oxblood: #743e42;
  --success: #527564;
  --warning: #a97942;
  --white: #ffffff;
  --shadow-sm: 0 3px 12px rgba(16, 29, 45, .07);
  --shadow-md: 0 14px 34px rgba(16, 29, 45, .11);
  --shadow-lg: 0 24px 70px rgba(16, 29, 45, .16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1160px;
  --ease: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
::selection { color: var(--paper); background: var(--oxblood); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 9px 14px; color: var(--white); background: var(--navy); border-radius: var(--radius-sm); transform: translateY(-160%); transition: transform var(--ease); }
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.section { padding: 92px 0; position: relative; }
.section-muted { background: #edf0f0; }
.eyebrow, .step-label, .workflow-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); letter-spacing: -.035em; line-height: 1.13; }
h1 { max-width: 700px; margin-bottom: 24px; font-size: clamp(2.7rem, 7vw, 5.5rem); font-weight: 800; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h3 { margin-bottom: 10px; font-size: 1.08rem; font-weight: 800; }
p { margin-bottom: 1rem; }
.muted-note { color: var(--slate); font-size: .86rem; }

.site-header { position: sticky; top: 0; z-index: 30; color: var(--paper); background: rgba(16, 29, 45, .97); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--paper); font-size: 1rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: var(--navy); background: var(--gold-light); border-radius: 4px; font-family: Georgia, serif; font-size: .82rem; font-weight: 700; letter-spacing: -.08em; }
.menu-toggle, .sidebar-close { color: var(--paper); background: transparent; border: 0; cursor: pointer; }
.menu-toggle { padding: 9px 0 9px 12px; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-close { display: block; margin: 8px 0 18px auto; font-size: 1.8rem; line-height: 1; }
.primary-navigation { position: fixed; inset: 0 0 0 22%; z-index: 40; display: flex; flex-direction: column; padding: 28px 28px; background: var(--navy-deep); box-shadow: -15px 0 45px rgba(0,0,0,.22); transform: translateX(105%); transition: transform var(--ease); }
.primary-navigation.is-open { transform: translateX(0); }
.nav-list, .footer-links { display: flex; padding: 0; margin: 0; list-style: none; }
.nav-list { flex-direction: column; gap: 5px; }
.nav-link { display: block; padding: 11px 8px; color: #dce4e7; font-size: .9rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); transition: color var(--ease), padding var(--ease); }
.nav-link:hover { padding-left: 12px; color: var(--gold-light); }
.nav-cta { margin-top: auto; }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 11px 19px; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; font-size: .82rem; font-weight: 800; letter-spacing: .02em; text-decoration: none; transition: transform var(--ease), background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease); }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button-primary { color: var(--navy); background: var(--gold-light); box-shadow: 0 5px 14px rgba(88,66,30,.16); }
.button-primary:hover:not(:disabled) { background: #e2c68d; box-shadow: 0 8px 20px rgba(88,66,30,.22); }
.button-secondary { color: var(--navy); background: transparent; border-color: #9eaeb5; }
.button-secondary:hover:not(:disabled) { color: var(--paper); background: var(--navy); border-color: var(--navy); }
.button-text { min-height: auto; padding-inline: 0; color: var(--navy); background: transparent; border: 0; }
.button-text::after { content: '→'; margin-left: 5px; color: var(--gold); font-size: 1.1em; transition: margin var(--ease); }
.button-text:hover:not(:disabled)::after { margin-left: 10px; }
.button-small { min-height: 38px; padding: 8px 13px; font-size: .74rem; }

.hero { overflow: hidden; padding-top: 104px; color: var(--paper); background: var(--navy); }
.hero::before { content: ''; position: absolute; width: 520px; height: 520px; right: -260px; top: -190px; border: 1px solid rgba(212,182,122,.18); border-radius: 50%; box-shadow: 0 0 0 40px rgba(212,182,122,.035), 0 0 0 80px rgba(212,182,122,.025); }
.hero-grid { position: relative; display: grid; gap: 60px; align-items: center; }
.hero h1 { color: var(--paper); }
.hero-lead { max-width: 650px; margin-bottom: 14px; color: #dbe2e3; font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.55; }
.hero-support { max-width: 600px; color: #aebdc2; font-size: .9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 34px; }
.hero .button-text { color: var(--paper); }
.hero-visual { display: flex; justify-content: center; }
.workflow-card { width: min(100%, 450px); padding: 24px; color: var(--paper); background: rgba(255,255,255,.055); border: 1px solid rgba(212,182,122,.32); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: rotate(1.3deg); }
.workflow-card-header { display: flex; align-items: center; gap: 10px; color: #e8e6d9; font-size: .82rem; font-weight: 700; }
.status-dot { width: 9px; height: 9px; display: inline-block; background: var(--gold-light); border-radius: 50%; box-shadow: 0 0 0 5px rgba(212,182,122,.12); }
.workflow-line { width: 100%; height: 1px; margin: 27px 0; background: rgba(255,255,255,.16); }
.workflow-card-body { padding: 4px; }
.workflow-label { display: block; color: var(--gold-light); }
.progress-track { width: 100%; height: 7px; overflow: hidden; background: rgba(33,52,70,.35); border-radius: 10px; }
.progress-value { display: block; width: 0; height: 100%; background: var(--gold-light); border-radius: inherit; transition: width 380ms ease; }
.hero .progress-track { background: rgba(255,255,255,.12); }
.workflow-empty { display: block; margin-top: 23px; color: #b7c4c7; font-size: .8rem; }
.announcement { margin-top: 25px; padding: 12px 16px; color: var(--navy); background: var(--gold-light); border-radius: var(--radius-sm); }

.section-heading { max-width: 680px; margin-bottom: 42px; }
.section-heading > p:last-child { color: var(--slate); }
.split-heading { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 35px; }
.split-heading > p { max-width: 360px; margin-bottom: 18px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0; margin: 0; list-style: none; counter-reset: process; }
.process-card { min-height: 220px; padding: 25px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.process-number { display: block; margin-bottom: 38px; color: var(--gold); font-family: 'DM Mono', monospace; font-size: .8rem; }
.process-card p, .category-card > p { color: var(--slate); font-size: .88rem; }

.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.category-card { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.type-list { display: grid; gap: 8px; margin-top: 22px; }
.type-choice { display: flex; flex-direction: column; align-items: flex-start; padding: 13px 15px; color: var(--ink); text-align: left; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: background var(--ease), border-color var(--ease), transform var(--ease); }
.type-choice:hover, .type-choice.is-selected { background: #f2eee4; border-color: var(--gold); transform: translateX(3px); }
.type-choice strong { color: var(--navy); font-size: .86rem; }
.type-choice span { margin-top: 3px; color: var(--slate); font-size: .76rem; line-height: 1.45; }

.builder-section { background: var(--paper); }
.builder-layout, .review-layout, .faq-layout { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); gap: 70px; align-items: start; }
.builder-intro { position: sticky; top: 110px; }
.builder-intro p:not(.eyebrow):not(.muted-note) { color: var(--slate); }
.builder-panel, .review-card { padding: clamp(22px, 4vw, 38px); background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.builder-toolbar { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.builder-toolbar strong { display: block; color: var(--navy); font-size: 1.05rem; }
.builder-progress { color: var(--slate); font-family: 'DM Mono', monospace; font-size: .78rem; }
.builder-panel > .progress-track { margin-bottom: 32px; background: #dce2e1; }
.question-group h3 { margin-bottom: 6px; }
.question-group > p { margin-bottom: 25px; color: var(--slate); font-size: .86rem; }
.question-list { display: grid; gap: 20px; }
.question-field label { display: block; margin-bottom: 8px; color: var(--navy); font-size: .83rem; font-weight: 800; }
.question-field label span { color: var(--oxblood); }
textarea, select { width: 100%; color: var(--ink); background: var(--paper); border: 1px solid #b9c4c7; border-radius: var(--radius-sm); transition: border-color var(--ease), box-shadow var(--ease); }
textarea { min-height: 105px; padding: 12px 13px; resize: vertical; }
select { min-height: 47px; padding: 9px 35px 9px 13px; }
textarea::placeholder, select:invalid { color: #7a8991; }
textarea:hover, select:hover { border-color: var(--steel); }
textarea:focus, select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,138,74,.18); }
[aria-invalid="true"] { border-color: var(--oxblood); box-shadow: 0 0 0 3px rgba(116,62,66,.11); }
.field-error { display: block; margin-top: 5px; color: var(--oxblood); font-size: .75rem; }
.form-message { margin-top: 20px; padding: 11px 14px; color: var(--oxblood); background: #f5e7e5; border-left: 3px solid var(--oxblood); font-size: .82rem; }
.builder-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 29px; padding-top: 24px; border-top: 1px solid var(--line); }

.status-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.status-card { min-height: 170px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--steel); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.status-card.status-active { border-top-color: var(--steel); }
.status-card.status-attention { border-top-color: var(--warning); }
.status-card.status-ready { border-top-color: var(--gold); }
.status-card.status-complete { border-top-color: var(--success); }
.status-badge { display: inline-block; padding: 5px 9px; color: var(--navy); background: #e0e6e6; border-radius: 100px; font-size: .7rem; font-weight: 800; line-height: 1.2; }
.status-attention .status-badge { background: #f1e4d2; }
.status-ready .status-badge { background: #eee3cb; }
.status-complete .status-badge { background: #dce9e0; }
.status-card p { margin: 17px 0 0; color: var(--slate); font-size: .78rem; line-height: 1.55; }

.review-section { background: #f3f1eb; }
.review-card { background: var(--paper); }
.review-card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 20px; color: var(--slate); border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 700; }
.review-sections { min-height: 100px; padding: 10px 0; }
.review-section { padding: 17px 0; border-bottom: 1px solid var(--line); }
.review-section h3 { margin-bottom: 12px; font-size: .94rem; }
dl { margin: 0; }
dl > div { display: grid; grid-template-columns: minmax(110px, .6fr) 1fr; gap: 15px; padding: 7px 0; }
dt { color: var(--slate); font-size: .74rem; font-weight: 700; }
dd { margin: 0; color: var(--ink); font-size: .82rem; white-space: pre-wrap; }
.review-open-items { padding: 22px 0; }
.review-open-items h3 { margin-bottom: 9px; font-size: .94rem; }
.review-open-items ul { padding-left: 18px; margin: 0; color: var(--slate); font-size: .8rem; }
.review-card > .button { margin-top: 5px; }
.empty-state, .disabled-state { padding: 22px; color: var(--slate); background: #f0f2f0; border: 1px dashed #b8c3c2; border-radius: var(--radius-sm); }
.empty-state p { margin: 0; font-size: .83rem; }
.disabled-state { margin-top: 20px; }
.disabled-state h3 { margin-bottom: 5px; }

.clarity-section { background: var(--navy); color: var(--paper); }
.clarity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.clarity-section h2 { color: var(--paper); }
.clarity-copy { max-width: 520px; color: #c4d0d2; font-size: 1.02rem; }
.clarity-copy p:last-child { color: #9eafb4; font-size: .88rem; }

.faq-list { display: grid; gap: 8px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; color: var(--navy); cursor: pointer; font-size: .88rem; font-weight: 800; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 20px 18px; color: var(--slate); font-size: .84rem; }
.faq-answer p { margin: 0; }

.contact-section { padding-top: 60px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 43px clamp(24px, 6vw, 70px); color: var(--paper); background: var(--oxblood); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.contact-card h2 { color: var(--paper); }
.contact-card p:not(.eyebrow) { margin-bottom: 0; color: #e3d6d1; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; flex-shrink: 0; }
.contact-card .button-text { color: var(--paper); }
.site-footer { padding: 62px 0 26px; color: #c4ced1; background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; padding-bottom: 42px; }
.footer-company { margin: 17px 0 3px; color: var(--paper); font-size: .84rem; font-weight: 700; }
.disclaimer-short { max-width: 300px; margin: 0; color: #94a4aa; font-size: .76rem; }
.footer-heading { margin-bottom: 15px; color: var(--gold-light); font-family: 'DM Mono', monospace; font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { flex-direction: column; gap: 7px; }
.footer-links a, .footer-links button { padding: 0; color: #c4ced1; background: transparent; border: 0; cursor: pointer; font-size: .8rem; text-decoration: none; }
.footer-links a:hover, .footer-links button:hover { color: var(--gold-light); }
.footer-disclaimer { padding-top: 25px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-disclaimer p { max-width: 900px; margin-bottom: 9px; color: #9cabb0; font-size: .73rem; }
.footer-copyright { padding-top: 12px; color: #708188 !important; }

.loading-placeholder, .nav-loading { color: var(--slate); font-size: .84rem; }
.loading-placeholder { padding: 25px; background: rgba(255,255,255,.35); border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.loading-overlay { position: fixed; inset: auto 18px 18px auto; z-index: 60; padding: 12px 16px; color: var(--paper); background: var(--navy); border: 1px solid rgba(212,182,122,.35); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); font-size: .8rem; }
.global-status { position: fixed; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.error-panel { position: fixed; inset: 50% auto auto 50%; z-index: 70; width: min(calc(100% - 40px), 450px); padding: 28px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--oxblood); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); transform: translate(-50%, -50%); }
.error-panel h2 { font-size: 1.5rem; }
.error-panel p { color: var(--slate); font-size: .86rem; }

@media (min-width: 760px) {
  .menu-toggle, .sidebar-close { display: none; }
  .primary-navigation { position: static; inset: auto; display: flex; flex-direction: row; align-items: center; gap: 27px; padding: 0; background: transparent; box-shadow: none; transform: none; }
  .nav-list { flex-direction: row; gap: 25px; }
  .nav-link { padding: 5px 0; border: 0; font-size: .77rem; }
  .nav-link:hover { padding-left: 0; }
  .nav-cta { margin-top: 0; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
}
@media (max-width: 980px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .status-grid { grid-template-columns: repeat(3, 1fr); }
  .builder-layout, .review-layout, .faq-layout { gap: 38px; }
}
@media (max-width: 700px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section { padding: 68px 0; }
  .hero { padding-top: 74px; }
  .hero-grid, .builder-layout, .review-layout, .faq-layout, .clarity-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-visual { justify-content: stretch; }
  .workflow-card { width: 100%; }
  .split-heading, .contact-card { display: block; }
  .split-heading > p { margin-top: 16px; }
  .process-grid, .category-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .builder-intro { position: static; }
  .contact-actions { margin-top: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 430px) {
  h1 { font-size: 2.55rem; }
  .hero-actions, .contact-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .contact-actions .button { width: 100%; }
  .status-grid { grid-template-columns: 1fr; }
  dl > div { grid-template-columns: 1fr; gap: 2px; }
  .builder-actions .button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .workflow-card { transform: none; }
}
