/* ==========================================================================
   INSPECTION PAGE — Marine Vessel Inspection Management
   Standalone sub-page (inspection/index.html). Alternating light marine grounds,
   hand-built dashboard mocks (fleet, machinery, pre-departure, hull, deck),
   a phone mock, resources, testimonials and a final CTA. inspection.js adds
   .is-in per .ins-reveal for the scroll entrance.
   ========================================================================== */

#inspection-page-root,
#maintenance-page-root,
#predeparture-page-root,
#hull-page-root,
#deck-page-root {
  /* no padding here — the hero's own ground runs up behind the floating
     header pill (the clearance lives in .ins-hero's padding-top) */
  font-family: 'Outfit', 'Inter', sans-serif;
  color: #0b2239;
}

/* ---------------- shared section shell ---------------- */

.ins-sec {
  position: relative;
  padding: clamp(64px, 9vh, 108px) clamp(16px, 4vw, 56px);
  overflow: hidden;
}

.ins-sec--tint { background: linear-gradient(180deg, #f2f7fc 0%, #ffffff 55%, #f6fafd 100%); }
.ins-sec--white { background: #ffffff; }

.ins-wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }

.ins-eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(34, 54, 74, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2b5f8f;
}

.ins-title {
  margin: 14px 0 0;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #16324f 0%, #2b5f8f 45%, #4a90c2 80%, #7db8e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ins-para {
  margin: 16px 0 0;
  max-width: 720px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: #47617c;
}

.ins-center { text-align: center; }
.ins-center .ins-para { margin-left: auto; margin-right: auto; text-wrap: balance; }

/* scroll entrance */
.ins-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.7, 0.3, 1); }
.ins-reveal.is-in { opacity: 1; transform: none; }

/* ---------------- buttons ---------------- */

.ins-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; }

/* centered button row under card grids */
.ins-actions--center { justify-content: center; margin-top: clamp(32px, 5vh, 48px); }

.ins-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 190px;
  height: 54px;
  padding: 0 30px;
  border: 1px solid transparent; /* both variants carry a border so heights match exactly */
  border-radius: 999px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.ins-btn--primary {
  color: #ffffff;
  background: linear-gradient(120deg, #16324f 0%, #2b5f8f 60%, #4a90c2 100%);
  box-shadow: 0 12px 28px rgba(22, 50, 79, 0.28);
}

.ins-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(22, 50, 79, 0.36); }

.ins-btn--ghost {
  color: #16324f;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(22, 50, 79, 0.22);
}

.ins-btn--ghost:hover { transform: translateY(-2px); background: #ffffff; }

/* ---------------- HERO ---------------- */

.ins-hero {
  background:
    radial-gradient(52% 42% at 14% 12%, rgba(125, 184, 232, 0.22), transparent 70%),
    radial-gradient(44% 36% at 88% 20%, rgba(74, 144, 194, 0.14), transparent 70%),
    linear-gradient(180deg, #eef5fb 0%, #ffffff 62%, #f6fafd 100%);
  text-align: center;
  /* bar offset + bar height + the hero's own breathing room, so the gradient
     fills the space behind the floating header instead of bare body */
  padding-top: calc(var(--mia-bar-top, 12px) + 64px + clamp(56px, 8vh, 92px));
}

.ins-hero .ins-title { font-size: clamp(32px, 4.2vw, 58px); max-width: 900px; margin-left: auto; margin-right: auto; }

.ins-hero .ins-para {
  max-width: 760px;
  /* the box itself must be centered, not just the text inside it */
  margin-left: auto;
  margin-right: auto;
  /* even out the centered line lengths instead of a long-short-shorter stagger */
  text-wrap: balance;
}

.ins-hero .ins-actions { justify-content: center; }

.ins-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 4vw, 56px);
  margin-top: clamp(30px, 5vh, 48px);
}

.ins-hero__stat { display: flex; flex-direction: column; gap: 2px; }

.ins-hero__stat strong {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  color: #16324f;
}

.ins-hero__stat span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: 0.06em;
  color: #47617c;
}

/* ---------------- dashboard mock frame ---------------- */

.ins-shot {
  margin: clamp(34px, 5vh, 54px) auto 0;
  max-width: 980px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(22, 50, 79, 0.1);
  box-shadow: 0 30px 70px rgba(22, 50, 79, 0.14);
  overflow: hidden;
  text-align: left;
}

.ins-shot__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(120deg, #16324f, #2b5f8f);
}

.ins-shot__dots { display: flex; gap: 6px; }
.ins-shot__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.ins-shot__dots i:first-child { background: #ff8a80; }
.ins-shot__dots i:nth-child(2) { background: #ffd180; }
.ins-shot__dots i:nth-child(3) { background: #b9f6ca; }

.ins-shot__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #dcebf7;
}

.ins-shot__flag {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #04370f;
  background: #b9f6ca;
}

.ins-shot__body { padding: clamp(16px, 2.4vw, 28px); display: grid; gap: clamp(14px, 2vw, 22px); }

/* stat tiles */
.ins-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 16px); }

.ins-tile {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #f2f7fc;
  border: 1px solid rgba(22, 50, 79, 0.08);
}

.ins-tile strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
  color: #16324f;
}

.ins-tile span { font-size: 12px; letter-spacing: 0.04em; color: #47617c; }

.ins-tile--good strong { color: #0f7a3d; }
.ins-tile--info strong { color: #2b5f8f; }
.ins-tile--gold strong { color: #a86a00; }

/* panel with heading */
.ins-panel__head {
  margin: 0 0 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2b5f8f;
}

/* vessel / equipment rows */
.ins-rows { display: grid; gap: 10px; }

.ins-row {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fbfdff;
  border: 1px solid rgba(22, 50, 79, 0.09);
}

.ins-row__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.ins-row__name { font-weight: 700; font-size: 14.5px; color: #16324f; }
.ins-row__id { font-family: 'Space Grotesk', sans-serif; font-size: 12px; color: #7b93a9; }

.ins-pill {
  margin-left: auto;
  padding: 3px 11px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ins-pill--ok { background: #dff6e6; color: #0f7a3d; }
.ins-pill--warn { background: #fff3d6; color: #a86a00; }
.ins-pill--info { background: #e1eefb; color: #2b5f8f; }

.ins-row__meta { font-size: 12.5px; line-height: 1.55; color: #47617c; }
.ins-row__meta b { color: #16324f; font-weight: 600; }

.ins-row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.ins-row__tags i {
  font-style: normal;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11px;
  background: #eef5fb;
  color: #2b5f8f;
  border: 1px solid rgba(43, 95, 143, 0.14);
}

/* progress bars */
.ins-bars { display: grid; gap: 12px; }

.ins-bar__lbl {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #47617c;
  margin-bottom: 5px;
}

.ins-bar__lbl b { color: #16324f; font-weight: 600; }

.ins-bar__track { height: 8px; border-radius: 999px; background: #e4edf5; overflow: hidden; }

.ins-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2b5f8f, #7db8e8);
  transform-origin: left;
}

/* two-column body inside a shot */
.ins-shot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 22px); }

/* small summary tiles (2-up) */
.ins-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ins-duo .ins-tile { text-align: center; }

.ins-note {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  color: #0f7a3d;
  background: #e9f9ee;
  border: 1px solid rgba(15, 122, 61, 0.16);
}

/* ---------------- 3 feature cards ---------------- */

.ins-cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(30px, 5vh, 46px);
}

.ins-card {
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 50, 79, 0.1);
  box-shadow: 0 18px 44px rgba(22, 50, 79, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ins-card:hover { transform: translateY(-5px); box-shadow: 0 26px 54px rgba(22, 50, 79, 0.14); }

.ins-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e1eefb, #f2f7fc);
  border: 1px solid rgba(43, 95, 143, 0.16);
  margin-bottom: 16px;
}

.ins-card__icon svg { width: 26px; height: 26px; stroke: #2b5f8f; }

.ins-card h3 {
  margin: 0 0 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(17px, 1.5vw, 20px);
  letter-spacing: -0.01em;
  color: #16324f;
}

.ins-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: #47617c; }

/* ---------------- split sections (copy + mock) ---------------- */

.ins-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 4vw, 60px);
  align-items: center;
}

.ins-split__copy .ins-title { font-size: clamp(24px, 2.6vw, 38px); }

.ins-ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }

.ins-ticks li {
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  line-height: 1.6;
  color: #35506b;
}

.ins-ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b5f8f, #4a90c2);
}

.ins-ticks li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  width: 8px;
  height: 4.5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* mock inside a split column — full width of its column */
.ins-split .ins-shot { margin: 0; max-width: none; }

/* flipped variant — mock on the left at desktop widths */
.ins-split--flip .ins-split__stage { order: -1; }

/* ---- equal-height split (all pages) ----
   The copy column sets the row height; the mock fills EXACTLY that height and
   its body scrolls internally (slim scrollbar) so nothing is cut off — like a
   real app window. The phone is scaled to the same height. Only for the
   side-by-side layout — stacked layouts keep the mock's natural size. */
@media (min-width: 961px) {
  .ins-split { align-items: stretch; }
  /* the copy sets the height; a floor keeps short sections from getting a
     stubby window — the copy is then centred against it */
  .ins-split__stage { position: relative; min-height: 440px; }
  .ins-split__copy { align-self: center; }

  .ins-split .ins-shot {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
  }
  .ins-split .ins-shot__bar { flex: 0 0 auto; }
  .ins-split .ins-shot__body {
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(43, 95, 143, 0.35) transparent;
  }
  .ins-split .ins-shot__body::-webkit-scrollbar { width: 8px; }
  .ins-split .ins-shot__body::-webkit-scrollbar-track { background: transparent; }
  .ins-split .ins-shot__body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(43, 95, 143, 0.35);
    border: 2px solid #ffffff;
  }
  .ins-split .ins-shot__body::-webkit-scrollbar-thumb:hover { background: rgba(43, 95, 143, 0.6); }
  [data-theme="dark"] .ins-split .ins-shot__body { scrollbar-color: rgba(125, 184, 232, 0.4) transparent; }
  [data-theme="dark"] .ins-split .ins-shot__body::-webkit-scrollbar-thumb { background: rgba(125, 184, 232, 0.4); border-color: #0a1e33; }

  /* phone frame driven by the row height (screenshot is 738 × 1600) */
  .ins-phone-stage { display: block; }
  .ins-phone {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: min(100%, 660px);
    width: auto;
    aspect-ratio: 738 / 1600;
    box-sizing: border-box;
  }
  .ins-phone__screen--img { height: 100%; }
  .ins-phone__screen--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }
}

/* ---------------- app store badges ---------------- */

.ins-stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.ins-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 22px 11px 16px;
  border-radius: 14px;
  background: #10233a;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(16, 35, 58, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ins-store:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(16, 35, 58, 0.36); }

.ins-store svg { width: 26px; height: 26px; flex-shrink: 0; }

.ins-store span { display: flex; flex-direction: column; line-height: 1.15; }

.ins-store small {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9db4c9;
}

.ins-store strong {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .ins-store { background: #0e2740; border-color: rgba(125, 184, 232, 0.2); }

/* ---------------- phone mock ---------------- */

.ins-phone-stage { display: grid; place-items: center; }

.ins-phone {
  width: min(320px, 82vw);
  border-radius: 38px;
  padding: 12px;
  background: #10233a;
  box-shadow: 0 34px 70px rgba(22, 50, 79, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.ins-phone__screen {
  border-radius: 28px;
  background: #f4f8fc;
  overflow: hidden;
  padding-bottom: 18px;
}

/* real app screenshot fills the screen edge-to-edge */
.ins-phone__screen--img { padding-bottom: 0; }
.ins-phone__screen--img img { display: block; width: 100%; height: auto; }

.ins-phone__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 12px;
  background: linear-gradient(120deg, #16324f, #2b5f8f);
}

.ins-phone__top b { color: #ffffff; font-size: 14px; font-weight: 700; }

.ins-phone__dot {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10.5px;
  color: #b9f6ca;
}

.ins-phone__dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }

.ins-phone__body { padding: 14px 14px 0; display: grid; gap: 11px; }

.ins-phone__card {
  padding: 12px 13px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(22, 50, 79, 0.09);
  box-shadow: 0 8px 18px rgba(22, 50, 79, 0.06);
}

.ins-phone__lbl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7b93a9;
  margin-bottom: 5px;
}

.ins-phone__card b { display: block; font-size: 13.5px; color: #16324f; }

.ins-phone__card small { font-size: 11.5px; color: #47617c; }

.ins-phone__prog { margin-top: 8px; }

.ins-phone__areas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.ins-phone__area {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 11px;
  background: #e9f9ee;
  border: 1px solid rgba(15, 122, 61, 0.14);
  font-size: 12px;
  font-weight: 600;
  color: #0f7a3d;
}

.ins-phone__area i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #0f7a3d;
  color: #fff;
  font-size: 10px;
}

.ins-phone__area--busy { background: #e1eefb; border-color: rgba(43, 95, 143, 0.16); color: #2b5f8f; }
.ins-phone__area--busy i { background: #2b5f8f; }

/* ---------------- resources ---------------- */

.ins-res {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(30px, 5vh, 46px);
}

/* image-first card: photo fills the card, text overlays a bottom scrim */
.ins-res__card {
  position: relative;
  display: block;
  aspect-ratio: 0.88;
  max-height: 430px;
  text-decoration: none;
  border-radius: 22px;
  overflow: hidden;
  background: #0a1e33;
  box-shadow: 0 16px 40px rgba(22, 50, 79, 0.12);
  transition: transform 0.55s cubic-bezier(0.22, 0.7, 0.3, 1), box-shadow 0.55s ease;
}

.ins-res__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(22, 50, 79, 0.2);
}

.ins-res__card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.ins-res__card:hover > img { transform: scale(1.04); }

/* scrim so the white text reads over any photo */
.ins-res__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 45, 0.38) 0%, rgba(10, 25, 45, 0) 32%, rgba(8, 20, 38, 0.08) 52%, rgba(8, 20, 38, 0.9) 100%);
  pointer-events: none;
}

/* glass tag, top-left */
.ins-res__tag {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  padding: 6px 13px;
  border-radius: 999px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ins-res__overlay {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 18px;
  text-align: left;
}

.ins-res__text { flex: 1; min-width: 0; }

.ins-res__text h3 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.22;
  color: #ffffff;
}

/* description slides up on hover (always visible on touch screens) */
.ins-res__text p {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  transition: max-height 0.55s cubic-bezier(0.22, 0.7, 0.3, 1), opacity 0.45s ease 0.08s, margin 0.55s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.ins-res__card:hover .ins-res__text p { max-height: 96px; opacity: 1; margin-top: 8px; }

@media (hover: none) {
  .ins-res__text p { max-height: none; opacity: 1; margin-top: 8px; }
}

/* circular glass arrow button, bottom-right (matches the tag) */
.ins-res__go {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.45s ease, border-color 0.45s ease;
}

.ins-res__go svg { width: 18px; height: 18px; transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.3, 1); }

.ins-res__card:hover .ins-res__go {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.ins-res__card:hover .ins-res__go svg { transform: translateX(3px); }

/* ---------------- testimonials ---------------- */

.ins-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(30px, 5vh, 46px);
}

.ins-quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(22, 50, 79, 0.1);
  box-shadow: 0 18px 44px rgba(22, 50, 79, 0.08);
}

.ins-quote p { margin: 0; font-size: 14.5px; line-height: 1.7; color: #35506b; }

.ins-quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }

.ins-quote__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b5f8f, #4a90c2);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14px;
  flex-shrink: 0;
}

.ins-quote__who b { display: block; font-size: 14px; color: #16324f; }
.ins-quote__who span { font-size: 12.5px; color: #7b93a9; }

/* ---------------- final CTA ---------------- */

.ins-cta { background: linear-gradient(180deg, #f6fafd 0%, #eef5fb 100%); }

.ins-cta__panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
  color: #e6eef7;
  background:
    radial-gradient(60% 90% at 12% 0%, rgba(74, 144, 194, 0.4), transparent 60%),
    radial-gradient(50% 80% at 88% 100%, rgba(125, 184, 232, 0.22), transparent 60%),
    linear-gradient(135deg, #0d2136 0%, #16324f 55%, #204b74 100%);
  box-shadow: 0 34px 80px rgba(13, 33, 54, 0.35);
}

.ins-cta__panel .ins-title {
  background: linear-gradient(120deg, #ffffff 10%, #bcd9f2 60%, #7db8e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.ins-cta__panel .ins-para { color: #b9cfe4; margin-left: auto; margin-right: auto; }
.ins-cta__panel .ins-actions { justify-content: center; }

.ins-cta__panel .ins-btn--primary {
  background: #ffffff;
  color: #16324f;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.ins-cta__panel .ins-btn--ghost { color: #e6eef7; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.ins-cta__panel .ins-btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }

.ins-cta__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(28px, 4vh, 42px);
  text-align: left;
}

/* white cards on the dark CTA panel — both cards share one grid:
   label row · chip grid · action row pinned to the bottom, so the two
   cards mirror each other line for line */
.ins-cta__col {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(22, 50, 79, 0.08);
  box-shadow: 0 18px 40px rgba(4, 16, 29, 0.3);
}

.ins-cta__col h3 {
  margin: 0 0 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2b5f8f;
}

/* chips: an even 3-column grid (equal widths, centred text) instead of a
   ragged wrap — both cards get identical rows and columns */
.ins-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ins-chips span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;        /* long labels wrap to two even lines, never clipped */
  color: #16324f;
  background: rgba(43, 95, 143, 0.08);
  border: 1px solid rgba(22, 50, 79, 0.16);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ins-chips span:hover { background: rgba(43, 95, 143, 0.14); border-color: rgba(22, 50, 79, 0.28); transform: translateY(-1px); }

.ins-cta__col .ins-chips { margin-bottom: 22px; }

/* action row — store badges and the portal button share one height and
   radius, and both sit on the same bottom line */
.ins-cta__stores { margin-top: auto; gap: 10px; }

.ins-cta__stores .ins-store {
  box-sizing: border-box;
  height: 48px;
  padding: 0 16px 0 13px;
  border-radius: 14px;
}
.ins-cta__stores .ins-store svg { width: 22px; height: 22px; }
.ins-cta__stores .ins-store strong { font-size: 14px; }
.ins-cta__stores .ins-store small { font-size: 9.5px; }

/* portal button inside the Web Dashboard card — same 48px line as the badges */
.ins-cta__portal {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  height: 48px;
  padding: 0 26px;
  border-radius: 14px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(120deg, #16324f 0%, #2b5f8f 60%, #4a90c2 100%);
  box-shadow: 0 12px 28px rgba(22, 50, 79, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ins-cta__portal:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(22, 50, 79, 0.36); }

.ins-cta__portal svg { width: 16px; height: 16px; transition: transform 0.25s ease; }

.ins-cta__portal:hover svg { transform: translateX(3px); }

/* ==========================================================================
   DARK THEME
   ========================================================================== */

[data-theme="dark"] #inspection-page-root,
[data-theme="dark"] #maintenance-page-root { color: #e6eef7; }

[data-theme="dark"] .ins-sec--tint { background: linear-gradient(180deg, #061524 0%, #04101d 55%, #071829 100%); }
[data-theme="dark"] .ins-sec--white { background: #04101d; }

[data-theme="dark"] .ins-hero {
  background:
    radial-gradient(52% 42% at 14% 12%, rgba(43, 95, 143, 0.3), transparent 70%),
    radial-gradient(44% 36% at 88% 20%, rgba(74, 144, 194, 0.16), transparent 70%),
    linear-gradient(180deg, #071829 0%, #04101d 62%, #061524 100%);
}

[data-theme="dark"] .ins-eyebrow { background: rgba(9, 26, 43, 0.7); border-color: rgba(125, 184, 232, 0.22); color: #7db8e8; }

[data-theme="dark"] .ins-title {
  background: linear-gradient(120deg, #dcebf7 0%, #9cc4e8 50%, #7db8e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="dark"] .ins-para { color: #9db4c9; }
[data-theme="dark"] .ins-ticks li { color: #b9cfe4; }

[data-theme="dark"] .ins-hero__stat strong { color: #dcebf7; }
[data-theme="dark"] .ins-hero__stat span { color: #9db4c9; }

[data-theme="dark"] .ins-btn--ghost { color: #dcebf7; background: rgba(9, 26, 43, 0.7); border-color: rgba(125, 184, 232, 0.3); }
[data-theme="dark"] .ins-btn--ghost:hover { background: rgba(16, 40, 63, 0.9); }

[data-theme="dark"] .ins-shot { background: #0a1e33; border-color: rgba(125, 184, 232, 0.16); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
[data-theme="dark"] .ins-tile { background: #0e2740; border-color: rgba(125, 184, 232, 0.12); }
[data-theme="dark"] .ins-tile strong { color: #dcebf7; }
[data-theme="dark"] .ins-tile span { color: #9db4c9; }
[data-theme="dark"] .ins-tile--good strong { color: #4ade80; }
[data-theme="dark"] .ins-tile--info strong { color: #7db8e8; }
[data-theme="dark"] .ins-tile--gold strong { color: #ffd180; }

[data-theme="dark"] .ins-row { background: #0e2740; border-color: rgba(125, 184, 232, 0.12); }
[data-theme="dark"] .ins-row__name { color: #dcebf7; }
[data-theme="dark"] .ins-row__meta { color: #9db4c9; }
[data-theme="dark"] .ins-row__meta b { color: #dcebf7; }
[data-theme="dark"] .ins-row__tags i { background: #10314f; color: #9cc4e8; border-color: rgba(125, 184, 232, 0.18); }

[data-theme="dark"] .ins-pill--ok { background: rgba(74, 222, 128, 0.14); color: #4ade80; }
[data-theme="dark"] .ins-pill--warn { background: rgba(255, 209, 128, 0.14); color: #ffd180; }
[data-theme="dark"] .ins-pill--info { background: rgba(125, 184, 232, 0.14); color: #7db8e8; }

[data-theme="dark"] .ins-bar__lbl { color: #9db4c9; }
[data-theme="dark"] .ins-bar__lbl b { color: #dcebf7; }
[data-theme="dark"] .ins-bar__track { background: #10314f; }

[data-theme="dark"] .ins-note { background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.2); color: #4ade80; }

[data-theme="dark"] .ins-card,
[data-theme="dark"] .ins-quote { background: rgba(10, 30, 51, 0.85); border-color: rgba(125, 184, 232, 0.14); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35); }
[data-theme="dark"] .ins-card h3 { color: #dcebf7; }
[data-theme="dark"] .ins-card p, [data-theme="dark"] .ins-quote p { color: #9db4c9; }
[data-theme="dark"] .ins-card__icon { background: #0e2740; border-color: rgba(125, 184, 232, 0.2); }
[data-theme="dark"] .ins-card__icon svg { stroke: #7db8e8; }

[data-theme="dark"] .ins-quote__who b { color: #dcebf7; }

[data-theme="dark"] .ins-res__card { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); border: 1px solid rgba(125, 184, 232, 0.14); }
[data-theme="dark"] .ins-res__card:hover { box-shadow: 0 26px 54px rgba(0, 0, 0, 0.6); }

[data-theme="dark"] .ins-phone__screen { background: #0e2740; }
[data-theme="dark"] .ins-phone__card { background: #0a1e33; border-color: rgba(125, 184, 232, 0.14); }
[data-theme="dark"] .ins-phone__card b { color: #dcebf7; }
[data-theme="dark"] .ins-phone__card small { color: #9db4c9; }

[data-theme="dark"] .ins-cta { background: linear-gradient(180deg, #061524 0%, #04101d 100%); }

/* ---------------- responsive ---------------- */

@media (max-width: 960px) {
  .ins-cards3, .ins-quotes { grid-template-columns: 1fr 1fr; }
  .ins-res { grid-template-columns: 1fr 1fr; }
  .ins-split { grid-template-columns: 1fr; }
  /* stacked: copy always reads first */
  .ins-split--flip .ins-split__stage { order: 0; }
  .ins-shot__cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ins-tiles { grid-template-columns: 1fr 1fr; }
  .ins-cards3, .ins-quotes, .ins-res, .ins-cta__cols { grid-template-columns: 1fr; }
  .ins-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* resources: one swipeable row instead of a tall stack. Bleeds to the
     section edges (negative margin = .ins-sec side padding) so the next card
     peeks in from the right; scroll-padding keeps snapped cards aligned with
     the heading. The lone-card variant (.ins-res--single) stays a grid. */
  .ins-res:not(.ins-res--single) {
    --edge: clamp(16px, 4vw, 56px);
    display: flex;
    gap: 12px;
    margin-left: calc(var(--edge) * -1);
    margin-right: calc(var(--edge) * -1);
    padding: 6px var(--edge) 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--edge);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .ins-res:not(.ins-res--single)::-webkit-scrollbar { display: none; }
  .ins-res:not(.ins-res--single) .ins-res__card {
    flex: 0 0 auto;
    width: min(78vw, 320px);
    scroll-snap-align: start;
  }
  /* no hover lift on touch — it would fight the snap scroll */
  .ins-res:not(.ins-res--single) .ins-res__card:hover { transform: none; }
  .ins-pill { margin-left: 0; }
  /* stacked buttons: one clean column, equal widths */
  .ins-actions { flex-direction: column; }
  .ins-actions .ins-btn { width: 100%; max-width: 340px; }
}
