/* =============================================================
   IoTherm product page — specific styles
   ============================================================= */

/* ---------- Hero ---------- */
.hero-product {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1E8FA 100%);
  position: relative;
  overflow: hidden;
}
.hero-product::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("bg/white-pills-lilac.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  pointer-events: none;
}
.hero-product > .container { position: relative; z-index: 1; }

.hero-product__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Keep the H1 to exactly two lines (break only at the <br>) and
   give the text column more room — the photo shrinks to allow it. */
.hero-product__grid {
  grid-template-columns: 1.18fr 0.82fr;
}
.hero-product__title {
  white-space: nowrap;
  max-width: none;
}
@media (max-width: 880px) {
  .hero-product__grid {
    grid-template-columns: 1fr;
  }
  .hero-product__title {
    white-space: normal;
  }
}.hero-product__device {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 20px 60px rgba(10, 116, 184, 0.18), 0 4px 16px rgba(10,116,184,0.10);
}
.hero-product__device img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 32px;
  align-items: stretch;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6%;
  right: 6%;
  transform: translateY(-50%);
  height: 1.5px;
  background: repeating-linear-gradient(to right, rgba(10,116,184,0.25) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.step {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(10,116,184,0.08);
  position: relative;
  z-index: 1;
  transition: transform 280ms cubic-bezier(0.2,0.8,0.2,1),
              box-shadow 280ms cubic-bezier(0.2,0.8,0.2,1);
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10, 116, 184, 0.18);
}
.step--lg {
  padding: 40px 36px;
  box-shadow: 0 8px 32px rgba(10, 116, 184, 0.18);
  border: 1px solid rgba(47,166,223,0.20);
  transform: translateY(-8px);
}
.step--lg:hover {
  transform: translateY(-14px);
  box-shadow: 0 20px 44px rgba(10, 116, 184, 0.22);
}
.step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.step__num {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.step__num--accent {
  font-size: 24px;
  color: #2FA6DF !important;
  letter-spacing: -0.01em;
}
.step__icon {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0;
  object-fit: contain;
  flex: 0 0 auto;
}
.step__icon--lg {
  width: 64px;
  height: 64px;
}

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps::before { display: none; }
  .step--lg { transform: none; }
}

/* =============================================================
   BUTTON COLOR LOGIC — INVERTED (product page only)
   Loaded after site.css, so these override the defaults on
   iotherm.html only. Format / shadows / behaviour preserved;
   only default ↔ hover color states are swapped.
   ============================================================= */
.btn--primary {
  background: #075C95;
  color: #FFFFFF;
}
.btn--primary:hover {
  background: #2FA6DF;
  color: #1A1A2E;
}

.btn--invert {
  background: #FFFFFF;
  color: #1A1A2E;
  box-shadow: 0 6px 20px rgba(10, 116, 184, 0.20);
}
.btn--invert:hover {
  background: #2FA6DF;
  color: #FFFFFF;
  box-shadow: none;
}

.btn--amazon {
  background: #FFFFFF;
  color: #0F1111;
  border-color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.btn--amazon:hover {
  background: #FF9900;
  color: #FFFFFF;
  border-color: #E68A00;
  box-shadow: 0 2px 8px rgba(230, 138, 0, 0.22);
}
.btn--amazon .btn__amazon-mark img {
  filter: none;
}
.btn--amazon:hover .btn__amazon-mark img {
  filter: brightness(0) invert(1);
}

.btn--light {
  color: #0A74B8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.btn--light:hover {
  color: #075C95;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

.btn--outlined {
  background: rgba(47,166,223,0.15);
}
.btn--outlined:hover {
  background: transparent;
}
.btn--outlined.on-dark {
  background: rgba(255,255,255,0.15);
}
.btn--outlined.on-dark:hover {
  background: transparent;
}

.btn--pill-blue {
  background: #FFFFFF;
  color: #075C95;
  border-color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(10, 116, 184, 0.22);
}
.btn--pill-blue:hover {
  background: #075C95;
  color: #FFFFFF;
  border-color: #075C95;
  box-shadow: none;
}

.btn--pill-light {
  background: #075C95;
  color: #FFFFFF;
  border-color: #075C95;
  box-shadow: 0 6px 20px rgba(2, 32, 60, 0.30);
}
.btn--pill-light:hover {
  background: #FFFFFF;
  color: #075C95;
  border-color: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

/* ---------- App em ação: telas reais (S7) ---------- */
.app-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.app-shot { margin: 0; }
.app-shot__frame {
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 20px 48px rgba(2, 32, 60, 0.28);
}
.app-shot__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.app-shot__cap {
  margin-top: 12px;
  font-family: "Noto Sans", sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  text-align: center;
  line-height: 1.4;
}
@media (max-width: 880px) {
  .app-shots { grid-template-columns: 1fr; max-width: 260px; margin: 0 auto; gap: 32px; }
}

/* ---------- Botões de loja (App Store / Play Store) ---------- */
.app-stores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.28);
  color: #FFFFFF;
  transition: background 200ms ease, border-color 200ms ease;
}
.app-store-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
}
.app-store-btn__eyebrow {
  display: block;
  font-family: "Noto Sans", sans-serif;
  font-size: 10px;
  line-height: 1.2;
  opacity: 0.75;
}
.app-store-btn__name {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Vídeo embutido (tutorial, S5) ---------- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #02233E;
  box-shadow: 0 12px 32px rgba(10, 116, 184, 0.18);
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Ficha técnica (tabela) + SAC ---------- */
.tech-table__wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #FFFFFF;
}
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Noto Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
}
.tech-table tr + tr th,
.tech-table tr + tr td {
  border-top: 1px solid rgba(0,0,0,0.08);
}
.tech-table th,
.tech-table td {
  text-align: left;
  padding: 14px 20px;
  vertical-align: top;
}
.tech-table th {
  width: 38%;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: #075C95;
  background: rgba(10, 116, 184, 0.04);
}
.tech-table td { color: var(--text-ink-80); }
@media (max-width: 640px) {
  .tech-table th, .tech-table td { padding: 12px 16px; }
  .tech-table th { width: 44%; font-size: 12.5px; }
}

.sac-box {
  margin-top: 40px;
  padding: 28px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
