/* PgCare website */
:root {
  --navy: #0A1832; --navy-2: #102549; --steel: #2F7DD3; --pulse: #14B87F; --paper: #F3F6FA; --slate: #52607A;
  --ink: #0A1832; --line: #D9E2EE; --white: #FFFFFF;
  --ok: #0AAC23; --warn: #E0A100; --bad: #E04A4B;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --measure: 66ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--pulse); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .88em; background: rgba(47, 125, 211, .09); padding: .1em .35em; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(10, 24, 50, .96); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand .pg { color: var(--white); } .brand .care { color: #1FBF8F; }
.top-nav { display: flex; align-items: center; gap: 26px; }
.top-nav a { color: #C9D6EA; text-decoration: none; font-size: 15px; }
.top-nav a:hover { color: var(--white); }

/* buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 650; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; }
.btn-primary { background: var(--pulse); color: #032018; }
.btn-primary:hover { background: #19CB8E; }
.btn-quiet { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-quiet:hover { border-color: var(--white); }
.btn-ghost { padding: 7px 14px; font-size: 14px; border-color: rgba(31, 191, 143, .7); color: #E6FFF6 !important; }
.btn-ghost:hover { background: rgba(31, 191, 143, .15); }
.block-tint .btn-quiet, .block .btn-quiet { border-color: var(--line); color: var(--ink); }
.block .btn-quiet:hover { border-color: var(--steel); }
.text-link { color: #9FC3EE; font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }

/* hero */
.hero { background: radial-gradient(900px 400px at 75% 0%, #14305C 0, transparent 70%), var(--navy); color: var(--white); padding: 88px 0 0; overflow: hidden; }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: .98; letter-spacing: -.045em; font-weight: 820; margin: 0 0 26px; max-width: 12ch; }
.lede { font-size: 20px; line-height: 1.55; color: #C5D2E6; max-width: 60ch; margin: 0; }
.monitor { position: relative; margin: 64px 0 0; height: 360px; border-top: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(4, 12, 28, .0), rgba(4, 12, 28, .55)); }
.strip { position: absolute; inset: 24px 0 auto 0; width: 100%; height: 220px; }
.grid-lines { stroke: rgba(255, 255, 255, .07); stroke-width: 1; fill: none; }
.beat { fill: none; stroke: url(#beat); stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: draw 2.4s cubic-bezier(.45, .05, .25, 1) .2s forwards; filter: drop-shadow(0 0 6px rgba(20, 184, 127, .45)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.readouts { list-style: none; margin: 0; padding: 0; }
.readouts li { position: absolute; left: var(--x); top: 262px; text-align: left; min-width: 170px;
  padding-left: 12px; border-left: 2px solid rgba(255, 255, 255, .18); opacity: 0; animation: show .5s ease forwards; }
.readouts li:nth-child(1) { animation-delay: .7s; } .readouts li:nth-child(2) { animation-delay: 1.2s; }
.readouts li:nth-child(3) { animation-delay: 1.7s; } .readouts li:nth-child(4) { animation-delay: 2.2s; }
@keyframes show { to { opacity: 1; } }
.rk { display: block; font-size: 13px; color: #8FA3C2; }
.rv { display: block; font-family: var(--mono); font-size: 24px; font-weight: 600; color: var(--white); letter-spacing: -.02em; }
.rs { display: block; font-size: 13px; }
.rs::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.rs.ok { color: #8BE3B4; } .rs.ok::before { background: var(--ok); }
.rs.warn { color: #FFD77A; } .rs.warn::before { background: var(--warn); }
.rs.bad { color: #FFB0B0; } .rs.bad::before { background: var(--bad); }

/* sections */
.block { padding: 96px 0; }
.block-tint { background: var(--paper); }
.block h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 780; max-width: 22ch; }
.sub { font-size: 18px; color: var(--slate); max-width: var(--measure); margin: 0 0 44px; }

/* what it does: an even grid, ruled, not cards */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.area { padding: 26px 28px 30px 0; border-bottom: 1px solid var(--line); }
.area:nth-child(3n+2), .area:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid var(--line); }
.area h3 { font-size: 20px; margin: 0 0 10px; letter-spacing: -.01em; }
.area p { margin: 0; color: #2E3E57; font-size: 16px; }

/* gallery */
.gallery { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 88px; }
.tabs button { text-align: left; background: none; border: 0; border-left: 3px solid transparent; padding: 9px 14px; font: inherit; font-size: 15px; color: var(--slate); cursor: pointer; border-radius: 0 6px 6px 0; }
.tabs button:hover { background: rgba(47, 125, 211, .07); color: var(--ink); }
.tabs button[aria-selected="true"] { border-left-color: var(--pulse); color: var(--ink); font-weight: 650; background: var(--white); }
.shot-frame { margin: 0; }
.shot-frame img { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(10, 24, 50, .45); background: var(--white); }
.shot-frame figcaption { margin-top: 14px; color: var(--slate); font-size: 15px; max-width: var(--measure); }

/* how it fits */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fit-copy p { max-width: 56ch; color: #2E3E57; }
.diagram { margin: 0; }
.diagram svg { width: 100%; height: auto; }
.d-box rect { fill: var(--white); stroke: #B9C8DB; stroke-width: 1.5; }
.d-main rect { fill: var(--navy); stroke: var(--navy); }
.d-box text { text-anchor: middle; font-family: var(--sans); font-size: 16px; font-weight: 700; fill: var(--ink); }
.d-main text { fill: var(--white); }
.d-box .d-sm { font-size: 12px; font-weight: 400; fill: var(--slate); }
.d-main .d-sm { fill: #9FB4D3; }
.d-line { stroke: var(--pulse); stroke-width: 2.5; fill: none; }
.d-lab { font-family: var(--sans); font-size: 12px; fill: var(--slate); }

/* install steps: a real sequence */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 48px; max-width: 1040px; }
.steps li { counter-increment: s; position: relative; padding-left: 58px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 750; display: grid; place-items: center; font-size: 17px; }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: #2E3E57; font-size: 16px; }
.steps pre { margin: 8px 0 0; background: var(--navy); color: #D6E3F5; padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: 13px; line-height: 1.55; }
.steps pre code { background: none; padding: 0; font-size: inherit; color: inherit; }

/* safety */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin: 24px 0 0; max-width: 1040px; }
.facts div { padding: 20px 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.facts dd { margin: 0; color: #2E3E57; font-size: 16px; max-width: 52ch; }

/* footer */
.foot { background: var(--navy); color: #AFC0D8; padding: 44px 0; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.foot p { margin: 0; font-size: 15px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { color: #DCE6F5; text-decoration: none; font-size: 15px; }
.foot nav a:hover { text-decoration: underline; }

/* responsive */
@media (max-width: 1000px) {
  .areas { grid-template-columns: 1fr 1fr; }
  .area:nth-child(n) { padding: 24px 24px 26px 0; border-left: 0; }
  .area:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; flex-wrap: wrap; position: static; }
  .tabs button { border-left: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; padding: 8px 12px; }
  .tabs button[aria-selected="true"] { border-bottom-color: var(--pulse); }
  .fit { grid-template-columns: 1fr; }
  .readouts li:nth-child(odd) { top: 150px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top-nav a:not(.btn) { display: none; }
  .hero { padding-top: 56px; }
  .monitor { height: 400px; }
  .readouts li { position: static; transform: none; display: inline-block; width: 48%; margin: 8px 0; vertical-align: top; }
  .readouts { position: absolute; left: 20px; right: 20px; top: 250px; }
  .areas, .steps, .facts { grid-template-columns: minmax(0, 1fr); }
  .readouts li { min-width: 0; }
  .area:nth-child(n) { padding-left: 0; border-left: 0; }
  .foot-in { grid-template-columns: 1fr; }
  .block { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beat { animation: none; stroke-dashoffset: 0; }
  .readouts li { animation: none; opacity: 1; }
}
