/* Holdfast's public pages, light (templates/pub_base.html): the Stripe-style look the app, HQ and the status page share.
   White and a cool grey canvas, navy ink, hairlines, small tinted badges, Inter, one lavender for anything you
   press. Colour only means something: green yours or working, amber needs you, red wrong or down.
   The tokens keep the names the app uses (--ink, --panel, --line, --accent...) so the marketing stylesheet
   (static/site/site.css) and the help and guide styles can sit on top of it without the app's 4,000 lines. Loaded
   after site.css, so the few dark values written straight into site.css are put right at the bottom. */
:root{
  --font:"Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg:#FFFFFF; --canvas:#F6F9FC; --surface:#FFFFFF;
  --panel:#FFFFFF; --panel-2:#F6F9FC; --panel-3:#EFF3F8; --hover:#F6F9FC; --track:#EFF3F8;
  --line:#E3E8EE; --line-strong:#D5DBE1; --border:#E3E8EE; --border-2:#D5DBE1;

  --ink:#0A2540; --ink-2:#425466; --ink-3:#64748B;
  --text:#273951; --text-2:#425466; --text-3:#64748B;

  /* lavender: buttons, links, the chart line */
  --brand:#6A5AF0; --brand-hover:#5B4BE6; --brand-soft:#EFEDFE; --brand-ink:#3F30C9; --brand-ring:rgba(106,90,240,.3);
  --accent:#6A5AF0; --accent-weak:#EFEDFE; --accent-rgb:106,90,240; --accent-ink:#FFFFFF; --accent-line:rgba(106,90,240,.35);

  /* meaning, at text strength on white (each over 4.5:1), with a tint and a bar strength */
  --good:#0B7A41; --good-weak:#D9F5E3; --ok:#0B7A41; --ok-bg:#D9F5E3; --ok-bar:#1EA672;
  --fair:#A65A00; --fair-weak:#FCEFC7; --warn:#A65A00; --warn-bg:#FCEFC7; --warn-bar:#E5A00D;
  --low:#C8102E; --low-weak:#FDE7EA; --bad:#C8102E; --bad-bg:#FDE7EA; --bad-bar:#DF1B41;
  --none:#545969; --none-bg:#EBEEF1; --none-bar:#E3E8EE;

  --pill:999px; --r-sm:4px; --r:6px; --r-lg:8px;
  --shadow-card:0 0 0 1px rgba(10,37,64,.06),0 2px 5px rgba(10,37,64,.06),0 1px 1px rgba(0,0,0,.04);
  --shadow-lift:0 0 0 1px rgba(10,37,64,.06),0 30px 60px -30px rgba(10,37,64,.25),0 18px 36px -18px rgba(0,0,0,.12);
  --shadow-btn:0 1px 1px rgba(0,0,0,.08),0 0 0 1px rgba(10,37,64,.14);
  --focus:0 0 0 1px var(--brand),0 0 0 4px var(--brand-ring);
  color-scheme:light;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink-2);font:400 16px/1.6 var(--font);-webkit-font-smoothing:antialiased}
::selection{background:var(--brand-soft);color:var(--ink)}
a{color:var(--brand);text-decoration:none;font-weight:500}
a:hover{color:var(--ink)}
:focus-visible{outline:none;box-shadow:var(--focus);border-radius:6px}
h1,h2,h3{color:var(--ink)}
svg.i{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pub-skip{position:absolute;left:16px;top:-60px;z-index:60;padding:8px 12px;border-radius:var(--r);background:var(--ink);color:#fff}
.pub-skip:focus{top:12px;color:#fff}

/* ---------------------------------------------------------------- buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:0 14px;border:0;border-radius:var(--r);
  background:var(--surface);color:var(--ink);box-shadow:var(--shadow-btn);font:600 14px/1 var(--font);cursor:pointer;white-space:nowrap;
  transition:background .15s,color .15s}
.btn:hover{background:var(--panel-3);color:var(--ink)}
.btn:active{transform:scale(.98)}
.btn:focus-visible{box-shadow:var(--focus)}
.btn.primary{background:var(--brand);color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.12),inset 0 0 0 1px rgba(0,0,0,.04)}
.btn.primary:hover{background:var(--brand-hover);color:#fff}
.btn.quiet{background:none;box-shadow:none;color:var(--ink-2)}
.btn.quiet:hover{background:var(--panel-3);color:var(--ink)}
.btn.sm{height:32px;padding:0 12px;font-size:14px}
.btn svg.i{width:16px;height:16px}

/* ---------------------------------------------------------------- the nav (same markup and script as site_base) */
.pub .st-nav{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.9);-webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);transition:none}
.pub .st-nav-in{max-width:var(--wrap);margin:0 auto;height:64px;padding:0 var(--gut);display:flex;align-items:center;gap:24px}
.pub .st-nav .brand,.pub .st-foot .brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:600;font-size:17px;letter-spacing:-.02em}
.pub .st-nav .brand svg,.pub .st-foot .brand svg{width:28px;height:28px;padding:5px;border-radius:6px;background:var(--ink);color:#fff;fill:currentColor}
.pub .brand small{color:var(--ink-3);font-weight:500;font-size:15px;letter-spacing:0;margin-left:-2px}
.pub .st-dd-b,.pub .st-top{appearance:none;border:0;background:none;display:inline-flex;align-items:center;gap:4px;padding:6px 10px;border-radius:var(--r);
  color:var(--ink-2);font:500 14.5px var(--font);cursor:pointer}
.pub .st-dd-b:hover,.pub .st-top:hover,.pub .st-dd-b[aria-expanded="true"]{color:var(--ink);background:var(--panel-3)}
.pub .st-dd-p{background:var(--panel);border:0;box-shadow:var(--shadow-lift)}
.pub .st-mega-h svg.i,.pub .st-dd-list svg.i{color:var(--brand)}
.pub .st-mega li a{color:var(--ink-2);font-weight:400}
.pub .st-mega li a:hover,.pub .st-dd-list li a:hover b{color:var(--brand)}
.pub .st-mega-all{color:var(--brand)}
.pub .st-dd-list li a{color:var(--ink)}
.pub .st-dd-list li a:hover{background:var(--panel-2)}
.pub .st-dd-list b{font-weight:600}
.pub .st-burger{background:var(--panel-3);color:var(--ink)}
.pub .st-sheet{background:var(--bg)}
.pub .st-sheet-a,.pub .st-sheet summary{font-weight:500}
.pub .st-soon{color:var(--warn);background:var(--warn-bg);border-radius:var(--r-sm)}

/* ---------------------------------------------------------------- footer */
.pub .st-foot{max-width:var(--wrap);margin:0 auto;padding:48px var(--gut) 32px;border-top:1px solid var(--line)}
.pub .st-foot h3{color:var(--ink);font-weight:600}
.pub .st-foot li a{color:var(--ink-3);font-weight:400}
.pub .st-foot li a:hover{color:var(--ink)}
.pub .st-foot-brand p,.pub .st-foot-bar p{color:var(--ink-3)}
.pub .st-foot-bar p a{color:var(--ink-2);text-decoration:underline;text-underline-offset:2px;font-weight:400}

/* the closing call to action */
.pub .st-final h2{color:var(--ink)}

/* breadcrumbs (help, guides, calculators): separators sit on the same line as the links */
.pub .st-crumbs{align-items:center;gap:0 8px}

/* --sec spaces the marketing sections (site.css), --on-ink is text on an ink button (the pricing toggles) */
.pub{--wrap:1080px;--gut:32px;--sec:112px;--on-ink:#FFFFFF;--ease:cubic-bezier(.16,1,.3,1)}
/* site.css hides Sign in on smaller screens, but .btn above (loaded later) would show it again and push the menu
   button off a phone's edge */
@media (max-width:1080px){.pub .st-hide-s{display:none}}
@media (max-width:640px){
  .pub{--gut:16px;--sec:72px}
  .pub .st-nav-in{height:60px;gap:12px}
  /* on a phone the page title is right below, so the trail stops at the parent */
  .pub .st-crumbs [aria-current],.pub .st-crumbs span[aria-hidden]:nth-last-child(2){display:none}
}
@media (max-width:400px){.pub .st-nav .brand{font-size:17px;gap:10px}}
@media (prefers-reduced-motion:reduce){.btn,.pub *{transition:none!important;animation:none!important}.btn:active{transform:none}}
