/* =============================================
   ALLIARO — Global Stylesheet
   Brand: Blue #6366f1 / #7c6af5, Slate dark #2d3142
   Font: Cabinet Grotesk (headings) + Satoshi (body)
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --p: #6366f1;        /* primary indigo */
  --p2: #7c6af5;       /* primary variant */
  --sec: #2d3142;      /* dark slate */
  --ps: rgba(99,102,241,.09);
  --bg: #ffffff;
  --bg2: #f8f9fc;
  --bg3: #f1f3f8;
  --txt: #1a1d2e;
  --txt2: #4a4f6a;
  --border: rgba(0,0,0,.08);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 2px 16px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --tx-xs: .72rem;
  --tx-sm: .85rem;
  --tx-base: 1rem;
  --tx-md: 1.1rem;
  --tx-lg: 1.3rem;
  --tx-xl: 1.55rem;
  --tx-2xl: 2rem;
  --tx-3xl: 2.65rem;
  --tx-4xl: 3.4rem;
  --nav-h: 68px;
  --container: 1180px;
}

[data-theme="dark"] {
  --bg: #0e0f18;
  --bg2: #141622;
  --bg3: #1a1d2e;
  --txt: #eef0f8;
  --txt2: #9097b8;
  --border: rgba(255,255,255,.08);
  --shadow: 0 2px 20px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.45);
  --ps: rgba(99,102,241,.14);
  --sec: #6366f1;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Satoshi', system-ui, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; }
input, textarea, select { font: inherit; }

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--p); color: #fff; padding: .4rem 1rem;
  border-radius: 6px; z-index: 9999; font-size: var(--tx-sm);
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Container ---------- */
.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(var(--bg-raw, 255,255,255), .85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  height: var(--nav-h);
  display: flex; align-items: center;
}
.nav-inner {
  display: flex; align-items: center; gap: 2rem;
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 800; font-size: 1.22rem;
  letter-spacing: -.03em; color: var(--txt);
  flex-shrink: 0;
}
.brand svg { color: var(--p); flex-shrink: 0; }

.nav-links {
  display: flex; align-items: center; gap: .15rem;
  flex: 1;
}
.nav-links a {
  font-size: var(--tx-sm); font-weight: 500; color: var(--txt2);
  padding: .4rem .7rem; border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--p); background: var(--ps);
}
.nav-actions {
  display: flex; align-items: center; gap: .6rem; margin-left: auto; flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; border-radius: 10px; transition: all .18s;
  white-space: nowrap; border: 1.5px solid transparent;
  font-size: var(--tx-sm); padding: .65rem 1.25rem;
  text-decoration: none; cursor: pointer;
}
.btn-primary {
  background: var(--p); color: #fff; border-color: var(--p);
}
.btn-primary:hover { background: var(--p2); border-color: var(--p2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,.35); }
.btn-secondary {
  background: var(--ps); color: var(--p); border-color: color-mix(in srgb,var(--p) 25%,transparent);
}
.btn-secondary:hover { background: color-mix(in srgb,var(--p) 18%,transparent); }
.btn-ghost {
  background: transparent; color: var(--txt2); border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--p); color: var(--p); background: var(--ps); }
.btn-sm { font-size: var(--tx-xs); padding: .45rem 1rem; border-radius: 8px; }
.btn-lg { font-size: var(--tx-base); padding: .85rem 1.75rem; border-radius: 12px; }

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg3); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; color: var(--txt2);
  position: relative;
}
.theme-toggle::before { content: '☀'; font-size: 1rem; }
[data-theme="dark"] .theme-toggle::before { content: '🌙'; }
.theme-toggle:hover { border-color: var(--p); color: var(--p); }

/* ---------- Mobile Menu ---------- */
.menu-toggle {
  display: none; background: transparent; border: none;
  color: var(--txt2); padding: .3rem;
}
@media (max-width: 860px) {
  .nav-links {
    display: none; flex-direction: column; align-items: stretch;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1rem; gap: .25rem; z-index: 99;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem 1rem; border-radius: 10px; }
  .menu-toggle { display: flex; }
  .nav-actions .btn-ghost { display: none; }
}
@media (max-width: 480px) {
  .nav-actions .btn-primary { font-size: .7rem; padding: .4rem .8rem; }
}

/* ---------- Sections & Layout ---------- */
.section { padding: 5rem 0; }
.page-hero { padding: 5.5rem 0 4rem; max-width: 780px; }
.page-hero .eyebrow { margin-bottom: .9rem; }
.page-hero h1 { font-size: clamp(var(--tx-2xl), 4.5vw, var(--tx-4xl)); margin-bottom: 1.2rem; }
.page-hero .lead { font-size: var(--tx-lg); color: var(--txt2); max-width: 640px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head h2 { margin-top: .6rem; margin-bottom: .85rem; }
.section-head p { color: var(--txt2); }
.sec-split { text-align: left; max-width: none; display: flex; gap: 3rem; align-items: flex-end; margin-bottom: 2.5rem; }
.sec-split > div:first-child { flex: 1; }
.sec-split p { max-width: 400px; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.04em; color: var(--txt);
}
h1 { font-size: clamp(var(--tx-2xl), 4vw, var(--tx-4xl)); }
h2 { font-size: clamp(var(--tx-xl), 2.8vw, var(--tx-3xl)); }
h3 { font-size: var(--tx-xl); }
h4 { font-size: var(--tx-lg); }
p { color: var(--txt2); }
.lead { font-size: var(--tx-lg); color: var(--txt2); }
.muted { color: var(--txt2); }
.note { font-size: var(--tx-sm); color: var(--txt2); }
.eyebrow {
  display: inline-block; font-size: var(--tx-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  background: var(--ps); color: var(--p); padding: .3rem .85rem;
  border-radius: 50px; border: 1px solid color-mix(in srgb,var(--p) 22%,transparent);
}

/* ---------- Grids ---------- */
.g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1.25rem; }
.g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.g4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; }
.gc2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
@media (max-width: 720px) { .gc2 { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: color-mix(in srgb,var(--p) 35%,transparent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card h3 { font-size: var(--tx-lg); margin-bottom: .6rem; }
.card p { font-size: var(--tx-sm); }

/* ---------- Icon Wraps ---------- */
.icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--ps); color: var(--p);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.icon-wrap svg { width: 20px; height: 20px; }
.iw-acc { background: rgba(245,158,11,.1); color: #d97706; }
.iw-sec { background: rgba(16,185,129,.1); color: #059669; }
.iw-dark { background: var(--sec); color: #fff; }

/* ---------- Steps ---------- */
.step {
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
}
.snum {
  width: 40px; height: 40px; background: var(--p); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { font-size: var(--tx-sm); }

/* ---------- Stats ---------- */
.stat {
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; text-align: center;
}
.stat strong { display: block; font-family: 'Cabinet Grotesk', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--p); letter-spacing: -.04em; }
.stat span { font-size: var(--tx-sm); color: var(--txt2); }

/* ---------- Pills / Checklist ---------- */
.pill {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .9rem; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 9px;
  font-size: var(--tx-sm); color: var(--txt2);
}

/* ---------- FAQ Cards ---------- */
.faq {
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.faq h3 { font-size: var(--tx-base); margin-bottom: .5rem; }
.faq p { font-size: var(--tx-sm); }

/* ---------- CTA Band ---------- */
.cta-band { padding: 4rem 0; }
.cta-box {
  background: var(--sec);
  border-radius: 24px;
  padding: 3.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap;
}
.cta-box h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.cta-box p { color: rgba(255,255,255,.75); margin-top: .5rem; max-width: 520px; }
.cta-acts { display: flex; gap: .85rem; flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-box { padding: 2rem; } .cta-acts { width: 100%; } }

/* ---------- Pricing Plans ---------- */
.plan {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  transition: border-color .2s, box-shadow .2s;
}
.plan.featured {
  background: var(--sec); color: #fff;
  border-color: var(--sec);
  box-shadow: 0 12px 48px rgba(45,49,66,.3);
}
.plan.featured p, .plan.featured .note { color: rgba(255,255,255,.75); }
.plan ul { display: flex; flex-direction: column; gap: .55rem; padding: 0; }
.plan li {
  font-size: var(--tx-sm); color: var(--txt2); padding-left: 1.4rem; position: relative;
}
.plan.featured li { color: rgba(255,255,255,.8); }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--p); font-weight: 700; }
.plan.featured li::before { color: #a5b4fc; }
.plan-cta { margin-top: auto; }
.pnum { font-family: 'Cabinet Grotesk', sans-serif; font-size: 2.75rem; font-weight: 800; color: var(--txt); letter-spacing: -.05em; }
.plan.featured .pnum { color: #fff; }

/* ---------- Pricing Table ---------- */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--tx-sm); }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 700; background: var(--bg2); color: var(--txt); }
td { color: var(--txt2); }
tr:last-child td { border-bottom: 0; }

/* ---------- Form ---------- */
.form-card {
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 2.25rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; font-size: var(--tx-sm); font-weight: 600; color: var(--txt); }
.field input, .field textarea, .field select {
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: .7rem 1rem; background: var(--bg); color: var(--txt);
  transition: border-color .15s;
  font-size: var(--tx-sm);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--p); box-shadow: 0 0 0 3px var(--ps);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
form { display: flex; flex-direction: column; gap: 1rem; }

/* ---------- Hero (Homepage) ---------- */
.hero {
  padding: 6rem 0 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 30%, rgba(99,102,241,.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 800px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-txt .eyebrow { margin-bottom: 1.2rem; }
.hero-txt h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1.25rem; }
.hero-txt p { font-size: var(--tx-lg); color: var(--txt2); max-width: 520px; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: .85rem; flex-wrap: wrap; }
.hero-img {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border: 1.5px solid var(--border);
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.hero-img img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; }

/* ---------- Lifecycle Flow ---------- */
.lifecycle {
  display: flex; align-items: center; gap: 0;
  flex-wrap: wrap; justify-content: center;
  margin: 2rem 0;
}
.lc-step {
  background: var(--p); color: #fff;
  padding: .7rem 1.25rem; border-radius: 10px;
  font-size: var(--tx-sm); font-weight: 700;
  text-align: center; min-width: 120px;
}
.lc-arrow {
  font-size: 1.2rem; color: var(--txt2); padding: 0 .4rem;
}
@media (max-width: 640px) {
  .lifecycle { gap: .4rem; }
  .lc-arrow { display: none; }
}

/* ---------- Social Proof Ticker ---------- */
.ticker-band {
  background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: .9rem 0; overflow: hidden;
}
.ticker-inner {
  display: flex; gap: 3rem; animation: ticker 22s linear infinite; width: max-content;
}
.ticker-item { font-size: var(--tx-sm); color: var(--txt2); font-weight: 500; white-space: nowrap; }
.ticker-item strong { color: var(--txt); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 2.5rem;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: var(--tx-sm); color: var(--txt2); margin-top: .75rem; max-width: 280px; }
.site-footer h4 {
  font-size: var(--tx-sm); font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; margin-bottom: 1rem; color: var(--txt);
}
.site-footer a {
  display: block; font-size: var(--tx-sm); color: var(--txt2);
  margin-bottom: .55rem; transition: color .15s;
}
.site-footer a:hover { color: var(--p); }
.footer-btm {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: var(--tx-xs); color: var(--txt2);
  flex-wrap: wrap; gap: 1rem;
}
.socials { display: flex; gap: .75rem; }
.socials a {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--txt2); transition: all .15s; margin-bottom: 0;
}
.socials a:hover { border-color: var(--p); color: var(--p); background: var(--ps); }

/* ---------- Reveal Animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Services Page ---------- */
.service-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem;
}
.service-card .icon-wrap { margin: 0; width: 56px; height: 56px; border-radius: 14px; }

/* ---------- Homepage Hero Dashboard Card ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-lede { font-size: var(--tx-lg); color: var(--txt2); max-width: 520px; margin-bottom: 2rem; }
.hero-trust { font-size: var(--tx-xs); color: var(--txt2); margin-top: 1.25rem; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.dash-card {
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: 24px; padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  --div: var(--border);
}
.ey-acc { background: rgba(16,185,129,.1); color: #059669; border-color: rgba(16,185,129,.2); }
.mchip {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ps); border: 1px solid color-mix(in srgb,var(--p) 18%,transparent);
  border-radius: 10px; padding: .55rem .85rem; margin-bottom: .75rem;
  font-size: var(--tx-sm);
}
.mchip span { color: var(--txt2); }
.mchip strong { color: var(--p); font-size: 1.1rem; font-family: 'Cabinet Grotesk', sans-serif; }
.brow {
  height: 6px; background: var(--bg3); border-radius: 99px; overflow: hidden;
}
.bfill { display: block; height: 100%; background: var(--p); border-radius: 99px; }
.lrow {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--tx-sm); padding: .45rem 0; border-bottom: 1px solid var(--div);
  color: var(--txt2);
}
.lrow strong { color: var(--txt); font-weight: 700; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.color-p { color: var(--p); }

/* ---------- Logo size fix ---------- */
:root { --nav-h: 72px; }
.brand img { flex-shrink: 0; }
.site-header { height: var(--nav-h); }

/* ---------- Logo image crop & size ---------- */
.brand img {
  height: 44px !important;
  width: auto !important;
  max-width: 200px !important;
  /* Crop the white padding around the logo image */
  object-fit: cover;
  object-position: center;
  margin: -6px 0;
}

/* ---------- New transparent PNG logo ---------- */
.brand img {
  height: 36px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  object-position: left center !important;
  margin: 0 !important;
}

/* ---------- Montserrat headings ---------- */
h1, h2, h3, h4,
.brand span,
.plan .pnum,
.stat strong {
  font-family: 'Montserrat', system-ui, sans-serif !important;
}

/* ---------- Nav links aligned right ---------- */
.nav-inner {
  justify-content: space-between;
}
.nav-links {
  flex: unset;
  margin-left: auto;
  margin-right: 1.5rem;
}

/* ---------- Hide theme toggle ---------- */
.theme-toggle { display: none !important; }
