:root {
  --ink: #101c28;
  --muted: #607080;
  --paper: #f3f1ea;
  --white: #fffdf8;
  --line: #d9d8d1;
  --navy: #10283b;
  --teal: #0b756b;
  --teal-dark: #07584f;
  --orange: #e86f3b;
  --pale-teal: #dff1ec;
  --pale-orange: #fae8df;
  --shadow: 0 24px 70px rgba(16, 40, 59, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
button, input, select { font: inherit; }
a { color: inherit; }

.site-header { height: 76px; padding: 0 clamp(22px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(16, 28, 40, .13); background: rgba(243, 241, 234, .92); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(15px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--navy); font-family: Georgia, serif; font-style: italic; }
nav { display: flex; gap: 30px; align-items: center; }
nav a { color: #41515e; font-size: 14px; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--teal); }

main { overflow: hidden; }
.hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .72fr); gap: clamp(44px, 7vw, 110px); align-items: center; padding: 88px clamp(24px, 7vw, 110px) 96px; position: relative; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(11,117,107,.13); border-radius: 50%; right: -220px; top: -150px; box-shadow: 0 0 0 80px rgba(11,117,107,.035), 0 0 0 160px rgba(11,117,107,.025); pointer-events: none; }
.eyebrow { margin: 0 0 18px; color: var(--teal); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px var(--pale-orange); }
h1 { max-width: 810px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6.2vw, 86px); font-weight: 500; line-height: .99; letter-spacing: -.055em; }
h1 em { color: var(--teal); font-weight: 500; }
.hero-lead { max-width: 660px; margin: 28px 0 0; color: var(--muted); font-size: clamp(18px, 1.8vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; font-weight: 760; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { color: white; background: var(--teal); }
.button-primary:hover:not(:disabled) { background: var(--teal-dark); }
.button-secondary { border-color: #9ca6a8; background: transparent; }
.button-secondary:hover { border-color: var(--teal); }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; color: #64727c; font-size: 13px; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--teal); font-weight: 800; }

.hero-panel { padding: 32px; border: 1px solid rgba(16, 28, 40, .12); border-radius: 22px; background: rgba(255,253,248,.86); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.panel-topline, .risk-strip { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.live-pill { padding: 5px 9px; border-radius: 99px; color: var(--teal-dark); background: var(--pale-teal); font-weight: 800; }
.score-ring { width: 126px; height: 126px; margin: 26px 0 22px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 31px; border: 10px solid var(--pale-teal); border-top-color: var(--teal); border-right-color: var(--teal); }
.score-ring strong { font-family: Georgia, serif; font-size: 42px; line-height: 1; }
.score-ring span { color: var(--muted); font-size: 13px; }
.hero-panel h2 { margin: 0; font-size: 25px; }
.hero-panel > p { color: var(--muted); }
.mini-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.mini-metrics div { padding: 14px; border-radius: 10px; background: var(--paper); }
.mini-metrics span, .mini-metrics strong { display: block; }
.mini-metrics span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.mini-metrics strong { margin-top: 4px; font-size: 18px; }
.risk-strip { padding-top: 18px; border-top: 1px solid var(--line); }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-grid article { min-height: 236px; padding: 34px clamp(24px, 3vw, 46px); border-right: 1px solid var(--line); }
.value-grid article:last-child { border-right: 0; }
.value-number { color: var(--orange); font: italic 24px Georgia, serif; }
.value-grid h2 { margin: 42px 0 8px; font-size: 19px; }
.value-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.screening-section { padding: 105px clamp(20px, 5vw, 76px); background: var(--navy); color: white; }
.section-heading { max-width: 740px; margin-bottom: 46px; }
.section-heading h2, .pricing-copy h2, .truth-section h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(38px, 4.4vw, 60px); font-weight: 500; letter-spacing: -.04em; line-height: 1.02; }
.section-heading > p:last-child { color: #aebbc5; max-width: 650px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(350px, .82fr); gap: 22px; align-items: start; }
.product-form, .result-shell { color: var(--ink); background: var(--white); border-radius: 16px; }
.product-form { padding: 34px; }
.form-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0 0 32px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.form-section-title { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.form-section-title > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--teal); font-weight: 800; }
.form-section-title h3, .form-section-title p { margin: 0; }
.form-section-title h3 { font-size: 19px; }
.form-section-title p { color: var(--muted); font-size: 13px; }
.field { min-width: 0; display: grid; gap: 7px; color: #31404b; font-size: 13px; font-weight: 700; }
.field-wide { grid-column: 1 / -1; }
.field small { color: #8a949b; font-weight: 500; }
input, select { width: 100%; height: 46px; border: 1px solid #ccd1d2; border-radius: 7px; padding: 0 12px; color: var(--ink); background: white; outline: none; }
input:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,117,107,.12); }
.suffix-input { position: relative; }
.suffix-input input { padding-right: 40px; }
.suffix-input span { position: absolute; right: 13px; top: 12px; color: var(--muted); }
.dimension-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.checkbox-grid label { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; gap: 9px; color: #475660; font-size: 13px; font-weight: 600; cursor: pointer; }
.checkbox-grid input { width: 17px; height: 17px; accent-color: var(--teal); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.text-button { border: 0; border-bottom: 1px solid currentColor; padding: 0; color: var(--teal); background: none; cursor: pointer; font-weight: 750; }
.submit-button { min-width: 230px; }
.submit-button:disabled { cursor: wait; opacity: .7; }
.privacy-note { margin: 20px 0 0; color: #7b878e; font-size: 11px; }

.result-shell { min-height: 680px; padding: 34px; position: sticky; top: 98px; }
.empty-result, .loading-result, .error-result { min-height: 600px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-icon { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: var(--pale-teal); font-size: 28px; }
.empty-result h3, .loading-result h3, .error-result h3 { margin: 20px 0 6px; }
.empty-result p, .loading-result p, .error-result p { max-width: 330px; margin: 0; color: var(--muted); }
.spinner { width: 48px; height: 48px; border: 4px solid var(--pale-teal); border-top-color: var(--teal); border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.report-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.report-kicker { margin: 0 0 5px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.report-header h3 { margin: 0; font: 500 30px/1 Georgia, serif; }
.report-score { white-space: nowrap; }
.report-score strong { font: 500 34px Georgia, serif; }
.report-score span { color: var(--muted); font-size: 12px; }
.report-summary { color: var(--muted); }
.report-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 22px 0; }
.metric { padding: 13px; border-radius: 8px; background: var(--paper); }
.metric span, .metric strong { display: block; }
.metric span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.metric strong { margin-top: 5px; font-size: 17px; }
.report-block { margin-top: 24px; }
.report-block-title { display: flex; align-items: center; justify-content: space-between; }
.report-block h4 { margin: 0 0 10px; font-size: 14px; }
.report-block-title span { color: var(--muted); font-size: 12px; }
.risk-list { display: grid; gap: 8px; }
.risk-item { padding: 11px 12px; border-left: 3px solid var(--orange); background: var(--pale-orange); }
.risk-item[data-severity="medium"] { border-left-color: #c69d31; background: #f6efd9; }
.risk-item[data-severity="low"] { border-left-color: var(--teal); background: var(--pale-teal); }
.risk-item strong, .risk-item span { display: block; }
.risk-item strong { font-size: 12px; }
.risk-item span { margin-top: 2px; color: #5b6266; font-size: 11px; }
.action-list { margin: 0; padding-left: 22px; color: #46545d; font-size: 12px; }
.action-list li { padding: 5px 0 5px 5px; }
details { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
summary { cursor: pointer; color: var(--ink); font-weight: 750; }
details ul { padding-left: 18px; }
.report-id { color: #92999e; font-size: 10px; }
.error-result { color: #8b3228; }

.pricing-section { display: grid; grid-template-columns: 1fr minmax(360px, .72fr); gap: clamp(40px, 9vw, 140px); align-items: center; padding: 110px clamp(24px, 8vw, 130px); }
.pricing-copy > p:last-child { max-width: 600px; color: var(--muted); font-size: 17px; }
.pricing-card { padding: 38px; border-radius: 18px; color: white; background: var(--teal); box-shadow: 0 26px 60px rgba(7,88,79,.22); }
.price-label { margin: 0; color: #bfe0da; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.price { margin: 6px 0 0; font: 500 74px/1 Georgia, serif; }
.price span { font-size: 30px; vertical-align: top; }
.price-note { margin: 7px 0; color: #c9e5df; font-size: 12px; }
.pricing-card ul { margin: 28px 0; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); list-style: none; }
.pricing-card li { padding: 7px 0; font-size: 14px; }
.pricing-card li::before { content: "✓"; margin-right: 10px; color: #b9f0e5; font-weight: 800; }
.button-disabled { width: 100%; color: #5e6b70; background: #dfe6e3; cursor: not-allowed; }
.payment-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: #c9e5df; font-size: 11px; }
.payment-note span { width: 7px; height: 7px; border-radius: 50%; background: #f5b087; }

.truth-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 88px clamp(24px, 8vw, 130px); background: #e5e1d7; }
.truth-list p { padding: 14px 0; margin: 0; border-bottom: 1px solid #c9c6bd; color: #43515a; }
.truth-list span { display: inline-grid; width: 26px; color: var(--orange); font-weight: 900; }
.truth-list p:last-child span { color: var(--teal); }

footer { padding: 48px clamp(24px, 7vw, 110px); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: white; background: #081721; }
footer p { margin: 5px 0 0; color: #8fa1ad; font-size: 12px; }
footer div:last-child { display: flex; gap: 22px; }
footer a { color: #bfd0d9; font-size: 12px; text-decoration: none; }

@media (max-width: 980px) {
  .hero, .workspace, .pricing-section { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; transform: none; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .value-grid article:nth-child(2) { border-right: 0; }
  .value-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .result-shell { min-height: 540px; position: static; }
  .empty-result, .loading-result, .error-result { min-height: 470px; }
}

@media (max-width: 650px) {
  .site-header { height: 64px; }
  nav a:not(:last-child) { display: none; }
  .brand span:last-child { font-size: 14px; }
  .hero { padding-top: 64px; }
  h1 { font-size: 49px; }
  .value-grid, .truth-section { grid-template-columns: 1fr; }
  .value-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .value-grid article:last-child { border-bottom: 0; }
  .value-grid h2 { margin-top: 22px; }
  .screening-section { padding-inline: 12px; }
  .product-form, .result-shell { padding: 22px; }
  .form-section { grid-template-columns: 1fr; }
  .field-wide, .form-section-title { grid-column: 1; }
  .dimension-row, .checkbox-grid { grid-template-columns: 1fr; }
  .form-footer { align-items: stretch; flex-direction: column-reverse; }
  .submit-button { width: 100%; }
  .pricing-card { padding: 28px; }
  footer { align-items: flex-start; flex-direction: column; }
  footer div:last-child { flex-wrap: wrap; }
}

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