/* brand.css — Beyond Hub design layer (Batch A)
   Loaded AFTER styles.css on every page. */

/* ── Token remap: old styles.css variables → new brand colors ── */
:root {
  --slate-50: #F8F6F2;   /* cream page bg */
  --slate-100: #ECE6DC;  /* borders/dividers */
  --slate-200: #ECE6DC;  /* borders/dividers */
  --slate-300: #D9D2C6;  /* input borders */
  --slate-400: #8A93A6;  /* muted text */
  --slate-500: #3B4B81;  /* secondary text */
  --slate-600: #3B4B81;  /* secondary text */
  --slate-700: #0C2065;  /* headings */
  --slate-800: #0C2065;  /* headings */
  --slate-900: #0C2065;  /* primary text */
  --slate-950: #0C2065;  /* primary text */
  --blue-50: #F1E9FF;    /* light accent bg */
  --blue-100: #F1E9FF;   /* light accent bg */
  --blue-500: #9C31FF;   /* buttons/links */
  --blue-600: #9C31FF;   /* buttons/links/accents */
  --blue-700: #0C2065;   /* button hover */
  --emerald-50: #F1E9FF;  /* light accent bg (was green tint) */
  --emerald-100: #F1E9FF; /* light accent bg */
  --emerald-400: #C9A2FF; /* checkmarks (was green) */
  --emerald-500: #9C31FF; /* accents */
  --emerald-600: #9C31FF; /* accents */
  --emerald-700: #9C31FF; /* accents */
  --radius: 16px;
}

/* ── Base ── */
html,body{overflow-x:clip}
body{margin:0;background:#F8F6F2}
img,svg{max-width:100%;height:auto}
a{color:#0C2065}a:hover{color:#9C31FF}
.bh{font-family:'Source Sans 3',system-ui,sans-serif;color:#0C2065;background:#F8F6F2;-webkit-font-smoothing:antialiased}
.bh *{box-sizing:border-box}
h1,h2,h3,h4,h5,h6{font-family:'Source Sans 3',system-ui,sans-serif}
.btn,.btn-primary,.btn-outline,.btn-ghost,.nav-pill,.nav-dropdown-trigger,.model-badge,.model-price,.price .amount{font-family:'Source Sans 3',system-ui,sans-serif}
.nav-logo span{font-family:'Source Sans 3',system-ui,sans-serif}

/* ── Type ── */
.serif,.accent{font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-weight:400;letter-spacing:-0.01em}
.wrap{max-width:1200px;margin:0 auto;padding:0 32px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#0C2065}
.ink2{color:#3B4B81}

/* ── Buttons ── */
.btn-p{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:12px 26px;border-radius:100px;background:#9C31FF;color:#fff !important;font-weight:700;font-size:16px;text-decoration:none;transition:background .2s}
.btn-p:hover{background:#0C2065}
.btn-o{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:12px 26px;border-radius:100px;border:1.5px solid #0C2065;color:#0C2065 !important;font-weight:700;font-size:16px;text-decoration:none;background:transparent}
.btn-o:hover{background:#fff}
.btn-w{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:12px 26px;border-radius:100px;background:#fff;color:#0C2065 !important;font-weight:700;font-size:16px;text-decoration:none}
.btn-w:hover{background:#F1E9FF}
.btn-ow{display:inline-flex;align-items:center;min-height:48px;padding:12px 26px;border-radius:100px;border:1.5px solid #fff;color:#fff !important;font-weight:700;font-size:16px;text-decoration:none}

/* ── Nav ── */
.navlink{color:#0C2065;text-decoration:none;font-weight:600;font-size:15px;padding:10px 4px;background:none;border:0;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:4px;min-height:44px}
.navlink:hover{color:#9C31FF}

/* ── Cards ── */
.card{background:#fff;border:1px solid #ECE6DC;border-radius:16px;transition:transform .25s ease,box-shadow .25s ease}
.lift:hover{box-shadow:0 8px 28px rgba(12,32,101,.10)}
.motion-full .lift:hover{transform:translateY(-4px)}

/* ── Tables ── */
.tbl{width:100%;border-collapse:separate;border-spacing:0;font-size:15px}
.tbl th,.tbl td{padding:14px 16px;text-align:left;border-bottom:1px solid #ECE6DC;vertical-align:top}
.tbl th{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#3B4B81;font-weight:700;vertical-align:bottom}
.tbl td.us{background:#F1E9FF;color:#0C2065;font-weight:700}
.tbl th.us{background:#0C2065;color:#fff;border-radius:12px 12px 0 0}
.tbl td.num{text-align:right;font-weight:800}
.tblwrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;position:relative}
.tblwrap table{min-width:640px;margin:0;table-layout:fixed}
.tblwrap table th,.tblwrap table td{padding:14px 16px !important;text-align:left !important;vertical-align:top !important}
.tblwrap table thead th{vertical-align:bottom !important}
.tblwrap table th:first-child,.tblwrap table td:first-child{width:120px;min-width:120px;position:sticky;left:0;z-index:1;background:#fff}
.tblwrap table thead th:first-child{z-index:2}
.content-table thead th:first-child,.comparison-table thead th:first-child{background:var(--slate-50,#F8F6F2)}
.tblwrap .content-table,.tblwrap .comparison-table{border-collapse:separate;border-spacing:0;overflow:visible}
.cost-table thead th:first-child{background:var(--slate-50,#F8F6F2)}
.cost-table.plain td:last-child{font-weight:400;font-family:inherit}
.content-wrap section>h2:first-child{margin-top:3rem}
.btn-primary:hover{color:#fff}
.tblwrap:has(> .content-table){margin:1.5rem 0;border:1px solid var(--slate-200,#ECE6DC);border-radius:.5rem}
.tblwrap>.content-table{border:0}

/* ── FAQ (native <details>) ── */
.faqq{width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 0;background:none;border:0;border-bottom:1px solid #ECE6DC;font-family:inherit;font-size:18px;font-weight:700;color:#0C2065;text-align:left;cursor:pointer;min-height:44px;list-style:none}
.faqq:hover{color:#9C31FF}
.faqq::-webkit-details-marker{display:none}
.faqq .sign{flex:none;width:32px;height:32px;border-radius:100px;background:#F1E9FF;color:#9C31FF;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700}
.faqq .sign::before{content:"+"}
details[open]>.faqq .sign::before{content:"\2212"}
details.faqi>summary{list-style:none}
details.faqi>summary::-webkit-details-marker{display:none}

/* ── Forms ── */
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700;color:#0C2065}
.field select,.field input{min-height:48px;border:1px solid #D9D2C6;border-radius:16px;padding:0 16px;font-family:inherit;font-size:16px;color:#0C2065;background:#F8F6F2}

/* ── Dropdown nav ── */
details.dd{position:relative}
details.dd>summary{list-style:none}
details.dd>summary::-webkit-details-marker{display:none}
details.dd>.card{z-index:10}

/* ── Header layout ── */
.hdr-row{display:flex;align-items:center;justify-content:space-between;gap:12px;height:64px}
.hdr-logo{display:inline-flex;align-items:center;min-height:44px;flex-shrink:0}
.hdr-logo img{height:32px;width:auto;max-width:none;flex-shrink:0;display:block}
.hdr-actions{display:flex;align-items:center;gap:12px;flex:none}
.hdr-actions .btn-p{min-height:44px;padding:10px 22px;font-size:15px}

/* ── Sticky header + smooth scroll ── */
.site-hdr{position:sticky;top:0;z-index:50;background:#F8F6F2;border-bottom:1px solid transparent;transition:border-color .2s}
.site-hdr.scrolled{border-bottom-color:#ECE6DC}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
h1,h2,h3,h4,h5,h6,#process,[id]{scroll-margin-top:72px}

/* ── Mobile menu (details = no-JS fallback) ── */
details.mm>summary{list-style:none}
details.mm>summary::-webkit-details-marker{display:none}
.menubtn{display:none;width:40px;height:40px;min-height:40px !important;align-items:center;justify-content:center;padding:0;cursor:pointer;position:relative;z-index:52}
.menubtn .mm-close,details.mm[open] .menubtn .mm-open{display:none}
details.mm[open] .menubtn .mm-close{display:block}
.mmpanel{display:none}
details.mm[open] .mmpanel{display:flex;flex-direction:column;position:absolute;top:64px;right:16px;width:min(320px,calc(100vw - 32px));padding:10px;z-index:51;max-height:calc(100vh - 80px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 12px 32px rgba(12,32,101,.14)}

/* ── Stats band mobile ── */
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));border-top:1px solid #DCD4C7;border-bottom:1px solid #DCD4C7}
.stats-grid>.stat{padding:28px 20px}
.stats-grid>.stat+.stat{border-left:1px solid #DCD4C7}

/* ── Client logos ── */
.client-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px}

@media(max-width:1240px){
  .navlinks{display:none !important}
  .menubtn{display:inline-flex !important}
  .login{display:none !important}
}
@media(max-width:860px){
  .navlinks{display:none !important}
  .menubtn{display:inline-flex !important}
  .login{display:none !important}
  .wrap{padding:0 16px}
  .h1{font-size:44px !important}
  .h2{font-size:34px !important}
  .hdr-logo img{height:20px}
  .hdr-row,.hdr-actions{gap:10px}
  .hdr-actions .btn-p{min-height:38px;padding:8px 14px;font-size:14px}
  .mmpanel .navlink{min-height:44px}
  /* Client logos mobile */
  .client-row{flex-direction:column;align-items:flex-start;gap:12px}
  .client-logos{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:nowrap;width:100%}
  .client-logos img[alt="SpicesUSA"]{height:34px}
  .client-logos img[alt="NuThinking"]{height:22px}
  .client-logos img[alt="Cerebr4l"]{height:13px}
  /* Stats band mobile */
  .stats-grid{grid-template-columns:1fr 1fr}
  .stats-grid>.stat{border-left:0 !important;padding:20px 0}
  .stats-grid>.stat+.stat{border-left:0}
  .stats-grid>.stat:first-child{grid-column:1/-1;border-bottom:1px solid #ECE6DC}
  .stats-grid>.stat:nth-child(n+2){border-bottom:1px solid #ECE6DC}
  .stats-grid>.stat:nth-child(even){padding-left:20px;border-left:1px solid #ECE6DC !important}
  .stats-grid>.stat:first-child .stat-num{font-size:40px}
  .stats-grid>.stat:not(:first-child) .stat-num{font-size:32px}
  .stat-label{font-size:15px}
  /* Table scroll fade */
  .tblwrap{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 36px),rgba(0,0,0,.25));mask-image:linear-gradient(to right,#000 calc(100% - 36px),rgba(0,0,0,.25))}
}

/* ── Inner-page prose ── */
.prose h2{margin:56px 0 14px;font-size:32px;line-height:1.15;font-weight:800;letter-spacing:-0.025em;color:#0C2065;scroll-margin-top:72px}
.prose h2:first-child{margin-top:0}
.prose p{margin:0 0 16px;font-size:18px;line-height:1.7;color:#3B4B81}
.prose ul{margin:0 0 16px;padding-left:22px}
.prose li{margin:0 0 10px;font-size:18px;line-height:1.65;color:#3B4B81}
.prose li strong{color:#0C2065}
.prose a{color:#0C2065;font-weight:700;text-decoration-color:#9C31FF;text-underline-offset:3px}

/* ── TOC sidebar ── */
.toc a{display:block;padding:8px 0 8px 14px;border-left:2px solid #ECE6DC;color:#3B4B81;text-decoration:none;font-size:15px;line-height:1.35}
.toc a:hover{color:#9C31FF;border-left-color:#9C31FF}

/* ── Focus ring ── */
:focus-visible{outline:2px solid #9C31FF;outline-offset:3px}

/* ── Scroll-reveal (CSS-only, no JS) ── */
@media(prefers-reduced-motion:no-preference){
  @supports(animation-timeline:view()){
    .motion-calm .rv{animation:rvCalm linear both;animation-timeline:view();animation-range:entry 0% entry 35%}
    .motion-full .rv{animation:rvFull linear both;animation-timeline:view();animation-range:entry 0% entry 45%}
    .motion-full .rv-row{animation:rvRow linear both;animation-timeline:view();animation-range:entry 10% entry 60%}
  }
  .motion-full .float{animation:floaty 7s ease-in-out infinite}
  .motion-full .rv-hero{animation:heroIn .9s cubic-bezier(.2,.7,.2,1) both}
  .motion-calm .rv-hero{animation:heroInCalm .6s ease-out both}
}
@keyframes rvCalm{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes rvFull{from{opacity:0;transform:translateY(48px) scale(.97)}to{opacity:1;transform:none}}
@keyframes rvRow{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:none}}
@keyframes heroIn{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}
@keyframes heroInCalm{from{opacity:0}to{opacity:1}}
@keyframes floaty{0%,100%{transform:rotate(-4deg) translateY(0)}50%{transform:rotate(-2.5deg) translateY(-10px)}}

/* Inner-page simpler reveal */
@media(prefers-reduced-motion:no-preference){
  @supports(animation-timeline:view()){
    .rv-inner{animation:rvCalm linear both;animation-timeline:view();animation-range:entry 0% entry 35%}
  }
}

/* ── EN | ES language switch ── */
.lang-sw{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;white-space:nowrap}
.lang-sw a{color:inherit;text-decoration:underline;text-underline-offset:3px;min-height:32px;display:inline-flex;align-items:center}
.lang-sw strong{font-weight:800}
.mmpanel .lang-sw{padding:10px 12px;min-height:44px}
footer .lang-sw{color:rgba(255,255,255,.72)}
@media(max-width:1240px){.hdr-actions>.lang-sw{display:none}}
html[lang="es"] .site-hdr .wrap{max-width:1360px}
.site-hdr .navlinks .navlink,.hdr-actions .navlink{white-space:nowrap}
html[lang="es"] .site-hdr .navlinks{gap:20px !important}
@media(max-width:1300px){
  html[lang="es"] .navlinks{display:none !important}
  html[lang="es"] .menubtn{display:inline-flex !important}
  html[lang="es"] .login,html[lang="es"] .hdr-actions>.lang-sw{display:none !important}
}
