/* Aileron — self-hosted (no third-party dependency). */
@font-face{font-family:'Aileron';font-weight:400;font-style:normal;font-display:swap;src:url('/assets/fonts/Aileron-Regular.woff') format('woff');}
@font-face{font-family:'Aileron';font-weight:600;font-style:normal;font-display:swap;src:url('/assets/fonts/Aileron-SemiBold.woff') format('woff');}
@font-face{font-family:'Aileron';font-weight:700;font-style:normal;font-display:swap;src:url('/assets/fonts/Aileron-Bold.woff') format('woff');}
@font-face{font-family:'Aileron';font-weight:800;font-style:normal;font-display:swap;src:url('/assets/fonts/Aileron-Heavy.woff') format('woff');}
@font-face{font-family:'Aileron';font-weight:900;font-style:normal;font-display:swap;src:url('/assets/fonts/Aileron-Black.woff') format('woff');}
/* ==========================================================================
   JacSal Services — design system
   Brand palette: blue / navy / gray / black / white. Typeface: Aileron.
   ========================================================================== */

:root{
  /* ===== JacSal brand palette (the six brand colors) ===== */
  --brand-blue:#0F62B8;        /* primary blue */
  --brand-navy:#1E3E6F;        /* secondary / deep blue */
  --brand-blue-2:#2E6FB0;      /* lighter steel blue */
  --brand-gray:#6D6E71;        /* dark gray */
  --brand-slate:#4F6478;       /* blue-slate gray */
  --brand-gray-light:#A7A9AC;  /* light gray */
  --brand-black:#000000;
  --brand-white:#ffffff;

  /* semantic tokens (names kept from the old warm system; values now brand) */
  --cream:#f4f6f8;             /* page background — soft light gray */
  --cream-2:#eef1f5;
  --cream-3:#e8ecf1;
  --ink:#14181e;               /* headings — near-black */
  --body:#4b4d51;              /* body text */
  --muted:#6d6e71;
  --muted-2:#86888c;
  --muted-3:#a7a9ac;
  --green:#1E3E6F;             /* legacy name → brand navy */
  --green-mid:#0F62B8;         /* legacy name → brand blue (eyebrow/focus/accents) */
  --green-deep:#16294a;
  --sage:#9fb0c6;
  --sage-2:#8a9bb3;
  --sage-soft:#cdd6e2;
  --tint:#dde7f3;              /* light blue panel */
  --tint-2:#eef3f9;
  --terra:#0F62B8;             /* legacy name → primary CTA = brand blue */
  --terra-dark:#0b4e93;
  --terra-soft:#8fb4dc;
  --line:#e3e6ea;
  --line-2:#eef1f5;
  --line-3:#dde5ef;
  --field:#dde1e6;
  --shadow-cta:0 4px 16px rgba(15,98,184,.26);
  /* branch colors — two blue, two gray */
  --c-construction:#0F62B8;    /* blue */
  --c-software:#1E3E6F;        /* navy blue */
  --c-hr:#6D6E71;              /* gray */
  --c-privacy:#454A50;         /* dark gray */
  /* semantic surfaces & accents (theme-aware) */
  --surface:#ffffff;           /* elevated white sections */
  --header-bg:rgba(244,246,248,0.86);
  --tint-hr:#edf1f6;
  --accent-terra:#0F62B8;      /* CTA-colored text */
  --accent-green:#1E3E6F;      /* navy text */
  --accent-software:#1E3E6F;
  --accent-hr:#4F6478;
  color-scheme:light;
}

/* ==========================================================================
   Dark theme — near-black
   Brand colour bands (greens, terra tiles, footer) deliberately stay put;
   only neutral surfaces, text, borders and accent-text flip.
   ========================================================================== */
html[data-theme="dark"]{
  --cream:#000000;            /* page background — pure black */
  --cream-2:#070708;
  --cream-3:#0c0d0f;
  --surface:#101216;          /* cards lifted just off black */
  --header-bg:rgba(0,0,0,0.86);
  --ink:#f2f4f7;              /* headings / strong text */
  --body:#b9bdc4;            /* body text (gray) */
  --muted:#8b9099;
  --muted-2:#888d96;   /* AA on black (~5.2:1) */
  --muted-3:#7d828c;   /* AA on black (~4.6:1) */
  --line:#20232a;            /* gray borders on black */
  --line-2:#17191e;
  --line-3:#232730;
  --field:#20242b;
  --tint:#0f141c;            /* subtle panel on black */
  --tint-2:#0c0f15;
  --tint-hr:#13151b;
  --sage:#7b828c;
  --sage-2:#8b929c;
  --green:#3E7CB1;
  --green-mid:#5aa0e8;        /* blue accent text, lightened for contrast */
  --green-deep:#050506;       /* footer / deep bands — near-black */
  --accent-green:#79aef0;     /* blue accent text */
  --accent-software:#9fb2cc;
  --accent-hr:#b0b6bf;        /* gray accent text */
  --accent-terra:#4d9be8;
  --terra:#2e7bd6;           /* primary buttons — blue accent */
  --terra-dark:#2569bd;
  --shadow-cta:0 4px 16px rgba(0,0,0,.55);
  color-scheme:dark;
}
html[data-theme="dark"] img{ /* keep logos legible on dark plaques unchanged */ }
body{ transition:background .25s ease, color .25s ease; }

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Inter',system-ui,sans-serif;
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
}
button{ font-family:inherit; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; }
::selection{ background:var(--tint); color:var(--ink); }
*:focus-visible{ outline:2px solid var(--green-mid); outline-offset:2px; }
input,textarea{ font-family:'Inter',sans-serif; }
/* Brand typeface — Aileron applied globally; inline font-size/weight are preserved. */
*{ font-family:'Aileron','Inter',system-ui,sans-serif !important; }
pre,code,kbd,samp,.editor textarea{ font-family:ui-monospace,Menlo,Consolas,monospace !important; }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }

/* --- layout helpers --- */
.container{ max-width:1180px; margin:0 auto; padding:0 24px; }
.container-narrow{ max-width:880px; margin:0 auto; padding:0 24px; }
.eyebrow{
  font:600 12px Montserrat; letter-spacing:.16em; text-transform:uppercase;
  color:var(--green-mid); margin-bottom:16px;
}
.lead{ font-size:18px; line-height:1.6; color:var(--body); text-wrap:pretty; }

/* --- headings --- */
h1,h2,h3{ font-family:'Montserrat'; letter-spacing:-0.02em; color:var(--ink); margin:0; }
.h1{ font-weight:800; font-size:clamp(34px,4.8vw,58px); line-height:1.05; letter-spacing:-0.03em; text-wrap:balance; }
.h2{ font-weight:800; font-size:clamp(28px,3.4vw,42px); line-height:1.1; text-wrap:balance; }

/* --- buttons --- */
.btn{
  display:inline-flex; align-items:center; gap:9px; cursor:pointer;
  border:none; border-radius:6px; font:600 16px Montserrat;
  padding:15px 26px; transition:background .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn svg{ flex-shrink:0; }
.btn-sm{ padding:11px 18px; font-size:14px; }
.btn-primary{ background:var(--terra); color:#fff; box-shadow:var(--shadow-cta); }
.btn-primary:hover{ background:var(--terra-dark); }
.btn-primary[disabled]{ opacity:.45; cursor:not-allowed; box-shadow:none; }
.btn-outline{ background:transparent; color:var(--accent-green); border:1px solid var(--line); }
.btn-outline:hover{ background:var(--cream-3); }
/* "light" buttons live on the always-dark brand bands — fixed colours both themes */
.btn-light{ background:#eef1f5; color:#1E3E6F; }
.btn-light:hover{ background:#fff; }
.btn-outline-light{ background:transparent; color:#eef1f5; border:1px solid rgba(238,241,245,.35); }
.btn-outline-light:hover{ background:rgba(255,255,255,.08); }

/* --- header --- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--header-bg);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .bar{
  max-width:1180px; margin:0 auto; padding:0 24px; height:74px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height:38px; width:auto; display:block; }
.brand .name{ font:800 18px Montserrat; letter-spacing:-0.01em; color:var(--ink); line-height:1; }
.brand .tag{ font:600 8.5px Montserrat; letter-spacing:0.22em; color:var(--muted-3); margin-top:3px; }
.header-right{ display:flex; align-items:center; gap:28px; }
.nav{ display:flex; align-items:center; gap:26px; }
.nav a{ font:500 14.5px Inter; color:var(--body); transition:color .15s ease; }
.nav a:hover{ color:var(--ink); }
.nav a.active{ color:var(--green-mid); }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:8px; color:var(--ink); }

/* --- cards --- */
.card{
  background:var(--cream); border:1px solid var(--line); border-radius:10px; padding:28px;
  box-shadow:0 1px 2px rgba(18,28,48,.04); transition:box-shadow .2s ease;
}
.card:hover{ box-shadow:0 8px 24px -10px rgba(18,28,48,.18); }
.card-icon{
  width:46px; height:46px; border-radius:10px; background:var(--tint);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.grid{ display:grid; gap:22px; }
.grid-3{ grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); }
.grid-2{ grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); }
.grid-4{ grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }

/* --- section rhythm --- */
.section{ padding:92px 24px; border-top:1px solid var(--line-2); }
.section .container,.section .container-narrow{ padding:0 0; }
.section-head{ max-width:680px; margin:0 0 48px; }
.section-head p{ margin:16px 0 0; }

/* --- footer --- */
.site-footer{ background:var(--green-deep); padding:56px 24px 28px; margin-top:auto; }
.footer-link{ font:500 14.5px Inter; color:#cdd6e2; transition:color .15s ease; }
.footer-link:hover{ color:#fff; }

/* --- intake option buttons --- */
.opt{
  display:flex; align-items:center; gap:10px; text-align:left; cursor:pointer; width:100%;
  padding:14px 16px; border-radius:8px; border:1.5px solid var(--line);
  background:var(--surface); color:var(--body); font:500 15px/1.3 Inter; transition:all .15s ease;
}
.opt:hover{ border-color:var(--muted-3); }
.opt.is-on{ border-color:var(--green-mid); background:var(--tint-2); color:var(--ink); font-weight:600; }
.progress{ height:6px; background:var(--line); border-radius:999px; overflow:hidden; }
.progress-bar{ height:100%; background:var(--terra); border-radius:999px; transition:width .3s cubic-bezier(.22,1,.36,1); }
.field label{ display:block; font:600 13px Inter; color:var(--body); margin-bottom:6px; }
.field input,.field textarea{
  width:100%; padding:12px 14px; border:1px solid var(--field); border-radius:6px;
  font:400 15px Inter; background:var(--surface); color:var(--ink);
}
.field textarea{ resize:vertical; }
.btn-back{ background:transparent; border:none; cursor:pointer; font:600 15px Montserrat; color:var(--muted-2); padding:10px 4px; display:inline-flex; align-items:center; gap:6px; }
.btn-back[disabled]{ color:#a7a9ac; cursor:default; }

.is-hidden{ display:none !important; }

/* --- theme (dark / light) toggle --- */
.theme-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; padding:0; border-radius:8px; cursor:pointer;
  background:transparent; border:1px solid var(--line); color:var(--body);
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.theme-toggle:hover{ background:var(--cream-2); color:var(--ink); border-color:var(--muted-3); }
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .i-moon{ display:block; }
.theme-toggle .i-sun{ display:none; }
html[data-theme="dark"] .theme-toggle .i-moon{ display:none; }
html[data-theme="dark"] .theme-toggle .i-sun{ display:block; }

/* --- pricing cards (catalog rendered by pricing.js) --- */
.pgroup + .pgroup{ margin-top:40px; }
.pgroup-head{ max-width:680px; margin:0 0 22px; }
.pgroup-head .eyebrow{ margin-bottom:8px; }
.pgroup-head p{ margin:0; font:400 15px/1.55 Inter; color:var(--body); }
.tiers{ display:grid; grid-template-columns:repeat(auto-fit,minmax(248px,1fr)); gap:20px; }
.tier{ display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:26px; position:relative; }
.tier.feat{ border-color:var(--terra); box-shadow:0 16px 40px -18px var(--shadow-cta); }
.tier .pop{ position:absolute; top:-11px; left:24px; background:var(--terra); color:#fff; font:700 10px Montserrat; letter-spacing:.08em; text-transform:uppercase; padding:5px 11px; border-radius:999px; }
.tier h3{ font:800 19px Montserrat; color:var(--ink); margin:0 0 8px; letter-spacing:-.01em; }
.tier .price{ font:800 34px Montserrat; color:var(--ink); letter-spacing:-.02em; line-height:1; }
.tier .price small{ font:600 13px Inter; color:var(--muted-2); letter-spacing:0; }
.tier .blurb{ font:400 13.5px/1.6 Inter; color:var(--body); margin:12px 0 16px; }
.tier ul{ list-style:none; padding:0; margin:0 0 22px; display:flex; flex-direction:column; gap:9px; }
.tier li{ display:flex; gap:9px; font:400 13.5px/1.45 Inter; color:var(--body); }
.tier li svg{ flex-shrink:0; margin-top:1px; color:var(--accent-green); }
.tier .buy{ margin-top:auto; width:100%; justify-content:center; }
.tier .ask{ display:block; text-align:center; margin-top:10px; font:600 12.5px Montserrat; color:var(--muted-2); }
.tier .ask:hover{ color:var(--accent-terra); }
.addons{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:14px; }
.addon{ display:flex; justify-content:space-between; align-items:center; gap:14px; background:var(--cream); border:1px solid var(--line); border-radius:12px; padding:16px 18px; }
.addon .meta h4{ font:700 14.5px Montserrat; color:var(--ink); margin:0 0 3px; }
.addon .meta p{ font:400 12px/1.45 Inter; color:var(--muted); margin:0; }
.addon .right{ display:flex; flex-direction:column; align-items:flex-end; gap:7px; flex-shrink:0; }
.addon .amt{ font:800 17px Montserrat; color:var(--ink); }
.pricing-nav{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:26px; }
.pricing-nav a{ font:600 13px Montserrat; color:var(--body); border:1px solid var(--line); border-radius:999px; padding:8px 16px; transition:all .15s ease; }
.pricing-nav a:hover{ border-color:var(--muted-3); color:var(--ink); background:var(--cream-2); }

/* --- legal / long-form prose --- */
.legal{ max-width:820px; margin:0 auto; padding:56px 24px 80px; }
.legal h1{ font-weight:800; font-size:clamp(30px,4vw,44px); line-height:1.08; letter-spacing:-.02em; margin:0 0 8px; }
.legal .updated{ font:500 14px Inter; color:var(--muted-2); margin:0 0 36px; }
.legal h2{ font-weight:700; font-size:22px; letter-spacing:-.01em; color:var(--ink); margin:40px 0 12px; }
.legal h3{ font-weight:700; font-size:16.5px; font-family:'Montserrat'; color:var(--ink); margin:24px 0 8px; }
.legal p, .legal li{ font:400 16px/1.7 Inter; color:var(--body); }
.legal ul{ padding-left:22px; margin:12px 0; }
.legal li{ margin:7px 0; }
.legal a{ color:var(--terra); text-decoration:underline; }
.legal strong{ color:var(--ink); }
.legal .intro{ font-size:17px; color:var(--body); }
.legal .box{ background:var(--cream); border:1px solid var(--line); border-radius:10px; padding:20px 24px; margin:18px 0; }
.legal table{ width:100%; border-collapse:collapse; margin:14px 0; font:400 14.5px/1.55 Inter; }
.legal th, .legal td{ text-align:left; vertical-align:top; padding:10px 12px; border:1px solid var(--line); color:var(--body); }
.legal th{ background:var(--cream); font-weight:600; color:var(--ink); }
.toc{ background:var(--cream); border:1px solid var(--line); border-radius:10px; padding:18px 22px; margin:0 0 36px; }
.toc a{ color:var(--green-mid); text-decoration:none; font:500 14.5px Inter; }
.toc a:hover{ text-decoration:underline; }
.form-notice{ font:400 12.5px/1.55 Inter; color:var(--muted-2); margin:14px 0 0; }
.form-notice a{ color:var(--green-mid); }

/* --- four-branch hub (square) --- */
.hub-square{
  display:grid; grid-template-columns:1fr 1fr; gap:6px;
  width:min(820px,94vw); aspect-ratio:1/1; margin:0 auto; position:relative;
}
.quad{
  position:relative; padding:30px; display:flex; flex-direction:column; color:#fff;
  text-decoration:none; overflow:hidden; transition:filter .18s ease;
}
.quad:hover{ filter:brightness(1.08); }
.quad:nth-child(1){ border-radius:18px 0 0 0; }
.quad:nth-child(2){ border-radius:0 18px 0 0; }
.quad:nth-child(3){ border-radius:0 0 0 18px; justify-content:flex-end; }
.quad:nth-child(4){ border-radius:0 0 18px 0; justify-content:flex-end; }
.quad .q-icon{ width:46px; height:46px; border-radius:11px; background:rgba(255,255,255,.16); display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.quad .q-title{ font:800 clamp(20px,2.6vw,28px) Montserrat; letter-spacing:-.02em; line-height:1.08; }
.quad .q-sub{ font:500 13.5px/1.5 Inter; color:rgba(255,255,255,.86); margin-top:8px; max-width:30ch; }
.quad .q-arrow{ margin-top:16px; display:inline-flex; align-items:center; gap:7px; font:600 13px Montserrat; color:#fff; opacity:.92; }
.quad-center{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:128px; height:128px; border-radius:999px; background:var(--cream);
  border:1px solid var(--line); box-shadow:0 12px 34px -12px rgba(40,40,20,.45);
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; z-index:5; padding:10px;
}
.quad-center img{ height:32px; width:auto; }
.quad-center span{ font:700 10px Montserrat; letter-spacing:.1em; text-transform:uppercase; color:var(--green-mid); margin-top:6px; line-height:1.3; }
@media (max-width:680px){
  .hub-square{ grid-template-columns:1fr; aspect-ratio:auto; width:100%; gap:10px; }
  .quad{ min-height:150px; border-radius:14px !important; justify-content:flex-start !important; }
  .quad-center{ display:none; }
}

/* --- branch "common thread" strip --- */
.thread{ display:flex; gap:14px; align-items:center; background:var(--tint-2); border:1px solid var(--line-3); border-radius:12px; padding:20px 24px; }
.thread .t-dot{ width:40px; height:40px; border-radius:9px; background:var(--tint); display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* --- portfolio / selected work --- */
.work-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; }
.work-card{ display:flex; flex-direction:column; background:var(--cream); border:1px solid var(--line); border-radius:12px; padding:24px; transition:box-shadow .2s ease, transform .2s ease; }
.work-card:hover{ box-shadow:0 12px 30px -14px rgba(18,28,48,.26); transform:translateY(-2px); }
.work-card .tag{ align-self:flex-start; font:600 11px Montserrat; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-software); background:var(--tint); padding:4px 10px; border-radius:999px; }
.work-card h3{ font:700 19px Montserrat; color:var(--ink); margin:14px 0 8px; letter-spacing:-.01em; }
.work-card p{ font:400 14.5px/1.6 Inter; color:var(--body); margin:0 0 16px; }
.work-card .go{ margin-top:auto; font:600 14px Montserrat; color:var(--terra); display:inline-flex; align-items:center; gap:7px; }

/* --- responsive --- */
@media (max-width:760px){
  .nav, .header-right .btn{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .header-right.open .nav{
    display:flex; position:absolute; top:74px; left:0; right:0; flex-direction:column;
    align-items:flex-start; gap:4px; background:var(--cream); border-bottom:1px solid var(--line);
    padding:12px 24px 18px;
  }
  .header-right.open .nav a{ padding:10px 0; width:100%; font-size:16px; }
  .header-right.open .btn{ display:inline-flex; }
  .section{ padding:64px 24px; }
}
