/* =========================================================
   7ocalls — Design System
   Clean, professional SaaS. Blue accent, light surfaces.
   ========================================================= */

:root {
  /* Brand / accent (blue) */
  --blue-50:  #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;   /* primary */
  --blue-700: #1D4ED8;   /* primary hover */
  --blue-800: #1E40AF;

  /* Ink / neutral slate */
  --ink:       #0B1220;  /* headings */
  --ink-700:   #334155;  /* body strong */
  --ink-600:   #475569;  /* body */
  --ink-500:   #64748B;  /* muted */
  --ink-400:   #94A3B8;  /* faint */

  /* Surfaces */
  --white:     #FFFFFF;
  --surface:   #F8FAFC;  /* page alt sections */
  --surface-2: #F1F5F9;
  --tint:      #F5F8FF;  /* very light blue wash */

  /* Lines */
  --line:      #E6EAF1;
  --line-2:    #EDF1F7;

  /* Status */
  --green-600: #059669;
  --green-50:  #ECFDF5;
  --amber-500: #F59E0B;
  --red-500:   #EF4444;
  --red-50:    #FEF2F2;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadows — soft, layered */
  --sh-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --sh-sm: 0 1px 2px rgba(15,23,42,.05), 0 2px 6px rgba(15,23,42,.05);
  --sh-md: 0 4px 12px rgba(15,23,42,.06), 0 12px 28px rgba(15,23,42,.07);
  --sh-lg: 0 12px 30px rgba(15,23,42,.08), 0 30px 60px rgba(15,23,42,.10);
  --sh-blue: 0 8px 20px rgba(37,99,235,.22);

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  --maxw: 1200px;
  --nav-h: 72px;

  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink-600);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--blue-200); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -0.015em; }
h4 { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }
p  { text-wrap: pretty; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--ink-500); line-height: 1.55; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-surface { background: var(--surface); }
.bg-tint { background: linear-gradient(180deg, var(--tint), var(--white)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow::before { content:""; width: 18px; height: 2px; border-radius: 2px; background: var(--blue-600); }
.eyebrow.center { justify-content: center; }

.section-head { max-width: 680px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .98rem; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: var(--r-md);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--sh-blue); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(37,99,235,.3); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh-xs); }
.btn-ghost:hover { border-color: var(--blue-200); color: var(--blue-700); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.btn-soft { background: var(--blue-50); color: var(--blue-700); }
.btn-soft:hover { background: var(--blue-100); }
.btn-outline { background: var(--white); color: var(--blue-700); border: 1px solid var(--blue-200); box-shadow: var(--sh-xs); }
.btn-outline:hover { background: var(--blue-50); border-color: var(--blue-300); color: var(--blue-700); transform: translateY(-1px); box-shadow: var(--sh-sm); }

/* --- Platform-detection recommendation --- */
.recommended { position: relative; }
.store-badge.recommended { outline: 2px solid var(--blue-500); outline-offset: 2px; box-shadow: 0 0 0 4px var(--blue-100), 0 12px 26px rgba(37,99,235,.28) !important; }
.platform-card.recommended { border-color: var(--blue-300); box-shadow: 0 0 0 3px var(--blue-100), 0 16px 34px rgba(37,99,235,.16); }
.rec-pill { position:absolute; top:-11px; right:16px; z-index:3; background: var(--blue-600); color:#fff; font-size:.64rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; padding:4px 10px; border-radius:999px; box-shadow:0 4px 12px rgba(37,99,235,.32); display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.rec-pill::before { content:""; width:5px; height:5px; border-radius:50%; background:#fff; }
.detected-line { margin: 18px auto 0; max-width:100%; display:inline-flex; align-items:center; gap:9px; font-size:.92rem; font-weight:600; color:var(--blue-700); background:var(--blue-50); border:1px solid var(--blue-100); padding:8px 16px; border-radius:999px; white-space:nowrap; }
.detected-line svg { width:16px; height:16px; flex:none; }
.detected-line b { font-weight:700; }
@media (max-width: 460px){ .detected-line { white-space:normal; text-align:center; border-radius:14px; } }
.btn-lg { padding: 16px 28px; font-size: 1.04rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 1px 0 rgba(15,23,42,.02), var(--sh-xs); }
.nav { display: flex; align-items: center; height: 100%; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-link {
  font-size: .96rem; font-weight: 500; color: var(--ink-600); white-space: nowrap;
  padding: 9px 14px; border-radius: var(--r-sm); transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link.active { color: var(--blue-700); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn-primary { border: 1px solid transparent; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(150deg, var(--blue-500), var(--blue-700));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: var(--sh-blue); position: relative; overflow: hidden;
}
.logo-mark::after { content:""; position:absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.4), transparent 55%); }
.logo-word { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.logo-word b { color: var(--blue-600); }

/* Mobile nav */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 55;
  background: #fff;
  padding: 10px 20px 22px; display: flex; flex-direction: column; gap: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(15,23,42,.13);
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .24s ease, opacity .24s ease;
}
.mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu a:not(.btn) {
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  padding: 13px 4px; border-bottom: 1px solid var(--line-2);
}
.mobile-menu a:not(.btn):last-of-type { border-bottom: none; }
.mobile-menu .btn { width: 100%; padding: 14px 20px; font-size: 1rem; margin: 0; }
.mobile-menu .btn-primary { border: 1px solid transparent; }
.mobile-menu .btn-download { margin-top: 18px; }
.mobile-menu .btn + .btn { margin-top: 10px; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--line);
  font-size: .82rem; font-weight: 600; color: var(--ink-700); box-shadow: var(--sh-xs);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 3px var(--green-50); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-2); }

.icon-tile {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700);
  border: 1px solid var(--blue-100);
}
.icon-tile svg { width: 23px; height: 23px; stroke-width: 1.7; }

/* Service grid */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.service-card h3 { margin: 18px 0 8px; }
.service-card p { font-size: .96rem; color: var(--ink-500); }
.service-card .learn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: .9rem; font-weight: 600; color: var(--blue-700); opacity: 0;
  transform: translateX(-4px); transition: .2s ease;
}
.service-card:hover .learn { opacity: 1; transform: none; }
.service-card .learn svg { width: 15px; height: 15px; }

/* ---------- Feature split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split.reverse .split-visual { order: -1; }
.feature-list { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; }
.feature-list .check {
  flex: none; width: 24px; height: 24px; border-radius: 7px; margin-top: 1px;
  display: grid; place-items: center; background: var(--green-50); color: var(--green-600);
}
.feature-list .check svg { width: 15px; height: 15px; stroke-width: 2.4; }
.feature-list b { color: var(--ink); font-weight: 700; }
.feature-list span { color: var(--ink-500); font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding-block: 64px 32px; }
.site-footer a { color: #cbd5e1; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .logo-word { color: #fff; }
.footer-col h5 { color: #fff; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: .96rem; }
.footer-blurb { font-size: .96rem; color: #94a3b8; max-width: 280px; margin-top: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: .88rem; color: #94a3b8; flex-wrap: wrap; gap: 12px; }

/* ---------- Reveal animation ----------
   Visible by default (safe for no-JS, reduced-motion, and hidden/throttled
   tabs where transitions pause). JS adds html.anim only when it's safe to
   animate, which arms the hidden start-state below. */
.reveal { opacity: 1; transform: none; }
html.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
html.anim .reveal.in { opacity: 1; transform: none; }
html.anim .reveal.d1 { transition-delay: .07s; }
html.anim .reveal.d2 { transition-delay: .14s; }
html.anim .reveal.d3 { transition-delay: .21s; }
html.anim .reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-visual { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  body { font-size: 16px; }
}
@media (max-width: 600px) {
  .nav-cta .btn-download { display: none; }
}
@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .nav { gap: 12px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { padding: 11px 16px; }
}