/* ============================================================
   ChatSeal — site.css
   Design tokens + landing (W1) + shared-link viewer (W2) +
   legal pages + cookie banner. "Pine & paper" design language.
   No external assets — fonts are bundled in ../fonts/.
   ============================================================ */

/* ---------- Schibsted Grotesk (bundled, SIL OFL 1.1) ---------- */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/SchibstedGrotesk-var-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/SchibstedGrotesk-var-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/SchibstedGrotesk-var-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/SchibstedGrotesk-var-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------- Design tokens ---------------------- */
:root {
  --pine:        #146055;
  --pine-dark:   #115349;   /* hover: pine darkened ~6% */
  --deep-pine:   #0C3F37;
  --deep-pine-2: #0F4A40;
  --pine-light:  #7FC0A9;
  --pine-mist:   #BFE0D2;
  --pine-mist-2: #9CCBB8;
  --ink:         #1D2521;
  --body-text:   #4B564F;
  --muted:       #67736C;
  --faint:       #97A19A;
  --app-bg:      #FBFAF7;
  --field-bg:    #F0EDE5;
  --card-border: #ECE8DD;
  --card-border-2:#E3DFD3;
  --nav-border:  #EFECE3;
  --band-bg:     #F4F2EB;
  --outline-bd:  #DDD9CE;
  --wallpaper:   #EFEAE0;
  --sent:        #D9EFE2;
  --received:    #FFFFFF;
  --verified-tint:#DFF0E6;
  --verified-strip:#E7F3EC;
  --verified-strip-bd:#D5E8DD;
  --verified-text:#14634D;
  --amber:       #B4620B;
  --amber-bg:    #FBEED3;
  --amber-bd:    #EDD3A0;
  --amber-text:  #8A5A00;
  --amber-text-2:#7A5200;
  --amber-chip-bg:#FFF8EA;
  --slate:       #56698F;
  --violet:      #7A4F9E;
  --gray-avatar: #AEB6B0;
  --canvas:      #ECEAE4;
  --num-ghost:   #C9C4B5;
  --ts-on-mint:  #8CA396;
  --waveform:    #5E8F81;
  --kicker-bg:   #EEF6F1;
  --kicker-bd:   #C7DED4;

  --font-brand: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-chat:  -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:  ui-monospace, Menlo, Consolas, 'Cascadia Mono', monospace;

  --r-bubble: 12px;
  --r-card: 16px;
  --r-card-lg: 18px;
  --sh-bubble: 0 1px 1px rgba(28,37,33,.07);
  --sh-float:  0 6px 18px rgba(28,37,33,.12);
}

/* ---------------------- Base ---------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-brand);
  color: var(--ink);
  background: var(--app-bg);
  line-height: 1.45;
}
a { color: var(--pine); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--deep-pine); }
img, video { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------------------- Shared bits ---------------------- */
.logo-lockup { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.logo-dot {
  border-radius: 50%; background: var(--pine); flex: none;
  display: flex; align-items: center; justify-content: center;
}
.logo-dot.s26 { width: 26px; height: 26px; }
.logo-dot.s22 { width: 22px; height: 22px; }
.logo-word { font-weight: 800; letter-spacing: -.3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 10px; padding: 9px 15px;
  font-size: 12px; font-weight: 700; text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-pine { background: var(--pine); color: #fff; }
.btn-pine:hover { background: var(--pine-dark); color: #fff; }
.btn-outline {
  background: transparent; border: 1px solid var(--outline-bd);
  color: var(--body-text); padding: 8px 14px;
}
.btn-outline:hover { border-color: var(--faint); color: var(--ink); background: rgba(0,0,0,.02); }
.btn-pill { border-radius: 999px; padding: 9px 17px; font-size: 12.5px; }

.pill-sealed {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--verified-tint); border-radius: 999px; padding: 4px 9px; flex: none;
}
.pill-sealed .dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--verified-text);
  display: inline-flex; align-items: center; justify-content: center;
}
.pill-sealed .lbl { font-size: 10px; font-weight: 800; color: var(--verified-text); }
.pill-unverified {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--amber-bg); border-radius: 999px; padding: 4px 9px; flex: none;
}
.pill-unverified .lbl { font-size: 10px; font-weight: 800; color: var(--amber-text); }

.avatar-pair { position: relative; flex: none; display: inline-block; }
.avatar-pair .av {
  position: absolute; top: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-family: var(--font-chat);
}
.avatar-pair .av.b { border: 2px solid var(--app-bg); }

/* =====================================================
   W1 — Landing
   ===================================================== */
.nav {
  display: flex; align-items: center; gap: 26px;
  height: 64px; padding: 0 44px;
  border-bottom: 1px solid var(--nav-border);
  background: var(--app-bg);
}
.nav .logo-lockup { margin-right: 8px; }
.nav .logo-word { font-size: 17px; }
.nav-link { font-size: 12.5px; font-weight: 600; color: var(--body-text); }
.nav-link:hover { color: var(--deep-pine); }
.nav-spacer { flex: 1; }
.nav-open-link { font-size: 12.5px; font-weight: 600; color: var(--pine); }
.nav-open-link:hover { color: var(--deep-pine); }

.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px;
  align-items: center; padding: 54px 44px 58px;
  max-width: 1280px; margin: 0 auto;
}
.kicker {
  display: inline-block; font: 700 10px var(--font-mono);
  letter-spacing: 1px; color: var(--pine);
  border: 1px solid var(--kicker-bd); background: var(--kicker-bg);
  border-radius: 999px; padding: 5px 11px;
}
.hero h1 {
  font-size: 46px; font-weight: 800; line-height: 1.04;
  letter-spacing: -1.6px; margin: 18px 0 0;
}
.hero .lede {
  font-size: 15px; line-height: 1.6; color: var(--body-text);
  max-width: 470px; margin: 18px 0 0;
}
.badge-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; align-items: stretch; }
.store-badge {
  background: var(--ink); color: #fff; border-radius: 12px; padding: 9px 18px;
  display: inline-block; text-decoration: none; transition: background .15s ease;
}
.store-badge:hover { background: #10514A; color: #fff; }
.store-badge .small { font-size: 8.5px; opacity: .7; }
.store-badge .big { font-size: 14.5px; font-weight: 700; }
.badge-row .or-web {
  display: flex; align-items: center; font-size: 12.5px; font-weight: 600;
  color: var(--pine); padding-left: 6px;
}
.trust-row {
  display: flex; gap: 18px; margin-top: 24px;
  font-size: 11.5px; color: var(--muted); flex-wrap: wrap;
}

.preview-wrap { position: relative; justify-self: end; width: 430px; max-width: 100%; }
.preview-card {
  background: #fff; border: 1px solid var(--card-border-2);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(28,37,33,.14);
}
.preview-head {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px; border-bottom: 1px solid #F0EDE4;
}
.preview-head .avatar-pair { width: 42px; height: 28px; }
.preview-head .av { width: 28px; height: 28px; font-size: 12px; }
.preview-head .av.a { left: 0; background: var(--pine); }
.preview-head .av.b { left: 14px; background: var(--amber); border-color: #fff; }
.preview-title { font-size: 14px; font-weight: 800; }
.preview-meta { font-size: 10px; color: var(--muted); font-family: var(--font-chat); }
.wallpaper {
  background-color: var(--wallpaper);
  background-image: repeating-linear-gradient(135deg, rgba(20,96,85,.03) 0 2px, rgba(0,0,0,0) 2px 16px);
}
.preview-chat {
  padding: 14px; display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-chat);
}
.stamp {
  position: absolute; right: -16px; bottom: -18px;
  background: var(--pine); color: #fff;
  border: 3px solid var(--app-bg); border-radius: 999px; padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 14px 30px rgba(20,96,85,.35);
  transform: rotate(-6deg);
}
.stamp span { font-size: 13px; font-weight: 800; letter-spacing: .6px; }

/* generic bubbles (shared by landing preview + viewer) */
.datechip {
  align-self: center; background: rgba(255,255,255,.85);
  border-radius: 8px; padding: 3px 10px;
  font-size: 11px; color: var(--muted);
}
.msg { display: flex; flex-direction: column; max-width: 100%; }
.bubble {
  border-radius: var(--r-bubble);
  padding: 7px 11px 6px;
  box-shadow: var(--sh-bubble);
  font-size: 14px; line-height: 1.4;
  /* Size the bubble to its content (capped by max-width), never to a
     collapsed min-content — the fix for the "one word per line" wrapping. */
  width: fit-content; min-width: 44px;
}
/* align-items makes each bubble hug its content on the correct side */
.msg.in  { align-self: flex-start; align-items: flex-start; }
.msg.out { align-self: flex-end;  align-items: flex-end; }
.msg.in  .bubble { background: var(--received); border-bottom-left-radius: 4px; }
.msg.out .bubble { background: var(--sent); border-bottom-right-radius: 4px; }
.sender { font-size: 11.5px; font-weight: 700; }
.body-text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; }
.body-text a, .caption a { color: var(--pine); text-decoration: underline; word-break: break-all; }
.msg.out .body-text a, .msg.out .caption a { color: var(--deep-pine); }
.time { font-size: 10.5px; color: var(--faint); text-align: right; margin-top: 2px; }
.msg.out .time { color: var(--ts-on-mint); }
.deleted-line { display: flex; align-items: center; gap: 6px; }
.deleted-line span { font-size: 13.5px; font-style: italic; color: var(--faint); }

/* Redaction markers (SPEC §14) — always visibly marked, never a silent gap. */
.redact-bar {
  display: inline-block;
  width: 46px;
  height: 11px;
  margin: 0 1px;
  vertical-align: -1px;
  border-radius: 3.5px;
  background: var(--ink, #1D2521);
}
.redact-block, .redact-media {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink, #1D2521);
  color: #C9C4B5;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 10px;
  font-family: ui-monospace, Menlo, "Roboto Mono", monospace;
}
.redact-media {
  width: 100%;
  min-height: 90px;
  border-radius: 9px;
  justify-content: center;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 8px, transparent 8px 16px);
}
.redact-eye { display: inline-flex; }

/* landing preview uses slightly smaller type */
.preview-chat .bubble { font-size: 13px; line-height: 1.35; padding: 6px 10px 5px; max-width: 250px; }
.preview-chat .sender { font-size: 10.5px; }
.preview-chat .time { font-size: 9.5px; }
.preview-chat .datechip { font-size: 10px; padding: 3px 9px; }
.preview-chat .deleted-line span { font-size: 12.5px; }
.media-thumb {
  border-radius: 9px;
  background: repeating-linear-gradient(45deg, #E7E2D5 0 10px, #EFEBE0 10px 20px);
  display: flex; align-items: center; justify-content: center;
}
.media-name-chip {
  font: 600 10px var(--font-mono); color: var(--muted);
  background: rgba(255,255,255,.85); border-radius: 6px; padding: 3px 8px;
  max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.band-how { background: var(--band-bg); padding: 50px 44px; }
.band-how-inner, .band-auth-inner, .pricing-inner { max-width: 1192px; margin: 0 auto; }
.section-kicker {
  font: 700 10.5px var(--font-mono); letter-spacing: 1.2px; color: var(--pine);
}
.band-how h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -.7px; margin: 8px 0 22px;
}
.how-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.how-card {
  background: #fff; border: 1px solid var(--card-border-2);
  border-radius: var(--r-card); padding: 20px;
}
.how-card .num { font: 800 26px var(--font-mono); color: var(--num-ghost); }
.how-card h3 { font-size: 15px; font-weight: 800; margin: 8px 0 5px; }
.how-card p { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 0; }

.band-auth { background: var(--deep-pine); padding: 58px 44px; }
.band-auth-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.band-auth .section-kicker { color: var(--pine-light); }
.band-auth h2 {
  font-size: 30px; font-weight: 800; letter-spacing: -.8px;
  color: #fff; margin: 10px 0 0; line-height: 1.15;
}
.band-auth .lede {
  font-size: 13.5px; line-height: 1.65; color: var(--pine-mist);
  margin: 14px 0 0; max-width: 440px;
}
.auth-bullets { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.auth-bullet { display: flex; align-items: center; gap: 9px; }
.auth-bullet .check {
  width: 16px; height: 16px; border-radius: 50%; background: var(--pine);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.auth-bullet span:last-child { font-size: 12.5px; color: var(--verified-tint); }

.diagram { background: var(--deep-pine-2); border-radius: 20px; padding: 26px; }
.diagram-row { display: flex; gap: 12px; }
.diagram-chip {
  flex: 1; background: rgba(255,255,255,.08); border-radius: 12px;
  padding: 11px 13px; text-align: center;
}
.diagram-chip .t { font-size: 12.5px; font-weight: 700; color: #fff; }
.diagram-chip .fp { font: 500 9.5px var(--font-mono); color: var(--pine-mist-2); margin-top: 2px; }
.diagram-arrows { display: flex; justify-content: center; gap: 110px; padding: 6px 0; }
.diagram-compare {
  background: rgba(255,255,255,.08); border-radius: 14px;
  padding: 13px 16px; text-align: center;
}
.diagram-compare .t { font-size: 13px; font-weight: 800; color: #fff; }
.diagram-compare .s { font-size: 10.5px; color: var(--pine-mist-2); margin-top: 3px; }
.outcome-match {
  flex: 1; background: var(--verified-tint); border-radius: 12px; padding: 11px 13px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.outcome-match span { font-size: 12px; font-weight: 800; color: var(--deep-pine); }
.outcome-mismatch {
  flex: 1; border: 1px solid rgba(255,255,255,.3); border-radius: 12px;
  padding: 11px 13px; text-align: center;
}
.outcome-mismatch span { font-size: 12px; font-weight: 700; color: var(--pine-mist); }

.pricing { padding: 54px 44px; }
.pricing h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -.7px; text-align: center; margin: 0;
}
.pricing .sub { font-size: 12.5px; color: var(--muted); text-align: center; margin: 7px 0 26px; }
.plan-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
  max-width: 1000px; margin: 0 auto;
}
.plan {
  background: #fff; border: 1px solid var(--card-border-2);
  border-radius: var(--r-card-lg); padding: 22px; position: relative;
}
.plan.highlight { border: 2px solid var(--pine); }
.plan .tag {
  position: absolute; top: -10px; left: 20px;
  background: var(--pine); color: #fff; font-size: 9px; font-weight: 800;
  letter-spacing: .8px; border-radius: 999px; padding: 4px 10px;
}
.plan .name { font-size: 15px; font-weight: 800; }
.plan .name .onetime {
  font-size: 9.5px; font-weight: 800; color: var(--amber);
  background: var(--amber-bg); border-radius: 999px; padding: 2px 7px;
  vertical-align: 2px; margin-left: 2px;
}
.plan .price { font-size: 26px; font-weight: 800; letter-spacing: -.8px; margin: 6px 0 10px; }
.plan .price small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .feat { font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.plan.highlight .feat { color: #3E4A44; }

.footer {
  background: var(--band-bg); border-top: 1px solid var(--card-border-2);
  padding: 26px 44px;
}
.footer-inner { max-width: 1192px; margin: 0 auto; }
.footer-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-row .logo-word { font-size: 14px; }
.footer-tagline { font-size: 11.5px; color: var(--muted); }
.footer-spacer { flex: 1; }
.footer-link { font-size: 11.5px; font-weight: 600; color: var(--body-text); }
.footer-link:hover { color: var(--deep-pine); }
.footer-disclaimer {
  font-size: 10.5px; color: var(--faint); line-height: 1.5;
  margin-top: 12px; max-width: 680px;
}

/* =====================================================
   W2 — Shared-link viewer
   ===================================================== */
.vw-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.vw-top {
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 20px;
  border-bottom: 1px solid var(--nav-border); background: var(--app-bg); flex: none;
}
.vw-top .logo-word { font-size: 14px; }
.vw-divider { width: 1px; height: 24px; background: var(--card-border-2); flex: none; }
.vw-top .avatar-pair { width: 40px; height: 26px; }
.vw-top .av { width: 26px; height: 26px; font-size: 11px; }
.vw-top .av.a { left: 0; background: var(--pine); }
.vw-top .av.b { left: 13px; background: var(--amber); }
/* The title block takes the remaining space and BOTH lines truncate, so the
   meta line can no longer overflow and bleed over the seal pill / buttons. */
.vw-title { flex: 1 1 auto; min-width: 0; }
.vw-title .t {
  font-size: 14px; font-weight: 800; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vw-title .s {
  font-size: 10.5px; color: var(--muted); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vw-spacer { flex: 0 0 0; }
.vw-top #vwSealSlot { flex: none; }
.vw-top .btn { flex: none; white-space: nowrap; }
.vw-expiry { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
/* "Load all media" — full label on desktop, compact "Media" on phones so the
   third header button never overflows the row. */
#vwLoadAll .t-mini { display: none; }
#vwLoadAll.busy { opacity: .6; pointer-events: none; }

.vw-strip {
  background: var(--verified-strip);
  border-top: 1px solid var(--verified-strip-bd);
  border-bottom: 1px solid var(--verified-strip-bd);
  padding: 6px 20px; font-size: 10.5px; color: var(--verified-text);
  text-align: center; flex: none;
}
.vw-strip a { color: var(--verified-text); text-decoration: underline; font-weight: 600; }
.vw-banner {
  background: var(--amber-bg);
  border-top: 1px solid var(--amber-bd);
  border-bottom: 1px solid var(--amber-bd);
  padding: 6px 20px; font-size: 10.5px; color: var(--amber-text-2);
  text-align: center; flex: none;
}
.vw-banner a { color: var(--amber-text-2); text-decoration: underline; font-weight: 600; }
/* Partial-copy indicator (§4 "partial"): amber banner under the header */
.vw-banner.vw-partial { font-size: 11.5px; }
.vw-banner.vw-partial strong { font-weight: 800; color: var(--amber-text); }
.vw-banner.vw-partial svg { vertical-align: -2px; margin-right: 5px; }

.vw-wall { flex: 1; overflow-y: auto; position: relative; }
.vw-col {
  width: 680px; max-width: 100%; margin: 0 auto;
  /* Bottom reserve clears the fixed pill AND the phone's system nav bar
     (env() resolves to 0 on desktop, so no regression there). */
  padding: 22px 12px calc(74px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-chat);
}
/* Full-width rows so the bubble's %-based max-width resolves against a stable
   column width instead of a shrink-to-fit flex item (fixes the mobile
   "one word per line" collapse). Alignment stays via .msg.in/.out align-items. */
.vw-col .msg { margin-top: 4px; width: 100%; max-width: 100%; }
.vw-col .bubble { max-width: 420px; }
.vw-col .datechip { margin-bottom: 6px; margin-top: 8px; }
.syschip {
  align-self: center; text-align: center;
  background: rgba(255,255,255,.7); border-radius: 8px; padding: 4px 12px;
  font-size: 11px; color: var(--muted); max-width: 480px; margin-top: 6px;
}
.load-earlier {
  align-self: center; margin-bottom: 8px;
  background: rgba(255,255,255,.9); border: 1px solid var(--card-border-2);
  border-radius: 999px; padding: 7px 16px;
  font-size: 11.5px; font-weight: 700; color: var(--pine);
  box-shadow: var(--sh-bubble);
}
.load-earlier:hover { color: var(--deep-pine); }

.media-box { cursor: pointer; }
.media-box .media-thumb {
  width: 300px; max-width: min(300px, 74vw); height: 168px; position: relative;
}
.media-box .hint {
  position: absolute; bottom: 6px; right: 6px;
  font-size: 9px; color: var(--muted);
  background: rgba(255,255,255,.85); border-radius: 5px; padding: 2px 6px;
}
.media-box.media-loading .hint { color: var(--pine); }
.bubble.media-bubble { padding: 6px; }
.media-bubble .caption { font-size: 13.5px; padding: 5px 6px 2px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; }
.media-bubble .time { padding: 0 6px 3px; margin-top: 0; }
/* Images/videos fit the frame: fixed radius, capped size, never overflow. */
.media-bubble img.decrypted, .media-bubble video.decrypted {
  display: block; border-radius: 9px;
  width: auto; height: auto;
  max-width: min(300px, 74vw); max-height: 360px;
  object-fit: cover; cursor: zoom-in;
}
.media-bubble video.decrypted { cursor: default; background: #000; }

/* Stickers: transparent, no bubble — like the app. */
.msg .bubble.sticker-bubble {
  background: transparent !important; box-shadow: none; padding: 0 2px;
}
.sticker-bubble img.decrypted {
  max-width: 150px; max-height: 150px; border-radius: 0; box-shadow: none;
  background: transparent; object-fit: contain; cursor: zoom-in;
}
.sticker-bubble .media-box .media-thumb {
  width: 132px; height: 132px; background: rgba(255,255,255,.35);
}
.sticker-bubble .time { color: var(--faint); }

.media-omitted {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-style: italic; color: var(--faint);
}
/* Document chip: clearly tappable (decrypt + download). */
.doc-chip {
  display: flex; align-items: center; gap: 8px;
  font: 600 12px var(--font-mono); color: var(--body-text);
  background: var(--field-bg); border: 1px solid var(--card-border-2);
  border-radius: 10px; padding: 10px 12px; max-width: 260px; cursor: pointer;
}
.doc-chip:hover { border-color: var(--pine); }
.doc-chip .ico { font-size: 16px; }
.doc-chip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-chip .dl { margin-left: auto; color: var(--pine); flex: none; }

/* Voice/audio teaser row (before decrypt) — never wider than the bubble. */
.voice-row { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; max-width: 100%; }
.voice-dur { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-bars { display: flex; align-items: flex-end; gap: 2.5px; height: 18px; }
.voice-bars i { width: 3px; border-radius: 2px; background: var(--waveform); display: block; }
.voice-dur { font-size: 12px; color: var(--body-text); }

/* Custom audio player (app-like) — replaces the browser-default controls.
   min-width:0 + max-width:100% keep it inside the bubble on narrow phones. */
.cs-audio { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; width: 210px; padding: 2px 2px; }
.cs-audio-btn {
  width: 32px; height: 32px; flex: none; border: none; cursor: pointer;
  border-radius: 999px; background: var(--pine); color: #fff;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.cs-audio-btn svg { display: block; }
.cs-audio-mid { flex: 1; min-width: 0; }
.cs-audio-track {
  height: 4px; border-radius: 999px; background: rgba(20,96,85,.18);
  position: relative; cursor: pointer;
}
.cs-audio-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--pine); border-radius: 999px;
}
.cs-audio-dot {
  position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 999px; background: var(--pine); left: 0;
}
.cs-audio-time { font-size: 11px; color: var(--body-text); font-variant-numeric: tabular-nums; }
.msg.out .cs-audio-track { background: rgba(20,96,85,.22); }

.vw-pill {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: rgba(255,255,255,.94); border: 1px solid var(--card-border-2);
  border-radius: 999px; padding: 7px 14px;
  font-size: 10.5px; color: var(--muted);
  box-shadow: 0 6px 18px rgba(28,37,33,.1);
  white-space: nowrap; max-width: calc(100vw - 20px);
  overflow: hidden; text-overflow: ellipsis; z-index: 30;
}
.vw-pill .report-btn {
  border: 0; background: none; padding: 0;
  font-size: 10.5px; font-weight: 700; color: var(--pine);
}
.vw-pill .report-btn:hover { color: var(--deep-pine); }

.vw-legal {
  text-align: center; font-size: 10px; line-height: 1.5; color: var(--faint);
  max-width: 560px; margin: 0 auto;
  /* Last scroll content clears the fixed pill + phone system nav bar. */
  padding: 8px 16px calc(52px + env(safe-area-inset-bottom));
}
.vw-legal a { color: var(--faint); text-decoration: underline; }
.vw-legal a:hover { color: var(--body-text); }

.vw-chip-unverified {
  position: fixed; right: 16px; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; gap: 6px;
  background: var(--amber-chip-bg); border: 1px solid var(--amber-bd);
  border-radius: 999px; padding: 7px 12px; box-shadow: var(--sh-float);
}
.vw-chip-unverified span { font-size: 11px; font-weight: 800; color: var(--amber-text); }

/* Full-screen friendly states */
.vw-state {
  min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.state-card {
  background: #fff; border: 1px solid var(--card-border-2);
  border-radius: 22px; box-shadow: 0 30px 60px rgba(28,37,33,.10);
  padding: 34px 32px; max-width: 440px; text-align: center;
}
.state-card .state-ico {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.state-card .state-ico.pine  { background: var(--verified-tint); }
.state-card .state-ico.amber { background: var(--amber-bg); }
.state-card .state-ico.gray  { background: var(--field-bg); }
.state-card h2 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 8px; }
.state-card p { font-size: 13px; line-height: 1.6; color: var(--body-text); margin: 0 0 6px; }
.state-card .actions { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.state-card input[type="text"], .state-card input[type="url"] {
  width: 100%; margin-top: 12px;
  background: var(--field-bg); border: 1px solid transparent; border-radius: 12px;
  height: 38px; padding: 0 12px; font-size: 12.5px; font-family: inherit; color: var(--ink);
}
.state-card input:focus { outline: none; border-color: var(--pine); background: #fff; }

/* Modal (cert details / report) */
.modal-scrim {
  position: fixed; inset: 0; background: rgba(13,32,28,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 100;
}
.modal {
  background: #FDFCF9; border-radius: 20px; padding: 24px;
  max-width: 460px; width: 100%; max-height: 86vh; overflow-y: auto;
  box-shadow: 0 30px 60px rgba(28,37,33,.25);
}
.modal h3 { font-size: 17px; font-weight: 800; margin: 0 0 10px; }
.modal p { font-size: 12.5px; line-height: 1.6; color: var(--body-text); }
.modal .fp-big {
  font: 700 20px var(--font-mono); letter-spacing: 2px; color: var(--verified-text);
  background: var(--verified-tint); border-radius: 12px; padding: 12px; text-align: center;
  margin: 12px 0;
}
.modal .kv { font-size: 12px; color: var(--body-text); display: flex; gap: 8px; padding: 4px 0; }
.modal .kv b { min-width: 120px; font-weight: 700; }
.modal .kv .mono { font-family: var(--font-mono); font-size: 11px; word-break: break-all; }
.modal label { display: block; font-size: 12px; font-weight: 700; margin: 12px 0 5px; }
.modal select, .modal textarea {
  width: 100%; background: var(--field-bg); border: 1px solid transparent;
  border-radius: 12px; padding: 9px 12px; font-size: 12.5px; font-family: inherit; color: var(--ink);
}
.modal textarea { min-height: 84px; resize: vertical; }
.modal select:focus, .modal textarea:focus { outline: none; border-color: var(--pine); background: #fff; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.modal .note { font-size: 11px; color: var(--faint); }

/* =====================================================
   Legal pages (privacy / terms / gdpr)
   ===================================================== */
.legal-wrap { max-width: 780px; margin: 0 auto; padding: 34px 24px 60px; }
.legal-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.legal-head h1 {
  font-size: 30px; font-weight: 800; letter-spacing: -.8px; margin: 0; flex: 1; min-width: 240px;
}
.legal-updated { font-size: 11.5px; color: var(--faint); margin: 8px 0 26px; }
.lang-toggle {
  display: inline-flex; background: var(--field-bg); border-radius: 999px; padding: 3px; gap: 2px;
}
.lang-toggle button {
  border: 0; background: none; border-radius: 999px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.lang-toggle button.active { background: var(--pine); color: #fff; }
.legal-wrap h2 { font-size: 19px; font-weight: 800; letter-spacing: -.4px; margin: 30px 0 8px; }
.legal-wrap h3 { font-size: 14.5px; font-weight: 800; margin: 20px 0 6px; }
.legal-wrap p, .legal-wrap li { font-size: 13.5px; line-height: 1.7; color: var(--body-text); }
.legal-wrap ul { padding-left: 22px; }
.legal-wrap .highlight-box {
  background: var(--verified-strip); border: 1px solid var(--verified-strip-bd);
  border-radius: var(--r-card); padding: 14px 18px; margin: 14px 0;
}
.legal-wrap .highlight-box p { color: var(--verified-text); margin: 4px 0; font-size: 12.5px; }
.legal-wrap code { font-family: var(--font-mono); font-size: 12px; background: var(--field-bg); border-radius: 5px; padding: 1px 5px; }
body[data-lang="ro"] .lang-en { display: none; }
body[data-lang="en"] .lang-ro { display: none; }

/* GDPR self-service form */
.gdpr-form {
  background: #fff; border: 1px solid var(--card-border-2);
  border-radius: var(--r-card-lg); padding: 22px; margin: 18px 0;
}
.gdpr-form label { display: block; font-size: 12.5px; font-weight: 700; margin: 12px 0 5px; }
.gdpr-form input {
  width: 100%; background: var(--field-bg); border: 1px solid transparent;
  border-radius: 12px; height: 40px; padding: 0 12px;
  font-size: 13px; font-family: var(--font-mono); color: var(--ink);
}
.gdpr-form input:focus { outline: none; border-color: var(--pine); background: #fff; }
.gdpr-form .actions { margin-top: 16px; }
.gdpr-result { margin-top: 14px; font-size: 13px; font-weight: 600; display: none; border-radius: 12px; padding: 10px 14px; }
.gdpr-result.ok { display: block; background: var(--verified-tint); color: var(--verified-text); }
.gdpr-result.err { display: block; background: var(--amber-bg); color: var(--amber-text-2); }

/* =====================================================
   Cookie / consent banner
   ===================================================== */
.cookie-banner {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 200; width: calc(100vw - 32px); max-width: 560px;
  background: #FDFCF9; border: 1px solid var(--card-border-2);
  border-radius: var(--r-card-lg); box-shadow: var(--sh-float);
  padding: 14px 16px; display: flex; align-items: center; gap: 14px;
}
.cookie-banner .txt { flex: 1; font-size: 11.5px; line-height: 1.55; color: var(--body-text); }
.cookie-banner .txt a { font-weight: 700; }
.cookie-banner .btn { flex: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(13,32,28,.82);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px;
}
.lightbox img, .lightbox video { max-width: 92vw; max-height: 78vh; border-radius: 12px; }
.lightbox .lb-bar { display: flex; gap: 10px; align-items: center; }
.lightbox .lb-name { font: 600 11px var(--font-mono); color: #DCE7E0; }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 40px 24px; }
  .preview-wrap { justify-self: center; }
  .how-grid, .plan-grid { grid-template-columns: 1fr; }
  .band-auth-inner { grid-template-columns: 1fr; gap: 34px; }
  .nav { padding: 0 20px; gap: 16px; }
  .band-how, .band-auth, .pricing, .footer { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 720px) {
  .nav .nav-link { display: none; }
  .hero h1 { font-size: 34px; letter-spacing: -1.1px; }
  .vw-top { gap: 8px; padding: 0 12px; }
  .vw-expiry, .vw-divider { display: none; }
  /* Free up width on phones so the title and action buttons never overlap. */
  .vw-top .logo-word, .vw-top .avatar-pair { display: none; }
  .vw-top .btn { padding: 7px 11px; font-size: 12px; }
  #vwLoadAll .t-full { display: none; }
  #vwLoadAll .t-mini { display: inline; }
  .vw-col { padding-left: 10px; padding-right: 10px; }
  .vw-col .bubble { max-width: 82%; }
  .media-box .media-thumb { width: 240px; height: 130px; }
  .footer-row { row-gap: 6px; }
  .stamp { right: 4px; }
  .preview-wrap { width: 100%; }
}
