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

:root {
  --bg: #f5f3ed;
  --card: #fffefa;
  --text: #243b33;
  --muted: #687265;
  --line: #e3e5da;
  --accent: #203e35;
  --accent2: #496557;
  --highlight: #a64c2d;
  --success: #52715a;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--highlight); }
.container { max-width: 1260px; margin: auto; padding: 0 44px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 23px; letter-spacing: -1px; }
.brand-name span { font-weight: 500; }
.logo { width: 37px; height: 37px; border-radius: 9px; background: var(--accent); color: var(--card); display: grid; place-items: center; }
.logo svg { width: 23px; height: 23px; }
.header-note { display: flex; align-items: center; gap: 9px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.workspace { display: grid; grid-template-columns: .85fr 1.15fr; gap: 68px; align-items: start; padding: 65px 0 52px; }
.intro { padding-top: 15px; animation: arrive .6s ease both; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--highlight); }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }
h1 { font-family: 'Manrope', sans-serif; font-weight: 500; font-size: clamp(40px, 4.3vw, 57px); line-height: 1.13; letter-spacing: -2.7px; margin: 25px 0 23px; }
h1 em { font-style: normal; color: #bd603b; }
.intro-copy { max-width: 370px; font-size: 15px; line-height: 1.8; color: var(--muted); margin: 0; }
.blueprint { margin: 30px 0 25px; padding: 19px 16px 13px; border: 1px solid var(--line); border-radius: 3px; background-image: linear-gradient(#dfe3d74f 1px, transparent 1px), linear-gradient(90deg, #dfe3d74f 1px, transparent 1px); background-size: 20px 20px; }
.blueprint svg { display: block; width: 100%; height: 172px; color: var(--accent2); }
.drawing-label { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.workflow { display: flex; gap: 14px; align-items: center; margin-top: 24px; }
.workflow-step { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.workflow-step b { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #d6dbcf; border-radius: 50%; color: var(--accent); font-size: 10px; font-weight: 500; }
.workflow-line { width: 18px; height: 1px; background: #d6dbcf; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 33px; box-shadow: 0 5px 10px #203e3503, 0 22px 45px #203e3506; animation: arrive .6s .1s ease both; }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-bottom: 24px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
h2 { font-family: 'Manrope', sans-serif; font-size: 21px; letter-spacing: -.6px; margin: 0; font-weight: 700; }
.card-header p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.tool-icon { flex-shrink: 0; display: grid; place-items: center; width: 41px; height: 41px; background: #eef1e9; border-radius: 11px; }
.tool-icon svg { width: 21px; height: 21px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { min-width: 0; }
.full-width { grid-column: 1 / -1; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset + fieldset { margin-top: 24px; padding-top: 23px; border-top: 1px solid var(--line); }
legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 700; color: var(--highlight); }
fieldset .grid { clear: both; }
label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
input, select { width: 100%; min-width: 0; padding: 13px 14px; font-size: 13px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); color: var(--text); transition: border-color .2s, box-shadow .2s; }
input:hover, select:hover { border-color: #acb6a7; }
input:focus, select:focus { border-color: var(--accent2); box-shadow: 0 0 0 3px #49655712; }
select { cursor: pointer; appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23496557' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.measure { position: relative; }
.measure input { padding-right: 48px; }
.measure span { position: absolute; right: 14px; top: 14px; color: var(--muted); font-size: 12px; pointer-events: none; }
.helper-text, .form-note { font-size: 10px; color: var(--muted); line-height: 1.6; margin: 8px 0 0; }
.primary { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 26px; padding: 16px 19px; border: 1px solid transparent; border-radius: 7px; background: var(--accent); color: var(--card); font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s; }
.primary svg { width: 18px; height: 18px; flex-shrink: 0; }
.primary:hover { background: #315347; }
.primary:active { transform: translateY(1px); }
.primary:disabled { opacity: .65; cursor: wait; }
.form-note { text-align: center; margin-top: 14px; }
.result { margin-top: 27px; padding-top: 24px; border-top: 1px solid var(--line); }
.result-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.result-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); }
.badge { font-size: 10px; border-radius: 4px; background: #edf1e8; color: #3a5b42; padding: 6px 9px; }
.result.yellow .badge { background: #f5ecd6; color: #765d21; }
.result.red .badge { background: #f7e6dc; color: #9e432d; }
.big { font-family: 'Manrope', sans-serif; font-size: clamp(36px, 4vw, 48px); font-weight: 600; letter-spacing: -2px; margin: 12px 0; overflow-wrap: anywhere; }
.profit-summary { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; color: var(--muted); margin-bottom: 21px; }
.profit-summary strong { color: var(--accent); font-weight: 600; }
.breakdown { margin: 0; }
.breakdown div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.breakdown dt { color: var(--muted); }
.breakdown dd { margin: 0; font-weight: 600; text-align: right; }
.breakdown .subtotal { border-bottom: 0; padding-top: 13px; }
.note { margin: 15px 0 0; font-size: 10px; color: var(--muted); line-height: 1.7; }
.opportunity-link { display: block; margin-top: 32px; padding-top: 23px; border-top: 1px solid var(--line); text-decoration: none; }
.opportunity-link .link-title { display: flex; justify-content: space-between; gap: 12px; font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 700; }
.opportunity-link p { margin: 9px 0 0; max-width: 330px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.opportunity-link:hover .link-title, .back:hover { color: var(--highlight); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 22px 0 27px; color: var(--muted); font-size: 10px; }
.site-footer p { margin: 0; line-height: 1.7; }
.footer-brand { color: var(--accent); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.stack > .field + .field { margin-top: 20px; }
.results { margin-top: 27px; padding-top: 24px; border-top: 1px solid var(--line); }
.score { font-family: 'Manrope', sans-serif; font-size: 38px; letter-spacing: -1.5px; margin: 10px 0 18px; }
.metric { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.metric strong { font-weight: 500; color: var(--muted); }
.metric span { font-weight: 600; text-align: right; }
.lead { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.lead-copy { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 10px 0 22px; }
.notice { background: #f1f2ea; border: 1px solid var(--line); border-radius: 7px; padding: 13px 15px; font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 20px; }
.back { display: inline-block; margin-top: 23px; font-size: 12px; color: var(--accent2); text-decoration: none; }
.error { color: #a13f2d; font-size: 12px; line-height: 1.7; margin: 14px 0 0; }
.success { padding: 18px; background: #edf1e8; border-radius: 7px; font-size: 13px; line-height: 1.8; }
[hidden] { display: none !important; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1450px) { .workspace { padding-top: 85px; padding-bottom: 75px; } }
@media (max-width: 1000px) { .container { padding: 0 28px; } .workspace { gap: 35px; } .card { padding: 25px; } .workflow { gap: 8px; } .workflow-line { width: 9px; } }
@media (max-width: 760px) {
  .container { padding: 0 22px; }
  .site-header { padding: 21px 0; }
  .header-note { font-size: 9px; letter-spacing: 1px; }
  .workspace { grid-template-columns: 1fr; gap: 30px; padding: 34px 0; }
  .intro { padding-top: 0; }
  h1 { font-size: 46px; max-width: 500px; margin: 20px 0 15px; }
  .intro-copy { max-width: 500px; }
  .blueprint { display: none; }
  .workflow { gap: 14px; margin-top: 22px; }
  .workflow-line { width: 18px; }
  .card { padding: 26px; }
  .opportunity-link { margin-top: 24px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .header-note { max-width: 116px; font-size: 8px; }
  h1 { font-size: 40px; }
  .card { padding: 20px; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .workflow { gap: 8px; }
  .workflow-line { width: 10px; }
  .drawing-label { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
