﻿@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #EDF2FB;
  --panel: #BAE0F3;
  --accent: #87CEEB;
  --accent-2: #6CBDE9;
  --accent-3: #50ABE7;
  --text: #0b1f33;
  --muted: #35506b;
  --nav-bg: rgba(108, 189, 233, 0.35);
  --nav-border: rgba(80, 171, 231, 0.45);
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(135,206,235,0.25), transparent 35%),
              radial-gradient(circle at 80% 10%, rgba(186,224,243,0.35), transparent 30%),
              var(--bg);
  color: var(--text);
}

/* keeping the header sticky when scrolling */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  backdrop-filter: blur(8px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;     
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
}

nav a:hover {
  border-color: rgba(80,171,231,0.6);
  background: rgba(135,206,235,0.25);
}

/* Buttons (used on homepage CTAs) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid rgba(80,171,231,0.55);
  color: #0b1f33;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 8px 18px rgba(80, 171, 231, 0.28);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0b1f33;
  border-color: rgba(80,171,231,0.7);
}

.button.ghost {
  background: rgba(255,255,255,0.35);
  color: var(--text);
  border-color: rgba(80,171,231,0.7);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(80, 171, 231, 0.34);
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 100%);
}

.button.ghost:hover {
  background: rgba(135,206,235,0.35);
  color: var(--text);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(80, 171, 231, 0.28);
}

.button:focus-visible {
  outline: 3px solid var(--accent-3);
  outline-offset: 2px;
}

main {
  max-width: 1000px;
  margin: 0 auto;       /* center the column */
  padding: 40px 20px;   /* nice spacing */
  outline: 5px solid rgba(80,171,231,0.25);
  border-radius: 10px;
  background: rgba(255,255,255,0.6);
}

main.shift-right { outline: 5px solid rgba(80,171,231,0.25); }

.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-text h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--text);
}

.hero-text p {
  margin: 12px 0 0 0;
  font-size: 18px;
  line-height: 1.4;
  max-width: 560px;
  opacity: 0.95;
  color: var(--muted);
}

.logo {
  width: 150px;
  height: auto;
}

@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-text h1 {
    font-size: 44px;
  }
  .logo {
    width: 120px;
  }
}

.thermo-title,
.thermo-bottom {
  font-weight: 700;
  margin: 6px 0;
  color: var(--text);
}

.thermo-area {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.thermo-track { position: relative; }
.marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-3);
  color: transparent;
  text-indent: -9999px;
}
.thermo-line {
  position: absolute;
  left: 34px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--text);
}

/* ticks */
.tick {
  position: absolute;
  left: 34px;
  transform: translateY(50%);
  height: 0;
  border-top: 2px solid var(--text);
}

.tick.major {
  width: 44px;
  margin-left: -22px; /* center around the line */
}

.tick.minor {
  width: 22px;
  margin-left: -11px;
  opacity: 0.8;
}

/* labels on the right */
.thermo-labels {
  position: relative;
  width: 44px;
  height: 520px;
  font-weight: 700;
  color: var(--text);
}

.thermo-labels .lbl {
  position: absolute;
  right: 0;
  transform: translateY(50%);
}

/* place each label by its value */
.thermo-labels .lbl[data-v="100"] { bottom: 100%; }
.thermo-labels .lbl[data-v="90"] { bottom: 90%; }
.thermo-labels .lbl[data-v="80"] { bottom: 80%; }
.thermo-labels .lbl[data-v="70"] { bottom: 70%; }
.thermo-labels .lbl[data-v="60"] { bottom: 60%; }
.thermo-labels .lbl[data-v="50"] { bottom: 50%; }
.thermo-labels .lbl[data-v="40"] { bottom: 40%; }
.thermo-labels .lbl[data-v="30"] { bottom: 30%; }
.thermo-labels .lbl[data-v="20"] { bottom: 20%; }
.thermo-labels .lbl[data-v="10"] { bottom: 10%; }
.thermo-labels .lbl[data-v="0"] { bottom: 0%; }


/*visible thermo slider */
.thermo-slider {
  position: absolute;
  left: 41px;           /* align with the center line */
  top: 10px;
  bottom: 10px;
  width: 0;             /* we’ll control via appearance */
  margin: 0;
  padding: 0;
  cursor: pointer;
  z-index: 5;

  writing-mode: bt-lr;          /* vertical in many browsers */
  -webkit-appearance: slider-vertical; /* Safari/Chrome */
  appearance: slider-vertical;

  opacity: 1;           /* IMPORTANT: don't make it fully invisible */
  background: transparent;
}

/* Hide the native track (varies by browser) */
.thermo-slider::-webkit-slider-runnable-track {
  width: 2px;
  background: transparent;
}
.thermo-slider::-moz-range-track {
  width: 2px;
  background: transparent;
}

/* readout */
.thermo-readout {
  margin-top: 10px;
  font-weight: 700;
  color: var(--text);
}

/* center the mometer*/
.qol-thermo{
  width: fit-content;      /* shrink to the content width */
  margin: 40px auto;       /* centers it horizontally */
}

.thermo-area{
  display: flex;
  justify-content: center; /* centers track+labels together */
  gap: 18px;
}
