/* Proovima story: sky-cobalt accent on the dark site frame, 2-up setup cards,
   vertical touch-track steps, responsive 4-column table, 270px phone shots.
   Chromium 67 safe (no clamp/min/max, no flex gap, no inset, no padding-inline, no aspect-ratio). */
@font-face {
  font-family: 'PV Inter';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'PV Space';
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

body.page-proovima {
  --head: 'PV Space', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'PV Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #0a0d14;
  --surface: #121726;
  --bar: rgba(10, 13, 20, .95);
  --hair: rgba(255, 255, 255, .08);
  --hair-2: rgba(255, 255, 255, .17);
  --text: #eef1f7;
  --text-2: #bac4d6;
  --muted: #98a4ba;
  --accent: #68b5ff;
  --accent-ink: #07192e;
  --accent-soft: rgba(104, 181, 255, .13);
  --live: #58dba8;
}

@media (prefers-color-scheme: light) {
  body.page-proovima {
    --bg: #0a0d14;
    --surface: #121726;
    --bar: rgba(10, 13, 20, .95);
    --hair: rgba(255, 255, 255, .08);
    --hair-2: rgba(255, 255, 255, .17);
    --text: #eef1f7;
    --text-2: #bac4d6;
    --muted: #98a4ba;
    --live: #58dba8;
  }
}

/* Frame */
.page-proovima main { padding-bottom: 44px; }
.page-proovima main .wrap { max-width: 820px; }
.page-proovima main > .wrap:first-child { padding-top: 40px; }
.page-proovima .crumb { margin: 0 0 26px; font-size: 14px; }
.page-proovima .crumb a { color: var(--muted); text-decoration: none; }
.page-proovima .crumb a:before { content: "\2190"; margin-right: 8px; }
.page-proovima .crumb a:hover { color: var(--accent); }
.page-proovima .story-app { margin-bottom: 36px; }
.page-proovima main strong { color: var(--text); font-weight: 600; }

/* Title block */
.pv-hero { padding: 0 0 30px; border-bottom: 1px solid var(--hair-2); }
.pv-kicker { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pv-hero h1 { margin: 0 0 18px; font-size: 34px; line-height: 1.1; max-width: 17em; }
.pv-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 40em; }
.pv-tags { list-style: none; margin: 22px 0 0; padding: 0; }
.pv-tags li { display: inline-block; margin: 0 10px 8px 0; padding: 6px 12px; border: 1px solid var(--hair-2); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 500; }

/* Sections & links */
.pv-section { padding-top: 40px; }
.pv-section h2 { margin: 0 0 16px; font-size: 25px; line-height: 1.2; color: var(--text); }
.pv-section p { margin: 0 0 18px; color: var(--text-2); }
.pv-section p:last-child { margin-bottom: 0; }
.pv-section a:not(.btn), .pv-end a:not(.btn) {
  color: var(--text);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--accent);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.pv-section a:not(.btn):hover, .pv-end a:not(.btn):hover { color: var(--accent); }

/* Prep cards (2x2 on tablet/desktop) */
.pv-prep { list-style: none; margin: 22px 0 18px; padding: 0; display: grid; grid-template-columns: 1fr; grid-gap: 14px; }
.pv-prep li { padding: 18px 20px; background: var(--surface); border: 1px solid var(--hair); border-top: 2px solid var(--accent); border-radius: 10px; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.pv-prep strong { display: block; margin-bottom: 6px; font-family: var(--head); font-size: 17px; }

/* Step track */
.pv-track { list-style: none; position: relative; margin: 22px 0 24px; padding: 0; counter-reset: pvstep; }
.pv-track:before { content: ""; position: absolute; left: 16px; top: 18px; bottom: 18px; width: 2px; background: var(--hair-2); }
.pv-track li { position: relative; counter-increment: pvstep; padding: 0 0 22px 48px; color: var(--text-2); }
.pv-track li:last-child { padding-bottom: 0; }
.pv-track li:before {
  content: counter(pvstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 14px/30px var(--head);
  text-align: center;
}

/* Worked timing table */
.pv-table { width: 100%; margin: 22px 0 20px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--hair); font-size: 15px; line-height: 1.45; }
.pv-table caption { padding: 11px 16px; text-align: left; font: 600 16px/1.4 var(--head); color: var(--text); background: var(--accent-soft); border-bottom: 2px solid var(--accent); }
.pv-table th, .pv-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--hair); vertical-align: top; }
.pv-table thead th { color: var(--accent); font-size: 14px; font-weight: 600; }
.pv-table tbody th { color: var(--text); font-weight: 600; }
.pv-table td { color: var(--text-2); }

/* Room chip grid */
.pv-rooms { list-style: none; margin: 18px 0 22px; padding: 0; }
.pv-rooms li { position: relative; padding: 0 0 12px 24px; color: var(--text-2); }
.pv-rooms li:last-child { padding-bottom: 0; }
.pv-rooms li:before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* Phone screenshots (270px portrait) */
.pv-solo { margin: 28px auto 28px; max-width: 270px; text-align: center; }
.pv-solo img, .pv-pair img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--hair-2); }
.pv-solo figcaption, .pv-pair figcaption { margin-top: 12px; color: var(--text-2); font-size: 14px; line-height: 1.5; text-align: left; }
.pv-solo figcaption strong, .pv-pair figcaption strong { color: var(--text); }

.pv-pair { display: grid; grid-template-columns: 1fr; grid-gap: 28px; justify-content: center; margin: 28px 0 28px; }
.pv-pair figure { width: 100%; max-width: 270px; margin: 0 auto; }

/* Honest limits and close */
.pv-limits { padding: 24px 22px; background: var(--surface); border: 1px solid var(--hair); border-left: 4px solid var(--accent); border-radius: 12px; }
.pv-limits h2 { margin: 0 0 14px; font-size: 23px; }
.pv-limits p { margin: 0 0 14px; color: var(--text-2); }
.pv-checks { list-style: none; margin: 0; padding: 0; }
.pv-checks li { position: relative; padding: 0 0 10px 22px; color: var(--text-2); }
.pv-checks li:last-child { padding-bottom: 0; }
.pv-checks li:before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.pv-section .pv-end { margin: 36px 0 12px; }
.pv-end .btn { margin: 0 18px 12px 0; vertical-align: middle; }
.pv-end a:not(.btn) { display: inline-block; margin-bottom: 12px; vertical-align: middle; }

@media (max-width: 600px) {
  .pv-table { min-width: 0; font-size: 14px; }
  .pv-table th, .pv-table td { min-width: 0; padding: 8px 7px; }
  .pv-table thead th { font-size: 13px; }
  .pv-table tbody th { white-space: nowrap; }
}

@media (min-width: 640px) {
  .pv-prep { grid-template-columns: 1fr 1fr; }
  .pv-pair { grid-template-columns: 270px 270px; grid-gap: 32px; }
}

@media (min-width: 900px) {
  .page-proovima main > .wrap:first-child { padding-top: 64px; }
  .pv-hero { padding-bottom: 36px; }
  .pv-hero h1 { font-size: 46px; }
  .pv-lead { font-size: 20px; }
  .pv-section { padding-top: 56px; }
  .pv-section h2 { font-size: 30px; }
  .pv-limits { padding: 28px 30px; }
}
