/* DELIVER page and Cost per Bad Decision Calculator
   Brand values from the CXAmplify Brand Voice v3.4, Section 11. Replace with the site's existing tokens if they differ. */
:root {
  --ocean: #023455;      /* Deep Ocean Blue: headlines, dark sections */
  --teal: #10788A;       /* Teal Core: section labels */
  --aqua: #16A4AB;       /* Aqua Flow: interactive */
  --mint: #1BCEC8;       /* Mint Teal: CTAs on dark */
  --navy: #1A2332;       /* Foundation Navy: body text, footer */
  --charcoal: #4A5568;   /* Precision Charcoal: secondary text */
  --t100: #E0F7F4;       /* callout backgrounds */
  --t200: #C2EFF0;       /* borders */
  --gray: #F5F5F5;
  --bad: #B42318;
  --good: #0E7A4F;
  --radius: 10px;
  --max: 1160px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--navy);
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; line-height: 1.55; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
h1, h2, h3 { color: var(--ocean); line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--charcoal); max-width: 760px; }
.label { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .12em;
  font-size: 13px; font-weight: 700; color: var(--teal); margin-bottom: 14px; }
.label::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 8px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--aqua); background: var(--aqua); color: #fff; cursor: pointer; font-size: 16px; font-family: inherit; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--aqua); }
.btn:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { background: var(--ocean); color: #fff; padding: 88px 0; }
.hero h1 { color: #fff; font-size: clamp(48px, 7vw, 84px); letter-spacing: .04em; margin-bottom: 8px; }
.hero .subtitle { color: var(--mint); font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; margin-bottom: 20px; }
.hero .lead { color: #DCE7EE; }
.hero .label { color: var(--mint); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pills li { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.hero .btn.ghost { color: #fff; border-color: #fff; }
.cover { aspect-ratio: 2 / 3; border-radius: 6px; background: linear-gradient(160deg, #0B4A6F, #023455 55%, #10788A);
  box-shadow: 0 24px 48px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; font-weight: 700; letter-spacing: .08em; width: 100%; max-width: 340px; margin-left: auto; }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; margin-top: 32px; }
fieldset { border: 1px solid var(--t200); border-radius: var(--radius); padding: 20px 20px 8px; margin: 0 0 18px; }
legend { font-weight: 700; color: var(--ocean); padding: 0 6px; font-size: 17px; }
.legend-note { font-size: 14px; color: var(--charcoal); margin: -4px 0 14px; }
.field { display: grid; grid-template-columns: 1fr 150px; gap: 6px 16px; align-items: center; margin-bottom: 14px; }
.field.wide { grid-template-columns: 1fr; }
.field label { font-size: 15px; font-weight: 700; }
.field .hint { grid-column: 1 / -1; font-size: 13px; color: var(--charcoal); margin-top: -4px; }
.field input { width: 100%; padding: 10px 12px; font-size: 16px; border: 1px solid #B8C6D0; border-radius: 6px; font-family: inherit; text-align: right; }
.field.wide input { text-align: left; }
.input-unit { position: relative; }
.input-unit span { position: absolute; top: 50%; transform: translateY(-50%); color: var(--charcoal); font-size: 15px; pointer-events: none; }
.input-unit .pre { left: 12px; } .input-unit .post { right: 12px; }
.input-unit.has-pre input { padding-left: 24px; } .input-unit.has-post input { padding-right: 30px; }
.example-note { background: var(--t100); border-radius: 8px; padding: 12px 16px; font-size: 15px; margin-bottom: 18px; }
.linklike { background: none; border: 0; color: var(--teal); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

.results { position: sticky; top: 20px; border: 1px solid var(--t200); border-radius: var(--radius); overflow: hidden; background: #fff; }
.results-head { background: var(--ocean); color: #fff; padding: 22px 24px; }
.results-head .k { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--mint); font-weight: 700; }
.results-head .big { font-size: 48px; font-weight: 700; line-height: 1.1; }
.results-body { padding: 20px 24px 24px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--gray); border-radius: 8px; padding: 12px 14px; }
.kpi .k { font-size: 13px; color: var(--charcoal); }
.kpi .v { font-size: 24px; font-weight: 700; color: var(--ocean); }
.status { border-left: 4px solid var(--charcoal); padding: 8px 12px; margin: 0 0 16px; font-size: 15px; background: var(--gray); border-radius: 0 6px 6px 0; }
.status.above { border-color: var(--bad); }
.status.below { border-color: var(--good); }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 16px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #E3E8EC; }
th { font-size: 13px; color: var(--charcoal); font-weight: 700; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.total td { font-weight: 700; border-top: 2px solid var(--ocean); }
.neg { color: var(--bad); } .pos { color: var(--good); }
.class2 { background: var(--t100); border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; font-size: 15px; }
.class2 h4 { margin: 0 0 6px; color: var(--ocean); font-size: 16px; }
.download { border-top: 1px solid #E3E8EC; padding-top: 16px; }
.download .field { grid-template-columns: 1fr; margin-bottom: 10px; }
.download .field input { text-align: left; }
.small { font-size: 13px; color: var(--charcoal); }

/* Email */
.signup { background: var(--t100); border-radius: var(--radius); padding: 28px; margin-top: 32px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; }
.signup form { display: grid; gap: 10px; }
.signup .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.signup input[type=text], .signup input[type=email] { padding: 12px; border: 1px solid #B8C6D0; border-radius: 6px; font-size: 16px; font-family: inherit; width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 15px; min-height: 1.2em; }
.form-msg.ok { color: var(--good); } .form-msg.err { color: var(--bad); }

/* Info sections */
.how { background: var(--gray); }
.formula { background: #fff; border: 1px solid var(--t200); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 14px; }
.formula strong { color: var(--ocean); }
.stages { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.stages li { border-top: 3px solid var(--t200); padding: 14px 4px 0; }
.stages .letter { font-size: 28px; font-weight: 700; color: var(--teal); }
.stages .name { font-weight: 700; color: var(--ocean); }
.stages li.gate { border-top-color: var(--aqua); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cta { background: var(--ocean); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta .btn-row { justify-content: center; }
.cta .btn.ghost { color: #fff; border-color: #fff; }

@media (max-width: 900px) {
  .hero-grid, .calc-grid, .signup, .two-col { grid-template-columns: 1fr; }
  .cover { margin: 0 auto; max-width: 240px; }
  .results { position: static; }
}
@media (max-width: 520px) {
  section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .field { grid-template-columns: 1fr; }
  .field input { text-align: left; }
  .kpis, .signup .row { grid-template-columns: 1fr; }
  .results-head .big { font-size: 40px; }
}
