:root {
  color-scheme: light;
  --bg-primary: #dff2f7;
  --bg-secondary: #b9deef;
  --bg-tertiary: #fff4df;
  --panel-bg: rgba(255, 255, 255, 0.18);
  --panel-border: rgba(255, 255, 255, 0.44);
  --panel-shadow: 0 32px 76px rgba(17, 57, 91, 0.16);
  --text-strong: #12324a;
  --text-body: rgba(18, 50, 74, 0.84);
  --text-soft: rgba(18, 50, 74, 0.58);
  --cta-start: #ff8b38;
  --cta-end: #ffb24b;
  --accent-blue: #1f84c7;
  --accent-violet: #1f84c7;
  --accent-orange: #ef8a2f;
  --border-soft: rgba(33, 87, 143, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text-body);
  background:
    radial-gradient(circle at top right, rgba(255, 210, 137, 0.78), transparent 28%),
    radial-gradient(circle at left center, rgba(87, 181, 222, 0.34), transparent 24%),
    linear-gradient(135deg, #cae8f4 0%, #dff5ef 42%, #f7fbff 72%, #fff1d9 100%);
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.thermup-app {
  min-height: 100vh;
}

.thermup-shell {
  position: relative;
  min-height: 100vh;
  padding: clamp(0.5rem, 1.5vw, 1rem);
}

.ambient {
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.72;
  pointer-events: none;
}

.ambient--a {
  top: 5%;
  left: 8%;
  width: 28vw;
  height: 28vw;
  background: rgba(58, 147, 206, 0.18);
}

.ambient--b {
  top: 18%;
  right: 4%;
  width: 24vw;
  height: 24vw;
  background: rgba(255, 182, 76, 0.26);
}

.ambient--c {
  bottom: 0;
  left: 22%;
  width: 56vw;
  height: 14vw;
  background: rgba(47, 172, 122, 0.12);
}

.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 255, 0.82));
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 1;
}

.brand-lockup__mark {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #ffffff, #eef8fd 70%, #fff2df);
  border: 1px solid rgba(33, 87, 143, 0.12);
  color: #0b1d2b;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(31, 132, 199, 0.24);
}

.brand-lockup__wordmark {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.04em;
}

.brand-lockup__wordmark span {
  color: #ee9238;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 132, 199, 0.1);
  color: var(--accent-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
}

.cta--primary {
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #16324a;
  box-shadow: 0 16px 26px rgba(255, 132, 52, 0.34);
  font-weight: 800;
}

.cta--secondary {
  background: linear-gradient(135deg, rgba(31, 132, 199, 0.96), rgba(26, 110, 167, 0.92));
  color: white;
  box-shadow: 0 16px 26px rgba(31, 132, 199, 0.2);
  font-weight: 700;
}

.install-dialog {
  width: min(32rem, calc(100vw - 1.5rem));
  padding: 0;
  border: 0;
  border-radius: 1.5rem;
  background: transparent;
  box-shadow: none;
}

.install-dialog::backdrop {
  background: rgba(11, 29, 43, 0.36);
  backdrop-filter: blur(6px);
}

.install-dialog__surface {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(33, 87, 143, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 255, 0.95));
  box-shadow: 0 24px 48px rgba(17, 57, 91, 0.18);
}

.install-dialog__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.install-dialog__header h2 {
  margin: 0.35rem 0 0;
  color: var(--text-strong);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.1;
}

.install-dialog__close {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(33, 87, 143, 0.08);
  color: var(--text-strong);
  font-size: 1.4rem;
  cursor: pointer;
}

.install-dialog__lead,
.install-dialog__note {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.install-dialog__steps {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-strong);
}

.install-dialog__steps li {
  line-height: 1.55;
}

.install-dialog__actions {
  display: flex;
  justify-content: flex-end;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  width: min(1180px, calc(100% - 1rem));
  margin: 0 auto 1rem;
  padding: 0.35rem 1rem 0.8rem;
  text-align: center;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: center;
}

.site-footer__links a {
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-footer__links a:hover {
  color: var(--accent-blue);
}

.site-footer__note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.field-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-strong);
}

.field input,
.field select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(33, 87, 143, 0.14);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(31, 132, 199, 0.18);
  border-color: rgba(31, 132, 199, 0.32);
}

.validation-summary-errors,
.field-validation-error {
  color: #c13b4a;
  font-size: 0.9rem;
  font-weight: 700;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.result-tile {
  padding: 1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 87, 143, 0.08);
}

.result-tile__label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-tile__value {
  display: block;
  color: var(--text-strong);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
}


.meta-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .thermup-shell {
    padding: 0.75rem;
  }

  .site-footer {
    position: fixed;
    left: 50%;
    bottom: max(0.3rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(100%, calc(100% - 0.9rem));
    margin: 0;
    padding: 0.5rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(21, 50, 79, 0.08);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 32px rgba(17, 57, 91, 0.12);
  }

  .site-footer__links {
    gap: 0.35rem 0.8rem;
  }

  .site-footer__links a {
    font-size: 0.82rem;
  }

  .site-footer__note {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}