/* ════════════════════════════════════════════════════════════════════
   Vibier · V5 "Composite" — shared system for inner pages
   Warm Kodachrome paper / ink / rebel rust. Bricolage + Hanken + Space Mono.
   Loaded by: About, Pricing, Contact, Terms, Privacy, Security.
   ════════════════════════════════════════════════════════════════════ */

:root{
  --paper:    #F4EFE8;
  --paper-2:  #EBE4D8;
  --card:     #FFFFFF;
  --ink:      #221C16;
  --ink-soft: #5B5246;
  --ink-mute: #8C8273;
  --line:     rgba(34,28,22,0.16);
  --line-strong: rgba(34,28,22,0.20);
  --accent:   #D6502A;   /* rust */
  --ink-deep: #1C1712;   /* dark footer ink */

  --f-display: 'Bricolage Grotesque', Georgia, serif;
  --f-body:    'Hanken Grotesk', system-ui, sans-serif;
  --f-mono:    'Space Mono', ui-monospace, monospace;
  --h1-weight: 700;
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a{ color: inherit; text-decoration: none; }
img{ display:block; max-width:100%; }
::selection{ background: var(--accent); color: var(--paper); }

/* ─── recurring brand frame (crop corners) ─── */
.sitemark{ position:fixed; inset:0; z-index:60; pointer-events:none; }
.sitemark .mk-corner{ position:absolute; width:26px; height:26px; opacity:.42; }
.sitemark .mk-corner::before,.sitemark .mk-corner::after{ content:""; position:absolute; background:var(--ink); }
.sitemark .mk-corner::before{ width:26px; height:2px; }
.sitemark .mk-corner::after{ width:2px; height:26px; }
.sitemark .mk-corner.tl{ top:12px; left:12px; }
.sitemark .mk-corner.tr{ top:12px; right:12px; } .sitemark .mk-corner.tr::before,.sitemark .mk-corner.tr::after{ right:0; }
.sitemark .mk-corner.bl{ bottom:12px; left:12px; } .sitemark .mk-corner.bl::before,.sitemark .mk-corner.bl::after{ bottom:0; }
.sitemark .mk-corner.br{ bottom:12px; right:12px; } .sitemark .mk-corner.br::before,.sitemark .mk-corner.br::after{ right:0; bottom:0; }
@media (max-width: 720px){ .sitemark{ display:none; } }

/* perforation strip (film sprocket divider) */
.perf{ height:20px; width:100%;
  background-image:radial-gradient(circle, var(--ink) 0 2.6px, transparent 3.1px);
  background-size:22px 20px; background-position:center; opacity:.13; }

/* ─────────────── NAV ─────────────── */
.nav{
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 40px; padding: 20px clamp(22px, 4vw, 56px);
  background: rgba(244,239,232,0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .logo{ height: 25px; width: auto; }
.nav-links{ display: flex; justify-content: center; gap: 34px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.nav-links a{ position: relative; opacity: .82; transition: opacity .2s ease, color .2s ease; }
.nav-links a:hover{ opacity: 1; }
.nav-links a.active{ color: var(--ink); opacity: 1; }
.nav-links a::after{ content:""; position:absolute; left:0; right:100%; bottom:-5px;
  height:1.5px; background:var(--accent); transition:right .25s ease; }
.nav-links a:hover::after, .nav-links a.active::after{ right:0; }

/* ─────────────── BUTTONS ─────────────── */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-body); font-size: 14px; font-weight: 600; letter-spacing: .005em;
  border: 1.5px solid var(--ink); cursor: pointer;
  transition: transform .18s ease, box-shadow .24s ease, background .2s ease, color .2s ease;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(34,28,22,.7); }
.btn .slack-mark{ width: 17px; height: 17px; flex-shrink: 0; }
.btn.lg{ padding: 16px 26px; font-size: 15.5px; border-radius: 9px; }
.btn.lg .slack-mark{ width: 19px; height: 19px; }
.btn.accent{ background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover{ box-shadow: 0 16px 32px -16px color-mix(in oklab, var(--accent) 70%, black); }
.btn.ghost{ background: transparent; color: var(--ink-soft);
  border: 1.5px solid color-mix(in oklab, var(--ink-soft) 38%, transparent); }
.btn.ghost:hover{ background: color-mix(in oklab, var(--ink-soft) 8%, transparent); border-color: var(--ink-soft); }
.slack-cta .slack-arrow{ font-size: 15px; opacity: .9; margin-left: 1px; }

/* ─────────────── EYEBROW ─────────────── */
.eyebrow{
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 400;
}
.eyebrow::before{ content:""; display:inline-block; width:8px; height:8px;
  background: var(--accent); flex-shrink:0; }

/* ─────────────── DOC PAGES (Terms / Privacy / Security) ─────────────── */
.doc-hero{
  padding: clamp(60px, 7vw, 100px) clamp(22px, 4vw, 56px) clamp(34px, 4vw, 50px);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.doc-hero-inner{ max-width: 760px; margin: 0 auto; }
.doc-hero h1{
  font-family: var(--f-display); font-weight: var(--h1-weight);
  font-size: clamp(38px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -0.022em;
  color: var(--ink); margin: 18px 0 0; text-wrap: balance;
}
.doc-meta{ margin-top: 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing:.03em;
  color: var(--ink-mute); line-height: 1.85; }
.doc-meta a{ color: var(--accent); font-weight: 700; }
.doc-meta a:hover{ text-decoration: underline; }

.doc{ max-width: 760px; margin: 0 auto;
  padding: clamp(44px, 6vw, 76px) clamp(22px, 4vw, 56px) clamp(64px, 9vw, 112px); }
.doc .lede{
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(20px, 2.2vw, 25px); line-height: 1.42; letter-spacing: -0.012em;
  color: var(--ink); margin: 0 0 16px; text-wrap: pretty;
}
.doc h2{
  font-family: var(--f-display); font-weight: var(--h1-weight);
  font-size: clamp(23px, 2.7vw, 30px); line-height: 1.12; letter-spacing: -0.018em;
  color: var(--ink); margin: clamp(44px, 5.5vw, 64px) 0 16px;
  padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line);
  display: flex; gap: 16px; align-items: baseline;
}
.doc h2:first-of-type{ border-top: none; padding-top: 0; }
.doc h2 .num{
  font-family: var(--f-mono); font-size: 0.56em; font-weight: 700;
  color: var(--accent); flex-shrink: 0; min-width: 1.6em;
  letter-spacing: 0; transform: translateY(-0.14em);
}
.doc h3{ font-family: var(--f-body); font-weight: 700; font-size: 16px;
  color: var(--ink); margin: 28px 0 10px; }
.doc p{ font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px; }
.doc p a, .doc li a{ color: var(--accent); font-weight: 600; }
.doc p a:hover, .doc li a:hover{ text-decoration: underline; }
.doc strong, .doc b{ font-weight: 700; color: var(--ink); }
.doc ul{ margin: 0 0 16px; padding: 0; list-style: none; }
.doc ul li{ position: relative; padding-left: 22px; margin-bottom: 12px;
  font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.doc ul li::before{ content: ""; position: absolute; left: 1px; top: 10px;
  width: 7px; height: 7px; background: var(--accent); }
.doc ul li b{ color: var(--ink); font-weight: 700; }

/* legal disclaimer block */
.legal-block{ background: var(--paper-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 6px; padding: 20px 24px; margin: 4px 0 0; }
.legal-block p{ margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-mute); }

/* callout */
.callout{ background: var(--paper-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 6px; padding: 20px 24px; margin: 24px 0; }
.callout p{ margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.callout p strong{ color: var(--ink); }

/* subprocessor table */
.subproc{ width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.subproc td{ padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.subproc tr:first-child td{ border-top: 1px solid var(--line); }
.subproc td:first-child{ font-weight: 700; color: var(--ink); width: 150px; white-space: nowrap; }
.subproc td:last-child{ color: var(--ink-soft); }

/* provider cards */
.providers{ display: flex; flex-direction: column; gap: 14px; margin: 24px 0 8px; }
.provider{ background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 24px 26px; display: grid; grid-template-columns: 160px 1fr; gap: 24px; }
.provider .pv-head .pv-name{ font-family: var(--f-display); font-size: 21px; font-weight: var(--h1-weight);
  color: var(--ink); letter-spacing: -0.01em; }
.provider .pv-head .pv-role{ font-family: var(--f-mono); font-size: 10.5px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: 7px; }
.provider .pv-body{ font-size: 14.5px; line-height: 1.6; color: var(--ink-mute); }
.provider .pv-body b{ color: var(--ink-soft); font-weight: 700; }

/* scopes disclosure */
details.scopes{ background: var(--card); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 4px 24px; margin: 20px 0; }
details.scopes summary{ cursor: pointer; list-style: none; padding: 16px 0;
  font-family: var(--f-body); font-size: 15px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; }
details.scopes summary::-webkit-details-marker{ display: none; }
details.scopes summary::after{ content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; }
details.scopes[open] summary::after{ content: "−"; }
details.scopes .scope-grid{ columns: 2; column-gap: 28px; padding: 4px 0 20px;
  border-top: 1px solid var(--line); margin-top: 0; }
details.scopes .scope-grid span{ display: block; font-family: var(--f-mono); font-size: 13px;
  color: var(--ink-mute); padding: 5px 0; break-inside: avoid; }

.doc-foot-q{ margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--ink-mute); }
.doc-foot-q a{ color: var(--accent); font-weight: 700; }
.doc-foot-q a:hover{ text-decoration: underline; }

/* ─────────────── FOOTER (dark ink) ─────────────── */
footer{ position: relative; background: var(--ink-deep); color: #F4EFE8;
  padding: 72px clamp(22px, 4vw, 56px) 44px; }
.footer-grid{ max-width: 1240px; margin: 0 auto; display: grid;
  grid-template-columns: 2fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand .logo{ height: 24px; margin-bottom: 16px; }
.footer-brand p{ color: rgba(244,239,232,.55); font-size: 14px; max-width: 30ch; margin: 0; line-height: 1.5; }
.footer-col h5{ font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(244,239,232,.45); margin: 0 0 14px; }
.footer-col ul{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a{ color: rgba(244,239,232,.72); font-size: 14px; transition: color .2s ease; }
.footer-col a:hover{ color: #F4EFE8; }
.footer-bottom{ max-width: 1240px; margin: 48px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(244,239,232,.14); display: flex; justify-content: space-between;
  align-items: center; font-size: 12.5px; color: rgba(244,239,232,.45); }

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 940px){
  .nav{ grid-template-columns: auto auto; gap: 16px; padding: 16px 20px; }
  .nav-links{ display: none; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
}
@media (max-width: 620px){
  .subproc td:first-child{ width: 110px; }
  .provider{ grid-template-columns: 1fr; gap: 12px; }
  details.scopes .scope-grid{ columns: 1; }
}
