:root {
  color-scheme: light;
  --navy: #10243c;
  --ink: #152a40;
  --muted: #53677c;
  --teal: #00796e;
  --accent: #31e1c1;
  --line: #dce5ee;
  --white: #fff;
  --surface: #f5f7fb;
  --radius: 16px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #008d82; outline-offset: 3px; }
.wrap { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px; background: white; }
.skip:focus { transform: none; }

.top { color: white; background: var(--navy); }
.top-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 790; font-size: 25px; letter-spacing: -.048em; }
.mark { width: 35px; height: 35px; display: inline-grid; align-items: center; justify-items: center;
  border-radius: 9px; color: #0d2b3a; background: var(--accent); font-size: 23px; font-weight: 850; line-height: 1; }
.main-nav, .top-actions { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: #c8d5e4; font-weight: 550; padding: 8px 0; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current] { color: white; }
.main-nav a[aria-current] { box-shadow: 0 2px 0 var(--accent); }
.top-actions { gap: 10px; }
.demo-bar { background: #e9f0f7; border-bottom: 1px solid #dbe5ef; color: #394e63; }
.demo-inner { min-height: 47px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .875rem; }
.demo-inner label { display: flex; align-items: center; gap: 10px; }
.demo-inner select { width: auto; padding: 6px 30px 6px 9px; min-height: 31px; font-size: .875rem; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.9rem, 3.7vw, 3.1rem); line-height: 1.08; margin-bottom: 10px; letter-spacing: -.048em; }
h2 { margin-bottom: 8px; line-height: 1.16; font-size: clamp(1.35rem,2vw,1.75rem); letter-spacing: -.03em; }
h3 { margin-bottom: 6px; font-size: 1.08rem; letter-spacing: -.015em; }
p { line-height: 1.55; margin-bottom: 14px; }
.muted { color: var(--muted); }
.page { padding-block: 36px 64px; }
.page-title { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 25px; }
.page-title p, .section-head p { color: var(--muted); margin-bottom: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.narrow { max-width: 820px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border: 1px solid transparent; border-radius: 9px; font-size: .925rem; font-weight: 700; line-height: 1.22; text-align: center; }
.button:hover { filter: brightness(.95); }
.button:active { transform: translateY(1px); }
.accent { background: var(--accent); color: #102b39; }
.primary { background: var(--teal); color: white; }
.secondary { background: white; border-color: #cfdce7; color: #1c3a52; }
.ghost { background: transparent; border-color: #52697f; color: inherit; }
.light { color: white; }
.small { min-height: 36px; padding: 6px 12px; font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.text-link, .back { display: inline-block; background: none; color: #006b61; border: none; padding: 0; font-weight: 650; }
.text-link:hover, .back:hover { text-decoration: underline; }
.back { margin-bottom: 16px; }

.home { padding-block: 26px 56px; }
.hero {
  position: relative; color: white; overflow: hidden; isolation: isolate; border-radius: 21px;
  background-color: #142f47; background-image: linear-gradient(90deg,#112b43 0%,#112b43 33%,#142f46aa 56%,#13263a22 100%), url('./assets/substation.webp');
  background-size: cover, 75% auto; background-repeat: no-repeat; background-position: center, right center;
  box-shadow: 0 12px 35px #132b4616;
}
.hero-body { padding: clamp(28px,5vw,62px); min-height: 405px; display: flex; flex-direction: column; justify-content: center; align-items: start; }
.eyebrow { color: #a8f0df; font-weight: 760; letter-spacing: .105em; margin-bottom: 16px; font-size: .8rem; }
.eyebrow span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 7px; }
.hero h1 { font-size: clamp(2.25rem,5.2vw,4.46rem); color: white; letter-spacing: -.064em; line-height: 1.01; margin-bottom: 18px; }
.hero-text { max-width: 410px; color: #e4ecf3; font-size: clamp(1.02rem,1.65vw,1.25rem); margin-bottom: 23px; }
.hero .actions .button { min-height: 48px; padding-inline: 19px; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: #c5dedf; font-size: .875rem; }
.home-section { padding-top: 34px; }
.categories { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.category-card, .factory-card, .panel {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 3px 10px #14355406;
}
.category-card { display: flex; flex-direction: column; align-items: start; gap: 7px; padding: 16px; }
.category-card:hover { border-color: #64beb0; box-shadow: 0 6px 18px #14355410; }
.category-card strong { line-height: 1.3; font-size: 1rem; }
.category-card > span:last-child { color: var(--muted); font-size: .875rem; }
.symbol { display: inline-grid; place-items: center; width: 39px; height: 39px; color: #007d71; background: #e5f7f4;
  font-size: 25px; border-radius: 10px; font-weight: 600; margin-bottom: 3px; }
.factory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.factory-card { display: flex; flex-direction: column; padding: 17px; min-width: 0; }
.factory-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.factory-heading h3 { margin-bottom: 1px; }
.factory-heading p, .company-name { color: var(--muted); margin: 0; font-size: .925rem; }
.company-name { margin-bottom: 10px; }
.avatar { display: grid; flex: 0 0 auto; width: 46px; height: 46px; place-items: center; border-radius: 12px; font-weight: 800; }
.avatar.blue { background: #e8f0fa; color: #164f80; }
.avatar.green { background: #e1f7f0; color: #146850; }
.avatar.amber { background: #fff3de; color: #80530f; }
.avatar.indigo { background: #ecebfa; color: #52499d; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.badge { display: inline-flex; align-items: center; width: fit-content; color: #3b546c; background: #eaf0f6; border-radius: 99px;
  padding: 4px 9px; line-height: 1.25; font-size: .8125rem; font-weight: 650; }
.badge.success { color: #176649; background: #ddf4e8; }
.badge.warn { color: #775108; background: #fcf0d4; }
.factory-bottom { display: flex; justify-content: space-between; gap: 5px; padding-top: 14px; margin-top: auto; align-items: center; }
.demo-callout { margin-top: 34px; padding: 21px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #e7f4f2; border: 1px solid #d4eae7; border-radius: var(--radius); }
.demo-callout p { margin-bottom: 0; color: #335c63; }

.panel { padding: clamp(15px,2vw,25px); min-width: 0; }
.panel + .panel { margin-top: 16px; }
.two-col .panel + .panel { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.notice { background: #e9f6f5; border: 1px solid #cee4e2; border-left: 3px solid #008676; color: #1e4e52;
  padding: 12px 15px; border-radius: 8px; margin-bottom: 16px; }
.filters { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 12px; align-items: end;
  padding: 15px; margin-bottom: 16px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-weight: 650; font-size: .9375rem; }
input:not([type=checkbox]), select, textarea { width: 100%; min-width: 0; min-height: 43px; padding: 9px 11px; border: 1px solid #c9d8e4;
  background: white; color: #142a3d; border-radius: 8px; font-weight: 450; }
select {
  appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, #4c657a 50%),linear-gradient(135deg,#4c657a 50%,transparent 50%);
  background-size: 5px 5px,5px 5px; background-repeat: no-repeat; background-position: right 14px center,right 9px center;
}
input[type=checkbox] { accent-color: var(--teal); width: 17px; height: 17px; flex: 0 0 auto; }
.check { display: flex; align-items: center; gap: 7px; line-height: 1.35; align-self: end; min-height: 43px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.form-panel > h2 { margin-bottom: 18px; }
.form-panel > * + .field { margin-top: 14px; }
.form-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.wizard, .workspace { display: grid; grid-template-columns: 218px minmax(0,1fr); align-items: start; gap: 20px; }
.steps, .sidebar { display: flex; flex-direction: column; gap: 5px; background: #eaf0f6; border-radius: var(--radius); padding: 10px; }
.steps button { display: flex; align-items: center; gap: 9px; text-align: left; border: 0; border-radius: 9px; color: #324c66; font-weight: 650; background: none; padding: 9px; }
.steps span { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; background: #dce6ef; color: #32526d; }
.steps button[aria-current] { background: #d5f1ec; color: #075b53; }
.steps button[aria-current] span { color: white; background: var(--teal); }
.steps button:disabled { opacity: .63; }
.position-list { display: grid; gap: 12px; margin-bottom: 12px; }
.position { min-width: 0; border-radius: 10px; border: 1px solid var(--line); padding: 12px; }
.position legend { padding-inline: 5px; font-weight: 700; }
.position button { justify-self: start; align-self: end; padding-block: 10px; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.details dt { color: var(--muted); font-size: .875rem; }
.details dd { margin: 3px 0 0; font-weight: 650; }
.recipient-list, .file-list, .thread { margin: 0 0 14px; list-style: none; padding: 0; }
.recipient-list li, .file-list li, .thread li { border-bottom: 1px solid #e7edf3; padding-block: 8px; overflow-wrap: anywhere; }
.recipient-list li, .file-list li { display: flex; justify-content: space-between; gap: 12px; }
.recipient-list li span { color: var(--muted); }
.thread li p { margin: 2px 0 0; }
#message-form .button { margin-top: 10px; }
.sidebar p { margin: 5px 8px 8px; color: var(--muted); font-weight: 750; font-size: .9rem; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar a { font-size: .925rem; font-weight: 650; padding: 10px 9px; border-radius: 8px; }
.sidebar a:hover, .sidebar a[aria-current] { background: #d5f1ec; color: #065d56; }
.workspace-body { min-width: 0; }
.table-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; color: #1a334a; font-size: .925rem; }
td, th { text-align: left; padding: 12px; vertical-align: top; border-bottom: 1px solid #e2eaf2; }
thead th { background: #eaf0f6; color: #243f57; font-weight: 730; }
tbody tr:last-child > * { border-bottom: 0; }
.compare-table { min-width: 690px; }
.compare-table th:first-child { position: sticky; left: 0; min-width: 156px; z-index: 1; }
.compare-table tbody th:first-child { background: #f5f8fb; }
.compare-table thead th:not(:first-child) { min-width: 172px; }
.compare-table thead span, .compare-table small { display: block; color: var(--muted); margin-top: 4px; font-weight: 500; font-size: .8125rem; }
.compare-table select { margin-top: 8px; min-height: 35px; }
.compare-table .total td, .compare-table .total th:first-child { background: #e5f7ee; font-weight: 700; }
.compare-scroll + p { margin: 11px 0 0; }
.select-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-block: 12px; }
.select-row p { margin: 0; }
.quote-lines { display: grid; gap: 12px; margin-bottom: 15px; }
#quote-form h2 { margin-top: 18px; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin-bottom: 16px; }
.metrics div { display: grid; gap: 8px; padding: 15px; border: 1px solid var(--line); background: white; border-radius: 12px; }
.metrics strong { font-size: 1.9rem; }
.bullet-list { margin: 8px 0 0; padding-left: 22px; line-height: 1.75; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 85px; color: var(--muted); font-size: .9rem; }
.foot-inner div { display: flex; gap: 20px; }
.brand-dark { color: var(--ink); }
footer { border-top: 1px solid var(--line); background: #fff; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 5; max-width: min(390px,calc(100% - 40px)); color: white;
  padding: 13px 17px; background: #153047; border-radius: 10px; box-shadow: 0 8px 20px #132a4750; visibility: hidden; }
.toast.shown { visibility: visible; }

@media (max-width: 980px) {
  .wrap { width: calc(100% - 42px); }
  .hero { background-size: cover,auto 105%; }
  .categories { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .factory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .main-nav { gap: 13px; }
  .wizard, .workspace { grid-template-columns: 170px minmax(0,1fr); gap: 13px; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 28px); }
  .top-inner { flex-wrap: wrap; gap: 5px 8px; padding-top: 10px; min-height: 70px; }
  .brand { font-size: 22px; }
  .mark { width: 31px; height: 31px; font-size: 21px; }
  .top-actions { gap: 5px; margin-left: auto; }
  .top-actions .button { padding: 7px 9px; min-height: 36px; font-size: .8125rem; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 16px; padding-inline: 0; }
  .main-nav a { padding-block: 7px 10px; font-size: .875rem; }
  .main-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
  .demo-detail { display: none; }
  .demo-inner label { gap: 5px; }
  .hero { background-image: linear-gradient(90deg,#10243de8,#10243db0 65%,#10243d80),url('./assets/substation.webp');
    background-size: cover, auto 100%; background-position: center,65% center; border-radius: 15px; }
  .hero-body { min-height: 340px; }
  .hero h1 { font-size: clamp(1.95rem, 7.2vw, 3.2rem); }
  .hero-text { max-width: 360px; }
  .hero .actions .button { min-height: 43px; padding-inline: 10px; }
  .category-card { padding: 13px; }
  .home { padding-top: 13px; }
  .home-section { padding-top: 26px; }
  .factory-grid { grid-template-columns: 1fr; }
  .page { padding-block: 24px 40px; }
  .page-title, .demo-callout { align-items: start; flex-direction: column; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child { grid-column: span 2; }
  .filters > button { justify-self: start; }
  .wizard, .workspace, .two-col { grid-template-columns: minmax(0,1fr); }
  .steps, .sidebar { padding: 6px; }
  .steps { flex-direction: row; overflow-x: auto; }
  .steps button { font-size: .8125rem; flex: 0 0 auto; white-space: nowrap; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar a { padding: 6px 8px; }
  .form-grid { grid-template-columns: 1fr; }
  input:not([type=checkbox]), select, textarea { font-size: 1rem; }
  .select-row { grid-template-columns: 1fr; gap: 6px; }
  .table-scroll table:not(.compare-table) { min-width: 520px; }
  .compare-table th:first-child { min-width: 121px; width: 121px; }
  .compare-table td, .compare-table th { padding: 9px; }
  .recipient-list li { flex-direction: column; gap: 4px; }
  .foot-inner { padding-block: 14px; }
}

@media (max-width: 355px) {
  .hero-body { padding: 20px; }
  .demo-inner { font-size: .75rem; }
  .demo-inner select { max-width: 115px; }
  .section-head { align-items: start; flex-direction: column; }
}
