@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Caveat:wght@500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&display=swap');

:root {
  --black:   #000000;
  --ink:     #1a1f2e;
  --muted:   #5a6070;
  --line:    rgba(26,31,46,0.12);
  --gray:    #f3f2ee;
  --white:   #faf9f6;
  --surface: #ffffff;
  --font:    -apple-system, "SF Pro Display", system-ui, "Helvetica Neue", Arial, sans-serif;
  --serif:   "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --pad-x:   clamp(20px, 5vw, 60px);
  --max-w:   980px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body { font-family: var(--font); -webkit-font-smoothing: antialiased; color: var(--ink); background: var(--white); overflow-x: hidden; }
.bg-white { background: var(--white)!important; }
.bg-gray  { background: var(--gray)!important; }
.bg-black { background: var(--black)!important; }
a { text-decoration: none; color: inherit; }
p { line-height: 1.65; }

/* ── Layout ── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: clamp(80px, 8vw, 140px) var(--pad-x); max-width: var(--max-w); margin: 0 auto; }
.section-full { padding: clamp(80px, 8vw, 140px) 0; }
.bg-gray  { background: var(--gray); }
.bg-white { background: var(--white); }
.bg-black { background: var(--black); }
.hr { border: none; border-top: 1px solid var(--line); }

/* ── Type ── */
.label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.label-dark { color: rgba(255,255,255,0.4); }

h1 { font-family: var(--serif); font-size: clamp(52px, 7.8vw, 104px); font-weight: 400; letter-spacing: -0.028em; line-height: 1.02; color: var(--ink); font-optical-sizing: auto; }
h2 { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 64px); font-weight: 400; letter-spacing: -0.022em; line-height: 1.05; color: var(--ink); }
h3 { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.22; color: var(--ink); }
h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }

.hero-title { color: var(--white); }
.muted-text { color: var(--muted); }
.dark-muted  { color: rgba(255,255,255,0.55); }

.lead { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.52; color: var(--muted); letter-spacing: -0.008em; }
.lead-dark { color: rgba(255,255,255,0.6); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font); font-size: 17px; font-weight: 400; letter-spacing: -0.005em; cursor: pointer; border: none; transition: all 0.2s ease; white-space: nowrap; padding: 9px 20px; border-radius: 980px; }
.btn-black  { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(26,31,46,0.12), 0 4px 12px -4px rgba(26,31,46,0.18); }
.btn-black:hover { background: #0d111e; transform: translateY(-1px); }
.btn-white  { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-white:hover { border-color: rgba(255,255,255,0.65); }
.btn-outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 1px 1px rgba(26,31,46,0.03); }
.btn-outline:hover { border-color: rgba(26,31,46,0.28); }
.btn-ghost  { background: transparent; color: var(--muted); padding: 0; border: none; border-radius: 0; font-size: 15px; }
.btn-ghost:hover { color: var(--ink); }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ── NAV ── */
#nav {
  /* base — sticky glass for Solutions / Contact */
  position: sticky;
  top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; display: flex; align-items: center;
  background: rgba(250, 249, 246, 0.84);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(26,31,46,0.06);
}

/* ── PILL NAV (Home.html) ── */
#nav.pill-nav {
  position: fixed;
  height: auto;
  display: block;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  pointer-events: none;
  top: 12px;
  transition: top 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#nav.pill-nav.scrolled { top: 20px; }

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  pointer-events: auto;
  transition: max-width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              padding   0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#nav.pill-nav.scrolled .nav-container { max-width: 960px; padding: 0 14px; }

#nav.pill-nav .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 6px;
  border-radius: 0; border: 1px solid transparent;
  background: transparent;
  transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#nav.pill-nav.scrolled .nav-inner {
  height: 56px; padding: 0 20px 0 18px;
  border-radius: 999px;
  background: rgba(252, 251, 247, 0.05);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-color: rgba(255, 253, 248, 0.55);
  box-shadow: 0 1px 1px rgba(17,24,39,0.02), 0 8px 28px -8px rgba(17,24,39,0.06), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* static glass: expanded size, but with the glass pill backing (no shrink) */
#nav.pill-nav.glass .nav-inner {
  border-radius: 999px;
  background: rgba(252, 251, 247, 0.05);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-color: rgba(255, 253, 248, 0.55);
  box-shadow: 0 1px 1px rgba(17,24,39,0.02), 0 8px 28px -8px rgba(17,24,39,0.06), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* sticky pages fallback */
#nav:not(.pill-nav) .nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px,4vw,48px); display: flex; align-items: center; justify-content: space-between; width: 100%; }

.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; }

@keyframes logoEntrance {
  from { letter-spacing: 0.22em; opacity: 0; filter: blur(3px); }
  to   { letter-spacing: -0.018em; opacity: 1; filter: blur(0); }
}
.nav-logo-text {
  display: inline-block;
  letter-spacing: -0.018em;
  animation: logoEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: letter-spacing 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-logo:hover .nav-logo-text { letter-spacing: 0.1em; }

.nav-links { display: flex; gap: 0; }
.nav-links a {
  position: relative; z-index: 1;
  font-size: 14px; color: var(--ink); opacity: 0.72;
  padding: 8px 14px; border-radius: 999px;
  letter-spacing: -0.005em; transition: opacity 0.2s;
}
.nav-links a::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 999px; background: oklch(0.93 0.008 85);
  opacity: 0; transition: opacity 0.18s ease; z-index: -1;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::before { opacity: 1; }

/* Solutions highlight — thin red outline + clear hover/press */
.nav-links a.nav-sol { opacity: 1; color: #C20E07; font-weight: 500; padding: 6px 15px; border: 1px solid #E2231A; border-radius: 999px; box-shadow: 0 2px 6px -1px rgba(226,35,26,0.28); transition: background .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease; }
.nav-links a.nav-sol::before { display: none; }
.nav-links a.nav-sol:hover { background: #E2231A; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px -3px rgba(226,35,26,0.5); }
.nav-links a.nav-sol:active { transform: translateY(0) scale(0.96); box-shadow: 0 2px 6px -3px rgba(226,35,26,0.5); }

/* mobile Solutions pill — hidden on desktop, shown in bar on mobile */
.nav-sol-mobile {
  display: none;
  font-family: var(--font); font-size: 13px; font-weight: 500;
  transition: background .18s ease, color .18s ease, transform .12s ease;
  color: #C20E07; background: transparent; text-decoration: none;
  padding: 6px 15px; border: 1px solid #E2231A; border-radius: 999px; letter-spacing: -0.01em; box-shadow: 0 2px 6px -1px rgba(226,35,26,0.28);
}
.nav-sol-mobile:hover { background: #E2231A; color: #fff; }

/* Book a demo — slim outline pill with soft shadow */
.btn.nav-cta { background: transparent; color: var(--ink); border: 1px solid rgba(26,31,46,0.30); box-shadow: 0 2px 8px -2px rgba(26,31,46,0.22); font-weight: 500; }
.btn.nav-cta:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 5px 14px -4px rgba(26,31,46,0.4); }
.nav-sol-mobile:active { transform: scale(0.96); }

.nav-signin { font-size: 14px; color: var(--ink); opacity: 0.72; letter-spacing: -0.005em; margin-right: 4px; transition: opacity 0.2s; }
.nav-signin:hover { opacity: 1; }

/* ── FOOTER ── */
footer { background: var(--ink); padding: 24px 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px,4vw,48px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.85); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.85); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; display: inline-block; }
.footer-sig { display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 1200px; margin: 16px auto 0; padding: 16px clamp(20px,4vw,48px) 0; border-top: 1px solid rgba(255,255,255,0.08); font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.footer-sig .am { font-family: var(--serif); font-style: italic; font-size: 13px; text-transform: none; letter-spacing: 0; color: rgba(255,255,255,0.6); }
.automa-credit { background: var(--white); text-align: center; padding: clamp(40px,5vw,64px) var(--pad-x); border-top: 1px solid var(--line); }
.automa-credit p { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.automa-credit img { height: 40px; width: auto; opacity: 0.92; transition: opacity 0.2s, transform 0.2s; }
.automa-credit a { display: inline-block; }
.automa-credit a:hover img { opacity: 1; transform: translateY(-1px); }

/* ── REVEAL ── */
[data-r] { opacity: 0; transform: translateY(14px); transition: opacity 0.85s cubic-bezier(0.2,0.8,0.2,1), transform 0.85s cubic-bezier(0.2,0.8,0.2,1); transition-delay: var(--d, 0s); }
[data-r].in { opacity: 1; transform: none; }

/* ── GRID helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--line); }
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-sol-mobile { display: inline-flex; align-items: center; font-size: 12.5px; padding: 6px 14px; }
  .nav-signin { display: none; }
  /* keep full logo (brand). Home header: logo + Solutions only — drop the
     redundant Book-a-demo ONLY where the Solutions pill is present (Home),
     so Solutions/Contact still show their Book-a-demo CTA */
  .nav-inner:has(.nav-sol-mobile) .nav-cta { display: none; }
  #nav.pill-nav .nav-container { padding: 0 4px; }
  #nav.pill-nav .nav-inner { height: 60px; padding: 0 6px 0 14px; gap: 10px; }
  #nav.pill-nav.scrolled .nav-inner { height: 52px; padding: 0 6px 0 14px; }
  /* Solutions/Contact headers keep their single CTA, just a touch smaller */
  .nav-cta { font-size: 13px !important; padding: 8px 15px !important; }
  /* prevent iOS auto-zoom on focus + keep fields legible */
  input, select, textarea { font-size: 16px !important; }
  /* smaller logo + subtitle on mobile */
  .nav-logo { font-size: 15px; }
  .nav-logo-text { font-size: 15px; }
  .nav-logo-sub { font-size: 6.5px !important; letter-spacing: 0.1em !important; }
  /* Home hero: anchor content to top so it clears the fixed nav (no more overlap) */
  .home-hero { min-height: auto !important; justify-content: flex-start !important; padding-top: 92px !important; padding-bottom: 56px !important; }
  /* typography scale-down */
  h1 { font-size: clamp(40px, 11vw, 60px); }
  h2 { font-size: clamp(28px, 8vw, 44px); }
  .lead { font-size: 17px; }
  /* step row — compact on mobile (smaller blob, heading, text, tighter rows) */
  .step-row { grid-template-columns: 48px 1fr !important; gap: 15px !important; padding: 20px 0 !important; align-items: start !important; }
  .step-icon-wrap { width: 48px !important; height: 48px !important; min-width: 48px !important; }
  .step-icon-wrap svg { width: 48px !important; height: 48px !important; }
  .step-body h4 { font-size: 20px !important; margin-bottom: 4px !important; }
  .step-body p { font-size: 13.5px !important; line-height: 1.55 !important; }
  /* trim section whitespace on mobile (was 80px top+bottom) */
  .section { padding-top: 26px !important; padding-bottom: 26px !important; }
  .section-full { padding-top: 26px !important; padding-bottom: 26px !important; }
  /* compact metrics */
  .metric-cell { padding: 18px 24px !important; }
  .metric-val { font-size: 46px !important; margin-bottom: 6px !important; }
  .metric-label { font-size: 14px !important; }
  .metric-sub { font-size: 12.5px !important; }
  /* tighten footer / automa credit */
  .automa-credit { padding-top: 26px !important; padding-bottom: 26px !important; }
  .automa-credit p { margin-bottom: 10px !important; }
  .automa-credit img { height: 30px !important; }
  /* metric cells — add divider between stacked */
  .metric-cell { border-bottom: 1px solid var(--line); }
  /* sol-num sticky — disable on mobile */
  .sol-num { position: static; }
  /* footer stack */
  .footer-inner { flex-direction: column; text-align: center; gap: 10px; }
  .footer-links { justify-content: center; }
  /* compact solution cards on mobile (denser, smaller heading) */
  .sol-card { padding: 30px 24px !important; }
  .sol-card h3 { font-size: 19px; line-height: 1.2; margin-bottom: 9px; }
  .sol-card p { font-size: 13.5px !important; line-height: 1.55 !important; margin-top: 10px !important; }
  .sol-num { margin-bottom: 12px !important; font-size: 10.5px !important; }
  .sol-icon { width: 46px !important; height: 46px !important; margin-bottom: 12px !important; }
  .sol-card a { margin-top: 16px !important; font-size: 14px !important; }
}

@media (max-width: 500px) {
  .cta-row { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .step-row { grid-template-columns: 1fr; }
  .step-icon-wrap { margin-bottom: 4px; }
}

/* ── Solution cards ── */
.sol-card { padding: clamp(40px,4vw,64px) clamp(28px,3vw,48px); background: var(--white); position: relative; }
.sol-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 24px; z-index: 2; }
.sol-card h3 { margin-bottom: 14px; }
.sol-card p { font-size: 15px; color: var(--muted); line-height: 1.68; }

/* ── Step row ── */
.label-tag{display:inline-flex;align-items:center;font-family:var(--mono);font-size:10px;font-weight:500;letter-spacing:0.14em;text-transform:uppercase;color:#6b5524;background:#EFC75E;padding:4px 12px;border-radius:999px}
.step-row { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: clamp(28px,3vw,44px) 0; border-top: 1px solid var(--line); align-items: center; }
.step-row:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); padding-top: 4px; }
.step-body h4 { margin-bottom: 8px; font-family: 'Caveat', cursive; font-size: clamp(24px,2.2vw,29px); font-weight: 600; letter-spacing: 0.01em; line-height: 1.1; }
.step-body p { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 60ch; }

/* ── Metric cells ── */
.metric-cell { padding: clamp(36px,3.5vw,72px) clamp(24px,3vw,56px); background: var(--white); }
.metric-val { font-size: clamp(52px, 6.5vw, 80px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--ink); margin-bottom: 12px; }
.metric-label { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.metric-sub { font-size: 13px; color: var(--muted); }

/* ── Form ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--ink); }
.form-input { font-family: var(--font); font-size: 17px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); background: var(--white); transition: border-color 0.2s; -webkit-appearance: none; width: 100%; box-sizing: border-box; }
.form-input:focus { border-color: var(--ink); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* Book-a-demo modal — keep fields inside the sheet on all sizes */
.modal-sheet input, .modal-sheet select, .modal-sheet textarea { box-sizing: border-box; max-width: 100%; width: 100%; }

@media (max-width: 560px){
  /* sheet itself: tighter padding, scroll if tall so the submit button is always reachable */
  .modal-sheet { padding: 26px 18px 30px !important; max-height: 92svh !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; }
  /* stack the Name + WhatsApp row */
  .modal-sheet [style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 10px !important; }
  /* compact fields */
  .modal-sheet input, .modal-sheet select, .modal-sheet textarea {
    font-size: 16px !important;       /* 16px = no iOS zoom, still smaller visual weight than before */
    padding: 10px 12px !important;
    border-radius: 9px !important;
  }
  .modal-sheet label { font-size: 10px !important; margin-bottom: 4px !important; }
  /* tighten vertical rhythm between fields */
  .modal-sheet form > div { margin-bottom: 10px !important; }
  .modal-sheet h2 { font-size: 24px !important; margin-bottom: 6px !important; }
  .modal-sheet > p { margin-bottom: 16px !important; }
  .modal-sheet button[type="submit"] { padding: 13px !important; font-size: 15px !important; }
  /* drag handle + top spacing smaller */
  .modal-sheet > div:first-child { margin-bottom: 18px !important; }
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
