.alarm-page {
  color: #26313f;
}

main > .row,
footer .row {
  margin-left: 0;
  margin-right: 0;
}

.alarm-container {
  max-width: 1200px;
}

.alarm-title {
  border-left: 0.65rem solid #8eb41c;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin: 0 0 1rem;
  padding-left: 1rem;
  text-align: left;
}

.alarm-lead {
  color: #52606d;
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.alarm-tool {
  align-items: center;
  background:
    radial-gradient(circle at top, rgba(54, 83, 120, 0.72), transparent 52%),
    #08101c;
  border: 1px solid #1f334c;
  border-radius: 1rem;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 530px;
  overflow: hidden;
  padding: 2.25rem 1.25rem 1.75rem;
  position: relative;
  text-align: center;
}

.alarm-tool__status {
  align-items: center;
  color: #b8c5d3;
  display: flex;
  font-size: 0.92rem;
  gap: 0.5rem;
  justify-content: center;
  min-height: 1.5rem;
}

.alarm-tool__status > span {
  font-size: inherit;
}

.alarm-tool__status-dot {
  background: #94a3b8;
  border-radius: 50%;
  box-shadow: 0 0 0 0.3rem rgba(148, 163, 184, 0.13);
  height: 0.55rem;
  width: 0.55rem;
}

.alarm-tool__status-dot--armed {
  background: #57cc99;
  box-shadow: 0 0 0 0.3rem rgba(87, 204, 153, 0.14);
}

.alarm-tool__status-dot--ringing {
  background: #ef476f;
  box-shadow: 0 0 0 0.3rem rgba(239, 71, 111, 0.16);
}

.alarm-tool__time {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(4.1rem, 11vw, 8.2rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1.05;
  margin: 0.65rem 0 0.15rem;
  white-space: nowrap;
}

.alarm-tool__date {
  color: #a9bdd4;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.alarm-setup {
  align-items: flex-end;
  display: flex;
  gap: 0.7rem;
  justify-content: center;
}

.alarm-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.alarm-input-group label {
  color: #a9bdd4;
  font-size: 0.85rem;
  margin: 0;
}

.alarm-setup input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #61758d;
  color: #fff;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  height: 2.8rem;
  min-width: 10.5rem;
  width: 10.5rem;
}

.alarm-setup input:focus {
  background: rgba(255, 255, 255, 0.13);
  border-color: #8eb41c;
  box-shadow: 0 0 0 0.2rem rgba(142, 180, 28, 0.2);
  color: #fff;
}

.alarm-setup input:disabled {
  color: #a9bdd4;
  opacity: 0.7;
}

.alarm-setup .btn {
  font-weight: 700;
  min-width: 8.5rem;
}

.alarm-target {
  align-items: center;
  background: rgba(87, 204, 153, 0.09);
  border: 1px solid rgba(87, 204, 153, 0.3);
  border-radius: 999px;
  color: #cfe7dd;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.5rem 0.85rem;
}

.alarm-target[hidden],
.alarm-ringing[hidden],
.alarm-tool__exit[hidden] {
  display: none;
}

.alarm-target span,
.alarm-target strong {
  font-size: inherit;
}

.alarm-target__divider {
  color: #8eb41c;
}

.alarm-tool__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.15rem;
}

.alarm-tool__actions .btn {
  font-weight: 700;
  min-width: 8rem;
}

.alarm-ringing {
  align-items: center;
  background: rgba(239, 71, 111, 0.15);
  border: 1px solid rgba(239, 71, 111, 0.65);
  border-radius: 0.75rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
}

.alarm-ringing strong {
  font-size: 1.05rem;
}

.alarm-tool__hint {
  color: #8294a8;
  font-size: 0.82rem;
  margin: 0.85rem 0 0;
  max-width: 42rem;
}

.alarm-tool__exit {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
}

.alarm-tool:fullscreen,
.alarm-tool--focus {
  border: 0;
  border-radius: 0;
  height: 100vh;
  max-height: none;
  min-height: 100vh;
  width: 100vw;
}

.alarm-tool:fullscreen .alarm-tool__time,
.alarm-tool--focus .alarm-tool__time {
  font-size: clamp(6rem, 18vw, 17rem);
}

.alarm-tool:fullscreen .alarm-setup,
.alarm-tool--focus .alarm-setup {
  display: none;
}

.alarm-tool--focus {
  inset: 0;
  position: fixed;
  z-index: 99999;
}

body.alarm-focus {
  overflow: hidden;
}

.alarm-ad {
  margin: 1rem auto 1.75rem;
  min-height: 90px;
  text-align: center;
}

.alarm-layout {
  align-items: flex-start;
}

.alarm-content {
  text-align: left;
}

.alarm-section {
  background: #fff;
  border: 1px solid #dbe3eb;
  border-radius: 0.85rem;
  margin-bottom: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
}

.alarm-section h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin: 0 0 1rem;
}

.alarm-section h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.alarm-section p,
.alarm-section li {
  font-size: 1.05rem;
  line-height: 1.75;
}

.alarm-steps {
  padding-left: 1.4rem;
}

.alarm-comparison {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.alarm-comparison__item {
  background: #f6f8fb;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 1rem;
}

.alarm-comparison__item p {
  margin-bottom: 0;
}

.alarm-faq h3 {
  margin-top: 1.25rem;
}

.alarm-faq h3:first-child {
  margin-top: 0;
}

.alarm-faq p:last-child {
  margin-bottom: 0;
}

.alarm-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.alarm-cluster a {
  background: #eef4f9;
  border: 1px solid #d8e2eb;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
}

.alarm-sidebar {
  position: sticky;
  top: 1rem;
}

@media (max-width: 991.98px) {
  .alarm-sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .alarm-tool {
    min-height: 530px;
    padding: 2rem 0.75rem 1.5rem;
  }

  .alarm-tool__time {
    font-size: clamp(3rem, 15vw, 5.5rem);
  }

  .alarm-tool:fullscreen .alarm-tool__time,
  .alarm-tool--focus .alarm-tool__time {
    font-size: clamp(3.3rem, 18vw, 8rem);
  }

  .alarm-comparison {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .alarm-setup {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(10.5rem, 1fr) minmax(8.5rem, 1fr);
    width: min(100%, 23rem);
  }

  .alarm-input-group {
    min-width: 0;
  }

  .alarm-setup input {
    min-width: 10.5rem;
    width: 100%;
  }

  .alarm-setup .btn {
    width: 100%;
  }

  .alarm-tool__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 19rem);
  }

  .alarm-tool__actions .btn {
    min-width: 0;
    width: 100%;
  }

  .alarm-tool__hint {
    max-width: 19rem;
  }
}

@media (max-width: 420px) {
  .alarm-setup {
    grid-template-columns: 1fr;
    width: min(100%, 18rem);
  }

  .alarm-setup input {
    min-width: 0;
  }
}
