/* Destination: public/co/assets/css/device.css
 *
 * Verde marketing site - the device pages (commit 1699): Verde Driver first,
 * then Carry and the Customer Display on the same layout. Everything shared
 * (tokens, header, buttons, footer) is in verde-site.css.
 *
 * A device page, top to bottom: hero (name, pitch, buttons, render) over a
 * strip of four facts; the device's real screens; a band with the render and
 * what makes it right for its job; a specs list; what's in the box; a dark
 * call to action. MARKETING-SITE-ENGINEERING.md, "Device pages".
 */

/* ---- Hero -------------------------------------------------------------- */

.vs-device-hero {
  padding: clamp(28px, 4vw, 40px) 0 24px;
}

.vs-device-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px 48px;
  align-items: center;
}

.vs-device-crumb {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--vs-ink-3);
}

.vs-device-crumb a {
  font-weight: 600;
  color: var(--vs-green);
}

.vs-device-crumb span {
  margin: 0 8px;
  color: #9aaba2;
}

.vs-device-hero h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--vs-forest);
}

.vs-device-lead {
  max-width: 520px;
  margin: 18px 0 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--vs-ink-2);
}

.vs-device-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.vs-device-ctas .vs-btn,
.vs-device-cta .vs-btn {
  height: 48px;
  padding: 0 22px;
}

.vs-device-price {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--vs-ink-3);
}

.vs-device-hero__img {
  width: 100%;
  height: auto;
}

/* Four facts in one strip, divided by hairlines. */
.vs-device-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--vs-line);
  border-radius: 14px;
  background: var(--vs-wash);
}

.vs-device-facts li {
  padding: 22px 24px;
  text-align: center;
}

.vs-device-facts li + li {
  border-left: 1px solid var(--vs-line);
}

.vs-device-facts b {
  display: block;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--vs-forest);
}

.vs-device-facts span {
  font-size: 14px;
  color: var(--vs-ink-3);
}

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

.vs-device-section {
  padding: 72px 0;
}

/* The band's color is the one the band render is finished on
   (finish.py bg=(247, 250, 248)), so the device sits on it with no box. */
.vs-device-band {
  border-top: 1px solid var(--vs-line);
  border-bottom: 1px solid var(--vs-line);
  background: var(--vs-wash);
}

.vs-device-section .vs-h2 {
  margin: 14px 0 0;
  text-wrap: balance;
  font-size: clamp(30px, 3vw, 42px);
}

.vs-device-sub {
  max-width: 980px;
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--vs-ink-2);
}

/* Where the device works, as a row of quiet pills. */
.vs-device-places {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.vs-device-places li {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--vs-line);
  border-radius: 999px;
  background: var(--vs-wash);
  font-size: 14px;
  font-weight: 600;
  color: var(--vs-forest);
}

/* ---- Screens: the device's real screenshots, in a dark bezel ------------ */

.vs-device-screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.vs-device-screens figure {
  margin: 0;
}

.vs-device-shot {
  padding: 12px;
  border-radius: 18px;
  background: #0b0c0e;
  box-shadow: 0 20px 40px -28px rgba(12, 48, 38, 0.6);
}

.vs-device-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.vs-device-screens figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--vs-ink-3);
}

.vs-device-screens figcaption b {
  display: block;
  margin-bottom: 2px;
  font-size: 17px;
  color: var(--vs-forest);
}

/* A phone-shaped device (Carry): four tall screens across, rounder bezels,
   and a hero render no taller than the text beside it. */
.vs-device-screens--tall {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vs-device-screens--tall .vs-device-shot {
  padding: 10px;
  border-radius: 26px;
}

.vs-device-screens--tall .vs-device-shot img {
  border-radius: 16px;
}

.vs-device-hero__img--tall {
  max-height: 560px;
  object-fit: contain;
}

/* ---- Render beside a checklist ----------------------------------------- */

.vs-device-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: center;
}

.vs-device-split img {
  width: 100%;
  height: auto;
}

.vs-device-checks {
  display: grid;
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.vs-device-checks li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--vs-ink-3);
}

.vs-device-checks li b {
  color: var(--vs-forest);
}

.vs-device-checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--vs-green);
  border-bottom: 2px solid var(--vs-green);
  transform: rotate(-45deg);
}

/* ---- Specs ----------------------------------------------------------------- */

.vs-device-specs-wrap {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px 56px;
}

.vs-device-specs {
  margin: 0;
  border-top: 1px solid var(--vs-line);
}

.vs-device-specs div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--vs-line);
}

.vs-device-specs dt {
  font-weight: 700;
  color: var(--vs-forest);
}

.vs-device-specs dd {
  margin: 0;
  line-height: 1.55;
  color: var(--vs-ink-2);
}

/* ---- In the box -------------------------------------------------------------- */

.vs-device-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.vs-device-box li {
  padding: 24px;
  border: 1px solid var(--vs-line);
  border-radius: 14px;
  background: #fff;
}

.vs-device-box b {
  display: block;
  font-size: 17px;
  color: var(--vs-forest);
}

.vs-device-box span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--vs-ink-3);
}

/* ---- Call to action -------------------------------------------------------- */

.vs-device-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 48px;
  border-radius: 18px;
  background: var(--vs-forest);
  color: #fff;
}

.vs-device-cta h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: #fff;
}

.vs-device-cta p {
  margin: 8px 0 0;
  color: #c8ddd2;
}

/* ---- Tablet and phone ------------------------------------------------- */

@media (max-width: 1024px) {
  .vs-device-facts,
  .vs-device-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vs-device-screens--tall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vs-device-facts li:nth-child(3) {
    border-left: 0;
  }

  .vs-device-facts li:nth-child(n + 3) {
    border-top: 1px solid var(--vs-line);
  }
}

@media (max-width: 880px) {
  .vs-device-hero__grid,
  .vs-device-split,
  .vs-device-specs-wrap,
  .vs-device-screens {
    grid-template-columns: minmax(0, 1fr);
  }

  .vs-device-section {
    padding: 56px 0;
  }

  .vs-device-specs div {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
  }

  .vs-device-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
  }
}

@media (max-width: 560px) {
  .vs-device-facts,
  .vs-device-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .vs-device-facts li + li {
    border-left: 0;
    border-top: 1px solid var(--vs-line);
  }
}
