/* ============================================================
   Sivolo — site styles
   Brand: ink #1a1a1a · coral #e16758 · cream #faf9f7
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:       #1a1a1a;
  --ink-soft:  #33312e;
  --text:      #2b2926;
  --muted:     #6b665f;
  --faint:     #948d83;

  --coral:     #e16758;
  --coral-dk:  #c84f40;
  --coral-tint:#fbeeec;

  --cream:     #faf9f7;
  --cream-2:   #f4f1ec;
  --surface:   #ffffff;
  --border:    #e9e4db;
  --border-2:  #ddd6ca;

  /* evidence group accents */
  --rai:    #e16758;  /* reactive abuse — coral */
  --hva:    #6361d8;  /* high-value admissions — indigo */
  --vii:    #3f7fc4;  /* victim impact — blue */
  --pattern:#3f9c8c;  /* pattern categories — teal */

  --shadow:   0 6px 22px rgba(26,26,26,0.07);
  --shadow-sm:0 2px 10px rgba(26,26,26,0.06);
  --radius:   14px;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--coral-dk); }

/* ── Nav ─────────────────────────────────────────────────── */
nav {
  background: rgba(250,249,247,0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.6rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand { display: flex; align-items: center; padding: 0.65rem 0; }
.nav-brand img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--cream-2); }
.nav-links a.active { color: var(--coral-dk); }
.nav-links a.nav-cta {
  background: var(--coral); color: #fff; margin-left: 0.4rem;
}
.nav-links a.nav-cta:hover { background: var(--coral-dk); color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem 1rem; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 0.85rem; }
  .nav-links a.nav-cta { margin: 0.5rem 0 0; text-align: center; }
}

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
section { position: relative; }

.eyebrow {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--coral-dk); display: block; margin-bottom: 0.7rem;
}
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-heading.wide { max-width: 880px; }

/* footnotes */
.fn-ref { color: var(--coral-dk); font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.fn-ref:hover { color: var(--coral); }
.footnote { margin-top: 1.4rem; font-size: 0.84rem; color: var(--muted); line-height: 1.6; }
.fn-mark { color: var(--coral-dk); font-weight: 600; }
.step-note { margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px dashed var(--border); font-size: 0.82rem; color: var(--faint); line-height: 1.55; }
.step-note strong { color: var(--coral-dk); font-weight: 600; }
.section-heading h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 700; color: var(--ink); line-height: 1.2; }
.section-heading p { color: var(--muted); margin: 0.9rem auto 0; font-size: 1rem; }

h1, h2, h3 { letter-spacing: -0.01em; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block; background: var(--coral); color: #fff; text-decoration: none;
  padding: 0.8rem 1.7rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s; border: none; cursor: pointer;
  font-family: inherit; box-shadow: 0 4px 14px rgba(225,103,88,0.28);
}
.btn:hover { background: var(--coral-dk); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface); color: var(--ink); border: 1px solid var(--border-2); box-shadow: none;
}
.btn-ghost:hover { background: var(--cream-2); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.55); box-shadow: none; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4.5rem 1.5rem 3rem;
  background:
    radial-gradient(1100px 460px at 50% -10%, var(--coral-tint) 0%, rgba(251,238,236,0) 65%),
    var(--cream);
}
.hero .logo-anim {
  display: inline-flex; align-items: center; justify-content: center;
  height: 88px; margin-bottom: 1.6rem;
}
.hero .logo-anim img { height: 100%; width: auto; }
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 750; color: var(--ink);
  line-height: 1.1; max-width: 880px; margin: 0 auto 1.1rem;
}
.hero h1 .accent { color: var(--coral-dk); }
.hero .lede {
  font-size: clamp(1.02rem, 1.7vw, 1.18rem); color: var(--muted);
  max-width: 620px; margin: 0 auto 2rem; line-height: 1.65;
}
.hero .btn-row { justify-content: center; }
.hero-note { margin-top: 1.1rem; font-size: 0.85rem; color: var(--faint); }

/* ── Animated Sivolo logo (idle / analysing heart) ───────── */
#hero-logo { width: 320px; max-width: 80vw; display: block; margin: 0 auto; overflow: visible; }
.nav-logo { height: 34px; width: auto; display: block; overflow: visible; }

/* Outer group = position. Idle: small heart over the dot of the 'i'. */
.sivolo-logo.heart-state-idle .heart-pos {
  transform: translate(121.9px, 53.7px) scale(0.028) translate(-689px, -255px);
  transition: transform 0.35s cubic-bezier(0.55, 0, 1, 0.45);
}
/* Analysing: heart floats up to the figure's raised arms and grows. */
.sivolo-logo.heart-state-analysing .heart-pos {
  transform: translate(80px, 36px) scale(0.095) translate(-689px, -255px);
  transition: transform 1.1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Inner group = heartbeat, scales around the heart's own centre. */
.sivolo-logo .heart-pulse-inner { transform-box: fill-box; transform-origin: center; }
.sivolo-logo.heart-state-idle .heart-pulse-inner { animation: doublePulse 2.6s ease-in-out 0.3s infinite; }
.sivolo-logo.heart-state-analysing .heart-pulse-inner { animation: heartbeat 1.2s ease-in-out infinite; }

@keyframes doublePulse {
  0%   { transform: scale(1);    }
  10%  { transform: scale(1.4);  }
  20%  { transform: scale(1);    }
  32%  { transform: scale(1.22); }
  42%  { transform: scale(1);    }
  100% { transform: scale(1);    }
}
@keyframes heartbeat {
  0%   { transform: scale(1);    }
  14%  { transform: scale(1.18); }
  28%  { transform: scale(1);    }
  42%  { transform: scale(1.1);  }
  56%  { transform: scale(1);    }
  100% { transform: scale(1);    }
}
@media (prefers-reduced-motion: reduce) {
  .sivolo-logo .heart-pulse-inner { animation: none; }
  .sivolo-logo .heart-pos { transition: none; }
}

/* ── Page header (inner pages) ───────────────────────────── */
.page-header {
  text-align: center; padding: 3.6rem 1.5rem 2.6rem;
  background:
    radial-gradient(900px 380px at 50% -20%, var(--coral-tint) 0%, rgba(251,238,236,0) 70%),
    var(--cream);
}
.page-header h1 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 730; color: var(--ink); line-height: 1.15; }
.page-header p { color: var(--muted); max-width: 600px; margin: 0.9rem auto 0; font-size: 1.02rem; }

/* ── Cards / grids ───────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 1.08rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.card p { font-size: 0.94rem; color: var(--muted); line-height: 1.6; }
.card .ico {
  width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: var(--coral-tint); margin-bottom: 1rem; font-size: 1.3rem;
}
/* Sivolo custom line-icon set */
.ico svg {
  width: 23px; height: 23px; display: block;
  fill: none; stroke: var(--coral-dk); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
a.card { text-decoration: none; color: inherit; transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s; display: block; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--border-2); }
.card-more { display: inline-block; margin-top: 0.8rem; font-size: 0.85rem; font-weight: 600; color: var(--coral-dk); }

/* feature row blocks */
.feature-block { padding: 4rem 0; }
.feature-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 1000px; margin: 0 auto;
}
.feature-split.reverse .feature-text { order: 2; }
.feature-text h2 { font-size: clamp(1.5rem, 2.8vw, 1.95rem); color: var(--ink); line-height: 1.2; margin-bottom: 1rem; }
.feature-text p { color: var(--muted); margin-bottom: 0.9rem; }
.feature-list { list-style: none; margin: 1.2rem 0 0; }
.feature-list li { position: relative; padding-left: 1.8rem; margin-bottom: 0.7rem; color: var(--text); font-size: 0.96rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--coral);
}
@media (max-width: 820px) {
  .feature-split { grid-template-columns: 1fr; gap: 2rem; }
  .feature-split.reverse .feature-text { order: 0; }
}

/* ── Steps ───────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.4rem 4.2rem; position: relative; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.3rem; top: 1.3rem;
  width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: #fff;
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.step h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ── Evidence group cards ────────────────────────────────── */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.ev-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--c, var(--coral));
}
.ev-card .tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem; border-radius: 6px; margin-bottom: 0.7rem; text-transform: uppercase;
  color: var(--c, var(--coral)); background: color-mix(in srgb, var(--c, var(--coral)) 12%, white);
}
.ev-card h3 { font-size: 1.02rem; color: var(--ink); margin-bottom: 0.45rem; }
.ev-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* ── Pricing / editions ──────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; align-items: stretch; }
.tier {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.tier.featured { border-color: var(--coral); box-shadow: 0 10px 30px rgba(225,103,88,0.16); position: relative; }
.tier.featured::after {
  content: "Most popular"; position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
  background: var(--coral); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 0.28rem 0.85rem; border-radius: 20px; text-transform: uppercase;
}
.tier .tier-name { font-size: 1.25rem; font-weight: 750; color: var(--ink); }
.tier .tier-for { font-size: 0.85rem; color: var(--coral-dk); font-weight: 600; margin-top: 0.2rem; }
.tier .tier-price { font-size: 1rem; color: var(--muted); margin: 1rem 0 0.2rem; font-weight: 600; }
.tier .tier-launch { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; color: var(--coral-dk); background: var(--cream-2); border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.6rem; margin: 0.1rem 0 0.2rem; }
.cmp-note { margin-top: 1.2rem; font-size: 0.85rem; color: var(--muted); line-height: 1.6; max-width: 760px; }
.story-intro { max-width: 720px; margin: 0 auto; }
.story-intro p { color: var(--muted); line-height: 1.75; margin-bottom: 1rem; }
.story-byline { color: var(--ink); font-weight: 600; white-space: nowrap; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; max-width: 900px; margin: 2.2rem auto 0; align-items: start; }
.story-item { margin: 0; }
.story-frame { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 0.5rem; }
.story-frame img { width: 100%; height: auto; display: block; border-radius: 6px; }
.story-item figcaption { font-size: 0.8rem; color: var(--faint); margin-top: 0.8rem; line-height: 1.55; text-align: center; }
@media (max-width: 640px) { .story-grid { grid-template-columns: 1fr; max-width: 420px; } }
.tier .tier-desc { font-size: 0.92rem; color: var(--muted); margin: 0.8rem 0 1.2rem; }
.tier ul { list-style: none; margin: 0 0 1.5rem; }
.tier ul li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; font-size: 0.9rem; color: var(--text); }
.tier ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--coral); font-weight: 700;
}
.tier .btn { margin-top: auto; text-align: center; }

/* comparison table */
.cmp { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.9rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cmp th, .cmp td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.cmp thead th { background: var(--cream-2); color: var(--ink); font-weight: 700; }
.cmp td.feat { color: var(--text); font-weight: 500; }
.cmp td.c { text-align: center; }
.cmp .yes { color: var(--pattern); font-weight: 700; }
.cmp .no  { color: var(--faint); }
.cmp tbody tr:last-child td { border-bottom: none; }
/* editions comparison table: scroll horizontally on narrow screens instead of clipping */
.cmp-scroll { margin-top: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.cmp-scroll .cmp { margin-top: 0; min-width: 600px; border-radius: 0; box-shadow: none; }
@media (max-width: 600px) {
  .cmp-scroll .cmp { font-size: 0.82rem; }
  .cmp-scroll .cmp th, .cmp-scroll .cmp td { padding: 0.6rem 0.7rem; }
}

/* ── Bands ───────────────────────────────────────────────── */
.band { padding: 4rem 0; }
.band-cream { background: var(--cream-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink .section-heading h2 { color: #fff; }
.band-ink .section-heading p { color: #c7c1b8; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 750; color: var(--coral-dk); line-height: 1; }
.stat .lbl { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

/* quote */
.quote { text-align: center; max-width: 720px; margin: 0 auto; }
.quote blockquote { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-style: italic; color: var(--ink); line-height: 1.5; }
.quote cite { display: block; margin-top: 1.2rem; font-style: normal; font-weight: 600; font-size: 0.9rem; color: var(--muted); }

/* ── CTA box ─────────────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, var(--ink) 0%, #2c2926 100%);
  color: #fff; border-radius: 18px; padding: 3rem 2rem; text-align: center; margin: 3.5rem 0;
}
.cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.7rem; color: #fff; }
.cta p { color: #c7c1b8; max-width: 520px; margin: 0 auto 1.6rem; }
.cta .btn-row { justify-content: center; }

/* ── Notice / helpline ───────────────────────────────────── */
.notice {
  background: var(--coral-tint); border: 1px solid #f3d6d1; border-radius: 12px;
  padding: 1.1rem 1.3rem; font-size: 0.9rem; color: var(--ink-soft);
}
.notice strong { color: var(--coral-dk); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--ink); color: #b8b2a8; padding: 3rem 1.5rem 2.2rem; margin-top: 0;
}
.footer-grid {
  max-width: 1080px; margin: 0 auto; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 30px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; color: #8c867d; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: #cfc9bf; margin-bottom: 0.9rem; }
.footer-col a { display: block; color: #b8b2a8; text-decoration: none; font-size: 0.88rem; margin-bottom: 0.55rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1080px; margin: 1.6rem auto 0; font-size: 0.8rem; color: #8c867d;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
}
.footer-bottom a { color: #8c867d; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
/* footer contact list (email / phone / WhatsApp) */
.footer-contact { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: 0.5rem; color: #b8b2a8; text-decoration: none; font-size: 0.85rem; }
.footer-contact a:hover { color: #fff; }
.footer-contact svg { width: 15px; height: 15px; flex: 0 0 auto; }
/* footer social icon row */
.footer-social { display: flex; align-items: center; gap: 1rem; }
.footer-social a { color: #8c867d; display: inline-flex; }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Real screenshot frames ──────────────────────────────── */
.shotframe { background: #1a1a1a; border-radius: 30px; padding: 7px; box-shadow: 0 18px 40px rgba(26,26,26,0.20); }
.shotframe img { display: block; width: 100%; border-radius: 24px; }
.shot-single { width: 270px; max-width: 78%; margin: 0 auto; }

/* staggered pair */
.phone-pair { position: relative; width: 100%; max-width: 440px; aspect-ratio: 440 / 600; margin: 0 auto; }
.phone-pair .shotframe { position: absolute; width: 60%; }
.phone-pair .pp-back { top: 0; right: 0; z-index: 1; }
.phone-pair .pp-front { bottom: 0; left: 0; z-index: 2; }
.phone-pair.flip .pp-back { left: 0; right: auto; }
.phone-pair.flip .pp-front { right: 0; left: auto; }
.shot-caption { font-size: 0.78rem; color: var(--faint); margin-top: 0.9rem; }
.tag-opt { display: inline-block; vertical-align: middle; margin-left: 0.5rem; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral-dk); background: var(--cream-2); border: 1px solid var(--border); border-radius: 999px; padding: 0.12rem 0.5rem; }
@media (max-width: 480px) { .phone-pair { max-width: 360px; } }

/* cross-device lockup: browser frame + phone */
.device-lockup { position: relative; max-width: 940px; margin: 0 auto; padding-bottom: 0.5rem; }
.browser-frame { width: 84%; margin-left: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 22px 50px rgba(26,26,26,0.16); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 0.55rem 0.85rem; background: var(--cream-2); border-bottom: 1px solid var(--border); }
.browser-bar .bdot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.browser-bar .addr { margin-left: 0.5rem; flex: 0 1 320px; background: #fff; border: 1px solid var(--border); border-radius: 20px; font-size: 0.72rem; color: var(--muted); padding: 0.25rem 0.9rem; text-align: center; }
.browser-frame img { display: block; width: 100%; }
.device-lockup .lk-phone { position: absolute; left: 0; bottom: 0; width: 22%; z-index: 3; }
@media (max-width: 600px) {
  .browser-frame { width: 100%; }
  .device-lockup .lk-phone { width: 30%; left: -2%; bottom: -6%; }
}

/* staggered pair of document pages (PDF report) */
.docframe { background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 14px 36px rgba(26,26,26,0.16); overflow: hidden; }
.docframe img { display: block; width: 100%; }
.doc-pair { position: relative; width: 100%; max-width: 480px; aspect-ratio: 480 / 540; margin: 0 auto; }
.doc-pair .docframe { position: absolute; width: 66%; }
.doc-pair .dp-back  { top: 0; left: 0; z-index: 1; }
.doc-pair .dp-front { bottom: 0; right: 0; z-index: 2; }
@media (max-width: 480px) { .doc-pair { max-width: 380px; } }

/* fanned trio of screenshots */
.phone-trio { position: relative; width: 100%; max-width: 460px; aspect-ratio: 460 / 640; margin: 0 auto; }
.phone-trio .shotframe { position: absolute; width: 54%; }
.phone-trio .pt-1 { top: 0;   left: 0;   z-index: 1; }
.phone-trio .pt-2 { top: 7%;  left: 23%; z-index: 2; }
.phone-trio .pt-3 { top: 14%; left: 46%; z-index: 3; }
@media (max-width: 480px) { .phone-trio { max-width: 380px; } }

/* ── Phone mockup ────────────────────────────────────────── */
.phone {
  width: 300px; max-width: 100%; background: #1a1a1a; border-radius: 38px; padding: 11px;
  box-shadow: 0 22px 50px rgba(26,26,26,0.22); margin: 0 auto;
}
.phone-screen {
  background: var(--cream); border-radius: 28px; overflow: hidden; position: relative;
  aspect-ratio: 9/19.2; display: flex; flex-direction: column;
}
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #1a1a1a; border-radius: 12px; z-index: 5; }
.ps-head { padding: 2.2rem 1rem 0.7rem; text-align: center; }
.ps-head .ps-logo { height: 20px; }
.ps-body { flex: 1; overflow: hidden; padding: 0.4rem 0.8rem 0.8rem; }
.ps-title { font-size: 0.82rem; font-weight: 700; color: var(--ink); margin: 0.5rem 0; }

/* mini evidence cards inside phone */
.mini-card { background:#fff; border:1px solid var(--border); border-left: 3px solid var(--c, var(--coral)); border-radius: 9px; padding: 0.55rem 0.65rem; margin-bottom: 0.5rem; }
.mini-card .mc-tag { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--c, var(--coral)); }
.mini-card .mc-quote { font-size: 0.62rem; color: var(--ink-soft); line-height: 1.4; margin-top: 0.2rem; font-style: italic; }
.mini-card .mc-meta { font-size: 0.5rem; color: var(--faint); margin-top: 0.25rem; }

/* score bars */
.scorebar { margin-bottom: 0.55rem; }
.scorebar .sb-row { display: flex; justify-content: space-between; font-size: 0.58rem; color: var(--ink-soft); margin-bottom: 0.18rem; font-weight: 600; }
.scorebar .sb-track { height: 6px; background: var(--cream-2); border-radius: 4px; overflow: hidden; }
.scorebar .sb-fill { height: 100%; border-radius: 4px; background: var(--c, var(--coral)); }

.ps-tabbar { display: flex; justify-content: space-around; padding: 0.45rem 0; border-top: 1px solid var(--border); background:#fff; }
.ps-tabbar .tab { font-size: 0.5rem; color: var(--faint); display: flex; flex-direction: column; align-items: center; gap: 0.12rem; }
.ps-tabbar .tab.active { color: var(--coral-dk); }
.ps-tabbar .tab .dot { width: 14px; height: 14px; border-radius: 5px; background: currentColor; opacity: 0.85; }

/* pill row */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.4rem; }
.pill { background: var(--surface); border: 1px solid var(--border); color: var(--ink-soft); font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 20px; }

/* risk badge */
.risk-badge { display:inline-flex; align-items:center; gap:0.4rem; font-size:0.6rem; font-weight:700; padding:0.25rem 0.6rem; border-radius:20px; text-transform:uppercase; letter-spacing:0.05em; }
.risk-critical { background:#fdeceb; color:#c0392b; }
.risk-high { background:#fef0e7; color:#d35400; }

/* utility */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.lead-muted { color: var(--muted); font-size: 1.02rem; }
.prose p { margin-bottom: 1rem; color: var(--text); }
.prose h2 { font-size: 1.4rem; color: var(--ink); margin: 2rem 0 0.8rem; }
.prose h3 { font-size: 1.1rem; color: var(--ink); margin: 1.5rem 0 0.5rem; }
.prose ul { margin: 0.5rem 0 1.2rem 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
