/* LoadAlarm landing page. Shared tokens and components are in pages/site.css. */

/* ---------- Asphalt: the hero and the closing band ---------- */

.hero,
.closing {
  position: relative;
  background-color: var(--asphalt);
  /* Fine aggregate, like a road surface at night. */
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 0.8px, transparent 1.3px),
    radial-gradient(rgba(0, 0, 0, 0.28) 1px, transparent 1.5px);
  background-size: 9px 9px, 14px 14px;
  background-position: 0 0, 5px 7px;
  color: var(--sign-white);
}

/* Double yellow center line along the asphalt edge. */
.hero::after,
.closing::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 11px;
  background: linear-gradient(to bottom,
    var(--amber) 0 3px, transparent 3px 8px, var(--amber) 8px 11px);
  opacity: 0.9;
}

.hero::after { bottom: 22px; }
.closing::before { top: 22px; }

.hero .site-nav { background: var(--asphalt-deep); }

.hero__body { padding: 0 0 96px; }

.hero__title {
  max-width: 16ch;
  margin: 52px 0 0;
  font-size: clamp(2.6rem, 1.45rem + 3.6vw, 4.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero__lede {
  max-width: 58ch;
  margin: 24px 0 0;
  color: rgba(247, 248, 244, 0.86);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__note {
  margin: 16px 0 0;
  color: rgba(247, 248, 244, 0.7);
  font-size: 1rem;
}

/* ---------- Overhead message sign ---------- */

.vms {
  position: relative;
  margin-top: 40px;
  padding: clamp(7px, 1.1vw, 14px);
  border-radius: 7px;
  background: linear-gradient(180deg, #41474d 0%, #30353a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 34px 60px -24px rgba(0, 0, 0, 0.7);
}

/* Hangers up to the beam (the header bar). */
.vms::before,
.vms::after {
  content: "";
  position: absolute;
  top: -40px;
  width: 10px;
  height: 40px;
  background: linear-gradient(90deg, #3a4046, #5b636a 50%, #3a4046);
}

.vms::before { left: 12%; }
.vms::after { right: 12%; }

.vms__face {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* Shown only if the script doesn't run. */
.vms__fallback {
  margin: 0;
  padding: 0.5em 0.8em;
  border-radius: 2px;
  background: #0c0e0f;
  color: #ffb21a;
  font: 700 clamp(1.1rem, 0.6rem + 2.2vw, 2.4rem)/1.25 var(--font-led);
  letter-spacing: 0.08em;
}

/* ---------- Boards that work ---------- */

.boards {
  padding: 56px 0 60px;
  border-bottom: 1px solid var(--rule);
  background: var(--concrete);
}

.boards__title {
  margin: 0;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.boards__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.sign--open {
  border: 2px dashed var(--green);
  background: transparent;
  color: var(--green);
}

.sign--open > span { border-color: transparent; }

.boards__note {
  max-width: 64ch;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 9vw, 120px) 0; }

.section--concrete { background: var(--concrete); }

.section h2,
.closing h2 {
  margin: 0;
  font-size: clamp(2.05rem, 1.35rem + 2.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.section__lede {
  margin: 20px 0 0;
  font-size: 1.1875rem;
  line-height: 1.55;
}

.split__text > p { max-width: 54ch; }
.split__text > p + p { margin-top: 14px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.split--media-first { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--media-first .split__media { order: -1; }

.split--phone { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.split--narrow-media { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }

/* ---------- Setup steps as mile markers ---------- */

.miles {
  position: relative;
  display: grid;
  gap: 30px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

/* Lane line from each marker to the next one. */
.miles li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 68px;
  bottom: -24px;
  border-left: 3px dashed #b9c0b6;
}

.miles li {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 20px;
}

.mile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 60px;
  padding-top: 0.12em;
  border-radius: 6px;
  background: var(--green);
  box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 5px var(--sign-white);
  color: var(--sign-white);
  font-size: 1.6rem;
  font-weight: 800;
}

.miles h3 {
  margin: 4px 0 0;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.miles p {
  max-width: 46ch;
  margin: 8px 0 0;
  color: var(--ink-2);
}

/* ---------- Chrome window frame for product captures ---------- */

.window {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-window);
  background: #dee1e6;
  box-shadow:
    0 0 0 1px rgba(25, 28, 31, 0.08),
    0 30px 60px -28px rgba(25, 28, 31, 0.5);
}

.window__bar {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  overflow: hidden;
}

.window__tab {
  display: inline-flex;
  flex: 0 1 230px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 12px 7px;
  overflow: hidden;
  border-radius: 9px 9px 0 0;
  color: #44484c;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.window__tab img { flex: none; width: 16px; height: 16px; }

.window__tab--active { background: #fff; color: #1f2124; }

.window__dot {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #a7aeb5;
}

.window__view {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

/* ---------- Alerts list ---------- */

.ticks {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  max-width: 50ch;
  padding-left: 32px;
}

/* The same up arrow the extension puts on a tab that changed. */
.ticks li::before {
  content: "▲";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--amber-deep, #c58f00);
  font-size: 0.95em;
}

/* ---------- Phone ---------- */

.phone {
  justify-self: center;
  width: min(330px, 100%);
  aspect-ratio: 9 / 17;
  padding: 12px;
  border-radius: 48px;
  background: #15181b;
  box-shadow:
    inset 0 0 0 2px #2c3136,
    0 34px 70px -30px rgba(25, 28, 31, 0.65);
}

.phone__screen {
  position: relative;
  height: 100%;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 37px;
  background: linear-gradient(165deg, #1f5f47 0%, #123a2c 48%, #0b1d17 100%);
  color: #fff;
}

.phone__island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 96px;
  height: 27px;
  margin-left: -48px;
  border-radius: 14px;
  background: #15181b;
}

.phone__date {
  margin: 66px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  opacity: 0.85;
}

.phone__time {
  margin: 0 0 14px;
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
}

.push {
  margin-top: 9px;
  padding: 10px 12px 9px;
  border-radius: 18px;
  background: rgba(248, 249, 246, 0.93);
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.push p { margin: 0; }

.push__app {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 0.75rem;
}

.push__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #3b4146;
  font-size: 0.65rem;
}

.push__when { margin-left: auto; }

.push .push__title { margin-top: 4px; font-weight: 700; }
.push__body { color: var(--ink-2); }

.pill {
  display: inline-block;
  margin-top: 22px;
  padding: 7px 14px 5px;
  border: 2px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.9375rem;
  font-weight: 700;
}

/* ---------- Desk tools ---------- */

.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  margin: 30px 0 0;
}

.tools > div {
  padding: 18px 0 20px;
  border-top: 2px solid var(--rule);
}

.tools dt {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
}

.tools dd {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.popup-shot {
  justify-self: center;
  width: min(348px, 100%);
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #f2f3f0;
  box-shadow:
    0 0 0 1px rgba(25, 28, 31, 0.1),
    0 30px 60px -28px rgba(25, 28, 31, 0.55);
}

.popup-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Pricing ---------- */

.pricing__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.pricing__text > p { max-width: 46ch; }
.pricing__text .muted { margin-top: 14px; }

/* The plan as a big guide sign. */
.plan__inner {
  padding: 34px 34px 32px;
  border-radius: 14px;
  background: var(--green);
  box-shadow:
    inset 0 0 0 7px var(--green),
    inset 0 0 0 10px var(--sign-white),
    0 30px 60px -30px rgba(14, 107, 71, 0.6);
  color: var(--sign-white);
}

.plan__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  opacity: 0.9;
}

.plan__price {
  margin: 6px 0 0;
  font-size: clamp(2.3rem, 1.8rem + 1.6vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.plan__after {
  margin: 6px 0 0;
  font-size: 1.0625rem;
  opacity: 0.9;
}

.plan__list {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 22px 0 0;
  border-top: 2px solid rgba(247, 248, 244, 0.35);
  list-style: none;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.plan__list li {
  position: relative;
  padding-left: 28px;
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 13px;
  height: 7px;
  border-bottom: 3px solid var(--amber);
  border-left: 3px solid var(--amber);
  transform: rotate(-45deg);
}

.plan .btn { width: 100%; }

.plan__fine {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-align: center;
}

/* ---------- Questions ---------- */

.qa {
  max-width: 860px;
  margin-top: 30px;
  border-bottom: 2px solid var(--rule);
}

.qa details { border-top: 2px solid var(--rule); }

.qa summary {
  position: relative;
  padding: 20px 48px 18px 0;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.qa details[open] summary::after {
  margin-top: -3px;
  transform: rotate(-135deg);
}

.qa summary:hover { color: var(--green); }

.qa details p {
  max-width: 64ch;
  margin: 0 0 22px;
  color: var(--ink-2);
}

/* ---------- Closing band ---------- */

.closing { padding: 112px 0 104px; }

.closing h2 { max-width: 18ch; }

.closing__lede {
  max-width: 52ch;
  margin: 20px 0 0;
  color: rgba(247, 248, 244, 0.86);
  font-size: 1.1875rem;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 900px) {
  .split,
  .split--media-first,
  .split--phone,
  .split--narrow-media,
  .pricing__inner { grid-template-columns: minmax(0, 1fr); }

  .split--media-first .split__media { order: 0; }

  .tools { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .hero__body { padding-bottom: 80px; }
  .vms { margin-top: 34px; }
  .vms::before, .vms::after { top: -34px; height: 34px; width: 8px; }
  .actions .btn { flex: 1 1 100%; }
  .window__tab { flex-basis: 170px; font-size: 0.8125rem; }
  .plan__inner { padding: 28px 24px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .qa summary::after { transition: none; }
}
