/* ============================================================
   Casava IT — NetRecon product page (netrecon.html)
   Loaded AFTER css/style.css, which owns every design token.
   This file adds only the components the product page needs and
   must never define a color of its own — all values are var()
   references into style.css's :root.
   Section order mirrors the page order, same as style.css.
   ============================================================ */

/* ---------- Sub-page top bar ---------- */
.subnav {
  position: relative; z-index: 8;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0 6px;
}
.subnav img { height: 54px; }
.subnav .back {
  font-family: var(--mono); font-size: 13px; color: var(--sky-700);
  text-decoration: none; border-bottom: 1px dashed var(--line-2); padding-bottom: 2px;
}
.subnav .back:hover { border-color: var(--sky-500); }

/* ---------- Product hero (compact variant of .hero) ---------- */
.hero-app { padding: 24px 0 0; }
.hero-app .hero-copy { padding: 26px 0 8px; }
.hero-app h1 { font-size: clamp(36px, 6vw, 68px); }
.hero-app .badges {
  margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.hero-app .badges .pill { background: var(--bg); border-color: var(--line-2); font-size: 13px; }

/* Highlighter stroke on the product name in the hero lead.
   An inline background-image (not a pseudo-element) so it sits behind the
   glyphs, wraps correctly and needs no positioning context. The gradient is
   drawn at a slight angle with hard stops and the radii are deliberately
   mismatched, so the ends taper and the top/bottom edges are uneven — a
   marker overshooting the letters rather than a CSS box.
   Colour: var(--marker) only; the mix keeps the ink translucent.
   The span forces its own ink colour because .lead runs at opacity .82. */
.hero-app .marker {
  color: var(--ink); font-weight: 600;
  padding: 0 .22em .04em; margin: 0 -.14em;
  border-radius: .3em .75em .35em .6em / .95em .4em .85em .5em;
  /* Fallback for engines without color-mix(): opaque marker ink. */
  background-image: linear-gradient(101deg,
    transparent 1%, var(--marker) 2.4%,
    var(--marker) 96%, transparent 99.4%);
  background-image: linear-gradient(101deg,
    transparent 1%,
    color-mix(in srgb, var(--marker) 80%, transparent) 2.4%,
    color-mix(in srgb, var(--marker) 88%, transparent) 44%,
    color-mix(in srgb, var(--marker) 76%, transparent) 93%,
    transparent 99.4%);
  background-repeat: no-repeat;
  background-size: 100% 86%;
  background-position: 0 66%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: marker-draw .62s cubic-bezier(.22,.61,.36,1) .3s both;
}
@keyframes marker-draw {
  from { background-size: 0% 86%; }
  to   { background-size: 100% 86%; }
}

.hero-app .hero-art { position: relative; z-index: 4; padding: 26px 0 0; }
.hero-app .hero-art svg { width: 100%; height: auto; display: block; }

/* ---------- Scope & safety panel ---------- */
.scope {
  border: 1px solid var(--line-2); border-left: 5px solid var(--sky-500);
  border-radius: var(--radius); background: var(--bg-2);
  padding: 30px 32px; box-shadow: var(--shadow);
}
.scope h3 {
  font-size: 20px; letter-spacing: -.01em; margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.scope h3 svg { width: 22px; height: 22px; color: var(--sky-600); flex: none; }
.scope p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 12px; max-width: 78ch; }
.scope p:last-child { margin-bottom: 0; }
.scope .flag {
  font-family: var(--mono); font-size: 12px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--sky-800); background: var(--sky-100); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 3px 11px; display: inline-block; margin-bottom: 12px;
}

/* ---------- App screenshots inside a feature column ----------
   Real captures from the Android build, exported at 640px wide — 2x the
   widest slot they ever occupy. JPEG rather than PNG: the app UI is a dark
   gradient, and at this size JPEG lands at about a third of the bytes with
   no artefacts visible on the mono type. Every <img> carries explicit
   width/height so the column does not reflow as they load.
   minmax(200px, …) is what caps the row at two screenshots on desktop: a
   third would need 632px in a 529px column, so auto-fit wraps it instead.
   ------------------------------------------------------------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px; margin-bottom: 22px;
}
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto;
  background: var(--code);
  border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: var(--shadow);
}
.shot figcaption {
  margin-top: 9px;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.5;
  color: var(--muted-2);
}

/* ---------- Spec list inside a feature column ---------- */
.spec { display: grid; gap: 14px; }
.spec .row {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.spec .row b { display: block; font-size: 15px; margin-bottom: 3px; }
.spec .row span { color: var(--muted); font-size: 14px; }
.spec .row code {
  font-family: var(--mono); font-size: 12.5px; color: var(--sky-800);
  background: var(--sky-50); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
}

/* ---------- Free vs Pro ---------- */
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; text-align: left; }
.tier {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  padding: 28px; box-shadow: var(--shadow);
}
.tier.pro { border-color: var(--sky-300); box-shadow: var(--shadow-h); }
.tier .name { font-family: var(--mono); font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--sky-700); }
.tier .price { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; margin: 10px 0 2px; }
.tier .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier .price-note { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.tier p.sum { color: var(--muted); font-size: 15px; margin: 14px 0 0; }

.cmp-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.cmp { width: 100%; border-collapse: collapse; background: var(--bg); font-size: 15px; min-width: 620px; }
table.cmp caption {
  caption-side: top; text-align: left; padding: 18px 22px 0;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--muted-2);
}
table.cmp th, table.cmp td { text-align: left; padding: 13px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--sky-800); background: var(--sky-50); border-bottom: 1px solid var(--line-2);
}
table.cmp thead th:nth-child(2), table.cmp thead th:nth-child(3) { width: 130px; text-align: center; }
table.cmp td:nth-child(2), table.cmp td:nth-child(3) { text-align: center; }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody th { font-weight: 600; color: var(--ink-2); }
table.cmp tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
table.cmp tr.group th {
  background: var(--bg-2); font-family: var(--mono); font-size: 12px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--sky-700); padding-top: 15px; padding-bottom: 15px;
}
.yes { color: var(--sky-600); font-weight: 700; }
.no  { color: var(--muted-2); }
.lim { font-family: var(--mono); font-size: 12.5px; color: var(--sky-800); }

/* ---------- Platform availability ---------- */
.plat .card .ico svg { width: 24px; height: 24px; }
.plat .status {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase;
  border-radius: 999px; padding: 3px 11px; display: inline-block; margin-top: 14px;
  border: 1px solid var(--line-2); color: var(--sky-800); background: var(--sky-50);
}
.plat .status.wip { color: var(--muted); background: var(--bg-2); border-color: var(--line); }

/* ---------- Android vs iOS comparison ----------
   Reuses table.cmp (the Free vs Pro table) so it degrades exactly the same
   way; .pcmp only widens the iOS column and left-aligns its prose. The four
   .st chips must stay distinguishable without relying on colour alone — the
   palette is monochrome sky, so each one carries its own wording, glyph and
   border style. */
.pcmp-head { margin-top: 56px; text-align: left; }
.pcmp-head h3 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.01em; }
.pcmp-head p { color: var(--muted); font-size: 15.5px; margin-top: 8px; max-width: 80ch; }
.pcmp-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.pcmp-legend li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }

.st {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase;
  border-radius: 999px; padding: 3px 11px; display: inline-block; white-space: nowrap;
}
.st-yes   { color: var(--sky-800); background: var(--sky-50); border: 1px solid var(--line-2); }
.st-wip   { color: var(--muted);   background: var(--bg-2);   border: 1px dashed var(--line-2); }
.st-never { color: var(--ink-2);   background: var(--bg-2);   border: 1px solid var(--muted-2); font-weight: 600; }
.st-open  { color: var(--sky-700); background: var(--bg);     border: 1px dotted var(--sky-300); }

table.cmp.pcmp { min-width: 720px; }
table.pcmp thead th:nth-child(2) { width: 120px; }
table.pcmp thead th:nth-child(3) { width: 46%; text-align: left; }
table.pcmp td:nth-child(3) { text-align: left; }
table.pcmp .why {
  display: block; color: var(--muted); font-size: 13px; line-height: 1.55;
  margin-top: 6px; text-align: left;
}

/* ---------- Fine print ---------- */
.fineprint {
  margin-top: 30px; color: var(--muted); font-size: 13.5px; max-width: 80ch;
}
.fineprint a { color: var(--sky-700); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tiers { grid-template-columns: 1fr; }
  .scope { padding: 24px 22px; }
  table.pcmp thead th:nth-child(3) { width: 40%; }
}
@media (max-width: 560px) {
  .subnav { flex-direction: column; align-items: flex-start; gap: 8px; }
  .subnav img { height: 44px; }
  table.cmp th, table.cmp td { padding: 11px 14px; }

  /* The platform table carries prose, so sideways scrolling would make it
     unreadable on a phone. Collapse it into one stacked block per capability;
     the column headers come back as a label on each cell. */
  table.cmp.pcmp { min-width: 0; display: block; }
  .pcmp thead { display: none; }
  .pcmp tbody, .pcmp tr, .pcmp th, .pcmp td { display: block; width: auto; }
  .pcmp tbody tr { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .pcmp tbody tr:last-child { border-bottom: 0; }
  .pcmp tbody th, .pcmp tbody td { border-bottom: 0; padding: 5px 14px; }
  .pcmp tbody th[scope="row"] { padding-top: 14px; font-size: 15.5px; }
  .pcmp tr.group th { padding: 12px 14px; }
  .pcmp td:nth-child(2), .pcmp td:nth-child(3) { text-align: left; }
  .pcmp td[data-p]::before {
    content: attr(data-p);
    display: block; margin-bottom: 4px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 1px;
    text-transform: uppercase; color: var(--muted-2);
  }
  .pcmp-legend { gap: 8px 16px; }

  /* Narrower stroke reads better at phone type size. */
  .hero-app .marker { padding: 0 .18em .04em; margin: 0 -.1em; }
}

@media (prefers-reduced-motion: reduce) {
  /* Marker is drawn in its final state, no draw-in. */
  .hero-app .marker { animation: none; background-size: 100% 86%; }
}
