/* ============================================================
   Winjit US - IoTSense product page
   Follows the AI Framework tool-page pattern: light gradient hero
   with a product visual beside it, one signature diagram per idea,
   a dark comparison band, a navy close. Shared tp- primitives and
   svg.i come from css/tools.css. Prefix here: iot-.
   ============================================================ */

/* ---------- 1. HERO ---------- */
.iot-hero {
  background: linear-gradient(180deg, var(--sky-50) 0%, var(--mint) 100%);
  padding: clamp(28px, 4vw, 44px) 0 clamp(56px, 7vw, 88px);
}
.iot-hero__cols {
  /* the diagram carries more detail than the copy does, so it gets the
     wider of the two columns. 1.15fr is as far as it goes: past that the
     text column drops under ~480px and the h1 breaks to four lines,
     leaving "sensor," stranded on its own. */
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 3vw, 40px); align-items: center;
}

/* the page's own eyebrow: same size and colour as .eyebrow elsewhere,
   set solid rather than tracked out. Text-transform is turned off here
   because this eyebrow is the product name itself ("IoTSense"), not a
   generic label - the sitewide uppercase transform reads it as
   "IOTSENSE", losing the brand's mixed-case styling. */
.iot-hero .eyebrow { letter-spacing: 0; text-transform: none; }

/* the hero headline matches the PredictSense product hero: a fixed 56px
   rather than the fluid tp-title clamp, so the two product pages read as
   one family. The 640px step keeps it from crowding on phones. */
.iot-hero .tp-title { font-size: 56px; line-height: 1.2; }
@media (max-width: 640px) { .iot-hero .tp-title { font-size: 34px; } }

/* eyebrow and sub-heading/deck text set to fixed steps (16px eyebrow,
   20px sub-heading) instead of the shared classes' fluid clamps, held
   constant at every screen size throughout the page. */
.page-product--iotsense .eyebrow { font-size: 16px; }
.page-product--iotsense .tp-sub,
.page-product--iotsense .lp-deck { font-size: 20px; }

/* The product diagram from iotsense.io. This version carries its own
   photographic background, so it needs no panel behind it - just the
   card radius and lift the rest of the page's media uses. */
.iot-hero__visual {
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: 0 24px 50px rgba(9, 9, 11, .22);
}
.iot-hero__visual img { display: block; width: 100%; height: auto; }

/* trust bar: .proof-strip sizes its own icons at 17px and text at 15.5px;
   bumped here to match the PredictSense hero's .ps-trust sizing so the
   two product heroes read as one family. */
.iot-trust li { font-size: 16px; }
.iot-trust svg.i { width: 18px; height: 18px; }

/* the hero is two columns only while there is room for both */
@media (max-width: 960px) {
  .iot-hero__cols { grid-template-columns: 1fr; }
  .iot-hero__visual { max-width: 620px; }
}


/* ---------- 2. AWARD BAR ---------- */
.iot-awardbar { border-bottom: 1px solid var(--strokes); background: #fff; }
.iot-awardbar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(20px, 4vw, 56px); padding: 22px 0;
}
.iot-awardbar__item { display: flex; align-items: center; gap: 12px; max-width: 42ch; }
.iot-awardbar__item svg.i { width: 24px; height: 24px; color: var(--primary); }
.iot-awardbar__item p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--grey-600); }
.iot-awardbar__item b { display: block; font-size: 15px; font-weight: 700; color: var(--grey-900); }

/* ---------- 3. CONNECTIVITY GRAPH ----------
   IoTSense at the centre, six protocol families around it, with
   pulses travelling inward: data arriving, not being served out. */
.iot-graph {
  position: relative; aspect-ratio: 2 / 1; min-height: 360px; max-width: 900px; margin: 0 auto;
  isolation: isolate; border-radius: var(--radius-block); overflow: hidden;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(3, 78, 162, .10), transparent 70%),
    linear-gradient(155deg, var(--soft-blue) 0%, #fff 55%, var(--green-50) 100%);
  border: 1px solid var(--card-border-green);
}
.iot-graph__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.iot-graph__lines path {
  fill: none; stroke: var(--primary); stroke-width: 1; stroke-linecap: round; opacity: .40;
  stroke-dasharray: 100; stroke-dashoffset: 100; vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset 900ms var(--ease-out);
}
.iot-graph.in .iot-graph__lines path { stroke-dashoffset: 0; }
.iot-graph.in .iot-graph__lines path:nth-of-type(1) { transition-delay: 120ms; }
.iot-graph.in .iot-graph__lines path:nth-of-type(2) { transition-delay: 240ms; }
.iot-graph.in .iot-graph__lines path:nth-of-type(3) { transition-delay: 360ms; }
.iot-graph.in .iot-graph__lines path:nth-of-type(4) { transition-delay: 480ms; }
.iot-graph.in .iot-graph__lines path:nth-of-type(5) { transition-delay: 600ms; }
.iot-graph.in .iot-graph__lines path:nth-of-type(6) { transition-delay: 720ms; }
/* No filter here on purpose: a CSS filter on an SVG element driven by
   native SMIL motion (<animateMotion> below, not a CSS animation) is a
   known trigger for GPU rasterisation glitches on some browser/driver
   combinations - the filter's cache doesn't always get invalidated
   correctly every frame, producing stray coloured pixels scattered
   around the element as it moves. The glow read as a nice-to-have, not
   something worth that risk. */
.iot-graph__pulses circle { fill: var(--primary); }

.iot-graph__hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  width: 116px; height: 116px; border-radius: 50%;
  background-image: linear-gradient(150deg, var(--grad-navy-stops));
  box-shadow: 0 18px 40px rgba(3, 78, 162, .32);
  animation: iot-hub-breathe 3s ease-in-out infinite;
}
.iot-graph__hub svg.i { width: 30px; height: 30px; color: #fff; }
.iot-graph__hub span { font-size: 14px; font-weight: 700; color: #fff; }
.iot-graph__hub em { font-style: normal; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--aurora-mint); }
@keyframes iot-hub-breathe {
  0%, 100% { box-shadow: 0 18px 40px rgba(3, 78, 162, .32), 0 0 0 0 rgba(10, 111, 196, .25); }
  50%      { box-shadow: 0 18px 40px rgba(3, 78, 162, .32), 0 0 0 16px rgba(10, 111, 196, 0); }
}

.iot-graph__node {
  position: absolute; z-index: 1; display: flex; align-items: center; gap: 11px;
  width: max-content; max-width: 210px;
  background: #fff; border: 1px solid var(--strokes); border-radius: var(--radius-tile);
  padding: 11px 18px 11px 11px; box-shadow: 0 12px 30px rgba(9, 9, 11, .09);
  opacity: 0; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), box-shadow 200ms ease, border-color 200ms ease;
}
.iot-graph__node:hover { box-shadow: var(--card-hover-shadow); border-color: var(--blue-hover-border); }
.iot-graph__node .tp-icon { width: 40px; height: 40px; margin-bottom: 0; flex: 0 0 auto; border-radius: 11px; }
.iot-graph__node .tp-icon svg.i { width: 19px; height: 19px; }
.iot-graph__node h3 { font-size: 15px; font-weight: 700; margin: 0; line-height: 1.25; }
.iot-graph__node small { display: block; font-size: 12.5px; font-weight: 500; color: var(--grey-500); }

.iot-graph__node--l1 { left: 16%; top: 16%; transform: translate(-50%, -50%) scale(.9); }
.iot-graph__node--l2 { left: 13%; top: 50%; transform: translate(-50%, -50%) scale(.9); }
.iot-graph__node--l3 { left: 16%; top: 84%; transform: translate(-50%, -50%) scale(.9); }
.iot-graph__node--r1 { left: 84%; top: 16%; transform: translate(-50%, -50%) scale(.9); flex-direction: row-reverse; text-align: right; }
.iot-graph__node--r2 { left: 87%; top: 50%; transform: translate(-50%, -50%) scale(.9); flex-direction: row-reverse; text-align: right; }
.iot-graph__node--r3 { left: 84%; top: 84%; transform: translate(-50%, -50%) scale(.9); flex-direction: row-reverse; text-align: right; }
.iot-graph.in .iot-graph__node { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.iot-graph.in .iot-graph__node--l1 { transition-delay: 320ms; }
.iot-graph.in .iot-graph__node--l2 { transition-delay: 440ms; }
.iot-graph.in .iot-graph__node--l3 { transition-delay: 560ms; }
.iot-graph.in .iot-graph__node--r1 { transition-delay: 380ms; }
.iot-graph.in .iot-graph__node--r2 { transition-delay: 500ms; }
.iot-graph.in .iot-graph__node--r3 { transition-delay: 620ms; }

/* below 980px the node cards start colliding with the hub, so the
   diagram is replaced by the same six items as a plain list */
.iot-graph-list { display: none; }
@media (max-width: 980px) {
  .iot-graph { display: none; }
  .iot-graph-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    max-width: 520px; margin: 0 auto; list-style: none; padding: 0;
  }
  .iot-graph-list li {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--strokes); border-radius: var(--radius-icon); padding: 10px 14px 10px 10px;
  }
  .iot-graph-list .tp-icon { width: 36px; height: 36px; margin-bottom: 0; flex: 0 0 auto; border-radius: 10px; }
  .iot-graph-list .tp-icon svg.i { width: 17px; height: 17px; }
  .iot-graph-list h3 { font-size: 14px; font-weight: 700; margin: 0; }
  .iot-graph-list small { display: block; font-size: 12px; color: var(--grey-500); }
}
@media (max-width: 560px) { .iot-graph-list { grid-template-columns: 1fr; } }

/* ---------- 4. EDGE COMPARISON BAND ----------
   Light surface: the contrast between the two routes is carried by
   colour and weight, not by a dark ground. */
.iot-lanes {
  position: relative; overflow: hidden; padding: clamp(64px, 8vw, 104px) 0;
  background: linear-gradient(180deg, var(--sky-50) 0%, var(--mint) 100%);
}
.iot-lanes .container { position: relative; }
.iot-lane {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center;
  padding: 22px 0; border-top: 1px solid var(--blue-wash-border);
}
.iot-lane__label { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-500); }
.iot-lane--with .iot-lane__label { color: var(--forest-ink); }
.iot-lane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.iot-lane li {
  position: relative; padding: 10px 16px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--strokes);
  color: var(--grey-600); font-size: 15px;
}
.iot-lane li + li { margin-left: 24px; }
.iot-lane li + li::before {
  content: "\2192"; position: absolute; left: -24px; top: 50%; transform: translateY(-50%); color: var(--grey-400);
}
.iot-lane li.is-end { border-style: dashed; color: var(--grey-500); }
.iot-lane--with li { border-color: var(--blue-wash-border); color: var(--grey-900); font-weight: 600; }
.iot-lane--with li.is-end {
  border-style: solid; border-color: var(--card-border-green);
  background: var(--green-50); color: var(--forest-ink); font-weight: 700;
}

/* the three figures under the lanes */
.iot-figs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(40px, 5vw, 60px);
}
.iot-fig {
  padding: 28px 26px; border-radius: var(--radius-card);
  background: #fff; border: 1px solid var(--blue-wash-border);
  transition: border-color 200ms ease, transform 250ms var(--ease-out), box-shadow 200ms ease;
}
.iot-fig:hover { border-color: var(--blue-hover-border); transform: translateY(-3px); box-shadow: var(--shadow-blue-lift); }
.iot-fig b {
  display: block; font-size: clamp(36px, 3.8vw, 52px); font-weight: 700; line-height: 1;
  letter-spacing: -.01em; color: var(--primary); margin-bottom: 12px;
}
.iot-fig span { font-size: 15px; line-height: 1.55; color: var(--grey-600); }

@media (max-width: 760px) {
  .iot-lane { grid-template-columns: 1fr; gap: 12px; }
  .iot-figs { grid-template-columns: 1fr; }
}

/* ---------- 5. THE STACK ----------
   Six layers from the machine down to the business systems, wired
   to the scroll: a rail fills as the reader descends and each
   checkpoint lights up as it is passed. Driven by js/iotsense.js,
   which sets --iot-fill and toggles .is-on. */
.iot-stack {
  position: relative; display: grid; gap: 12px;
  max-width: 880px; margin: 0 auto; padding-left: 54px;
}
.iot-stack__rail {
  position: absolute; left: 17px; top: 34px; bottom: 34px; width: 3px;
  border-radius: 3px; background: var(--grey-200); overflow: hidden;
}
.iot-stack__fill {
  display: block; width: 100%; height: var(--iot-fill, 0%);
  background-image: var(--grad-line);
  transition: height 140ms linear;
}
.iot-stack__cap {
  max-width: 880px; margin: 0 auto; padding-left: 54px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-400);
}
.iot-stack__cap--start { margin-bottom: 14px; }
.iot-stack__cap--end { margin-top: 14px; }

.iot-layer {
  position: relative;
  display: grid; grid-template-columns: 54px 200px 1fr; gap: clamp(14px, 1.8vw, 24px); align-items: center;
  padding: 18px clamp(18px, 2vw, 26px);
  background: #fff; border: 1px solid var(--strokes); border-radius: var(--radius-tile);
  /* not-yet-reached rows read as pending, but stay legible: a reader
     who stops mid-section must still be able to read them */
  opacity: .68;
  transition: opacity 420ms var(--ease-out), transform 260ms var(--ease-out),
              box-shadow 260ms ease, border-color 260ms ease;
}
/* the checkpoint dot, sitting on the rail */
.iot-layer::before {
  content: ""; position: absolute; left: -43px; top: 50%; z-index: 1;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 3px solid var(--grey-300);
  transform: translateY(-50%);
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms var(--ease-out);
}
.iot-layer.is-on {
  opacity: 1; border-color: var(--blue-wash-border); box-shadow: var(--shadow-blue-lift);
}
.iot-layer.is-on::before {
  border-color: var(--primary); box-shadow: 0 0 0 5px rgba(3, 78, 162, .12);
  transform: translateY(-50%) scale(1.2);
}
.iot-layer:hover { transform: translateX(4px); border-color: var(--blue-hover-border); }

.iot-layer__n {
  width: 54px; height: 54px; border-radius: var(--radius-icon);
  display: grid; place-items: center; background: var(--grey-100); color: var(--grey-500);
  transition: background-color 300ms ease, color 300ms ease;
}
.iot-layer.is-on .iot-layer__n { background: var(--soft-blue); color: var(--primary); }
.iot-layer__n svg.i { width: 23px; height: 23px; }
.iot-layer h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; }
.iot-layer h3 small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--grey-400); margin-bottom: 4px; }
.iot-layer p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--grey-600); }

@media (max-width: 820px) {
  .iot-stack, .iot-stack__cap { padding-left: 38px; }
  .iot-stack__rail { left: 11px; }
  .iot-layer { grid-template-columns: 46px 1fr; row-gap: 10px; }
  .iot-layer::before { left: -31px; width: 13px; height: 13px; }
  .iot-layer__n { width: 46px; height: 46px; }
  .iot-layer p { grid-column: 1 / -1; }
}

/* no script, or motion turned down: everything simply reads as on */
.no-js .iot-layer, .iot-stack--static .iot-layer { opacity: 1; }

/* ---------- 6. CAPABILITY ROWS ---------- */
.iot-caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.iot-cap {
  padding: 26px 24px; background: #fff;
  border: 1px solid var(--card-border-green); border-radius: var(--radius-card);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
.iot-cap:hover { transform: translateY(-3px); box-shadow: var(--shadow-blue-lift); border-color: var(--blue-hover-border); }
.iot-cap h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.iot-cap p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--grey-600); }

/* on the black band the cards take the midnight vocabulary, matching
   .lp-gov__block used on the landing and industry pages */
.lp-gov .iot-cap { background: var(--midnight-card); border-color: var(--midnight-card-border); }
.lp-gov .iot-cap:hover {
  transform: translateY(-4px); border-color: rgba(0, 237, 135, .55); box-shadow: var(--shadow-proof-glow);
}
.lp-gov .iot-cap h3 { color: #fff; }
.lp-gov .iot-cap p { color: var(--grey-400); }
.lp-gov .iot-cap .tp-icon {
  background: rgba(0, 237, 135, .10); border: 1px solid rgba(0, 237, 135, .22); color: var(--secondary);
}
@media (max-width: 900px) { .iot-caps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .iot-caps { grid-template-columns: 1fr; } }

/* ---------- 7. DEPLOYMENT ---------- */
.iot-deploy { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); }
.iot-dep {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px; border-radius: var(--radius-card);
  background: var(--soft-blue); border: 1px solid var(--blue-wash-border);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.iot-dep:hover { transform: translateY(-3px); box-shadow: var(--shadow-blue-lift); }
.iot-dep h3 { margin: 0; font-size: 17px; font-weight: 700; }
.iot-dep p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--grey-600); }

.iot-clouds {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: clamp(28px, 3vw, 40px); padding: 0; list-style: none;
}
.iot-clouds li {
  background: #fff; border: 1px solid var(--blue-wash-border); color: var(--grey-800);
  border-radius: 999px; padding: 9px 18px; font-size: 15px; font-weight: 500;
}
@media (max-width: 820px) { .iot-deploy { grid-template-columns: 1fr; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .iot-graph__hub { animation: none; }
  .iot-graph__pulses { display: none; }
  .iot-graph__lines path { stroke-dashoffset: 0; transition: none; }
  .iot-graph__node { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: none; }
  .iot-layer { opacity: 1; transition: none; }
  .iot-layer::before { border-color: var(--primary); transition: none; }
  .iot-layer .iot-layer__n { background: var(--soft-blue); color: var(--primary); }
  .iot-stack__fill { height: 100%; transition: none; }
}

/* ---------- 8. CLOSING BAND ----------
   Same treatment the home landing page uses (see the .page-landing
   rules in css/landing.css): the closing CTA and the footer under it
   share one gradient rather than each carrying its own, so the band
   reads as a single surface instead of a light CTA butting against a
   hard blue edge. The CTA therefore has no background and no photo of
   its own; the wrapper below supplies both. */
.page-product--iotsense .lp-close--light { background: transparent; }
.page-product--iotsense .lp-close--light .lp-close__bg { display: none; }
.page-product--iotsense .lp-close--light p { color: rgba(24, 24, 27, .82); }
/* fixed steps matching the PredictSense closing CTA instead of the
   shared classes' fluid clamps. */
.page-product--iotsense .lp-close h2 { font-size: 56px; line-height: 1.2; }
@media (max-width: 640px) { .page-product--iotsense .lp-close h2 { font-size: 34px; } }
.page-product--iotsense .lp-close p { font-size: 20px; }
/* every word in the closing headline reads as plain black, not the
   sitewide blue-to-green .grad-text highlight. */
.page-product--iotsense .lp-close--light h2,
.page-product--iotsense .lp-close--light h2 .grad-text {
  color: #000; -webkit-text-fill-color: #000;
  background: none; -webkit-background-clip: initial; background-clip: initial;
}
.page-product--iotsense .footer-wrap--lp {
  background: linear-gradient(180deg,
    rgba(0, 237, 135, 0) 0%,
    rgba(0, 237, 135, .2) 18%,
    #034EA2 72%,
    #000C1A 100%);
}
.page-product--iotsense .lp-close__inner { padding-bottom: clamp(58px, 7.5vw, 105px); }
.page-product--iotsense .ps-footer { padding-top: 28px; }
