/* Public site: shared tokens, header, footer and content components.
   Used by site_base.html (product, solutions, pricing, security, FAQ, privacy),
   public_base.html (blog, tools, about) and the sign-in / sign-up screens.
   Light only. Same palette as the homepage and the app. */

:root {
  --ink: #1b1a16; --ink-2: #3d3b34; --muted: #6d6a60;
  --line: #e8e5dc; --line-2: #efede5;
  --paper: #ffffff; --paper-2: #faf9f5; --paper-3: #f3f1ea;
  --indigo: #9b801c; --indigo-2: #7d6716; --indigo-bg: #fff9dc; --indigo-line: #eadb97;
  --navy: #8a7b2b;
  --red: #b91c1c; --red-bg: #fef2f2; --red-line: #fecaca;
  --amber: #b45309; --amber-bg: #fffbeb; --amber-line: #fde68a;
  --green: #047857; --green-bg: #ecfdf5; --green-line: #a7f3d0;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body.site {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
@supports (overflow-x: clip) { body.site { overflow-x: clip; } }
body.site main { flex: 1 0 auto; }
.site h1, .site h2, .site h3, .site h4, .site p, .site ul, .site ol, .site dl, .site dd, .site figure { margin: 0; }
.site ul, .site ol { padding: 0; list-style: none; }
.site svg { display: block; }
.site a { color: inherit; }
.site :focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 8px;
  border: 1px solid transparent; font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-2); }
.btn-quiet { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: #c4c4cd; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand svg { width: 22px; height: 26px; color: var(--navy); }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.head-nav { display: flex; gap: 2px; margin-left: 24px; }
.head-nav a { padding: 8px 10px; border-radius: 6px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.head-nav a:hover { color: var(--ink); background: var(--paper-2); }
.head-nav a[aria-current="page"] { color: var(--indigo-2); }
.head-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lbl-short { display: none; }
.menu { display: none; position: relative; }
.menu > summary { list-style: none; cursor: pointer; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary .bars { width: 14px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; position: relative; }
.menu > summary .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; transform: translateY(-50%); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(270px, calc(100vw - 32px)); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: grid; box-shadow: 0 12px 28px -16px rgba(13,14,20,.25); }
.menu-panel a { padding: 11px 12px; border-radius: 6px; text-decoration: none; font-size: 15px; font-weight: 500; }
.menu-panel a:hover { background: var(--paper-2); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 4px; }
@media (max-width: 1040px) { .head-nav, .head-signin { display: none; } .menu { display: block; } .lbl-long { display: none; } .lbl-short { display: inline; } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 48px 0 40px; background: var(--paper-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-about p { font-size: 14px; color: var(--muted); margin-top: 14px; max-width: 34ch; }
.foot-col h4 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot-col a { display: block; padding: 4px 0; font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* Page scaffolding */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-2), #fff); }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo-2); }
.h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.032em; font-weight: 600; margin-top: 14px; max-width: 20ch; text-wrap: balance; }
.h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.14; letter-spacing: -.024em; font-weight: 600; margin-top: 12px; max-width: 26ch; text-wrap: balance; }
.h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin-top: 18px; max-width: 62ch; }
.sec { padding: 72px 0; }
.sec-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 36px; }
.sec-lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin-top: 14px; max-width: 64ch; }
.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumb a { text-decoration: none; } .crumb a:hover { text-decoration: underline; }
@media (max-width: 760px) { .page-hero { padding: 48px 0 36px; } .sec { padding: 48px 0; } .lede { font-size: 17px; } .site-foot { margin-top: 56px; } }

/* Content components */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.card p { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.card .tag { margin-bottom: 10px; }
a.card { text-decoration: none; display: block; transition: border-color .15s ease; } a.card:hover { border-color: var(--indigo-line); }
.card-link { font-size: 14px; font-weight: 600; color: var(--indigo-2); margin-top: 14px; display: inline-block; }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px;
  border-radius: 4px; background: var(--indigo-bg); color: var(--indigo-2); border: 1px solid var(--indigo-line); }
.tag-grey { background: var(--paper-3); color: var(--ink-2); border-color: var(--line); }
.tag-green { background: var(--green-bg); color: var(--green); border-color: var(--green-line); }
.tag-amber { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); }
.checks li { position: relative; padding: 6px 0 6px 26px; font-size: 15px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 11px; height: 6px; border-left: 2px solid var(--indigo); border-bottom: 2px solid var(--indigo); transform: rotate(-45deg); }
.checks.no li::before { border: 0; width: 12px; height: 2px; background: var(--muted); transform: none; top: 17px; }
.callout { border: 1px solid var(--indigo-line); background: var(--indigo-bg); border-radius: 10px; padding: 16px 18px; font-size: 15px; color: var(--ink-2); }
.callout.warn { border-color: var(--amber-line); background: var(--amber-bg); }
.callout b { color: var(--ink); }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--indigo-bg); color: var(--indigo-2); border: 1px solid var(--indigo-line);
  display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.steps b { display: block; font-weight: 600; } .steps span { font-size: 15px; color: var(--ink-2); }
.tbl-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.t th { text-align: left; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; background: var(--paper-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--ink-2); }
.t tr:last-child td { border-bottom: 0; } .t td:first-child { color: var(--ink); font-weight: 500; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; font-size: 17px; position: relative; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 18px; color: var(--ink-2); font-size: 16px; max-width: 70ch; }
.faq .ans p + p { margin-top: 10px; }
.faq .ans a, .prose a { color: var(--indigo-2); text-underline-offset: 3px; }
.prose-site h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.015em; margin: 40px 0 10px; }
.prose-site h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 6px; }
.prose-site p, .prose-site li { font-size: 16px; color: var(--ink-2); } .prose-site p { margin-top: 10px; }
.prose-site ul { list-style: disc; padding-left: 22px; margin-top: 8px; } .prose-site li { padding: 2px 0; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card .tag, .card .tag { align-self: flex-start; }
.price-card .amt { font-size: 2rem; font-weight: 600; letter-spacing: -.03em; margin-top: 12px; }
.price-card .amt small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .for { font-size: 14px; color: var(--muted); margin-top: 4px; min-height: 42px; }
.price-card .checks { margin-top: 14px; flex: 1; }
.price-card.hl { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(155,128,28,.1); }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.stat-row > div { padding: 20px 22px; border-left: 1px solid var(--line); } .stat-row > div:first-child { border-left: 0; }
.stat-row b { display: block; font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-row span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-row > div:nth-child(3) { border-left: 0; } .stat-row > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.final-cta { text-align: center; } .final-cta .h2 { margin-left: auto; margin-right: auto; max-width: 24ch; } .final-cta .cta-row { justify-content: center; }

/* ── Ivory consistency: the public pages follow the homepage (DM Sans body, Instrument Serif display, yellow primary, dark footer) ── */
:root{--sans:'DM Sans',system-ui,-apple-system,"Segoe UI",sans-serif;--serif:'Instrument Serif',Georgia,"Times New Roman",serif;--yellow:#ffe24a;--olive:#8a7b2b;--olive-ink:#5b511c;--dark:#2b2a23}
body.site{background:var(--paper-2);font-family:var(--sans)}
.h1,.h2{font-family:var(--serif);font-weight:400;letter-spacing:-.02em}
.h1{font-size:clamp(2.6rem,1.6rem + 3.4vw,4.4rem);line-height:1.0;max-width:22ch}
.h2{font-size:clamp(2rem,1.4rem + 1.8vw,3rem);line-height:1.04;max-width:28ch}
.eyebrow{display:inline-flex;align-items:center;gap:10px;padding:7px 14px;background:#fff;border:1px solid var(--line);border-radius:999px;font-family:var(--sans);font-size:13px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--ink-2);box-shadow:inset 0 1px 0 #fff,0 1px 2px rgba(27,26,22,.05)}
.eyebrow::before,.eyebrow::after{content:'';width:12px;height:10px;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none' stroke='%23e3c42c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1.5 1.5 3.5 3.5-3.5 3.5M6.5 1.5 10 5 6.5 8.5'/%3E%3C/svg%3E") no-repeat center / contain}
.eyebrow::after{transform:rotate(180deg)}
.btn{border-radius:10px;font-weight:500}
.btn-primary{background:linear-gradient(180deg,#ffe866,#ffdc3c);color:var(--ink);border:1px solid #ecd03a;box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 1px 0 #d9bd1f,0 12px 26px -14px rgba(120,100,0,.65)}
.btn-primary:hover{background:linear-gradient(180deg,#ffe354,#f8d22a);color:var(--ink)}
.btn-quiet{background:linear-gradient(180deg,#fff,#faf9f4);border-color:#dad6ca;color:var(--ink-2);box-shadow:inset 0 1px 0 #fff,0 1px 2px rgba(27,26,22,.06),0 10px 20px -16px rgba(27,26,22,.35)}
.btn-quiet:hover{background:#fffdf5;border-color:#cfcabb}
.site-head{background:rgba(250,249,245,.88);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.brand svg{color:var(--olive)}
.head-nav a{font-size:15px;color:var(--ink-2)}
.head-nav a:hover{background:transparent;color:var(--ink)}
.head-nav a[aria-current="page"]{color:var(--ink);box-shadow:inset 0 -2px 0 var(--yellow);border-radius:0}
.card{border-radius:16px;border-color:var(--line);box-shadow:inset 0 1px 0 #fff,0 1px 2px rgba(27,26,22,.05),0 18px 40px -28px rgba(27,26,22,.35)}
.card h3{font-family:var(--serif);font-weight:400;font-size:1.4rem;letter-spacing:-.01em;line-height:1.15}
.card-link{color:var(--olive-ink);font-weight:500}
.site-foot{background:var(--dark);color:#fff;border-top:0;margin-top:120px;padding:72px 0 40px}
.site-foot .brand,.site-foot .brand-name{color:#fff}
.site-foot .brand svg{color:var(--yellow)}
.foot-about p{color:#a19e90}
.foot-col h4{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:#a19e90}
.foot-col a{color:#e6e4d9}
.foot-col a:hover{color:var(--yellow)}
.foot-fine{border-top:1px solid #4a483e;color:#a19e90}

/* ── Ivory consistency, round 2: Tailwind utilities on the public pages (blog, free tools, client requests) follow the homepage ── */
body.site h1.font-extrabold,body.site h1.font-bold,body.site h2.font-extrabold{font-family:var(--serif)!important;font-weight:400!important;letter-spacing:-.02em!important}
body.site .bg-blue-100{background-color:#f9eeb6!important}
body.site .bg-indigo-100{background-color:#f9eeb6!important}
body.site .bg-purple-100{background-color:#f9eeb6!important}
body.site .bg-slate-100{background-color:#f3f1ea!important}
body.site .border-slate-100{border-color:#efede5!important}
body.site .border-slate-200{border-color:#e8e5dc!important}
body.site .hover\:text-slate-800:hover{color:#2a2923!important}
body.site .text-blue-600{color:#8e7415!important}
body.site .text-blue-700{color:#76600f!important}
body.site .text-indigo-600{color:#8e7415!important}
body.site .text-indigo-700{color:#76600f!important}
body.site .text-purple-600{color:#8e7415!important}
body.site .text-purple-700{color:#76600f!important}
body.site .text-slate-400{color:#8f8c80!important}
body.site .text-slate-500{color:#6d6a60!important}
body.site .text-slate-600{color:#5a5850!important}
body.site .text-slate-700{color:#3d3b34!important}
body.site .text-slate-800{color:#2a2923!important}
body.site .text-slate-900{color:#1b1a16!important}

/* round 2b: hero labels on blog and tools match the homepage pill; centred intro */
body.site .tag.mb-4.inline-flex{align-items:center;gap:10px;padding:7px 14px;background:#fff;border:1px solid var(--line);border-radius:999px;font-family:var(--sans);font-size:13px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--ink-2);box-shadow:inset 0 1px 0 #fff,0 1px 2px rgba(27,26,22,.05)}
body.site .tag.mb-4.inline-flex::before,body.site .tag.mb-4.inline-flex::after{content:'';width:12px;height:10px;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none' stroke='%23e3c42c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1.5 1.5 3.5 3.5-3.5 3.5M6.5 1.5 10 5 6.5 8.5'/%3E%3C/svg%3E") no-repeat center / contain}
body.site .tag.mb-4.inline-flex::after{transform:rotate(180deg)}
body.site .gradient-text{color:var(--olive-ink)!important;font-style:italic}
body.site .text-center > p.mx-auto{margin-left:auto!important;margin-right:auto!important}

/* ── site motion (static/site_motion.js adds .motion only when motion is allowed) ── */
.motion .sm-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--k, 0) * 70ms); }
.motion .sm-reveal.in { opacity: 1; transform: none; }
@keyframes site-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { body.site main > :first-child { animation: site-rise .9s cubic-bezier(.2, .7, .2, 1) both; } }
.site-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; background: linear-gradient(90deg, #ffe24a, #c9ad33); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .motion .sm-reveal { opacity: 1; transform: none; transition: none; } .site-progress { display: none; } }

/* ── Narrow phones (<=400px): the public header keeps both buttons on screen ── */
@media (max-width: 400px) {
  .head-cta { gap: 6px; }
  .head-cta .btn-sm { padding-left: 12px; padding-right: 12px; }
  .menu > summary { font-size: 0; gap: 0; width: 40px; padding: 0; justify-content: center; }
}

/* ── Heading rhythm: pill, heading and paragraph spaced like the homepage hero ── */
.eyebrow + .h1 { margin-top: 24px; }
.eyebrow + .h2 { margin-top: 20px; }
.h1 + .lede { margin-top: 24px; }
.h2 + :is(.lede, .sec-lede) { margin-top: 20px; }
@media (max-width: 760px) {
  .eyebrow + .h1, .h1 + .lede { margin-top: 20px; }
  .eyebrow + .h2, .h2 + :is(.lede, .sec-lede) { margin-top: 16px; }
}
