/* "What you'll see after you sign up": real portal screenshots (captured from
   the portal running with demo data) in a laptop frame, with the phone screen
   beside it. On /jobs there is a single card. Colour per journey via --tone. */

.screens {
  --tone: 11, 31, 51; --tone-accent: #E9D7B0;
  padding: clamp(72px, 10vh, 120px) 0 0; background: #050C14; color: #C9D6E6;
}
.screens.tone-business { --tone: 14, 56, 66; --tone-accent: #A6D4D8; }

.screens-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vh, 44px); }
.screens-head .eyebrow { color: var(--tone-accent); }
.screens-head h2 { color: var(--white); font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; margin: 12px auto; max-width: 18ch; }
.screens-head p:not(.eyebrow) { font-size: 17px; margin: 0 auto; max-width: 560px; }

.screens .stack { background: transparent; padding-bottom: clamp(48px, 8vh, 96px); }
.screens-one { padding: 0 clamp(12px, 2.6vw, 36px) clamp(56px, 9vh, 104px); }

.screen-card {
  margin: 0; overflow: hidden; /* positioned by .stack (sticky); a single card needs no positioning */
  display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2.6fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 3.6vw, 56px);
  border-radius: 28px; border: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, rgb(var(--tone)) 0%, rgba(var(--tone), .82) 100%), #050C14;
  color: var(--white);
}
.screens-one .screen-card { max-width: 1240px; margin: 0 auto; }

.screen-card figcaption { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; font-family: var(--font-serif); color: var(--white); }
.screen-n { display: block; margin-bottom: 12px; font-family: var(--font-sans, inherit); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--tone-accent); }

/* The shots: a laptop, and the phone screen leaning on its lower corner. */
.screen-shots { position: relative; padding-inline-end: 9%; padding-bottom: 5%; }
.shot-laptop {
  position: relative; border: 10px solid #0A0F18; border-bottom-width: 12px; border-radius: 16px; background: #0A0F18;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .8);
  max-width: calc((100vh - 280px) * 1.6); max-width: calc((100svh - 280px) * 1.6); margin-inline: auto;
}
.shot-laptop::after { /* the base */
  content: ""; position: absolute; left: -7%; right: -7%; bottom: -24px; height: 12px;
  border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #2A3342, #11161F);
}
.shot-laptop img, .shot-phone img { display: block; width: 100%; height: auto; border-radius: 6px; }
.shot-phone {
  position: absolute; inset-inline-end: 0; bottom: 0; width: 23%;
  border: 6px solid #05080F; border-radius: 26px; background: #05080F; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .12);
}
.shot-phone img { border-radius: 20px; }

/* A card without a laptop (phone only) centres the phone. */
.screen-card.phone-only .screen-shots { padding: 0; }
.screen-card.phone-only .shot-phone { position: relative; width: min(300px, 70%); margin-inline: auto; }

.screens-fine { text-align: center; font-size: 14px; color: #93A4B8; margin: 0; padding: 0 16px clamp(48px, 7vh, 80px); }
.screens .stack + .screens-fine { margin-top: -24px; }

@media (max-width: 900px) {
  .screen-card { grid-template-columns: 1fr; gap: 20px; }
  .screen-card figcaption { font-size: 18px; }
}
/* Phones: the phone screen is the readable one, so it leads; the laptop stays for cards without a phone screen. */
@media (max-width: 760px) {
  .screen-card { padding: 20px 18px 24px; border-radius: 22px; }
  .screen-card.has-phone .shot-laptop { display: none; }
  .screen-card.has-phone .screen-shots { padding: 0; }
  .screen-card.has-phone .shot-phone { position: relative; width: min(250px, 68%); margin-inline: auto; }
  .screen-card:not(.has-phone) .screen-shots { padding: 0 0 18px; }
  .shot-laptop { border-width: 6px; border-bottom-width: 8px; border-radius: 12px; max-width: none; }
  .shot-laptop::after { bottom: -16px; height: 8px; }
  /* In a stack on a phone, keep each card within the screen. */
  .screens .stack > .screen-card .shot-phone img { max-height: calc(100svh - 230px); object-fit: cover; object-position: top; }
}
