/* ==========================================================================
   Product Guard — site styles

   Two rules hold this design together:

   1. The traffic-light colours (green / amber / red) are DATA colours. They
      only ever appear attached to a real number or status. Never decorative.
   2. Every number, date and label is set in mono. Sentences are set in
      Public Sans. The page has two voices: human prose, machine data.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  --paper:        #EDF0F7;
  --paper-deep:   #E2E7F3;
  --surface:      #FFFFFF;

  --ink:          #14162B;
  --ink-2:        #5B6280;
  --ink-3:        #8A90A6;

  --violet:       #4F46E5;
  --violet-hover: #4038D4;
  --violet-deep:  #211B63;
  --violet-tint:  #E3E7FB;

  --rule:         #D3DAEA;
  --rule-soft:    #E5EAF4;

  /* Data colours. Reserved. */
  --ok:           #15803D;
  --ok-tint:      #DCFCE7;
  --warn:         #C2410C;
  --warn-tint:    #FFEDD5;
  --dead:         #B91C1C;
  --dead-tint:    #FEE2E2;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r:       14px;
  --r-lg:    20px;
  --wrap:    1180px;
}

/* --- Reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--violet); color: #fff; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Type roles --------------------------------------------------------- */

.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

.mono {
  font-family: var(--mono);
  font-variant-ligatures: none;
  font-feature-settings: "tnum" 1;
}

/* The eyebrow marks a section as a labelled part of a document, not a slide. */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 18px;
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0;
}

/* --- Layout scaffolding ------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
}

.band { padding-block: 108px; }
.band--tight { padding-block: 56px 72px; }

.band-head { max-width: 780px; margin-bottom: 52px; }
.band-head h2 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 18px; }

.rule-top { border-top: 1px solid var(--rule); }

/* The nav is sticky, so anchored sections must stop clear of it. */
section[id], .doc-body section[id] { scroll-margin-top: 92px; }

/* --- Nav ---------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand svg { width: 26px; height: 26px; flex: none; }

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 15px;
  color: var(--ink-2);
}

.nav-links a {
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}

.nav-links a:hover { color: var(--ink); border-bottom-color: var(--violet); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--violet); }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}

.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--violet); color: #fff; }
.btn--solid:hover { background: var(--violet-hover); }

.btn--line { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }

.btn--sm { padding: 9px 17px; font-size: 14px; }

/* --- Hero --------------------------------------------------------------- */

.hero { padding-block: 92px 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 486px);
  gap: 72px;
  align-items: center;
}

.hero h1 { font-size: clamp(44px, 5.6vw, 74px); }
.hero h1 em { font-style: normal; color: var(--violet); }

.hero .lede { margin-top: 26px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 22px;
  letter-spacing: 0.01em;
}

/* --- Signature: the coverage ledger ------------------------------------- */

.ledger {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(20, 22, 43, .04);
}

.ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ledger-head b { color: var(--violet); font-weight: 500; }

.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 18px 20px 20px;
  border-bottom: 1px solid var(--rule-soft);
}

.ledger-row:last-child { border-bottom: 0; }

.ledger-name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.ledger-sub {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.ledger-count {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.ledger-bar {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 999px;
  margin-top: 13px;
  margin-bottom: 2px;
  overflow: hidden;
}

.ledger-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: var(--left, 0%);
}

/* Status is colour. Colour is status. */
.is-ok    .ledger-count { background: var(--ok-tint);   color: var(--ok); }
.is-ok    .ledger-bar   { background: var(--ok-tint); }
.is-ok    .ledger-bar i { background: var(--ok); }
.is-warn  .ledger-count { background: var(--warn-tint); color: var(--warn); }
.is-warn  .ledger-bar   { background: var(--warn-tint); }
.is-warn  .ledger-bar i { background: var(--warn); }
.is-dead  .ledger-count { background: var(--dead-tint); color: var(--dead); }
.is-dead  .ledger-bar   { background: var(--dead-tint); }
.is-dead  .ledger-bar i { background: var(--dead); }
.is-dead  .ledger-name  { color: var(--ink-2); }

.ledger-foot {
  padding: 15px 20px;
  background: #FAFBFE;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 9px;
}

.pulse {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--dead);
  flex: none;
}

/* --- Ledger motion ------------------------------------------------------
   Gated on `.js`, set by an inline script in <head>. Without scripting the
   rows must render as a plain, complete list rather than an empty card. */

.js .ledger-row { opacity: 0; transform: translateY(8px); }

.js .ledger.play .ledger-row {
  animation: rowIn .5s cubic-bezier(.2,.7,.3,1) forwards;
}

.js .ledger.play .ledger-bar i {
  animation: barFill .9s cubic-bezier(.2,.7,.3,1) both;
}

/* Row and its bar share one delay, declared per row in the markup, so each
   line lands as a single movement rather than a slide and a separate fill. */
.js .ledger.play .ledger-row,
.js .ledger.play .ledger-row .ledger-bar i { animation-delay: var(--d, 0s); }

@keyframes rowIn { to { opacity: 1; transform: none; } }

/* The bar drains rather than fills. A warranty only ever goes one way, and
   watching four of them empty at once is the whole argument of this page. */
@keyframes barFill { from { width: 100%; } to { width: var(--left, 0%); } }

.ledger-count, .ledger-bar i { transition: background-color .4s, color .4s; }

/* --- The gap: three facts ----------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.fact {
  padding: 34px 32px 34px 0;
  border-right: 1px solid var(--rule);
}

.fact:last-child { border-right: 0; padding-right: 0; }
.fact:not(:first-child) { padding-left: 32px; }

.fact-fig {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}

.fact p { margin: 0; font-size: 16px; color: var(--ink-2); }

/* --- Capture tiles ------------------------------------------------------ */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 24px 22px 26px;
  transition: border-color .18s, transform .18s;
}

.tile:hover { border-color: var(--violet); transform: translateY(-2px); }

.tile-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 14px;
}

.tile h3 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  font-size: 20px;
  margin: 0 0 8px;
}

.tile p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* --- On-device block (the one loud colour field) ------------------------ */

.guard {
  background: var(--violet-deep);
  color: #fff;
}

.guard .eyebrow { color: #A6A0FF; }
.guard h2 { font-size: clamp(34px, 4.4vw, 52px); margin: 0 0 18px; }
.guard .lede { color: #C6C3EE; }

.guard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 54px;
}

.split {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg);
  padding: 30px 30px 34px;
  position: relative;
}

.split--on { background: rgba(255,255,255,.06); }

.split h3 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  font-size: 23px;
  margin: 0 0 6px;
}

.split-note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #A6A0FF;
  margin: 0 0 22px;
}

.split ul { list-style: none; margin: 0; padding: 0; }

.split li {
  padding: 11px 0 11px 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 15.5px;
  color: #DEDCF7;
  position: relative;
}

.split li::before {
  content: "";
  position: absolute;
  left: 0; top: 20px;
  width: 12px; height: 1px;
  background: #7B72E8;
}

/* The section title and the mascot share a line: the block's right half was
   empty, and the shield is the one piece of the app's own artwork here. */
.guard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.guard-head .band-head { margin-bottom: 0; }

.guard-mascot {
  width: 168px;
  height: auto;
  flex: none;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.4));
}

.guard-foot {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 13px;
  color: #A6A0FF;
}

.guard-foot a { color: #fff; }

/* --- Two-up feature rows ------------------------------------------------ */

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 34px 32px 36px;
}

.panel h3 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.025em;
  font-size: 26px;
  margin: 0 0 12px;
}

.panel p { margin: 0 0 22px; color: var(--ink-2); font-size: 16px; }

.schedule { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--violet-tint);
  color: var(--violet);
}

.chip--muted { background: var(--paper-deep); color: var(--ink-2); }

.panel-note {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-3);
  margin: 22px 0 0;
  max-width: 44ch;
}

.quote {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
  background: #FAFBFE;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  padding: 18px 18px;
  margin: 0;
}

.quote .cursor {
  display: inline-block;
  width: 7px; height: 15px;
  background: var(--violet);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* --- Plans -------------------------------------------------------------- */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.plan {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 32px 30px 34px;
  display: flex;
  flex-direction: column;
}

.plan--pro { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-tint); }

.plan-name {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.plan--pro .plan-name { color: var(--violet); }

.plan-price {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 24px;
}

.plan ul { list-style: none; margin: 0 0 26px; padding: 0; }

.plan li {
  padding: 10px 0 10px 24px;
  border-top: 1px solid var(--rule-soft);
  font-size: 15.5px;
  color: var(--ink-2);
  position: relative;
}

.plan li:first-child { border-top: 0; }

.plan li::before {
  content: "";
  position: absolute;
  left: 2px; top: 19px;
  width: 10px; height: 1px;
  background: var(--violet);
}

.plan .btn { margin-top: auto; align-self: flex-start; }

.plans-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 20px;
}

/* --- Footer ------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 52px 60px;
  background: var(--paper-deep);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
}

.foot-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

.foot-legal {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-3);
  margin-top: 34px;
  max-width: 74ch;
}

/* --- Document pages (terms / privacy) ----------------------------------- */

.doc { padding-block: 72px 100px; }

.doc-head { max-width: 760px; margin-bottom: 46px; }
.doc-head h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 16px; }

.doc-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.doc-body { max-width: 68ch; }

.doc-body section {
  border-top: 1px solid var(--rule);
  padding-block: 30px;
}

.doc-body h2 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  font-size: 24px;
  margin: 0 0 14px;
}

.doc-body p { margin: 0 0 14px; color: var(--ink-2); font-size: 16.5px; }
.doc-body p:last-child { margin-bottom: 0; }
.doc-body strong { color: var(--ink); font-weight: 600; }

.doc-body ul { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); font-size: 16.5px; }
.doc-body li { margin-bottom: 7px; }

.doc-toc {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-bottom: 46px;
  max-width: 68ch;
}

.doc-toc p {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}

.doc-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 2;
}

.doc-toc a { color: var(--ink-2); text-decoration: none; }
.doc-toc a:hover { color: var(--violet); }

/* --- Contact ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 64px;
  align-items: start;
}

/* Follows the reader down the question list — the address is the one thing
   this page exists to hand over. */
.mail-card {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 30px 28px 32px;
}

.mail-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
}

.mail-addr {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 24px;
  word-break: break-all;
}

.mail-card .btn { width: 100%; justify-content: center; }

.mail-hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  margin: 18px 0 0;
  line-height: 1.7;
}

.ask-list { list-style: none; margin: 34px 0 0; padding: 0; }

.ask-list li {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
}

.ask-list h3 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  font-size: 19px;
  margin: 0 0 7px;
}

.ask-list p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 54ch; }

/* --- Reveal on scroll --------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(14px); }

.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .guard-grid, .duo, .plans, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 40px; }
  .mail-card { position: static; }
  .guard-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .guard-mascot { width: 116px; order: -1; margin-bottom: 12px; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--rule); padding: 26px 0; }
  .fact:not(:first-child) { padding-left: 0; }
  .fact:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .band { padding-block: 76px; }
  .hero { padding-block: 60px 76px; }
  .wrap { padding-inline: 20px; }
  .tiles { grid-template-columns: 1fr; }
  .doc-toc ol { columns: 1; }

  /* The nav wraps to a second line rather than dropping its links — every
     page has to stay one tap away, and a 4-page site doesn't need a menu. */
  .nav-in {
    height: auto;
    flex-wrap: wrap;
    padding-block: 13px;
    gap: 12px 16px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    gap: 18px;
    font-size: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  section[id], .doc-body section[id] { scroll-margin-top: 116px; }
  .lede { font-size: 17.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .ledger-row { opacity: 1; transform: none; }
  .js .ledger-bar i { width: var(--left, 0%); }
  .js .reveal { opacity: 1; transform: none; }
}
