:root {
  --ink: #15121f;
  --muted: #615b78;
  --quiet: #8a84a0;
  --line: #eeecf5;
  --input-line: #e2ddf0;
  --mint: #10b981;
  --mint-dark: #178a63;
  --mint-wash: #eafaf3;
  --paper: #fff;
  --soft: #fafaf9;
  --shadow: rgba(0, 0, 0, .05) 0 0 0 1px;
  --radius-card: 16px;
  --radius-control: 9px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-width: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1120px, calc(100% - 80px)); margin: 0 auto; }

/* Navigation */
.site-nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.nav-inner { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.logo img { width: 28px; height: 20px; object-fit: contain; }
.nav-links { display: flex; gap: 28px; list-style: none; margin-right: auto; margin-left: 28px; }
.nav-links a { color: var(--muted); font-size: 13.5px; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.mode-pill { display: flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid #cdeee0; border-radius: var(--radius-pill); background: var(--mint-wash); color: var(--mint-dark); font: 11.5px/1.2 "IBM Plex Mono", ui-monospace, monospace; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

/* Hero */
.hero { border-bottom: 1px solid var(--line); padding: 88px 0 80px; text-align: center; }
.openline-mark { display: block; width: 82px; height: 55px; margin: 0 auto 28px; object-fit: contain; transform: rotate(-4deg); }
.hero h1 { max-width: 640px; margin: 0 auto 20px; color: var(--ink); font-size: clamp(40px, 5vw, 46px); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.hero h1 em { display: inline; font-family: inherit; font-style: normal; }
.hero p { max-width: 480px; margin: 0 auto 32px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.ctas { display: flex; justify-content: center; gap: 12px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius-control); font-size: 14px; font-weight: 600; text-decoration: none; }
.btn.ghost { border: 1px solid #ddd8ea; color: var(--ink); background: var(--paper); }.btn.ghost:hover { background: #faf9fc; }
.btn.solid, .submit { border: 0; color: #fff; background: var(--mint); }.btn.solid:hover, .submit:hover { background: #0eaa77; }

/* Main sections */
.section { border-bottom: 1px solid var(--line); padding: 88px 0; }
.section-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.section-label { margin-bottom: 14px; color: var(--mint-dark); font-size: 13px; font-weight: 600; }
.section h2 { margin-bottom: 16px; color: var(--ink); font-size: 28px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.section .desc, .safety-grid > p { max-width: 360px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.flow-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--quiet); font-size: 13px; }.flow-note .arrow { color: var(--mint-dark); font-weight: 600; }

/* Request and workflow */
.card, .workflow-panel { border: 1px solid #ece9f2; border-radius: var(--radius-card); background: var(--soft); padding: 28px; box-shadow: var(--shadow); }
.card-top, .workflow-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.card-top .tag, .workflow-heading .tag { margin-bottom: 6px; color: var(--quiet); font-size: 12px; font-weight: 600; }.card-top h3, .workflow-heading h3 { color: var(--ink); font-size: 19px; font-weight: 600; }
.step-count { color: #b4afc4; font: 12px/1.2 "IBM Plex Mono", ui-monospace, monospace; white-space: nowrap; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }.field-row.single { grid-template-columns: 1fr; }
.field label { display: block; margin-bottom: 6px; color: var(--quiet); font-size: 12px; }.field label span { color: #b4afc4; }
.field select, .field input { width: 100%; min-height: 42px; padding: 11px 12px; border: 1px solid var(--input-line); border-radius: var(--radius-control); outline: none; color: var(--ink); background: var(--paper); font-size: 13.5px; }
.field select:focus, .field input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(16,185,129,.14); }
.field input::placeholder { color: #b4afc4; }
.submit { width: 100%; margin-top: 8px; padding: 13px; border-radius: var(--radius-control); cursor: pointer; font-size: 14px; font-weight: 600; }.submit:disabled { cursor: wait; opacity: .65; }
.workflow-section { margin-top: 28px; }.workflow-empty { display: grid; min-height: 260px; place-items: center; align-content: center; border: 1px dashed #ddd8ea; border-radius: var(--radius-card); text-align: center; }.empty-mark { display: grid; width: 56px; height: 56px; place-items: center; margin-bottom: 18px; border-radius: 50%; background: #d4f5e8; color: var(--mint-dark); font-size: 30px; }.workflow-empty h3 { margin-bottom: 10px; color: var(--ink); font-size: 19px; }.workflow-empty p { max-width: 300px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.plan-list, .results-list { display: grid; gap: 12px; }.plan-card, .result-card { border: 1px solid #ece9f2; border-radius: 12px; padding: 18px; background: #fff; }.plan-card h4, .result-card h4 { margin-bottom: 8px; color: var(--ink); font-size: 16px; }.plan-card p, .result-card p, .plan-card li, .result-card li { color: var(--muted); font-size: 13px; line-height: 1.55; }.plan-card ul, .result-card ul { margin-top: 10px; padding-left: 18px; }.workflow-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }.workflow-actions .submit, .workflow-actions .reset-button { width: auto; margin-top: 0; }.reset-button { min-height: 44px; padding: 11px 18px; border: 1px solid #ddd8ea; border-radius: var(--radius-control); color: var(--ink); background: #fff; cursor: pointer; font-weight: 600; }.reset-button:hover { background: #f8f7fb; }
.plan-empty { padding: 18px; border: 1px dashed #ddd8ea; border-radius: 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* Explanation */
.how-section h2 { margin-bottom: 36px; }.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }.next-card { border: 1px solid #ece9f2; border-radius: var(--radius-card); padding: 28px 24px; }.next-card .num { margin-bottom: 16px; color: #b4afc4; font: 12px/1.2 "IBM Plex Mono", ui-monospace, monospace; }.next-card h4 { margin-bottom: 10px; color: var(--ink); font-size: 16.5px; }.next-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }.safety-section { border-bottom: 0; }.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }.safety-grid > p { align-self: end; max-width: 440px; }
footer { display: flex; justify-content: space-between; padding: 28px 0; color: #b4afc4; font-size: 12px; }

/* Dynamic plan and evidence states */
.plan-card-head, .result-card-head, .summary-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.plan-card-head { margin-bottom: 4px; }
.plan-status, .result-badge { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: #08745d; background: var(--mint-wash); font: 10px/1.2 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase; }
.result-badge.is-blocked, .result-badge.is-failed { color: #9a4e38; background: var(--peach-wash); }
.contact-hint { padding-left: 10px; border-left: 3px solid var(--mint); color: var(--ink) !important; }
.summary-row { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.summary-label { color: var(--quiet); font: 10px/1.2 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .05em; text-transform: uppercase; }
.summary-value { color: var(--ink); font-size: 13px; text-align: right; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.evidence { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.evidence summary { color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 600; }
.evidence pre { margin: 10px 0 0; padding: 12px; overflow: auto; border-radius: 8px; color: var(--muted); background: #f8faf9; font: 11px/1.55 "IBM Plex Mono", ui-monospace, monospace; white-space: pre-wrap; }

/* In-app error dialog and live feedback */
.product-dialog-backdrop { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 24px; background: rgba(21,18,31,.35); }.product-dialog { width: min(560px, 100%); padding: 28px; border: 1px solid #ece9f2; border-radius: var(--radius-card); background: #fff; box-shadow: 0 24px 80px rgba(21,18,31,.18); }.dialog-kicker { margin-bottom: 10px; color: var(--mint-dark); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.product-dialog h2 { margin-bottom: 10px; color: var(--ink); font-size: 24px; }.product-dialog p { margin-bottom: 22px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }.dialog-close { padding: 11px 18px; border: 0; border-radius: var(--radius-control); color: #fff; background: var(--mint); cursor: pointer; font-weight: 700; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(16,185,129,.35); outline-offset: 3px; }

@media (max-width: 860px) { .container { width: min(100% - 48px, 680px); }.section-grid, .safety-grid { grid-template-columns: 1fr; gap: 32px; }.next-grid { grid-template-columns: 1fr; }.section .desc, .safety-grid > p { max-width: 600px; } }
@media (max-width: 760px) { .container { width: calc(100% - 32px); }.nav-links { display: none; }.nav-inner { min-height: 56px; }.mode-pill { padding: 6px 9px; font-size: 10px; }.hero { padding: 64px 0 60px; }.hero h1 { font-size: 40px; }.hero p { font-size: 15px; }.ctas { flex-direction: column; align-items: stretch; }.btn { text-align: center; }.section { padding: 56px 0; }.card, .workflow-panel { padding: 20px; }.field-row { grid-template-columns: 1fr; gap: 12px; }.workflow-actions { flex-direction: column-reverse; }.workflow-actions .submit, .workflow-actions .reset-button { width: 100%; }.workflow-empty { min-height: 220px; }footer { gap: 12px; flex-direction: column; } }
@media (max-width: 560px) { .result-grid { grid-template-columns: 1fr; }.plan-card-head, .result-card-head, .summary-row { flex-direction: column; gap: 8px; }.summary-value { text-align: left; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
