/* ==========================================================================
   ReviveGuard — Inner pages
   Clarity-first layouts on home.css tokens.
   Rule: one job per section · cards only when interactive · green as accent not wallpaper
   ========================================================================== */

.nav-links a.active {
  color: var(--green-dark);
  background: var(--mint);
}

/* ---------- Quiet page hero (left story, optional media) ---------- */
.page-hero {
  padding: 52px 0 28px;
  position: relative;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.page-hero-grid.solo {
  grid-template-columns: minmax(0, 720px);
}
.page-hero .kicker {
  display: inline-block;
  margin-bottom: 14px;
}
.page-hero h1 {
  margin: 0 0 16px;
  max-width: 16ch;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--green-dark);
}
.page-hero .lede {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
}
.page-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.page-hero .cta-note {
  margin-top: 12px;
}
.page-hero-media {
  position: relative;
}
.page-hero-media img {
  width: 100%;
  height: clamp(280px, 34vw, 420px);
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: var(--sh-md);
}
.page-hero-media .caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-hero-media .caption i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: block;
}

/* ---------- Section rhythm ---------- */
.pg-section {
  padding: 72px 0;
}
.pg-section.tight { padding: 48px 0; }
.pg-section.loose { padding: 96px 0; }
.pg-section.muted {
  background: #FBFDFB;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pg-head {
  max-width: 560px;
  margin: 0 0 40px;
}
.pg-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.pg-head .kicker { display: inline-block; margin-bottom: 12px; }
.pg-head h2 { margin: 0 0 12px; max-width: 18ch; }
.pg-head.center h2 { margin-left: auto; margin-right: auto; }
.pg-head .lede {
  margin: 0;
  max-width: 48ch;
  font-size: 16.5px;
}
.pg-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Process flow (no cards) ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 48px);
  counter-reset: flow;
}
.flow-step {
  position: relative;
  padding-top: 8px;
}
.flow-step::before {
  counter-increment: flow;
  content: "0" counter(flow);
  font-family: var(--font-m);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  display: block;
  margin-bottom: 16px;
}
.flow-step h3 {
  margin: 0 0 10px;
  font-size: 19px;
}
.flow-step p {
  margin: 0;
  font-size: 15px;
  color: var(--body-c);
  line-height: 1.6;
  max-width: 34ch;
}
.flow-step .meta {
  display: block;
  margin-top: 14px;
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--muted);
}
.flow-note {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 14.5px;
  color: var(--body-c);
}
.flow-note a {
  font-weight: 650;
  color: var(--green-dark);
  white-space: nowrap;
}
.flow-note a:hover { text-decoration: underline; }

/* ---------- Split: copy + proof ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
.split.reverse .split-copy { order: 2; }
.split.reverse .split-media { order: 1; }
.split-copy .kicker { display: inline-block; margin-bottom: 12px; }
.split-copy h2,
.split-copy h3 {
  margin: 0 0 14px;
  max-width: 32ch;
  font-size: clamp(24px, 2.5vw, 32px);
}
.split-copy > p {
  margin: 0 0 20px;
  font-size: 15.5px;
  color: var(--body-c);
  max-width: 61ch;
  line-height: 1.6;
}
.split-media img {
  width: 100%;
  height: clamp(260px, 32vw, 400px);
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: var(--sh-md);
}

/* Plain checklist */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.check-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  color: var(--body-c);
  line-height: 1.5;
}
.check-list .ck {
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- Portal / UI window (evidence, not decoration) ---------- */
.ui-window {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: var(--sh-md);
  overflow: hidden;
  text-align: left;
}
.ui-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #FCFEFC;
}
.ui-titlebar .traffic { display: flex; gap: 6px; }
.ui-titlebar .traffic i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
  display: block;
}
.ui-url {
  margin-left: 8px;
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.ui-body { padding: 18px; }
.ui-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ui-header-row h5 {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  margin: 0;
}
.mono-label {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.ui-add-btn {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--green-dark);
  background: var(--mint);
  border-radius: 999px;
  padding: 7px 12px;
}
.ui-site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FCFEFC;
  margin-bottom: 10px;
}
.ui-site:last-child { margin-bottom: 0; }
.ui-site-name { font-weight: 650; font-size: 14px; color: var(--ink); }
.ui-site-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ui-site-stat { text-align: right; margin-left: auto; }
.ui-site-stat .num {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.ui-site-stat .lbl { font-size: 10.5px; color: var(--muted); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 650;
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}
.chip-ok { background: var(--mint); color: var(--green-dark); }
.chip-warn { background: var(--amber-bg); color: var(--amber); }
.chip-neutral { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.dot-ok { background: var(--green); }
.dot-warn { background: var(--amber); }
.ui-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ui-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 650;
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--line);
}
.ui-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ui-table tr:last-child td { border-bottom: none; }
.strong-cell { font-weight: 650; color: var(--ink); }
.mono-cell { font-family: var(--font-m); font-size: 12px; color: var(--muted); }
.ui-restore-link {
  font-size: 12px;
  font-weight: 650;
  color: var(--green-dark);
}

/* Month cadence — simple rows, not cards */
.cadence {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.cadence li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.cadence .when {
  font-family: var(--font-m);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-dark);
}
.cadence .what {
  font-size: 15px;
  color: var(--body-c);
  line-height: 1.5;
  margin: 0;
}
.cadence .what strong { color: var(--ink); font-weight: 650; }

/* ---------- Incident timeline (one deep band per page max) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.timeline-step .t {
  font-family: var(--font-m);
  font-size: 11.5px;
  color: var(--lime);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 10px;
}
.timeline-step h4 {
  font-family: var(--font-d);
  font-size: 16px;
  color: var(--on-deep);
  margin: 0 0 8px;
  font-weight: 650;
}
.timeline-step p {
  margin: 0;
  font-size: 13.5px;
  color: var(--on-deep-dim);
  line-height: 1.55;
}
.tier-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(234, 246, 238, 0.12);
}
.tier-row h5 {
  font-family: var(--font-d);
  color: var(--on-deep);
  font-size: 14px;
  margin: 0 0 8px;
}
.tier-row p {
  margin: 0;
  font-size: 13px;
  color: var(--on-deep-dim);
  line-height: 1.55;
}

/* ---------- About story ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
.story-media { position: relative; }
.story-media img {
  width: 100%;
  height: clamp(300px, 38vw, 440px);
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--sh-md);
  display: block;
}
.story-stat {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--sh-sm);
  max-width: 180px;
}
.story-stat .num {
  font-family: var(--font-d);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  letter-spacing: -0.03em;
}
.story-stat .lbl {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
  display: block;
  margin-top: 4px;
}
.story-copy .kicker { display: inline-block; margin-bottom: 12px; }
.story-copy h2 { margin: 0 0 16px; max-width: 16ch; }
.story-copy p {
  margin: 0 0 14px;
  font-size: 15.5px;
  color: var(--body-c);
  max-width: 48ch;
  line-height: 1.65;
}
.story-copy p.pull {
  font-family: var(--font-d);
  font-weight: 650;
  font-size: 17px;
  color: var(--ink);
  margin-top: 8px;
}

/* Reasons — open layout, hairline dividers */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
  margin-top: 8px;
}
.reason {
  padding: 8px 0 0;
}
.reason + .reason {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.reason h3 { margin: 0 0 10px; font-size: 17px; }
.reason p {
  margin: 0;
  font-size: 14.5px;
  color: var(--body-c);
  line-height: 1.6;
}

/* Quality facts — quiet strip */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.fact .num {
  font-family: var(--font-d);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  letter-spacing: -0.03em;
}
.fact .lbl {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  display: block;
  margin-top: 6px;
  max-width: 16ch;
}
.quality-copy {
  max-width: 640px;
}
.quality-copy h2 { margin: 0 0 14px; }
.quality-copy p {
  margin: 0 0 12px;
  font-size: 15.5px;
  color: var(--body-c);
  line-height: 1.65;
}

/* ---------- Pricing detail ---------- */
.page-plans { margin-top: 8px; }
.plan-detail .plan-identity {
  font-size: 14.5px;
  color: var(--body-c);
  font-style: italic;
  margin: 0 0 14px;
  line-height: 1.45;
}
.plan.featured .plan-identity { color: var(--on-deep-dim); }
.plan-sites {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--muted);
  margin: -4px 0 14px;
}
.plan.featured .plan-sites { color: var(--on-deep-dim); }
.plan-best {
  font-size: 13.5px;
  color: var(--body-c);
  margin: 0 0 14px;
  line-height: 1.5;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.plan.featured .plan-best {
  color: var(--on-deep-dim);
  border-bottom-color: rgba(234, 246, 238, 0.14);
}
.plan-incident {
  font-size: 13.5px;
  color: var(--body-c);
  line-height: 1.5;
  margin-bottom: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.plan-incident .lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.plan.featured .plan-incident {
  color: var(--on-deep-dim);
  border-bottom-color: rgba(234, 246, 238, 0.14);
}
.plan.featured .plan-incident .lbl { color: var(--on-deep-dim); }
.plan ul li.group {
  display: block;
  margin: 14px 0 6px;
  padding: 0;
  gap: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.3;
}
.plan.featured ul li.group { color: var(--on-deep-dim); }
.plan ul li.not { color: var(--muted); }
.plan ul li.not .ck { color: var(--muted); opacity: 0.55; }
.plan-value {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.plan.featured .plan-value { color: var(--on-deep-dim); }

.guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  margin: 32px 0 0;
  font-size: 13.5px;
  color: var(--body-c);
}
.guarantees span::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

.addons {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.addons-head {
  margin-bottom: 20px;
  max-width: 520px;
}
.addons-head h3 { margin: 0 0 6px; }
.addons-head p { margin: 0; font-size: 14.5px; color: var(--muted); }
.addons-table { width: 100%; border-collapse: collapse; }
.addons-table tr { border-bottom: 1px solid var(--line); }
.addons-table tr:last-child { border-bottom: none; }
.addons-table td {
  padding: 16px 0;
  font-size: 14.5px;
  color: var(--body-c);
  vertical-align: top;
}
.addons-table td:last-child {
  font-family: var(--font-d);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  color: var(--ink);
  width: 120px;
  padding-left: 24px;
}
.addons-table .a-name {
  font-weight: 650;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}

/* ---------- Evaluation landing ---------- */
.eval-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
  padding: 40px 0 72px;
}
.eval-copy h1 {
  margin: 0 0 16px;
  max-width: 14ch;
  font-size: clamp(34px, 4vw, 48px);
}
.eval-copy h1 em {
  font-style: normal;
  color: var(--green-dark);
}
.eval-copy .lede {
  margin: 0 0 28px;
  max-width: 42ch;
}
.eval-photo {
  position: relative;
  margin-bottom: 28px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.eval-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.eval-photo .tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eval-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 26px;
  box-shadow: var(--sh-sm);
  position: sticky;
  top: 100px;
}
.eval-aside h3 { margin: 0 0 8px; font-size: 22px; }
.eval-aside > p {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--body-c);
}
.eval-aside .btn { width: 100%; justify-content: center; }
.eval-aside .fine {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.eval-aside .points {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eval-aside .points li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  font-size: 13.5px;
  color: var(--body-c);
  line-height: 1.45;
}
.eval-aside .points .ck { color: var(--green-dark); font-weight: 700; }

/* ---------- Contact — primary path + quiet secondary ---------- */
.contact-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: 8px 0 48px;
  border-bottom: 1px solid var(--line);
}
.contact-lead-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.2vw, 28px);
  max-width: 16ch;
}
.contact-lead-copy p {
  margin: 0 0 20px;
  font-size: 15.5px;
  color: var(--body-c);
  max-width: 42ch;
  line-height: 1.6;
}
.contact-lead-copy .btn { margin-bottom: 10px; }
.contact-lead-media img {
  width: 100%;
  height: clamp(240px, 28vw, 340px);
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: var(--sh-md);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 40px;
}
.contact-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.contact-item p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--body-c);
  line-height: 1.55;
  max-width: 32ch;
}
.contact-item a.mail {
  font-weight: 650;
  color: var(--green-dark);
  font-size: 14.5px;
}
.contact-item a.mail:hover { text-decoration: underline; }
.contact-side {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.contact-side h3 { margin: 0 0 16px; font-size: 15px; color: var(--muted); font-weight: 650; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.contact-links a {
  font-size: 14.5px;
  font-weight: 550;
  color: var(--body-c);
}
.contact-links a:hover { color: var(--green-dark); }

/* Deep band open steps */
.deep-band .flow-step h3 { color: var(--on-deep); }
.deep-band .flow-step p { color: var(--on-deep-dim); }
.deep-band .flow-step::before { color: var(--lime); }
.deep-band .cta-note { color: var(--on-deep-dim); }

/* Pricing: who-it's-for guide */
.plan-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.plan-guide-item .tag {
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
  display: block;
  margin-bottom: 8px;
}
.plan-guide-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.plan-guide-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--body-c);
  line-height: 1.55;
  max-width: 32ch;
}

/* ---------- Responsive extras ---------- */
@media (max-width: 1080px) {
  .page-hero-grid,
  .split,
  .story,
  .eval-grid,
  .contact-lead { grid-template-columns: 1fr; }
  .split.reverse .split-copy,
  .split.reverse .split-media { order: initial; }
  .flow,
  .reasons,
  .timeline,
  .tier-row,
  .facts,
  .plan-guide,
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .reason + .reason {
    border-left: none;
    padding-left: 0;
  }
  .eval-aside { position: static; }
  .cadence li { grid-template-columns: 110px 1fr; gap: 16px; }
  .hide-narrow { display: none; }
}

@media (max-width: 720px) {
  .flow,
  .reasons,
  .timeline,
  .tier-row,
  .facts,
  .plan-guide,
  .contact-grid { grid-template-columns: 1fr; }
  .cadence li { grid-template-columns: 1fr; gap: 6px; }
  .page-hero { padding: 36px 0 20px; }
  .pg-section { padding: 56px 0; }
  .addons-table td:last-child {
    display: block;
    text-align: left;
    padding: 0 0 16px;
    width: auto;
  }
}
