/* Lifted from the approved mockup at
   signalzero-research/BSNL/production/demo-2026-10-03/signalzero-bsnl.html,
   lines 94–212, with the slide-deck device chrome removed. The .ph / .ph-scr /
   .ph-island / .ph-sb / .ph-home classes modelled a phone body on an A4 sheet;
   here each screen IS the viewport, so those are gone. Inner classes
   (.pform, .pa-bar, .phero, .pc, .ptiles, .psec, .pit, .pic*, .pnote, .ptabs,
   .pex, .pex-row, .pex-cta, .bsnlmark) are copied verbatim — same spacing,
   same colours, same type scale. */

:root {
  --ink: #131a22;
  --ink2: #45556a;
  --ink3: #64707d;
  --ink4: #78848f;
  --line: #dde3ea;
  --line2: #eef1f5;
  --accent: #0f4c81;
  --accent-dk: #0d3c63;
  --bg: #f2f4f7;
  --bg-w: #ffffff;
  --warn-bg: #fdeceb;
  --warn-fg: #b3271f;
  --warn-bd: #edc2c2;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  line-height: 1.35;
  min-height: 100dvh;
  font-feature-settings: "ss01", "cv11";  /* Nicer digit shapes where supported. */
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.sc-w { background: var(--bg-w); }

main.screen {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
body.sc-w main.screen { background: var(--bg-w); }

a { color: var(--accent); text-decoration: none; }

/* BSNL mark — the brief says the sign-in is BSNL-branded. PNG asset extracted
   from the mockup; identical bitmap, no re-rendering. */
.bsnlmark {
  display: inline-block;
  background-image: url("/static/bsnl-mark.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ---------- shared banner at the top of the two signed-in screens ---------- */
.pa-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: #fff;
  border-bottom: 1px solid var(--line2);
}
.pa-bar .bsnlmark { width: 38px; height: 17.9px; flex: 0 0 auto; }
.pa-ttl { font-size: 15px; font-weight: 700; letter-spacing: -.012em; }
.pa-av {
  margin-left: auto;
  width: 32px; height: 32px; border-radius: 50%;
  background: #e7ecf2; color: #45556a;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}

/* The grey wrapper inside the two signed-in screens. */
.pb { padding: 14px; flex: 1 1 auto; }

/* ---------- SIGN-IN SCREEN ---------- */
.pform { padding: 24px 22px; background: #fff; flex: 1 1 auto; }
.pform .bsnlmark { width: 86px; height: 40px; display: block; margin: 24px auto 28px; }
.pf-h { font-size: 24px; font-weight: 800; letter-spacing: -.022em; margin: 0 0 4px; }
.pf-s { font-size: 14px; color: var(--ink3); font-weight: 600; margin: 0 0 22px; line-height: 1.45; }
.pf-l {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink4); margin: 0 0 5px;
}
.pf-i {
  border: 1px solid var(--line); border-radius: 10px; background: #fafbfc;
  padding: 13px 14px; margin: 0 0 14px;
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.pf-i:focus-within { border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(15,76,129,.12); }
.pf-i input {
  border: 0; outline: 0; background: transparent;
  flex: 1 1 auto; font: inherit; color: inherit; padding: 0; min-width: 0;
}
.pf-i svg { margin-left: auto; color: #9aa5b1; flex: 0 0 auto; }
.pf-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink3); font-weight: 600; margin: 2px 0 20px;
}
.pf-row a { margin-left: auto; color: var(--accent); font-weight: 700; }
.pf-box {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1px solid #c6cfd9; background: #fff; flex: 0 0 auto;
}
.pf-btn {
  background: var(--accent); color: #fff;
  text-align: center; border-radius: 11px;
  padding: 14px; font-size: 15px; font-weight: 800;
  border: 0; width: 100%; cursor: pointer;
  box-shadow: 0 2px 8px rgba(15,76,129,.26);
}
.pf-btn:active { transform: translateY(1px); }
.pf-note {
  font-size: 12px; color: var(--ink4); font-weight: 600;
  margin: 18px 0 0; line-height: 1.5; text-align: center;
}
.pf-err {
  background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-bd);
  border-radius: 9px; padding: 10px 12px; margin: 0 0 16px;
  font-size: 13px; font-weight: 700;
}

/* ---------- PROTECTION SUMMARY ---------- */
.phero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(130% 110% at 20% 0%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(110% 90%  at 90% 100%, rgba(10,30,52,.55), transparent 55%),
    linear-gradient(158deg, #14598f 0%, #0a2f52 100%);
  color: #fff; border-radius: 20px;
  padding: 24px 20px 20px; margin: 0 0 14px; text-align: center;
  box-shadow:
    0 1px 2px rgba(13,60,99,.25),
    0 18px 36px -14px rgba(13,60,99,.55);
}
.phero::after {
  /* Faint top sheen; gives the gradient a glass feel without being busy. */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  pointer-events: none;
}
.phero-brand {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.72); font-weight: 700;
  margin: 0 0 12px;
}
.phero-shield {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), rgba(255,255,255,.04) 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.phero b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.phero span { display: block; font-size: 13px; opacity: .78; font-weight: 600; margin: 5px 0 0; }
.phero-live {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 14px auto 0;
  padding: 5px 12px 5px 10px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.pdot {
  width: 7px; height: 7px; border-radius: 50%; background: #38d890;
  box-shadow: 0 0 0 0 rgba(56,216,144,.55);
  animation: pdot-pulse 2.1s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes pdot-pulse {
  0%,100% { box-shadow: 0 0 0 0   rgba(56,216,144,.6); }
  50%     { box-shadow: 0 0 0 7px rgba(56,216,144,0);  }
}
@media (prefers-reduced-motion: reduce) { .pdot { animation: none; } }

/* Stale-sync state. Amber, not red: the subscriber is still protected, it is
   our measurement that is behind. No pulse — a pulsing amber dot reads as an
   alarm, and the one thing this chip must not do is alarm anyone. */
.phero-live.is-late {
  background: rgba(255, 183, 77, .16);
  border-color: rgba(255, 183, 77, .34);
}
.pdot-late {
  background: #ffb74d;
  box-shadow: none;
  animation: none;
}
/* Scoped under .phero so it outranks the generic `.phero span` rule above,
   which would otherwise set this back to 13px at .78 opacity. */
.phero .phero-late {
  display: block;
  margin: 8px auto 0;
  font-size: 11.5px; font-weight: 600; line-height: 1.45;
  opacity: .72;
  max-width: 24em;
}

/* Cards: softer edges, layered shadow, a hairline border for crispness. */
.pc {
  position: relative;
  background: #fff; border-radius: 18px; padding: 16px 16px 14px; margin: 0 0 12px;
  border: 1px solid rgba(19,26,34,.045);
  box-shadow:
    0 1px 2px rgba(19,26,34,.045),
    0 10px 24px -12px rgba(19,26,34,.12);
}
.pc-h { font-size: 13px; font-weight: 700; color: var(--ink3); margin: 0 0 8px; line-height: 1.35; }
.pc-n {
  font-size: 34px; font-weight: 800; letter-spacing: -.028em; color: var(--accent);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.pc-sub { font-size: 12px; color: var(--ink3); font-weight: 600; margin: 8px 0 0; }

/* Primary stat card — a tinted left rail picks up the hero's accent. */
.pc-primary {
  padding: 18px 18px 16px;
  background:
    linear-gradient(180deg, rgba(15,76,129,.03), transparent 40%),
    #fff;
}
.pc-primary::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #14598f, #0a2f52);
}
.pc-primary .pc-n { font-size: 40px; }
.pc-primary .pc-sub {
  display: inline-flex; align-items: center; gap: 6px;
  color: #0b6b3a; font-weight: 700;
}
.pc-primary .pc-sub::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; opacity: .9;
}
.pc-foot {
  margin: 12px -18px -16px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #f6f9fc, #eef2f6);
  border-top: 1px solid var(--line2);
  border-radius: 0 0 17px 17px;
  font-size: 11px; letter-spacing: .04em; color: var(--ink3); font-weight: 700;
  text-align: center;
}

/* Secondary card chrome — slimmer, icon-led. */
.ptiles { display: flex; gap: 10px; margin: 0 0 12px; }
.ptiles .pc { flex: 1 1 0; margin: 0; padding: 14px 14px 12px; min-width: 0; }
.pc-med .pc-n { font-size: 24px; }
.pc-med .pc-h { font-size: 12px; margin-bottom: 6px; }
.pc-med .pc-sub { font-size: 11px; margin-top: 4px; }

.pc-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px; margin: 0 0 10px;
  background: linear-gradient(140deg, #eaf1f9, #d7e3ef);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(15,76,129,.08);
}
.pc-ico-g { background: linear-gradient(140deg, #e7f4ec, #d1ead9); color: #0b6b3a;
  box-shadow: inset 0 0 0 1px rgba(11,107,58,.1); }
.pc-ico-a { background: linear-gradient(140deg, #fdf3e2, #f6e3c0); color: #8a4b00;
  box-shadow: inset 0 0 0 1px rgba(138,75,0,.1); }
.pc-ico-b { background: linear-gradient(140deg, #eaf1f9, #d7e3ef); color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(15,76,129,.08); }

/* Value-prop card — "what's included" checked list.
   Header row carries the plan name and the all-in monthly price badge,
   because this card is where the subscriber reads what their BSNL bill is
   actually buying them. */
.pc-value .pc-h { margin: 0 0 2px; }
.pc-planhdr {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 12px;
}
.pc-planhdr > div { flex: 1 1 auto; min-width: 0; }
.pc-plan {
  margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.015em;
  color: var(--ink);
}
.pc-price {
  flex: 0 0 auto;
  padding: 5px 10px; border-radius: 999px;
  background: linear-gradient(140deg, #eaf1f9, #d7e3ef);
  color: var(--accent); font-size: 12px; font-weight: 800;
  letter-spacing: -.005em; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px rgba(15,76,129,.08);
  white-space: nowrap;
}
.pc-planfoot {
  font-size: 11px; color: var(--ink4); font-weight: 600;
  margin: 10px 0 0; line-height: 1.45;
}
.plist { list-style: none; padding: 0; margin: 0; }
.plist li {
  position: relative; padding: 7px 0 7px 30px;
  font-size: 13px; font-weight: 600; color: var(--ink2); line-height: 1.42;
}
.plist li + li { border-top: 1px solid var(--line2); }
.plist li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #e7f4ec
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6b3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 7'/></svg>")
    center / 12px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(11,107,58,.14);
}

/* Timeline treatment for the recent-activity list on the right column. */
.pc-timeline .pit { padding: 12px 0; }
.pc-timeline .pit p { font-size: 13px; }

.psec {
  font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink3); margin: 6px 0 8px 2px;
}
.pit {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 0; border-top: 1px solid var(--line2);
}
.pit:first-child { border-top: 0; padding-top: 0; }
.pit:last-child { padding-bottom: 0; }
.pit p { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; }
.pit i {
  display: block; font-style: normal;
  font-size: 11px; color: var(--ink4); font-weight: 600; margin: 3px 0 0;
}
.pic {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.pic-r { background: #fdeceb; color: #b3271f; }
.pic-a { background: #fdf3e2; color: #9a5a00; }
.pic-b { background: #eaf1f9; color: #0f4c81; }
.pic-g { background: #e7f4ec; color: #0b6b3a; }

.pnote {
  font-size: 11px; color: var(--ink4); font-weight: 600; text-align: center;
  margin: 14px 4px 4px; line-height: 1.5;
}

/* Protection summary content grid.
   Phone: stacks (block). Tablet+ : two columns, stats left, activity right. */
.pgrid { display: block; }
.pgrid-col > :last-child { margin-bottom: 14px; }

/* Secondary stat card — the "data used" tile. Same shell as .pc, smaller
   headline number so the attempts figure keeps primacy. */
.pc-med .pc-n { font-size: 24px; }
.pc-med .pc-h { margin-bottom: 4px; }

.ptabs {
  display: flex; background: #fff; border-top: 1px solid #e7ebf0;
  padding: 9px 0 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  position: sticky; bottom: 0;
}
.ptab {
  flex: 1 1 0; text-align: center; font-size: 10px; font-weight: 700;
  color: #9aa5b1; text-decoration: none;
}
.ptab svg { display: block; margin: 0 auto 4px; }
.ptab span { display: block; }
.ptab.on { color: var(--accent); }

/* ---------- WHAT THIS MEANS ---------- */
.pex { padding: 14px; flex: 1 1 auto; }
.pex-row {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border-radius: 14px; padding: 14px; margin: 0 0 10px;
  box-shadow: 0 1px 2px rgba(19,26,34,.07);
}
.pex-row p { margin: 0; font-size: 13px; line-height: 1.45; font-weight: 600; color: #4a5560; }
.pex-row b { display: block; font-size: 14px; color: var(--ink); font-weight: 800; margin: 0 0 3px; }
.pex-cta {
  background: var(--accent); color: #fff; border-radius: 13px;
  padding: 14px 14px; margin: 4px 0 0;
  display: flex; align-items: center; gap: 11px;
}
.pex-cta svg { color: #fff; flex: 0 0 auto; }
.pex-cta b { font-size: 13px; font-weight: 800; display: block; }
.pex-cta span { font-size: 11px; opacity: .86; font-weight: 600; line-height: 1.45; }

/* ---------- Powered-by Saptang Labs sub-brand footer ---------- */
.pbrand {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 20px 0 6px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink3); font-weight: 700;
}
.pbrand-mark {
  width: auto; height: 16px; display: block; flex: 0 0 auto;
  opacity: .72;
}
.pbrand b {
  color: var(--ink); font-weight: 800; letter-spacing: -.005em;
  text-transform: none; font-size: 12px; margin-left: 1px;
}

/* ---------- desktop / tablet (≥ 720px) ----------
   The product is phone-first, but the operator demos it on laptops and
   subscribers may open it in a browser tab. Lift the screen off the window
   edge into a centered card so it reads as "web app" rather than "mobile page
   stretched". Two-column grid for the protection summary — stats + activity.
*/
@media (min-width: 720px) {
  body {
    background:
      radial-gradient(60% 50% at 15% 0%,  rgba(20,89,143,.10), transparent 60%),
      radial-gradient(50% 40% at 90% 100%, rgba(15,76,129,.08), transparent 60%),
      #e4e8ec;
    padding: 32px 20px;
  }
  body.sc-w {
    background:
      radial-gradient(60% 55% at 20% 0%,  rgba(20,89,143,.18), transparent 65%),
      radial-gradient(55% 50% at 85% 100%, rgba(13,60,99,.14), transparent 65%),
      #e8edf2;
    padding: 48px 20px;
  }
  main.screen {
    max-width: 840px;
    margin: 0 auto 32px;
    min-height: 0;
    background: var(--bg);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(17,22,28,.14), 0 2px 4px rgba(17,22,28,.06);
    overflow: hidden;
  }
  body.sc-w main.screen {
    background: var(--bg-w);
    max-width: 460px;
    margin-top: 48px;
  }

  .pa-bar { padding: 16px 24px; }
  .pa-ttl { font-size: 16px; }
  .pa-av  { width: 36px; height: 36px; font-size: 12px; }

  .pb  { padding: 20px 24px; }
  .pex { padding: 20px 24px; }

  .pform { padding: 36px 44px 32px; }
  .pform .bsnlmark { margin-top: 8px; }
  .pf-h { font-size: 26px; }

  .phero { padding: 24px 20px 20px; margin-bottom: 18px; }
  .phero b { font-size: 19px; }
  .phero span { font-size: 13px; }

  .pc-n { font-size: 40px; }
  .pc-med .pc-n { font-size: 28px; }
  .pc-h { font-size: 14px; }

  /* Two-column content: left = stats stack, right = activity. */
  .pgrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .pgrid-col > :last-child { margin-bottom: 0; }

  /* Explainer: three cards side-by-side; the call-to-action spans the row. */
  .pex-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 10px;
  }
  .pex-row { margin: 0; }

  /* Bottom tabs are sticky on phone to stay thumb-reachable; on desktop they
     sit statically at the foot of the card. */
  .ptabs { position: static; padding-bottom: 10px; }
  .ptab  { font-size: 11px; }

  .pnote { font-size: 12px; margin-top: 18px; }
}

/* Wider desktop — give the grid a little more breathing room. */
@media (min-width: 1024px) {
  main.screen            { max-width: 920px; }
  body.sc-w main.screen  { max-width: 480px; }
  .pgrid                 { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; }
  .pb                    { padding: 26px 28px; }
  .pex                   { padding: 24px 28px; }
}

/* Sample-data chip. Visually distinct from both Live (green, pulsing) and
   is-late (amber): this is not a fault, it is setup in progress. Muted and
   static — a pulsing dot would imply a live feed, which is the exact claim
   this chip exists to avoid making. */
.phero-live.is-sample {
  background: rgba(110,110,115,.14);
  color: #4a4a4f;
}
.pdot-sample {
  background: #8a8a8f;
  animation: none;
}

/* Enforcement-stage line. Deliberately quiet: this is a disclosure, not a
   warning. It must be readable but must not compete with the status line. */
.phero-stage {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  opacity: .72;
}
