:root {
  --navy: #061527;
  --navy-2: #0a2942;
  --ink: #10283c;
  --muted: #5f7384;
  --line: #d6e0e7;
  --paper: #f2f6f7;
  --teal: #009fa7;
  --cyan: #2fc6de;
  --green: #79c96b;
  --yellow: #f5c533;
  --red: #d24d4d;
  --blue: #00339f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Arial, Helvetica, sans-serif; }
a { color: inherit; }
button, input { font: inherit; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; background: #fff; color: var(--navy); }
.skip-link:focus { transform: none; }

.concept-ribbon { display: flex; justify-content: center; gap: 24px; padding: 7px 18px; background: var(--yellow); color: #302701; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 92px; padding: 18px max(28px, calc((100vw - 1240px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.site-header a { text-decoration: none; font-size: 13px; font-weight: 800; }
.back-link { justify-self: start; }
.sales-link { justify-self: end; padding: 11px 16px; border-radius: 4px; background: var(--blue); color: #fff; }
.collins-mark img { display: block; width: 176px; max-height: 54px; }

.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr); min-height: 650px; overflow: hidden; background: var(--navy); color: #fff; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 75px max(35px, calc((100vw - 1240px) / 2)); padding-right: 65px; }
.electrafy-logo { width: 210px; height: 70px; margin-bottom: 40px; object-fit: contain; object-position: left center; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { max-width: 710px; margin: 0 0 24px; font-size: clamp(52px, 6vw, 82px); line-height: .95; letter-spacing: -.055em; }
.hero h1 em { color: var(--cyan); font-style: normal; }
.hero-intro { max-width: 650px; margin: 0; color: #c8d7e2; font-size: 18px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero-badges span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; color: #d9e7f0; font-size: 11px; font-weight: 750; }
.hero-cta { display: flex; width: fit-content; gap: 30px; align-items: center; margin-top: 34px; padding: 14px 18px; border-radius: 4px; background: var(--yellow); color: #2c2503; text-decoration: none; font-size: 13px; font-weight: 900; }
.hero-visual { position: relative; min-width: 0; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy), transparent 23%), linear-gradient(0deg, rgba(2,13,25,.28), transparent 35%); pointer-events: none; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.spec-strip { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1240px; margin: -38px auto 0; position: relative; z-index: 2; background: #fff; box-shadow: 0 20px 60px rgba(4,25,43,.14); }
.spec-strip > div { padding: 24px 27px; border-right: 1px solid var(--line); }
.spec-strip span { display: block; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.spec-strip strong { display: block; margin-top: 6px; font-size: 22px; }
.spec-strip > p { grid-column: 1 / -1; margin: 0; padding: 15px 27px; border-top: 1px solid var(--line); background: #f8fbfc; color: var(--muted); font-size: 12px; }

.calculator-section, .method-section { max-width: 1240px; margin: 0 auto; padding-top: 110px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); gap: 65px; align-items: end; margin-bottom: 34px; }
.section-heading h2, .method-heading h2 { margin: 0; font-size: clamp(42px, 5.2vw, 68px); line-height: 1; letter-spacing: -.05em; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.7; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.23fr) minmax(390px, .77fr); gap: 24px; align-items: start; }

.runtime-form { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 20px 60px rgba(5,27,47,.08); }
.form-toolbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 28px; border-bottom: 1px solid var(--line); }
.form-toolbar span { display: block; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.form-toolbar strong { display: block; margin-top: 5px; font-size: 18px; }
.preset-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.preset-actions button { padding: 9px 11px; border: 1px solid #b7c7d2; border-radius: 4px; background: #fff; color: #294156; cursor: pointer; font-size: 11px; font-weight: 800; }
.preset-actions button:first-child { border-color: var(--teal); color: #006e74; }
.example-note { margin: 0; padding: 13px 28px; background: #eef8f8; color: #4e6e73; font-size: 12px; }
.load-groups { padding: 10px 28px 5px; }
.load-group { padding: 22px 0; border-bottom: 1px solid var(--line); }
.load-group:last-child { border-bottom: 0; }
.load-group-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 13px; }
.load-group-heading h3 { margin: 0; font-size: 19px; }
.load-group-heading p { max-width: 420px; margin: 0; color: var(--muted); font-size: 11px; text-align: right; }
.load-list { display: grid; gap: 7px; }
.load-row { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 18px; align-items: center; min-height: 66px; padding: 10px 12px; border: 1px solid transparent; border-radius: 6px; background: #f7f9fb; transition: border-color .18s ease, background .18s ease; }
.load-row.active { border-color: #8bcfd1; background: #effafa; }
.load-name { display: block; color: #1c3448; font-size: 13px; font-weight: 800; }
.load-basis { display: block; margin-top: 3px; color: #718594; font-size: 11px; }
.load-input { position: relative; }
.load-input input { width: 100%; min-height: 44px; padding: 9px 38px 9px 10px; border: 1px solid #a7b8c5; border-radius: 5px; background: #fff; color: var(--ink); text-align: right; }
.load-input input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,159,167,.11); }
.load-input span { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: #718594; font-size: 9px; font-weight: 850; text-transform: uppercase; pointer-events: none; }
.form-status { min-height: 22px; margin: 2px 28px 0; color: #a82b2b; font-size: 13px; font-weight: 800; }
.calculate-button { display: flex; justify-content: space-between; width: calc(100% - 56px); margin: 13px 28px 28px; padding: 15px 17px; border: 0; border-radius: 5px; background: linear-gradient(90deg, #007c83, var(--teal)); color: #fff; cursor: pointer; font-weight: 900; }
.calculate-button:hover { background: #006f75; }

.runtime-result { position: sticky; top: 20px; overflow: hidden; min-height: 690px; border-radius: 10px; background: radial-gradient(circle at 90% 8%, rgba(47,198,222,.27), transparent 27%), linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; box-shadow: 0 23px 65px rgba(4,25,43,.18); }
.result-heading { display: flex; justify-content: space-between; gap: 15px; padding: 25px 28px; border-bottom: 1px solid rgba(255,255,255,.15); }
.result-heading span { color: var(--yellow); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.result-heading small { color: #aabfce; }
.result-empty { display: flex; min-height: 610px; flex-direction: column; justify-content: center; padding: 35px; }
.empty-orbit { position: relative; width: 112px; height: 112px; margin-bottom: 30px; }
.empty-orbit i { position: absolute; inset: 0; border: 1px solid rgba(47,198,222,.3); border-radius: 50%; }
.empty-orbit i:nth-child(2) { inset: 16px; }.empty-orbit i:nth-child(3) { inset: 32px; }
.empty-orbit span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--cyan); font-size: 34px; font-weight: 900; }
.runtime-result h3 { margin: 0 0 12px; font-size: 31px; line-height: 1.12; }
.runtime-result p { margin: 0; color: #b7cbd9; font-size: 14px; }
.result-content { padding: 28px; }
.result-status { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 23px; }
.result-status > span { padding: 7px 9px; border-radius: 99px; background: rgba(121,201,107,.15); color: #c9ffbf; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.result-status > span.overload { background: rgba(210,77,77,.18); color: #ffc5c5; }
.result-status strong { font-size: 17px; }
.result-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 23px; background: rgba(255,255,255,.14); }
.result-metrics > div { padding: 14px; background: rgba(5,25,43,.92); }
.result-metrics span, .runtime-card span { display: block; color: #88a5b8; font-size: 8px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.result-metrics strong { display: block; margin-top: 4px; font-size: 18px; }
.runtime-title { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 10px; }
.runtime-title h3 { font-size: 20px; }.runtime-title small { color: #8ea8ba; }
.runtime-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.runtime-card { padding: 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; background: rgba(255,255,255,.06); }
.runtime-card strong { display: block; margin-top: 7px; color: var(--cyan); font-size: 25px; line-height: 1; }
.runtime-card small { display: block; margin-top: 5px; color: #9eb5c5; }
.runtime-card.insufficient strong { color: #ffc1c1; font-size: 16px; line-height: 1.15; }
.result-warning-list { display: grid; gap: 7px; margin: 20px 0 0; padding: 0; list-style: none; }
.result-warning-list li { padding-left: 13px; border-left: 2px solid var(--yellow); color: #d6e2ea; font-size: 11px; }
.selected-summary { margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.13); color: #9fb6c6; font-size: 11px; }
.result-stale { margin-top: 16px; color: #ffd96e; font-size: 12px; font-weight: 850; }
.calculator-lead-slot { margin-top: 25px; }

.method-section { padding-bottom: 10px; }
.method-heading { max-width: 850px; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 35px; }
.method-grid article { min-height: 250px; padding: 24px; border-top: 3px solid var(--teal); background: #fff; }
.method-grid article > span { color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.method-grid h3 { margin: 25px 0 8px; font-size: 20px; }
.method-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.safety-boundary { margin-top: 18px; padding: 25px 28px; border-left: 4px solid var(--red); background: #fff3f3; }
.safety-boundary strong { display: block; color: #8a2525; font-size: 18px; }.safety-boundary p { margin: 6px 0 0; color: #744d4d; }
.source-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.source-links a { padding: 10px 13px; border: 1px solid #b4c4cf; border-radius: 4px; background: #fff; color: #124b68; text-decoration: none; font-size: 12px; font-weight: 850; }

footer { display: flex; max-width: 1240px; align-items: center; gap: 25px; margin: 85px auto 0; padding: 32px 0; border-top: 1px solid #cbd7e0; color: var(--muted); font-size: 12px; }
footer img { width: 150px; } footer p { flex: 1; } footer a { color: var(--blue); font-weight: 800; }

@media (max-width: 1280px) { .spec-strip, .calculator-section, .method-section, footer { margin-left: 24px; margin-right: 24px; }.hero-copy { padding-left: 45px; } }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }.hero-copy { padding: 70px 35px; }.hero-visual { height: 480px; }.hero-visual::after { background: linear-gradient(0deg, var(--navy), transparent 32%); }
  .calculator-layout, .section-heading { grid-template-columns: 1fr; }.section-heading { gap: 22px; }.runtime-result { position: relative; top: auto; min-height: 0; }.result-empty { min-height: 450px; }.method-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; padding: 16px 18px; }.collins-mark { display: none; }
  .spec-strip { grid-template-columns: 1fr; }.spec-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }.spec-strip > p { grid-column: auto; }
  .form-toolbar { align-items: flex-start; flex-direction: column; }.preset-actions { justify-content: flex-start; }.load-group-heading { align-items: flex-start; flex-direction: column; }.load-group-heading p { text-align: left; }
  .method-grid { grid-template-columns: 1fr; }.method-grid article { min-height: 0; }
}
@media (max-width: 520px) {
  .concept-ribbon { justify-content: flex-start; overflow: hidden; white-space: nowrap; }.concept-ribbon span:last-child { display: none; }
  .hero-copy { padding: 55px 22px; }.hero h1 { font-size: 47px; }.hero-visual { height: 330px; }.electrafy-logo { width: 180px; }
  .spec-strip, .calculator-section, .method-section, footer { margin-left: 14px; margin-right: 14px; }.calculator-section { padding-top: 80px; }
  .load-groups { padding-left: 17px; padding-right: 17px; }.form-toolbar { padding: 23px 18px; }.example-note { padding-left: 18px; padding-right: 18px; }
  .load-row { grid-template-columns: 1fr 95px; gap: 10px; }.calculate-button { width: calc(100% - 36px); margin-left: 18px; margin-right: 18px; }.form-status { margin-left: 18px; margin-right: 18px; }
  .result-metrics, .runtime-grid { grid-template-columns: 1fr; }.method-heading h2 { font-size: 40px; }
  footer { align-items: flex-start; flex-direction: column; }
}
