:root {
  --navy: #102d4f;
  --blue: #1d6fb8;
  --sky: #dceeff;
  --green: #74c947;
  --ink: #172a3a;
  --paper: #fff;
  --mist: #f2f7fa;
  --line: #c9d8e3;
  --muted: #5e7180;
  --warn: #9d431f;
  --shadow: 0 18px 50px #102d4f18;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.55 Inter,
    system-ui,
    sans-serif;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  line-height: 1.04;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(3.1rem, 7vw, 6.5rem);
}
h2 {
  font-size: clamp(2.15rem, 4vw, 4rem);
}
a {
  color: inherit;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 1rem;
  z-index: 99;
}
.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 5vw, 5rem);
  background: #ffffffef;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  text-decoration: none;
  font-weight: 950;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px var(--sky);
}
.brand em {
  color: var(--blue);
  font-style: normal;
}
.site-header nav {
  display: flex;
  gap: 1.7rem;
  margin-left: auto;
}
.site-header nav a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.6rem;
}
.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 5vw;
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 6vw, 7rem);
  background: linear-gradient(135deg, #fff 0, #eaf6ff 68%, #dff4d2);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.72rem;
  font-weight: 950;
  color: var(--blue);
}
.hero h1 span {
  color: var(--blue);
}
.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: #4f6575;
  max-width: 720px;
}
.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--navy);
  text-decoration: none;
  font: 800 0.9rem inherit;
  cursor: pointer;
}
.button.primary {
  background: var(--navy);
  color: #fff;
}
.button.secondary {
  background: #fff;
  color: var(--navy);
}
.trust {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted);
}
.trust li:before {
  content: "✓";
  color: #458d20;
  font-weight: 900;
  margin-right: 0.4rem;
}
.window-scene {
  min-height: 470px;
  position: relative;
  background: #badcf4;
  border: 14px solid #fff;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.window-scene:before,
.window-scene:after {
  content: "";
  position: absolute;
  background: #fff;
  z-index: 2;
}
.window-scene:before {
  width: 12px;
  height: 100%;
  left: calc(50% - 6px);
}
.window-scene:after {
  height: 12px;
  width: 100%;
  top: calc(50% - 6px);
}
.pane {
  background: linear-gradient(155deg, #b9def8, #f0f9ff 45%, #8bc4e8);
  position: relative;
}
.pane:after {
  content: "";
  position: absolute;
  width: 110%;
  height: 25%;
  background: #ffffff70;
  transform: rotate(-25deg);
  top: 8%;
  left: -25%;
}
.weather-card {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 3;
  background: var(--navy);
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  max-width: 220px;
}
.weather-card strong {
  display: block;
  font-size: 2.2rem;
}
.section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 6vw, 7rem);
}
.section-head {
  max-width: 850px;
  margin-bottom: 3rem;
}
.section-head > p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
}
.diagnostic {
  background: var(--navy);
  color: #fff;
}
.diagnostic .eyebrow {
  color: var(--green);
}
.diagnostic-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
}
.diagnostic form,
.planner form {
  background: #fff;
  color: var(--ink);
  padding: 1.5rem;
  border-radius: 18px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
label {
  display: block;
  font-size: 0.83rem;
  font-weight: 800;
  margin: 0.6rem 0;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  display: block;
  margin-top: 0.35rem;
  padding: 0.75rem;
  border: 1px solid #aebfcb;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
input[type="checkbox"] {
  accent-color: var(--blue);
  margin-right: 0.45rem;
}
.result {
  background: #ffffff12;
  border: 1px solid #ffffff2e;
  padding: 1.6rem;
  border-radius: 18px;
}
.result strong {
  font-size: 1.2rem;
}
.result.warning {
  border-color: #ffb999;
}
.tool-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.tool-card {
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px #102d4f0b;
}
.tool-card span {
  font-size: 2rem;
  color: var(--blue);
}
.tool-card p {
  color: var(--muted);
}
.tool-card a,
.link-button {
  font-weight: 850;
  color: var(--blue);
  border: 0;
  background: none;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
.planner {
  background: var(--mist);
}
.planner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.opening-list {
  display: grid;
  gap: 0.65rem;
}
.opening {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 0.8fr auto;
  gap: 0.5rem;
  align-items: end;
  border: 1px solid var(--line);
  padding: 0.75rem;
  border-radius: 10px;
}
.opening label {
  margin: 0;
}
.remove {
  border: 0;
  background: #f6dfd9;
  color: #8b2f19;
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
}
.summary {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.summary > div {
  border-left: 4px solid var(--green);
  padding-left: 1rem;
}
.summary span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--muted);
}
.summary ul,
.summary p,
.summary .actions {
  grid-column: 1/-1;
}
.tools {
  background: #fff;
}
.guide {
  background: var(--mist);
}
.guide-grid {
  grid-template-columns: repeat(4, 1fr);
}
.guide-grid article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.1rem;
  min-height: 145px;
}
.guide-grid article span {
  color: var(--blue);
  font-weight: 900;
}
.guide-grid h3 {
  font-size: 0.95rem;
  margin-top: 0.8rem;
}
.manufacturer {
  background: linear-gradient(120deg, var(--navy), #174f7d);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.manufacturer .eyebrow {
  color: var(--green);
}
.manufacturer > div {
  max-width: 800px;
}
.manufacturer .button {
  border-color: #fff;
}
.network {
  background: var(--green);
  color: #0e2b23;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.network > div {
  max-width: 800px;
}
.network .button {
  background: var(--navy);
  color: #fff;
}
.chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  font-weight: 900;
  box-shadow: 0 12px 35px #102d4f55;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.chat-launcher img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin: -8px 0 -8px -10px;
}
.chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(410px, calc(100vw - 24px));
  max-height: min(700px, calc(100vh - 24px));
  z-index: 50;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 80px #102d4f55;
  display: none;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
}
.chat.open {
  display: grid;
}
.chat header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--navy);
  color: #fff;
  padding: 0.8rem 1rem;
}
.chat-mascot {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.chat header strong {
  flex: 1;
}
.chat header button {
  border: 0;
  background: transparent;
  color: #fff;
}
.chat-intro {
  padding: 0.8rem 1rem;
  margin: 0;
  background: var(--sky);
  font-size: 0.86rem;
}
.chat-log {
  overflow: auto;
  min-height: 190px;
  padding: 1rem;
}
.message {
  padding: 0.65rem 0.8rem;
  background: #edf3f6;
  border-radius: 12px;
  margin: 0 0 0.7rem;
}
.message.user {
  margin-left: 35px;
  background: #e0f1d8;
}
.message small {
  display: block;
  color: var(--muted);
  margin-top: 0.4rem;
}
.suggestions {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 0.8rem 0.6rem;
}
.suggestions button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  font-size: 0.72rem;
}
.chat form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
}
.chat form input {
  margin: 0;
  min-width: 0;
}
.chat form button {
  border: 0;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-weight: 900;
  padding: 0.7rem;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
footer {
  background: #0b2238;
  color: #dce8f2;
  padding: 3rem clamp(1rem, 6vw, 7rem);
  display: grid;
  grid-template-columns: 0.8fr 1.3fr auto;
  gap: 2rem;
  align-items: center;
  font-size: 0.84rem;
}
footer p {
  color: #aebfcb;
  margin: 0;
}
footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
dialog {
  max-width: 650px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  color: var(--ink);
}
dialog::backdrop {
  background: #07192baa;
}
.close-dialog {
  float: right;
  border: 0;
  background: none;
  font-size: 1.7rem;
}
@media (max-width: 900px) {
  .hero,
  .diagnostic-grid,
  .planner-grid {
    grid-template-columns: 1fr;
  }
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }
  .guide-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  footer {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .site-header nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    flex-direction: column;
  }
  .site-header nav.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .window-scene {
    min-height: 330px;
  }
  .field-grid,
  .tool-grid,
  .guide-grid,
  .summary {
    grid-template-columns: 1fr;
  }
  .opening {
    grid-template-columns: 1fr 1fr;
  }
  .opening .remove {
    grid-column: 1/-1;
  }
  .manufacturer,
  .network {
    align-items: flex-start;
    flex-direction: column;
  }
  .chat {
    right: 6px;
    bottom: 6px;
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
  }
}
