:root {
  --ink: #172632;
  --blue: #174866;
  --blue-dark: #10374f;
  --orange: #d4632d;
  --cloud: #eef2f3;
  --white: #fff;
  --line: #ccd5d9;
  --muted: #60717b;
  --error: #a6382d;
  --success: #267052;
  --page: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
a { color: inherit; }
.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; top: -60px; left: 20px; z-index: 100; padding: 10px 14px; color: white; background: var(--blue); }
.skip-link:focus { top: 18px; }

.demo-bar { display: flex; justify-content: center; gap: 28px; padding: 8px 24px; color: #d7e2e7; background: var(--blue-dark); font-size: 12px; }
.demo-bar a { color: white; font-weight: 700; text-underline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; min-height: 74px; padding: 10px max(24px, calc((100% - 1180px) / 2)); background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; }
.brand span { color: var(--blue-dark); font-size: 25px; font-weight: 800; letter-spacing: -.035em; }
.brand small { color: var(--orange); font-size: 12px; font-weight: 700; }
.site-nav { display: flex; justify-content: center; gap: clamp(20px, 3vw, 42px); }
.site-nav a { color: #395361; font-size: 14px; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--orange); }
.header-action { padding: 10px 15px; color: white; background: var(--blue); border: 1px solid var(--blue); font-size: 13px; font-weight: 700; text-decoration: none; }
.header-action:hover { background: var(--blue-dark); }
.menu-button { display: none; }

.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; width: var(--page); margin: 0 auto; padding: 88px 0 96px; }
.hero-copy { align-self: center; }
.hero-context, .section-intro > p:first-child, .services-section header > div > p, .workflow-copy > p:first-child { margin: 0 0 18px; color: var(--orange); font-size: 14px; font-weight: 700; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(48px, 6vw, 76px); line-height: .99; letter-spacing: -.06em; }
.hero-copy > p:not(.hero-context) { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; gap: 26px; align-items: center; margin-top: 34px; }
.hero-actions a:first-child { padding: 12px 18px; color: white; background: var(--orange); border: 1px solid var(--orange); text-decoration: none; font-weight: 700; }
.hero-actions a:first-child:hover { background: #b74f21; }
.hero-actions a:last-child { padding: 8px 0; border-bottom: 1px solid var(--blue); text-decoration: none; font-weight: 700; }
.hero-panel { align-self: center; padding: 34px; background: var(--cloud); border-top: 5px solid var(--blue); }
.hero-panel h2 { margin: 0 0 18px; font-size: 22px; }
.hero-panel dl { margin: 0; border-top: 1px solid var(--line); }
.hero-panel dl div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.hero-panel dt { margin-bottom: 3px; font-weight: 750; }
.hero-panel dd { margin: 0; color: var(--muted); font-size: 14px; }
.hero-panel > p { margin: 18px 0 0; color: var(--muted); font-size: 12px; }

.analysis-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; padding: 100px max(24px, calc((100% - 1180px) / 2)); background: var(--blue); }
.section-intro { color: white; }
.section-intro > p:first-child { color: #f3a57e; }
.section-intro h2, .services-section h2, .workflow-copy h2, .principles-section h2, .faq-section h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.045em; }
.section-intro > p:last-child { max-width: 480px; margin: 24px 0 0; color: #c8d6dd; font-size: 16px; }
.needs-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: 34px; background: white; border-top: 5px solid var(--orange); }
.needs-form > label { display: grid; gap: 7px; color: #3b5360; font-size: 12px; font-weight: 700; }
.needs-form > label:nth-child(3) { grid-column: 1 / -1; }
.needs-form select { width: 100%; height: 46px; padding: 0 36px 0 10px; color: var(--ink); background: white; border: 1px solid #aebbc1; border-radius: 0; outline: 0; }
.needs-form select:focus { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(212, 99, 45, .16); }
.needs-form select.is-invalid { border-color: var(--error); }
.needs-form fieldset { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 0; padding: 17px 0 3px; border: 0; border-top: 1px solid var(--line); }
.needs-form legend { margin-bottom: 10px; color: #3b5360; font-size: 12px; font-weight: 700; }
.needs-form fieldset label { color: #405661; font-size: 14px; }
.needs-form input[type="checkbox"], .workflow-panel input { width: 17px; height: 17px; margin: 0 7px 0 0; accent-color: var(--orange); vertical-align: -3px; }
.form-status { grid-column: 1 / -1; min-height: 39px; padding: 9px 11px; font-size: 13px; }
.form-status.is-idle { color: var(--muted); background: var(--cloud); }
.form-status.is-error { color: var(--error); background: #fff0ed; }
.needs-form > button, .result-actions a { grid-column: 1 / -1; min-height: 48px; padding: 11px 18px; color: white; background: var(--orange); border: 1px solid var(--orange); font-weight: 750; text-align: center; text-decoration: none; cursor: pointer; }
.needs-form > button:hover, .result-actions a:hover { background: #b74f21; border-color: #b74f21; }
.needs-form > button:disabled { opacity: .7; cursor: wait; }
.analysis-loading { align-self: center; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 34px; background: white; border-top: 5px solid var(--orange); }
.analysis-loading span { height: 150px; background: #e7edef; animation: pulse 700ms alternate infinite; }
.analysis-loading p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); }
@keyframes pulse { to { background: #d6e0e4; } }
.analysis-result { padding: 34px; color: var(--ink); background: white; border-top: 5px solid var(--success); }
.analysis-result > div > p:first-child { margin: 0 0 6px; color: var(--success); font-size: 13px; font-weight: 700; }
.analysis-result h3 { margin: 0; font-size: 28px; line-height: 1.15; }
.analysis-result > div > p:last-child { color: var(--muted); }
.analysis-result ol { margin: 22px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.analysis-result li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.analysis-result li span { color: var(--orange); font-weight: 800; }
.result-actions { display: flex; align-items: center; gap: 24px; }
.result-actions button { padding: 8px 0; color: var(--blue); background: transparent; border: 0; border-bottom: 1px solid var(--blue); font-weight: 700; cursor: pointer; }
.result-actions a { min-height: 0; margin-left: auto; padding: 9px 14px; font-size: 13px; }

.services-section { padding: 105px max(24px, calc((100% - 1180px) / 2)); background: var(--cloud); }
.services-section > header { display: flex; justify-content: space-between; gap: 60px; align-items: end; }
.service-search { display: grid; gap: 7px; width: min(390px, 100%); color: var(--muted); font-size: 12px; font-weight: 700; }
.service-search input { width: 100%; height: 48px; padding: 0 12px; color: var(--ink); background: white; border: 1px solid #aebbc1; border-radius: 0; outline: 0; }
.service-search input:focus { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(212, 99, 45, .16); }
.service-summary { margin: 28px 0 12px; color: var(--muted); font-size: 13px; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; background: white; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-list.is-single { grid-template-columns: 1fr; }
.service-list details { min-width: 0; background: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-list summary { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 24px 52px 24px 24px; cursor: pointer; list-style: none; }
.service-list summary::-webkit-details-marker { display: none; }
.service-list summary::after { position: absolute; top: 20px; right: 22px; content: "+"; color: var(--orange); font-size: 24px; }
.service-list details[open] summary::after { content: "−"; }
.service-list summary span { font-size: 19px; font-weight: 750; }
.service-list summary small { align-self: center; color: var(--muted); }
.service-list details > div { padding: 0 24px 24px; }
.service-list details > div p { margin: 0; color: var(--muted); }
.service-list details ul { margin: 16px 0 0; padding-left: 18px; }
.service-empty { padding: 70px 24px; text-align: center; background: white; border: 1px solid var(--line); }
.service-empty h3 { margin: 0; font-size: 23px; }
.service-empty p { margin: 8px 0 20px; color: var(--muted); }
.service-empty button { padding: 7px 0; color: var(--blue); background: transparent; border: 0; border-bottom: 2px solid var(--orange); font-weight: 700; cursor: pointer; }

.workflow-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 690px; }
.workflow-image { min-height: 620px; }
.workflow-image img { width: 100%; height: 100%; object-fit: cover; }
.workflow-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px max(34px, calc((100vw - 1180px) / 2)); padding-left: clamp(50px, 7vw, 110px); }
.workflow-copy > p:nth-of-type(2) { max-width: 570px; margin: 24px 0 30px; color: var(--muted); }
.workflow-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.workflow-tabs button { margin-right: 22px; padding: 11px 0; color: var(--muted); background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.workflow-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--orange); font-weight: 700; }
.workflow-panel { max-width: 590px; padding-top: 24px; }
.workflow-panel h3 { margin: 0; font-size: 21px; }
.workflow-panel > p { margin: 8px 0 18px; color: var(--muted); }
.workflow-panel ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.workflow-panel li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.workflow-panel li label { cursor: pointer; }
#workflow-progress { color: var(--blue); font-size: 13px; font-weight: 700; }

.principles-section { display: grid; grid-template-columns: .68fr 1.32fr; gap: 80px; padding: 100px max(24px, calc((100% - 1180px) / 2)); color: white; background: var(--blue-dark); }
.principles-section dl { margin: 0; border-top: 1px solid #496a7c; }
.principles-section dl div { display: grid; grid-template-columns: 185px 1fr; gap: 30px; padding: 18px 0; border-bottom: 1px solid #496a7c; }
.principles-section dt { font-weight: 750; }
.principles-section dd { margin: 0; color: #c8d7de; }

.faq-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; width: var(--page); margin: 0 auto; padding: 105px 0; }
.faq-section > div { border-top: 1px solid var(--line); }
.faq-section details { border-bottom: 1px solid var(--line); }
.faq-section summary { position: relative; padding: 22px 42px 22px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { position: absolute; right: 5px; content: "+"; color: var(--orange); font-size: 22px; }
.faq-section details[open] summary::after { content: "−"; }
.faq-section details p { margin: -3px 50px 23px 0; color: var(--muted); }

.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: center; padding: 38px max(24px, calc((100% - 1180px) / 2)); color: #c8d7de; background: #0b2a3d; font-size: 13px; }
.footer-brand span { color: white; }
.site-footer p { margin: 0; }
.site-footer > a { color: white; font-weight: 700; text-underline-offset: 3px; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #ef9d75; outline-offset: 3px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .menu-button { display: grid; gap: 5px; width: 42px; height: 42px; padding: 11px; background: white; border: 1px solid var(--line); }
  .menu-button span:not(.sr-only) { display: block; height: 2px; background: var(--blue-dark); }
  .site-nav { position: absolute; top: 100%; right: 24px; left: 24px; display: none; flex-direction: column; gap: 0; padding: 10px 22px; background: white; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(20, 50, 68, .15); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .header-action { display: none; }
  .hero { grid-template-columns: 1fr; gap: 45px; }
  .hero-panel { max-width: 700px; }
  .analysis-section { grid-template-columns: 1fr; gap: 45px; }
  .section-intro { max-width: 720px; }
  .workflow-section { grid-template-columns: .85fr 1.15fr; }
  .principles-section { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 700px) {
  :root { --page: min(100% - 32px, 1180px); }
  .demo-bar { align-items: flex-start; justify-content: space-between; gap: 14px; padding: 8px 16px; font-size: 10px; }
  .demo-bar span { max-width: 66%; }
  .demo-bar a { text-align: right; }
  .site-header { min-height: 62px; padding: 9px 16px; }
  .hero { padding: 60px 0 70px; }
  .hero h1 { font-size: 46px; }
  .hero-copy > p:not(.hero-context) { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-panel { padding: 25px 20px; }
  .analysis-section, .services-section, .principles-section { padding: 76px 16px; }
  .needs-form { grid-template-columns: 1fr; padding: 26px 20px; }
  .needs-form > label:nth-child(3), .needs-form fieldset, .form-status, .needs-form > button { grid-column: auto; }
  .needs-form fieldset { flex-direction: column; }
  .analysis-loading { grid-template-columns: 1fr; }
  .analysis-loading span { height: 80px; }
  .analysis-loading span:nth-child(n+2) { display: none; }
  .analysis-result { padding: 26px 20px; }
  .result-actions { align-items: flex-start; flex-direction: column; }
  .result-actions a { margin-left: 0; }
  .services-section > header { align-items: stretch; flex-direction: column; gap: 30px; }
  .service-list { grid-template-columns: 1fr; }
  .workflow-section { grid-template-columns: 1fr; }
  .workflow-image { min-height: 370px; }
  .workflow-copy { padding: 76px 16px; }
  .workflow-tabs { flex-direction: column; align-items: flex-start; }
  .workflow-tabs button { margin: 0; }
  .principles-section dl div { grid-template-columns: 1fr; gap: 5px; }
  .faq-section { grid-template-columns: 1fr; gap: 32px; padding: 78px 0; }
  .site-footer { grid-template-columns: 1fr; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
