/* ============================================================
   Slim iPhone mockups — hero + inline (black, 9:16, no bulk)
   ============================================================ */

.hero-phones {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
  min-height: 520px;
  padding: 8px 0 20px;
  box-sizing: border-box;
  overflow: visible;
}

.hero-phones--inline {
  justify-content: center;
  min-height: 0;
  padding: 12px 0 4px;
}

.mock-phone {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.5));
  transform: none;
}

.mock-phone__body {
  box-sizing: border-box;
  width: 100%;
  padding: 2px;
  border-radius: 28px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mock-phone__screen {
  position: relative;
  width: 100%;
  aspect-ratio: auto;
  border-radius: 26px;
  overflow: hidden;
  background: transparent;
  line-height: 0;
}

.mock-phone__screen img,
.mock-phone__screen video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  border: 0;
  background: transparent;
}

/* —— Slim iPad (iOS tablet) — 3:4, never force phone crop —— */
.mock-ipad {
  position: relative;
  margin: 0 auto;
  width: min(360px, 86vw);
  flex: 0 0 auto;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.5));
}

.mock-ipad__body {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border-radius: 22px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mock-ipad__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  line-height: 0;
}

.mock-ipad__screen img,
.mock-ipad__screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  border: 0;
  background: transparent;
}

.mock-ipad .device-caption {
  margin-top: 16px;
}

html[data-theme="light"] .mock-ipad {
  filter: drop-shadow(0 18px 28px rgba(20, 28, 40, 0.22));
}

html[data-theme="light"] .mock-ipad__body {
  background: #141416;
  border-color: #3a3a3e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
  .mock-ipad {
    width: min(280px, 88vw);
  }
}

/* —— Tablet / iPad mockup —— */
.mock-tablet {
  margin: 0 auto;
  width: min(820px, 96%);
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.45));
}

.mock-tablet__body {
  position: relative;
  box-sizing: border-box;
  padding: 18px 18px 22px;
  border-radius: 28px;
  background: linear-gradient(165deg, #2a2d33 0%, #14161a 100%);
  border: 1px solid #3a3e46;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mock-tablet__camera {
  width: 8px;
  height: 8px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #0a0c10;
  box-shadow: inset 0 0 0 1px #3a3e46;
}

.mock-tablet__screen {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #0a0e14;
  line-height: 0;
  aspect-ratio: 4 / 3;
}

.mock-tablet__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 0;
}

html[data-theme="light"] .mock-tablet {
  filter: drop-shadow(0 20px 36px rgba(20, 28, 40, 0.22));
}

@media (max-width: 640px) {
  .mock-tablet {
    width: 100%;
  }

  .mock-tablet__body {
    padding: 12px 12px 16px;
    border-radius: 20px;
  }
}

/* Left = GIF (same size), Right = static (slightly larger) */
.mock-phone--rear {
  width: 220px;
  z-index: 1;
}

.mock-phone--front {
  width: 248px;
  z-index: 2;
}

.mock-phone--solo {
  width: min(320px, 78vw);
  margin: 0 auto;
}

.mock-phone--solo .device-caption,
.mock-phone--sm .device-caption {
  margin-top: 16px;
}

.mock-phone--sm {
  width: min(280px, 72vw);
  margin: 0 auto;
}

.mock-phone--rear .mock-phone__body,
.mock-phone--front .mock-phone__body {
  border-radius: 28px;
}

.mock-phone--rear .mock-phone__screen,
.mock-phone--front .mock-phone__screen {
  border-radius: 26px;
}

html[data-theme="light"] .mock-phone {
  filter: drop-shadow(0 18px 28px rgba(20, 28, 40, 0.22));
}

html[data-theme="light"] .mock-phone__body {
  background: #141416;
  border-color: #3a3a3e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (max-width: 980px) {
  .hero-phones:not(.hero-phones--inline) {
    justify-content: center;
    min-height: 440px;
    order: -1;
  }
}

@media (max-width: 640px) {
  .hero-phones:not(.hero-phones--inline) {
    min-height: 380px;
    gap: 10px;
  }

  .mock-phone--rear {
    width: min(150px, 40vw);
  }

  .mock-phone--front {
    width: min(170px, 46vw);
  }
}

/* Legacy device classes — inner pages */
.device {
  margin: 0;
  position: relative;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
}

html[data-theme="light"] .device {
  filter: drop-shadow(0 18px 32px rgba(20, 28, 40, 0.2));
}

.device-shell {
  position: relative;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .device-shell {
  background: #121214;
  border-color: #2a2a2e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device-screen {
  position: relative;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}

.device-screen img,
.device-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: transparent;
  border: 0;
}

.device-iphone {
  width: min(220px, 48vw);
}

.device-iphone .device-shell {
  border-radius: 32px;
  padding: 2px;
}

.device-iphone .device-screen {
  border-radius: 30px;
  aspect-ratio: 9 / 16;
}

.device-iphone .device-island,
.device-iphone .device-home-indicator,
.device-iphone .device-btn {
  display: none !important;
}

.device-iphone.sm {
  width: min(180px, 40vw);
}

.device-iphone.sm .device-shell {
  border-radius: 28px;
}

.device-iphone.sm .device-screen {
  border-radius: 26px;
}

.device-ipad {
  width: min(520px, 92%);
}

.device-ipad .device-shell {
  border-radius: 18px;
  padding: 6px;
}

.device-ipad .device-screen {
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}

.device-ipad.portrait {
  width: min(260px, 58vw);
}

.device-ipad.portrait .device-screen {
  aspect-ratio: 3 / 4;
}

.device-ipad .device-cam {
  display: none;
}

.device-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 420px;
  padding: 16px 8px;
}

.device-stage .device-ipad {
  position: absolute;
  left: 0;
  bottom: 36px;
  width: min(360px, 70%);
  z-index: 1;
  transform: rotate(-4deg);
}

.device-stage .device-iphone {
  position: relative;
  z-index: 2;
  margin-left: 16%;
}

.device-stage-duo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.device-stage-duo .device-iphone:first-child {
  transform: rotate(-8deg) translateY(12px);
}

.device-stage-duo .device-iphone:last-child {
  transform: rotate(7deg);
  margin-left: -24px;
}

.device-caption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.cap-mock {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.cap-mock .device-iphone {
  width: 100%;
  max-width: 150px;
  margin: 0 auto;
}

.cap-mock .device-ipad {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.cap-mock h3 {
  margin-bottom: 8px;
}

.cap-mock p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cap-mock a.more {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--brass);
}

.caps-mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.showcase-ipad-wrap {
  display: flex;
  justify-content: center;
}

.showcase-phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(16px, 2.5vw, 28px);
}

.showcase-phones .mock-phone--demo {
  width: min(220px, 40vw);
  margin: 0;
  flex: 0 0 auto;
}

.showcase-phones .mock-phone__screen {
  aspect-ratio: 9 / 19.5;
  background: #0a0a0c;
  overflow: hidden;
}

.showcase-phones .mock-phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 980px) {
  .device-stage .device-ipad {
    width: min(280px, 68%);
  }

  .device-stage .device-iphone {
    margin-left: 10%;
    width: min(190px, 44vw);
  }

  .caps-mock-grid,
  .showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .device-stage .device-ipad {
    display: none;
  }

  .device-stage .device-iphone {
    margin-left: 0;
  }

  .device-stage-duo .device-iphone:last-child {
    margin-left: 0;
  }

  .cap-mock {
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 12px;
  }
}


/* Feature / demo phones: hug screenshot — no empty black void */
.feat-panel .mock-phone__screen,
.video-demo .mock-phone__screen {
  aspect-ratio: auto;
  height: auto;
}
.feat-panel .mock-phone__screen.feat-video {
  aspect-ratio: 494 / 1079;
  height: auto;
}
.feat-panel .mock-phone__screen img,
.feat-panel .mock-phone__screen video,
.video-demo .mock-phone__screen img,
.video-demo .mock-phone__screen video {
  height: auto;
  width: 100%;
  object-fit: contain;
  object-position: center top;
  aspect-ratio: auto;
}
.feat-panel .mock-phone__screen.feat-video img,
.feat-panel .mock-phone__screen.feat-video video {
  height: 100%;
  object-fit: cover;
}
.video-demo .mock-phone__screen video {
  aspect-ratio: 9 / 16;
  background: transparent;
}

/* —— Laptop mockup (TAK / desktop screens) —— */
.mock-laptop {
  margin: 0;
  width: min(640px, 100%);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.mock-laptop__lid {
  position: relative;
  padding: 10px 10px 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #2a2d33 0%, #1a1c20 100%);
  border: 1px solid #3a3e46;
  border-bottom: 0;
}

.mock-laptop__bezel {
  padding: 8px 8px 10px;
  border-radius: 6px 6px 0 0;
  background: #0d0d0f;
}

.mock-laptop__screen {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #0a0e14;
  line-height: 0;
  aspect-ratio: 16 / 10;
}

.mock-laptop__screen img,
.mock-laptop__screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 0;
}

.mock-laptop__base {
  height: 12px;
  margin: 0 -2%;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #3a3e46 0%, #23262c 55%, #1a1c20 100%);
  border: 1px solid #4a4e56;
  border-top: 0;
  position: relative;
}

.mock-laptop__base span {
  position: absolute;
  left: 50%;
  top: 3px;
  transform: translateX(-50%);
  width: 18%;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: #121418;
}

html[data-theme="light"] .mock-laptop {
  filter: drop-shadow(0 18px 28px rgba(20, 28, 40, 0.22));
}

.mock-phone--tak {
  width: min(260px, 72vw);
  flex-shrink: 0;
}

.mock-phone--tak-ios {
  width: min(280px, 74vw);
}

.mock-phone--tak-ios .mock-phone__body {
  background: #f4f4f5;
  border-color: #e4e4e7;
  padding: 3px;
  border-radius: 36px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .mock-phone--tak-ios .mock-phone__body {
  background: #0a0a0c;
  border-color: #1a1a1e;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px #000;
}

.mock-phone--tak-ios .mock-phone__screen {
  border-radius: 33px;
  aspect-ratio: 337 / 693;
  background: #000;
}

.mock-phone--tak-ios .mock-phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.mock-phone--tak .mock-phone__screen {
  aspect-ratio: 9 / 16;
  background: #0a0e14;
}

.mock-phone--tak .mock-phone__screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.tak-devices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
  margin: 28px 0 32px;
}

.tak-devices__cap {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 720px) {
  .tak-devices {
    flex-direction: column;
    align-items: center;
  }

  .mock-laptop {
    width: min(100%, 520px);
  }

  .mock-phone--tak {
    width: min(220px, 70vw);
  }
}

/* —— iPhone Pro slim frame —— */
.iphone-frame {
  margin: 0;
  width: min(200px, 42vw);
  flex: 0 0 auto;
}

.iphone-frame__shell {
  position: relative;
  box-sizing: border-box;
  /* Pro-thin bezel */
  padding: 3px;
  border-radius: 32px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 18px rgba(255, 255, 255, 0.12),
    0 18px 36px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .iphone-frame__shell {
  background: #1a1a1c;
  border-color: #3a3a3e;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.22);
}

/* Never show CSS Dynamic Island */
.iphone-frame__island {
  display: none !important;
}

.iphone-frame__screen {
  position: relative;
  overflow: hidden;
  border-radius: 29px;
  background: #000;
  aspect-ratio: 9 / 19.5;
  line-height: 0;
}

.iphone-frame__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 0;
  background: #000;
}

/* Screenshots include a baked-in island — crop it under the clip */
.iphone-frame--shot .iphone-frame__media {
  width: 100%;
  height: 108%;
  max-width: none;
  margin-top: -5.2%;
  object-fit: cover;
  object-position: center top;
}

.iphone-frame figcaption {
  margin-top: 12px;
  text-align: center;
}

/* Play affordance on TAK phone video */
.iphone-frame__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 14, 20, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.iphone-frame__play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(10, 14, 20, 0.7);
}

.iphone-frame__play svg {
  display: block;
  margin-left: 3px;
}

.iphone-frame.is-playing .iphone-frame__play {
  display: none;
}

/* Green · brown · golden CTA bar */
.gn-cta-bar {
  display: inline-flex;
  align-items: stretch;
  height: 44px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(26, 22, 14, 0.35);
}

.gn-cta-bar__learn,
.gn-cta-bar__order {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 44px;
  padding: 0 22px;
  margin: 0;
  border: 1px solid #3a2c1c;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}

.gn-cta-bar__learn {
  background: #c9a84c;
  color: #1a160e;
  border-right-width: 0;
}

.gn-cta-bar__learn:hover {
  background: #d4b86a;
  color: #1a160e;
}

.gn-cta-bar__order {
  background: #3d4f28;
  color: #eef2e6;
}

.gn-cta-bar__order:hover {
  background: #556b2f;
  color: #fff;
}

/* TAK phones: same frame + size as Military Symbology demos */
.tak-phone-row .mock-phone--demo,
.tak-devices .mock-phone--demo {
  width: min(280px, 72vw);
  margin: 0;
  flex: 0 0 auto;
}

.tak-phone-row .mock-phone__screen:not(.feat-video),
.tak-devices .mock-phone__screen:not(.feat-video) {
  aspect-ratio: 494 / 1079;
  background: #0a0a0c;
}

.tak-phone-row .mock-phone__screen:not(.feat-video) img,
.tak-devices .mock-phone__screen:not(.feat-video) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.tak-phone-row .mock-phone__screen.feat-video,
.tak-devices .mock-phone__screen.feat-video {
  aspect-ratio: 494 / 1079;
  background: #0a0a0c;
}

.tak-phone-row .mock-phone__screen.feat-video img,
.tak-phone-row .mock-phone__screen.feat-video video,
.tak-devices .mock-phone__screen.feat-video img,
.tak-devices .mock-phone__screen.feat-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* —— Premium laptop (MacBook-style, full screenshot) —— */
.mock-laptop--pro {
  width: min(880px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 28px 48px rgba(26, 22, 14, 0.45));
}

.mock-laptop--pro .mock-laptop__lid {
  padding: 11px 11px 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(165deg, #3a342c 0%, #1e1a14 55%, #15120e 100%);
  border: 1px solid #5c5346;
  border-bottom: 0;
  box-shadow: inset 0 1px 0 rgba(212, 184, 106, 0.12);
}

.mock-laptop--pro .mock-laptop__bezel {
  position: relative;
  padding: 5px 5px 7px;
  border-radius: 4px 4px 0 0;
  background: #0a0907;
}

.mock-laptop--pro .mock-laptop__bezel::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  z-index: 2;
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #2a2620;
  box-shadow: inset 0 0 0 1px #4a453c;
}

.mock-laptop--pro .mock-laptop__screen {
  aspect-ratio: auto;
  border-radius: 2px;
  background: #0a0e14;
  overflow: hidden;
}

.mock-laptop--pro .mock-laptop__screen img,
.mock-laptop--pro .mock-laptop__screen video {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.mock-laptop--pro .mock-laptop__base {
  height: 14px;
  margin: 0 -3.5%;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #4a4338 0%, #2a241c 45%, #1a160e 100%);
  border: 1px solid #5c5346;
  border-top: 0;
}

.mock-laptop--pro .mock-laptop__base span {
  top: 4px;
  width: 16%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #0e0c09;
}

/* TAK tablet: show full screenshot — no crop */
.mock-tablet--tak .mock-tablet__body {
  padding: 10px 10px 12px;
  border-radius: 18px;
  background: #1c1e22;
}

.mock-tablet--tak .mock-tablet__camera {
  margin-bottom: 8px;
  width: 6px;
  height: 6px;
}

.mock-tablet--tak .mock-tablet__screen {
  aspect-ratio: auto;
  background: #0a0e14;
}

.mock-tablet--tak .mock-tablet__screen img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}

@media (max-width: 640px) {
  .iphone-frame {
    width: min(148px, 40vw);
  }

  .iphone-frame__shell {
    padding: 2.5px;
    border-radius: 26px;
  }

  .iphone-frame__screen {
    border-radius: 23.5px;
  }

  .iphone-frame__play {
    width: 48px;
    height: 48px;
  }

  .gn-cta-bar {
    width: min(100%, 320px);
  }

  .gn-cta-bar__learn,
  .gn-cta-bar__order {
    flex: 1;
    min-width: 0;
  }
}

