/* ============================================================
   Static replica of the Framer nav + footer (Operand theme), for the
   hand-built pages that are not Framer exports (tools, demos).
   Values measured from the exported Framer pages. Dropdowns come from
   /home-nav.js, which reads the same data-framer-name hierarchy.
   ============================================================ */
:root{
  --font-heading:Geist,system-ui,sans-serif;
  --font-body:Geist,system-ui,sans-serif;
  --sc-ink:#111312;
  --sc-bg:#F0F1EF;
  --sc-signal:#F04617;
  --sc-button:#DE5830; /* buttons: slightly muted signal (user, 2026-11-01) */
  --sn-h:84px; /* bottom edge of the floating nav + 8px: sticky elements and anchors clear it */
  /* framer.css tokens the legacy page CSS still reads, re-pointed at the Operand palette */
  --ink:#111312;
  --purple:#F04617;
  --purple-deep:#B8340A;
  --glass:linear-gradient(180deg,rgba(240,241,239,.5) 0%,rgba(255,255,255,.5) 100%);
}
html{scroll-padding-top:calc(var(--sn-h) + 12px)}
body{font-family:Geist,system-ui,sans-serif;background:var(--sc-bg);padding-top:calc(var(--sn-h) + 8px)}
h1,h2,h3,h4{font-family:Geist,system-ui,sans-serif}
::selection{background:#E2BCAA;color:var(--sc-ink)}
/* links the page never coloured fell back to browser blue; zero specificity, so any page rule still wins */
:where(a){color:#B8340A}

/* ---------- nav ---------- */
.sn{position:fixed;z-index:1000;top:16px;left:32px;right:32px;max-width:1376px;margin:0 auto;
  font-family:Geist,system-ui,sans-serif}
.sn__bar{display:flex;flex-wrap:wrap;align-items:center;min-height:60px;padding:0 9px 0 22px;border-radius:20px;
  background:rgba(244,245,243,.9);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  box-shadow:0 10px 40px -16px rgba(17,19,18,.18)}
.sn__logo{display:flex;flex:none}
.sn__logo img{display:block;width:135px;height:22px}
.sn__links{display:flex;align-items:center;gap:28px;margin-left:auto}
.sn__links a{font-size:15px;font-weight:500;line-height:15px;letter-spacing:-.15px;color:rgba(17,19,18,.76);
  text-decoration:none;transition:color .15s}
.sn__links a:hover{color:var(--sc-ink)}
.sn-btn{display:inline-flex;align-items:center;gap:10px;height:42px;padding:0 18px;border-radius:12px;flex:none;
  background:var(--sc-button);box-shadow:0 8px 28px rgba(222,88,48,.22);
  font:600 15px/18px Geist,system-ui,sans-serif;color:var(--sc-ink);text-decoration:none;transition:transform .18s}
.sn-btn:hover{transform:translateY(-1px)}
.sn-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sn__bar>.sn-btn{margin-left:clamp(32px,7.5vw,108px)}
.sn__burger{display:none;width:40px;height:40px;margin-left:auto;border:0;background:none;cursor:pointer;color:var(--sc-ink);
  place-items:center}
.sn__burger svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
.sn__burger .x,.sn.is-open .sn__burger .bars{display:none}
.sn.is-open .sn__burger .x{display:block}

@media (max-width:1199px){
  :root{--sn-h:80px}
  .sn__bar{min-height:56px;border-radius:18px;padding:0 8px 0 18px}
  .sn__burger{display:grid}
  .sn__links,.sn__bar>.sn-btn{display:none}
  .sn.is-open .sn__bar{padding-bottom:22px}
  .sn.is-open .sn__links{display:flex;order:3;flex-basis:100%;flex-direction:column;align-items:flex-start;gap:18px;margin:12px 0 0}
  .sn.is-open .sn__links a{font-size:32px;line-height:32px;letter-spacing:-.04em}
  .sn.is-open .sn__bar>.sn-btn{display:inline-flex;order:4;height:50px;padding:0 22px;margin:20px 0 0}
}
@media (max-width:809px){
  :root{--sn-h:76px}
  .sn{top:12px;left:12px;right:12px}
}

/* ---------- footer ---------- */
.sf{position:relative;isolation:isolate;background:var(--sc-ink);padding:72px 32px 24px;font-family:Geist,system-ui,sans-serif}
.sf::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:radial-gradient(rgba(240,241,239,.2) 1px,transparent 1.5px);background-size:22px 22px;
  -webkit-mask-image:radial-gradient(ellipse 75% 85% at 50% 40%,#000 20%,transparent 80%);
  mask-image:radial-gradient(ellipse 75% 85% at 50% 40%,#000 20%,transparent 80%)}
.sf__in{max-width:1376px;margin:0 auto}
.sf__cols{display:flex;justify-content:space-between;gap:40px;padding-bottom:53px}
.sf__col{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.sf__title,.sf__legal{font:400 12px/16px "Geist Mono",ui-monospace,monospace;text-transform:uppercase;letter-spacing:.02em;
  color:rgba(240,241,239,.62)}
.sf__col a{display:inline-flex;align-items:center;gap:8px;font-size:16px;line-height:28.8px;color:rgba(240,241,239,.62);
  text-decoration:none;transition:color .15s}
.sf__col a:hover{color:#F0F1EF}
.sf__col a svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.sf__hello{gap:4px}
.sf__col .sn-btn{color:var(--sc-ink);margin-top:8px;line-height:18px}
.sf__col .sn-btn:hover{color:var(--sc-ink)}
.sf__word{display:flex;align-items:flex-start;gap:24px;padding-bottom:48px;
  font-size:56px;line-height:1;font-weight:600;letter-spacing:-.06em;color:#F0F1EF}
.sf__word img{width:184px;height:auto} /* stacked brand logo (mark + AVELLE) */
.sf__legal{display:flex;justify-content:space-between;gap:16px}
.sf__legal a{color:inherit;text-decoration:none}
.sf__legal a:hover{color:#F0F1EF}

@media (max-width:1199px){
  .sf{padding-top:80px}
  .sf__in{max-width:1000px}
  .sf__cols{display:grid;grid-template-columns:repeat(3,1fr);gap:40px 8px}
  .sf__word img{width:165px}
}
@media (max-width:809px){
  .sf{padding:64px 20px 24px}
  .sf__cols{grid-template-columns:repeat(2,1fr)}
  .sf__word img{width:138px}
  .sf__legal{flex-direction:column}
}
/* the dropdown chevrons from /home-nav.js belong to the desktop bar only */
@media (max-width:1199px){.sn__links a::after{display:none!important}}

/* no gradient text (user, 2026-11-01): title highlights are just the title colour (no highlight at all), big numbers solid orange.
   'html body' lifts these just above the page rules but below dark-panel highlights like .article-cta h3 .highlight */
html body .highlight,html body .blg-hero__accent,html body .h2 .hl,html body .tool-hero__title span,html body .sc-grad,html body .ara-grad,html body .cs-grad,html body .calc-tasks__title em,html body .cs-section__title em,html body .cs3-doc-header .highlight,html body .cs3-doc-header h1 span,html body .zr h3 .hl{background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentColor;color:inherit}
html body .ara-score-number,html body .ava-bar__score,html body .blg-stats__num,html body .cs-cost-card__num,html body .cs-stat__num,html body .cs3-snapshot-num,html body .csd-metric-value,html body .csd-result-value,html body .nf__code,html body .proc-card__val--accent{background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentColor;color:#F04617}
html body .proc-card__title{background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentColor;color:var(--sc-ink)}
html body .tool-hero .tool-hero__title span,html body .tool-hero .tool-hero__title .sc-grad{background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentColor;color:inherit}
/* CTA panels: no corner glow either, just the dot grid */
html body .cta-panel::before{display:none}

/* bottom CTA boxes (user, 2026-11-01): off-white with the grey dot grid, dark text, no highlights, signal button */
html body :is(.article-cta,.blg-bottom-cta,.cta-panel,.ms-cta){background:radial-gradient(rgba(17,19,18,.13) 1px,transparent 1.5px) 0 0/22px 22px,#F7F7F5;
  color:var(--sc-ink);border:1px solid rgba(17,19,18,.08);box-shadow:none}
html body :is(.article-cta,.blg-bottom-cta,.cta-panel,.ms-cta) :is(h2,h3){color:var(--sc-ink)}
html body :is(.article-cta,.blg-bottom-cta,.cta-panel,.ms-cta) .highlight{color:inherit}
html body :is(.article-cta,.blg-bottom-cta,.cta-panel,.ms-cta) p{color:rgba(17,19,18,.68)}
html body :is(.cta-panel p,.ms-cta__alt) a{color:var(--sc-ink)}
html body .cta-panel .btn-light,html body .ms-cta .ms-btn{background:var(--sc-button);color:var(--sc-ink);box-shadow:0 8px 28px rgba(222,88,48,.22)}
