/* ---------------------------------------------------------------------------
   InspectPH — shared stylesheet for the Solutions pages (/solutions/...).

   The home page keeps its own inline copy of the base rules; this file is
   the same base (palette, type, header, buttons, footer, motion) plus the
   components the Solutions pages use. Same-origin only: vercel.json's CSP
   allows 'self' for styles, scripts and images and nothing else.
   Generated pages come from tools/solutions/build.py.
--------------------------------------------------------------------------- */
:root{
  --navy:#10202B; --navy-deep:#0A151C; --ink:#10202B; --blue:#0F4C5C;
  --green:#2F7D4F; --teal:#9FD4B4; --muted:#56656D; --line:#E1E4DC;
  /* The green of the mark's brackets, and the colour of the "PH" in the
     wordmark everywhere — header, footer and share card — so the two halves
     of the logo are the same green. Dennis's call, and it is his brand.
     Worth knowing: it reads 7.7:1 on navy and 10.6:1 on the footer, but only
     1.74:1 on the white header, so the "PH" there is deliberately faint. */
  --mark:#9FD4B4;
  --soft:#F3F4EF; --white:#fff;
  --lift:0 30px 60px -22px rgba(10,21,28,.30);
  --card:0 1px 2px rgba(16,32,43,.05), 0 10px 26px -14px rgba(16,32,43,.16);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--white); color:var(--ink);
  font:400 17px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,
       "Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
h1,h2,h3{margin:0;letter-spacing:-.028em;color:var(--navy);line-height:1.06}
h1{font-size:clamp(40px,5.6vw,68px);letter-spacing:-.04em}
h2{font-size:clamp(29px,3.5vw,44px)}
h3{font-size:21px;letter-spacing:-.02em}
p{margin:0}

.wrap{width:min(1200px,calc(100% - 40px));margin:0 auto}
section{padding:clamp(64px,8vw,112px) 0;scroll-margin-top:104px}
.soft{background:var(--soft)}
.mid{text-align:center;max-width:760px;margin:0 auto}
.kick{
  font-size:13px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;
  color:var(--blue);margin-bottom:14px;
}
.lead{font-size:clamp(17px,1.5vw,20px);color:var(--muted);margin-top:16px}

/* skip link ---------------------------------------------------------------- */
.skip{
  position:absolute;left:-9999px;top:0;z-index:99;background:var(--navy);
  color:#fff;padding:12px 18px;border-radius:0 0 10px 0;font-size:15px;font-weight:700;
}
.skip:focus{left:0}

/* header ------------------------------------------------------------------- */
header{
  position:sticky;top:0;z-index:40;background:rgba(255,255,255,.90);
  backdrop-filter:saturate(180%) blur(14px);border-bottom:1px solid var(--line);
}
.bar{display:flex;align-items:center;justify-content:space-between;height:70px;gap:18px}
.logo{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:800;
  letter-spacing:-.03em;color:var(--navy)}
/* The InspectPH mark: scan-frame corners in teal around a check, on navy.
   It is the same mark as the app and the touch icon, and it is NOT a
   lettermark — a rebuild once swapped it for a letter "I" in a gradient box
   and the public site stopped matching the product. */
.logo .mk{
  width:32px;height:32px;border-radius:10px;flex:none;
  background:var(--navy);
  display:grid;place-items:center;color:#fff;
}
.logo .mk svg{width:21px;height:21px;display:block}
/* "PH" is the accent half of the wordmark, exactly as the app renders it
   (Inspect<span class="text-brand">PH</span> in app/(app)/layout.tsx).
   .wm keeps the wordmark a single flex child — split across two, the 10px
   gap on .logo opens between "Inspect" and "PH" and breaks the word. */
.logo .wm{white-space:nowrap}
.logo .ph{color:var(--mark)}
nav.links{display:flex;align-items:center;gap:24px;font-size:15px;font-weight:600;color:#3A4A53}
nav.links a:hover{color:var(--navy)}
.cta-sm{
  background:var(--navy);color:#fff;padding:10px 16px;border-radius:10px;
  font-size:15px;font-weight:700;
}
.cta-sm:hover{background:var(--navy-deep)}
details.menu{display:none;position:relative}
details.menu summary{
  list-style:none;cursor:pointer;padding:9px 13px;border:1px solid var(--line);
  border-radius:10px;font-size:15px;font-weight:700;color:var(--navy);
}
details.menu summary::-webkit-details-marker{display:none}
details.menu .panel{
  position:absolute;right:0;top:calc(100% + 10px);width:250px;background:#fff;
  border:1px solid var(--line);border-radius:14px;box-shadow:var(--lift);
  padding:10px;display:grid;gap:2px;
}
details.menu .panel a{padding:11px 13px;border-radius:9px;font-size:16px;font-weight:600}
details.menu .panel a:hover{background:var(--soft)}

/* buttons ------------------------------------------------------------------ */
.btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.btn{
  display:inline-block;padding:15px 22px;border-radius:12px;font-size:16px;
  font-weight:700;border:1px solid transparent;transition:transform .15s ease;
}
.btn:active{transform:translateY(1px)}
.b1{background:var(--blue);color:#fff;box-shadow:0 10px 26px -10px rgba(15,76,92,.55)}
.b1:hover{background:#0F4C5C}
.b2{background:#fff;border-color:var(--line);color:var(--navy)}
.b2:hover{border-color:#C9CFC6}
.on-navy.b1{background:#fff;color:var(--navy)}
.on-navy.b2{background:transparent;border-color:rgba(255,255,255,.34);color:#fff}

/* ===========================================================================
   HERO
   =========================================================================== */
.hero{
  padding-top:clamp(52px,6vw,80px);padding-bottom:clamp(80px,9vw,130px);
  background:
    radial-gradient(1100px 520px at 82% 6%,#ECF0E8 0%,rgba(243,244,239,0) 62%),
    linear-gradient(180deg,#FAFAF7,#fff);
}
.hgrid{display:grid;grid-template-columns:.92fr 1.08fr;gap:clamp(36px,4vw,64px);align-items:center}
.hero h1{margin-bottom:20px}
.hero .lead{max-width:540px;color:#3A4A53}
.micro{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:26px;
  font-size:14px;font-weight:600;color:var(--muted)}
.micro span{display:inline-flex;align-items:center;gap:7px}
.bullet{flex:none;display:inline-block;width:16px;height:16px;border-radius:50%;
  background:#dff3ea;color:var(--green);font-size:13px;font-weight:800;
  line-height:16px;text-align:center}
.bullet.dot{width:7px;height:7px;background:var(--blue);border-radius:50%}
/* The three devices are ONE image (tools/hero3.py): a tablet, a computer and
   a phone. The line under it says the app works on all three. It does NOT
   pair roles with devices (Dennis, 2026-10-19): any role can use any device,
   and labelling the iPad "supervisor" said otherwise. No brand names either:
   most buyers here use Android phones and Windows PCs. It used to be two images, a laptop with a phone positioned over
   its corner, and on a phone-width screen the phone dropped underneath the
   laptop and the picture fell apart. One image cannot come apart. */
.stage{position:relative}
.stage .shot-hero{width:100%}
.roles{text-align:center;margin-top:16px;font-size:15px;font-weight:650;color:var(--muted)}

/* ===========================================================================
   TRUST
   =========================================================================== */
.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:48px}
.fact{border:1px solid var(--line);border-radius:16px;padding:24px;background:#fff;
  box-shadow:var(--card)}
.fact b{display:block;font-size:17px;color:var(--navy);margin-bottom:7px}
.fact span{font-size:15px;color:var(--muted)}

/* ===========================================================================
   CLOSE
   =========================================================================== */
.close{background:linear-gradient(180deg,#FAFAF7,#fff)}
.box{
  background:linear-gradient(150deg,var(--navy),#0F4C5C 58%,#0F4C5C);
  color:#fff;border-radius:26px;padding:clamp(40px,5vw,66px);text-align:center;
  box-shadow:var(--lift);
}
.box h2{color:#fff;max-width:640px;margin:0 auto}
.box p{color:#CCD9CF;max-width:600px;margin:16px auto 0;font-size:17px}
.box .btns{justify-content:center}
.reach{margin-top:26px;font-size:16px;color:#CCD9CF}
.reach a{border-bottom:1px solid rgba(255,255,255,.4)}
.tags{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:44px}
.tags i{font-style:normal;font-size:14px;font-weight:650;color:#3A4A53;
  border:1px solid var(--line);border-radius:999px;padding:8px 15px;background:#fff}

/* ===========================================================================
   FOOTER
   =========================================================================== */
footer{background:#071017;color:#8A979E;padding:58px 0 26px;font-size:15px}
.fg{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:32px}
.fg h4{margin:0 0 12px;color:#fff;font-size:13px;letter-spacing:.09em;
  text-transform:uppercase;font-weight:800}
.fg a{display:block;padding:5px 0;color:#A3AEB3}
.fg a:hover{color:#fff}
.fbrand{font-size:19px;font-weight:800;color:#fff;letter-spacing:-.03em}
.fbrand .ph{color:var(--mark)}
.fnote{max-width:310px;margin-top:12px;line-height:1.6}
.rule{border-top:1px solid #1A2B36;margin-top:38px;padding-top:20px;
  display:flex;flex-wrap:wrap;gap:10px 24px;justify-content:space-between;font-size:14px}

/* ===========================================================================
   MOTION
   The hide rule is scoped to .js so that a visitor whose script never ran —
   a crawler, a text browser, a blocked inline script — sees the content
   rather than a page of invisible sections. That failure mode is silent,
   which is exactly why it is worth the extra selector.
   =========================================================================== */
.js .reveal{opacity:0;transform:translateY(18px)}
.js .reveal.on{opacity:1;transform:none;transition:opacity .6s ease,transform .6s ease}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .reveal,.js .reveal.on{opacity:1;transform:none;transition:none}
  .btn:active{transform:none}
}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:4px}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width:1000px){
  nav.links{display:none}
  details.menu{display:block}
  .hgrid,.rec{grid-template-columns:1fr}
  .rec{gap:40px}
  .three,.facts,.flow{grid-template-columns:1fr 1fr}
  .fg{grid-template-columns:1fr 1fr}
}
@media (max-width:720px){
  .wrap{width:calc(100% - 32px)}
  .pair{grid-template-columns:1fr}
  .three,.facts,.flow{grid-template-columns:1fr}
  .chain{grid-template-columns:1fr 1fr}
  /* The comparison loses its column headers on a narrow screen, so each cell
     states which side it is. A two-column table whose headings have been
     hidden is a table the reader cannot use, and this section is the one
     answering their objection. */
  .cmp .row{grid-template-columns:1fr}
  .cmp .hd{display:none}
  .cmp .lbl{display:block}
  .cmp .cell{border-top:1px solid var(--line)}
  .fg{grid-template-columns:1fr}
  .btn{width:100%;text-align:center}
}

/* ===========================================================================
   SOLUTIONS
   =========================================================================== */
nav.links a.here{color:var(--navy);box-shadow:inset 0 -2px 0 var(--green)}
.hero.sub{padding-top:clamp(28px,4vw,48px);padding-bottom:clamp(56px,7vw,96px)}
.mid.left{text-align:left;margin:0;max-width:820px}
.sublead{margin-top:14px;font-size:16px;color:var(--muted);max-width:720px}
.crumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px;
  font-weight:600;color:var(--muted);margin-bottom:clamp(22px,3vw,34px)}
.crumbs a{color:var(--blue)}
.crumbs a:hover{text-decoration:underline}
.crumbs [aria-current]{color:var(--navy)}
.on-dark{color:#9FD4B4}

/* hub: group cards */
.ggrid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.gcard{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:var(--card);
  display:flex;flex-direction:column}
.gcard h3{font-size:24px}
.gcard h3 a:hover{color:var(--blue)}
.gcard .gl{font-size:15px;color:var(--muted);margin-top:10px}
.ulist{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:2px;flex:1;align-content:start}
.ulist a{display:block;padding:8px 0;border-top:1px solid var(--line);font-size:16px;font-weight:600;color:#2A3A43}
.ulist a:hover{color:var(--blue)}
.more{margin-top:16px;font-size:15px;font-weight:700;color:var(--blue)}
.facts.four{grid-template-columns:repeat(4,1fr)}

/* group hero */
.ghero{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(30px,4vw,60px);align-items:start}
.ghero h1{font-size:clamp(36px,4.6vw,58px)}
.ghero .shot-phone img{max-width:210px}

/* group: use-case cards */
.ugrid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.ucard{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:16px;
  padding:22px;box-shadow:var(--card);transition:border-color .15s ease,transform .15s ease}
.ucard:hover{border-color:#B9C6BC;transform:translateY(-2px)}
.ucard h3{font-size:19px}
.ucard p{font-size:15px;color:var(--muted);margin-top:8px;flex:1}
.ucard .kick{font-size:13px;margin-bottom:8px}
.ucard .go{margin-top:14px;font-size:14px;font-weight:700;color:var(--blue)}
.ucard.small p{flex:none}
.tags{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:34px}
.others{padding:clamp(40px,5vw,64px) 0}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{font-size:15px;font-weight:650;color:#2A3A43;border:1px solid var(--line);border-radius:999px;
  padding:9px 16px;background:#fff}
.chip:hover{border-color:#B9C6BC;color:var(--blue)}

/* use case */
.ucgrid{display:grid;grid-template-columns:1.35fr .9fr;gap:clamp(28px,4vw,56px);align-items:start}
.h1uc{font-size:clamp(36px,4.6vw,56px)}
.side{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:var(--card)}
.side .kick{font-size:13px;margin-bottom:10px}
.tpl{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.tpl li{font-size:15px;font-weight:650;color:#2A3A43;padding-left:22px;position:relative}
.tpl li::before{content:"";position:absolute;left:0;top:7px;width:10px;height:10px;border-radius:3px;
  background:#dff3ea;box-shadow:inset 0 0 0 2px var(--green)}
.sidep{font-size:15px;color:#3A4A53}
.note{font-size:14px;color:var(--muted);margin-top:14px}
.narrow{max-width:880px}
.problem{font-size:clamp(20px,2.2vw,26px);line-height:1.45;color:var(--navy);font-weight:600;letter-spacing:-.015em}
.howgrid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(30px,4vw,64px);align-items:start}
.steps{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:11px}
.step{display:flex;gap:15px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px;box-shadow:var(--card)}
.step .n{flex:none;width:30px;height:30px;border-radius:9px;background:#EEF1EA;color:var(--blue);
  font-size:14px;font-weight:800;display:grid;place-items:center}
.step b{display:block;font-size:16px;color:var(--navy)}
.step span{font-size:15px;color:var(--muted)}
.howside{position:sticky;top:96px}
.shot img{height:auto}
.shot figcaption{margin-top:14px;font-size:14px;color:var(--muted)}
.shot figcaption b{display:block;color:var(--navy);font-size:15px}
.shot-phone img{width:100%;max-width:270px;margin:0 auto;filter:drop-shadow(0 26px 44px rgba(10,21,28,.26))}
.shot-phone figcaption{text-align:center;max-width:340px;margin-left:auto;margin-right:auto}
.win{border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px rgba(16,32,43,.09),var(--lift)}
.win img{display:block;width:100%;height:auto}
.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.panelc{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:var(--card)}
.panelc .kick{font-size:13px;margin-bottom:8px}
.ticks{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:9px}
.ticks li{position:relative;padding-left:28px;font-size:16px;color:#2A3A43}
.ticks li::before{content:"\2713";position:absolute;left:0;top:1px;width:18px;height:18px;border-radius:50%;
  background:#dff3ea;color:var(--green);font-size:13px;font-weight:800;line-height:18px;text-align:center}
.ticks.see li::before{content:"\2192";background:#E6EEF0;color:var(--blue)}
.rgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:6px}
.back{margin-top:24px;font-size:15px;font-weight:700;color:var(--blue)}
.back a:hover{text-decoration:underline}

@media (max-width:1000px){
  .ugrid,.rgrid{grid-template-columns:1fr 1fr}
  .facts.four{grid-template-columns:1fr 1fr}
  .ucgrid,.howgrid,.ghero{grid-template-columns:1fr}
  .howside{position:static}
}
@media (max-width:720px){
  .ggrid,.ugrid,.rgrid,.two,.facts.four{grid-template-columns:1fr}
}
