/* ============================================================
   Chordae public-page theme — shared chrome for every logged-out
   page (pricing, security, legal set, sign in, get started).
   Matches the cinematic homepage: warm black + gold, Fraunces
   against Geist, squared editorial shapes (Second Edition).
   Two palettes: body.pub-dark (marketing) · body.pub-cream (legal).
   ============================================================ */
:root{
  --navy:#0A1A2E; --navy-deep:#05101E; --navy-panel:#0D1D33; --navy-card:#10233C;
  --brand-navy:#0F2A45; --ink:#1A2433;
  --gold:#E4B96D; --gold-soft:#CBA45E; --gold-bright:#F7DDA6; --crimson:#B31E33; --crimson-deep:#9E2226;
  --r-0:0px; --r-1:3px; --r-2:6px;      /* squared shape system, same as the homepage */
  --cream:#FBF7EF; --cream-paper:#F7F0DE; --cream-line:#EADFC9; --cream-ink:#22304a;
  --text:#F2ECDD; --muted:#9DB0C4; --faint:#8FA1B5; --line:rgba(157,176,196,.15);
  --serif:'Fraunces','Playfair Display',Georgia,serif; --sans:'Geist','Inter',system-ui,-apple-system,sans-serif;
  --e-out:cubic-bezier(.22,.61,.36,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--sans);line-height:1.6;-webkit-font-smoothing:antialiased;text-wrap:pretty;overflow-x:hidden}
h1,h2,h3,h4,h5,h6{text-wrap:balance}
a{color:inherit;text-decoration:none}
img,svg{max-width:100%}
::selection{background:rgba(216,168,95,.30)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:2px solid var(--gold-bright); outline-offset:2px; border-radius:var(--r-1)}
.pub-wrap{max-width:1180px;margin:0 auto;padding:0 24px}

/* ---------- palettes ---------- */
body.pub-dark{background:var(--navy-deep);color:var(--text)}
body.pub-dark::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:radial-gradient(1100px 640px at 78% -12%,rgba(216,168,95,.07),transparent 62%),
             radial-gradient(900px 560px at 6% 8%,rgba(158,34,38,.05),transparent 60%),
             linear-gradient(180deg,#0A1A2E,#05101E 55%)}
body.pub-cream{background:var(--cream-paper);color:var(--cream-ink)}
body.pub-cream::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:radial-gradient(900px 520px at 82% -10%,rgba(192,162,86,.10),transparent 60%),
             linear-gradient(180deg,#F9F3E3,#F5EDD8)}

/* ---------- masthead ---------- */
.pub-mast{position:sticky;top:0;z-index:60;transition:box-shadow .25s ease,background .25s ease}
body.pub-dark .pub-mast{background:rgba(6,15,28,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(157,176,196,.12)}
body.pub-cream .pub-mast{background:rgba(247,240,222,.96);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--cream-line)}
.pub-mast .pub-wrap{max-width:none;padding-left:40px;padding-right:40px;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:74px;padding-top:10px;padding-bottom:10px}   /* header spans full width: logo hard-left, nav hard-right at the edges (Sunny, Jul 22) */
.pub-brand{display:flex;flex-direction:column;align-items:center;gap:3px;flex:none}
.pub-brand img{height:30px;width:auto;display:block}
.pub-brand .tag{font-size:9.5px;letter-spacing:.02em;font-weight:500;white-space:nowrap;line-height:1}
body.pub-dark .pub-brand .tag{color:#C9BD9F}
body.pub-cream .pub-brand .tag{color:#6b6450}
.pub-brand .tag .ta{font-weight:700}  .pub-brand .tag .tm{color:var(--crimson-deep);font-weight:700}
.pub-brand .tag .te{color:var(--gold-soft);font-weight:700}
body.pub-dark .pub-brand .tag .ta{color:#DCE6F2}
body.pub-cream .pub-brand .tag .ta{color:var(--brand-navy)}
.pub-nav{display:flex;align-items:center;gap:28px}
.pub-nav a{font-size:14px;font-weight:500;position:relative;padding:.2rem 0}
body.pub-dark .pub-nav a{color:#D9CFBB}
body.pub-cream .pub-nav a{color:#5a5344}
.pub-nav a::after{content:"";position:absolute;left:0;right:100%;bottom:-3px;height:2px;background:var(--gold);border-radius:0;transition:right .25s ease}
.pub-nav a:hover{color:var(--gold)}
.pub-nav a:hover::after{right:0}
.pub-nav a.on{color:var(--gold);font-weight:600}
.pub-nav a.on::after{right:0}
.pub-nav .pill{white-space:nowrap;padding:10px 20px;border-radius:var(--r-1);font-size:12px;font-weight:700;
  text-transform:uppercase;letter-spacing:.08em;
  background:linear-gradient(180deg,#F3D593 0%,#D8A85F 58%,#C08F45 100%);border:1px solid rgba(255,231,183,.9);
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease}
.pub-nav .pill::after{display:none}
body.pub-dark .pub-nav .pill{color:#132437}
body.pub-cream .pub-nav .pill{color:#132437}
.pub-nav .pill:hover{background:linear-gradient(180deg,#F8E0A8 0%,#E2B46C 58%,#C99A50 100%);border-color:#FFEFC9;color:#0B1826;box-shadow:0 2px 10px rgba(216,168,95,.28)}
@media(max-width:900px){.pub-nav a.nl{display:none}}

/* ---------- buttons ---------- */
.pb-btn{display:inline-flex;align-items:center;gap:9px;padding:13px 24px;border-radius:var(--r-1);white-space:nowrap;
  font-weight:600;font-size:.95rem;cursor:pointer;border:1px solid transparent;font-family:var(--sans);
  transition:background .2s ease,border-color .2s ease,transform .18s ease,box-shadow .18s ease,color .2s ease}
.pb-btn svg{width:15px;height:15px;color:var(--gold-bright);transition:transform .24s var(--e-out)}
.pb-btn:hover svg{transform:translateX(3px)}
.pb-primary{background:rgba(216,168,95,.10);border-color:rgba(216,168,95,.5);color:#FBF5E9}
.pb-primary:hover{background:rgba(216,168,95,.20);border-color:rgba(240,206,139,.75);transform:translateY(-1px);color:#FFFDF7}
.pb-gold{background:linear-gradient(135deg,var(--gold-soft),var(--gold));color:#081426;box-shadow:0 6px 18px rgba(184,140,60,.22)}
.pb-gold svg{color:#081426}
.pb-gold:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(184,140,60,.3);color:#05101E}
.pb-quiet{color:#D5C9B0;font-weight:500;padding:13px 6px}
.pb-quiet:hover{color:#FBF5E9}
body.pub-cream .pb-primary{background:rgba(15,42,69,.9);border-color:rgba(15,42,69,.9);color:#FBF7EF}
body.pub-cream .pb-primary:hover{background:var(--brand-navy);color:#fff}
body.pub-cream .pb-quiet{color:#6b6450}
body.pub-cream .pb-quiet:hover{color:var(--brand-navy)}

/* ---------- headings ---------- */
.pub-eyebrow{font-size:.72rem;letter-spacing:.24em;text-transform:uppercase;font-weight:700;color:var(--gold)}
.pub-h1{font-family:var(--serif);font-weight:600;font-size:clamp(2rem,3.9vw,2.9rem);line-height:1.1;margin:.55rem 0 .6rem;letter-spacing:.005em}
body.pub-dark .pub-h1{color:#F3ECDD}
body.pub-cream .pub-h1{color:var(--brand-navy)}
.pub-h1 em{font-style:italic;color:var(--gold)}
.pub-h1::after{content:"";display:block;width:72px;height:2px;border-radius:0;margin-top:1rem;
  background:linear-gradient(90deg,var(--gold),transparent)}
.pub-h1.centered{text-align:center}
.pub-h1.centered::after{margin-left:auto;margin-right:auto;background:linear-gradient(90deg,transparent,var(--gold) 30%,var(--gold) 70%,transparent)}
.pub-lede{font-size:1.08rem;max-width:46rem}
body.pub-dark .pub-lede{color:var(--muted)}
body.pub-cream .pub-lede{color:#6b6450}

/* ---------- dark cards (marketing) ---------- */
.pd-card{border:1px solid rgba(157,176,196,.15);border-radius:var(--r-2);padding:1.15rem 1.2rem;
  background:rgba(13,29,51,.55);transition:transform .22s var(--e-out),border-color .22s ease,background .22s ease}
.pd-card:hover{transform:translateY(-3px);border-color:rgba(216,168,95,.42);background:rgba(216,168,95,.055)}
.pd-card .ic{width:38px;height:38px;border-radius:var(--r-1);display:flex;align-items:center;justify-content:center;
  background:rgba(216,168,95,.10);color:var(--gold);margin-bottom:.65rem}
.pd-card .ic svg{width:20px;height:20px}
.pd-card h3{font-size:1rem;color:#EDE6D8;margin-bottom:.25rem;font-weight:600}
.pd-card p{font-size:.88rem;color:var(--muted)}

/* ---------- forms (dark) ---------- */
.pf-label{display:block;font-size:.8rem;font-weight:600;color:#D5C9B0;margin:.85rem 0 .3rem}
.pf-hint{color:var(--faint);font-size:.75rem;font-weight:400}
.pf-input, .pf-select, .pf-textarea{width:100%;padding:.72rem .85rem;border:1.5px solid rgba(157,176,196,.25);
  border-radius:var(--r-1);font:inherit;font-size:.92rem;background:rgba(6,15,28,.6);color:#F2ECDD;
  transition:border-color .15s ease,box-shadow .15s ease}
.pf-input::placeholder,.pf-textarea::placeholder{color:#5F7189}
.pf-input:focus,.pf-select:focus,.pf-textarea:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(216,168,95,.22)}
.pf-select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D8A85F' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right .8rem center}
.pf-select option{background:#0D1D33;color:#F2ECDD}
.pf-input:user-invalid,.pf-select:user-invalid{border-color:#C96A6A;box-shadow:0 0 0 3px rgba(170,22,42,.16)}
.pub-flash{background:rgba(158,34,38,.14);border:1px solid rgba(201,106,106,.5);color:#F2C9C9;border-radius:var(--r-1);
  padding:.7rem .9rem;margin-bottom:1rem;font-size:.9rem}
.pub-flash.ok{background:rgba(31,122,77,.15);border-color:rgba(127,216,165,.4);color:#AEE8C6}

/* ---------- legal document (cream) ---------- */
.lg-wrap{max-width:800px;margin:0 auto;padding:2.6rem 24px 4rem;color:var(--cream-ink)}
.lg-eyebrow{font-size:.7rem;letter-spacing:.24em;text-transform:uppercase;font-weight:700;color:var(--gold-soft)}
.lg-title{font-family:var(--serif);font-weight:600;color:var(--brand-navy);font-size:2.2rem;margin:.2rem 0 .25rem}
.lg-title::after{content:"";display:block;width:72px;height:2px;border-radius:0;margin-top:.8rem;
  background:linear-gradient(90deg,var(--gold-soft),transparent)}
.lg-meta{color:#8a8270;font-size:.85rem;margin:.8rem 0 .5rem}
.lg-xlinks{font-size:.82rem;color:#a99f88;margin-bottom:1.6rem}
.lg-xlinks a{color:var(--brand-navy);font-weight:600;border-bottom:1px solid transparent;transition:border-color .15s ease,color .15s ease}
.lg-xlinks a:hover{color:#7a5a1f;border-bottom-color:var(--gold-soft)}
.lg-wrap h2{font-family:var(--serif);font-size:1.18rem;font-weight:600;color:var(--brand-navy);margin:1.8rem 0 .45rem}
.lg-wrap p,.lg-wrap li{font-size:.93rem;line-height:1.65}
.lg-wrap ul{padding-left:1.15rem}
.lg-wrap a{color:#7a5a1f;font-weight:600}
.lg-card{background:#FDFAF2;border:1px solid var(--cream-line);border-radius:var(--r-2);padding:1.05rem 1.25rem;margin:1rem 0;
  box-shadow:0 10px 30px rgba(124,99,40,.06)}
.lg-good{background:#f3f8f0;border:1px solid #cfe0c6;border-radius:var(--r-2);padding:1rem 1.2rem;margin:1rem 0;color:#2f5d32}
.lg-phi{background:#FBF3DF;border:1px solid #E3CD9C;border-radius:var(--r-2);padding:1rem 1.2rem;margin:1rem 0}
.lg-phi h2{margin-top:0;color:#9c5a1f}
.lg-caps{font-size:.88rem;line-height:1.55;background:#F5EFE0;border:1px solid #E3D8BC;border-radius:var(--r-2);padding:.85rem 1rem}
.lg-draft{background:#FAE9E7;border:1px solid #E8B7B2;color:#8a2020;border-radius:var(--r-1);padding:.6rem .9rem;
  font-size:.82rem;font-weight:600;margin-bottom:1.2rem}
.lg-gist{background:#FBF6E9;border:1px solid #E9DFC8;border-radius:var(--r-2);padding:1.15rem 1.3rem;margin:0 0 1.7rem;
  box-shadow:0 12px 34px rgba(124,99,40,.07)}
.lg-gist h2{font-size:1.02rem;margin:0 0 .55rem}
.lg-gist h2 span{font-family:var(--sans);font-weight:500;color:#a99f88;font-size:.78rem}
.lg-gist ul{margin:0;padding-left:1.1rem}
.lg-gist li{font-size:.9rem;line-height:1.55;color:#4a4636;margin-bottom:.4rem}
.lg-gist li:last-child{margin-bottom:0}
.lg-gist li b{color:#1c2536}
.lg-gist li.friends{color:var(--brand-navy);font-weight:600}
/* ---- legal set on the DARK palette (site-wide theme, Sunny Jul 22) ---- */
body.pub-dark .lg-wrap{color:var(--text)}
body.pub-dark .lg-eyebrow{color:var(--gold)}
body.pub-dark .lg-title{color:#F3ECDD}
body.pub-dark .lg-meta{color:var(--faint)}
body.pub-dark .lg-xlinks{color:var(--faint)}
body.pub-dark .lg-xlinks a{color:var(--gold-bright)}
body.pub-dark .lg-xlinks a:hover{color:#FFE3A6;border-bottom-color:var(--gold)}
body.pub-dark .lg-wrap h2{color:#EFE7D6}
body.pub-dark .lg-wrap p,body.pub-dark .lg-wrap li{color:#C6D2DF}
body.pub-dark .lg-wrap a{color:var(--gold-bright)}
body.pub-dark .lg-card{background:rgba(255,255,255,.035);border-color:var(--line);box-shadow:none}
body.pub-dark .lg-good{background:rgba(64,120,72,.14);border-color:rgba(110,170,120,.35);color:#BFE3C2}
body.pub-dark .lg-phi{background:rgba(216,168,95,.10);border-color:rgba(216,168,95,.35);color:#E8DCC2}
body.pub-dark .lg-phi h2{color:var(--gold-bright)}
body.pub-dark .lg-caps{background:rgba(255,255,255,.045);border-color:var(--line);color:#B9C6D4}
body.pub-dark .lg-draft{background:rgba(170,22,42,.14);border-color:rgba(220,120,120,.4);color:#F0B9B4}
body.pub-dark .lg-gist{background:var(--navy-card);border-color:rgba(216,168,95,.28);box-shadow:0 10px 34px rgba(0,0,0,.35)}
body.pub-dark .lg-gist h2{color:#F3ECDD}
body.pub-dark .lg-gist h2 span{color:var(--faint)}
body.pub-dark .lg-gist li{color:#C6D2DF}
body.pub-dark .lg-gist li b{color:#F0E8D8}
body.pub-dark .lg-gist li.friends{color:var(--gold-bright)}
table.sp{width:100%;border-collapse:collapse;margin:1rem 0;background:#FDFAF2;border:1px solid var(--cream-line);border-radius:var(--r-2);overflow:hidden}
table.sp th{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--brand-navy);font-weight:700;
  background:#F1E8D2;padding:.65rem .85rem;text-align:left;border-bottom:1px solid var(--cream-line)}
table.sp td{padding:.62rem .85rem;border-bottom:1px solid #F0E8D4;font-size:.9rem;vertical-align:top}
table.sp tr:last-child td{border-bottom:none}
.sp-name{font-weight:600;color:#1c2536}
.sp-tag{display:inline-block;font-size:.68rem;font-weight:700;border-radius:var(--r-1);padding:.05rem .45rem;margin-left:.35rem}
.sp-tag.cur{background:rgba(88,150,90,.16);color:#3e7a40}
.sp-tag.plan{background:rgba(192,162,86,.18);color:#8a6d1f}

/* ---------- footer (dark, on every pub page) ---------- */
.pub-foot{background:#040B15;border-top:1px solid rgba(157,176,196,.12);color:var(--muted);font-size:13px}
.pub-foot .pub-wrap{padding-top:40px;padding-bottom:14px;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.pub-foot .fnav{display:flex;gap:22px;flex-wrap:wrap}
.pub-foot a:hover{color:var(--gold)}
.pub-foot .tmnote{max-width:1180px;margin:0 auto;padding:10px 24px 30px;color:#5F7189;font-size:11.5px;line-height:1.6}

/* ---------- misc ---------- */
.pub-fine{max-width:680px;margin:1.4rem auto 0;text-align:center;font-size:.82rem}
body.pub-dark .pub-fine{color:var(--faint)}
body.pub-cream .pub-fine{color:#8a8270}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.pub-reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.pub-reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
  *{transition:none!important;animation:none!important;scroll-behavior:auto}
}


/* ===== fonts: Fraunces + Geist, self-hosted; the old family names alias to them
   so every existing 'Playfair Display' / 'Inter' rule renders the new faces ===== */
@font-face{font-family:"Fraunces";font-style:normal;font-display:swap;
  font-weight:100 900;font-variation-settings:"SOFT" 0,"WONK" 0;
  src:url(/static/fonts/fraunces-normal.woff2) format("woff2-variations");}
@font-face{font-family:"Playfair Display";font-style:normal;font-display:swap;
  font-weight:100 900;font-variation-settings:"SOFT" 0,"WONK" 0;
  src:url(/static/fonts/fraunces-normal.woff2) format("woff2-variations");}
@font-face{font-family:"Fraunces";font-style:italic;font-display:swap;
  font-weight:100 900;font-variation-settings:"SOFT" 0,"WONK" 1;
  src:url(/static/fonts/fraunces-italic.woff2) format("woff2-variations");}
@font-face{font-family:"Playfair Display";font-style:italic;font-display:swap;
  font-weight:100 900;font-variation-settings:"SOFT" 0,"WONK" 1;
  src:url(/static/fonts/fraunces-italic.woff2) format("woff2-variations");}
@font-face{font-family:"Geist";font-style:normal;font-display:swap;
  font-weight:100 900;
  src:url(/static/fonts/geist.woff2) format("woff2-variations");}
@font-face{font-family:"Inter";font-style:normal;font-display:swap;
  font-weight:100 900;
  src:url(/static/fonts/geist.woff2) format("woff2-variations");}

/* ---- the homepage's ink grain, so the sub-pages sit on the same paper ---- */
body.pub-dark::after{
  content:""; position:fixed; inset:0; z-index:9998; pointer-events:none; opacity:.42;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.5'/></svg>");
}
@media (prefers-reduced-motion:reduce){ body.pub-dark::after{opacity:.3} }

/* legal cross-links: spaced items instead of a dotted metadata strip */
.lg-xlinks{display:flex;flex-wrap:wrap;gap:6px 18px}
.lg-xlinks .cur{font-weight:700}
body.pub-dark .lg-xlinks .cur{color:#EFE7D6}

/* ---- the sub-processors table on the dark palette ------------------------
   The table kept its cream-paper skin while the page went dark, but its cell
   text inherited the dark theme's cream ink: cream on cream, unreadable
   (Sunny, Jul 27). On dark, the whole table goes dark like every other card. */
body.pub-dark table.sp{background:rgba(255,255,255,.035);border-color:var(--line)}
body.pub-dark table.sp th{background:rgba(216,168,95,.12);color:var(--gold-bright);border-bottom-color:var(--line)}
body.pub-dark table.sp td{border-bottom-color:rgba(157,176,196,.12);color:#C6D2DF}
body.pub-dark .sp-name{color:#F0E8D8}
body.pub-dark .sp-tag.cur{background:rgba(110,190,130,.16);color:#9FD8AC}
body.pub-dark .sp-tag.plan{background:rgba(216,168,95,.16);color:#E8CD96}

/* classic italic letterforms: Fraunces' WONK axis off at the element level
   (the @font-face descriptor is ignored by Chromium) - fixes the odd italic f
   in "first line of code." on Security/Pricing h1s (Sunny, Jul 30) */
em, i, .pub-h1 em, .lg-title em{font-variation-settings:"WONK" 0,"SOFT" 0}
