/* LeoCRM website — LeoCRM brand: navy and logo blue, orange accent, on clean white. */
:root {
  /* LeoCRM brand: navy + blue from the logo, orange accent from the app (Cobalt theme) */
  --brand: #1E5DD9;
  --brand-700: #1749B8;
  --brand-900: #0B1F3A;
  --brand-50: #EAF1FD;
  --accent: #F97316;
  --accent-600: #EA580C;
  --accent-50: #FFF3EA;
  --ink: #0B1F3A;
  --ink-2: #3B4A63;
  --mute: #6B7A93;
  --line: #E3E8F2;
  --bg: #FAFBFD;
  --bg-2: #F3F6FB;
  --white: #FFFFFF;
  --green: #0E9F6E;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11,31,58,.04), 0 12px 32px rgba(11,31,58,.08);
  --shadow-lg: 0 30px 80px rgba(11,31,58,.18);
  --maxw: 1180px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-family: var(--font); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-2); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; text-decoration: none !important; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 8px 22px rgba(30,93,217,.28); }
.btn-primary:hover { background: var(--brand-700); }
.btn-gold { background: var(--accent); color: var(--white); box-shadow: 0 8px 22px rgba(249,115,22,.35); }
.btn-gold:hover { background: #FB8A3C; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.18); }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn svg { width: 16px; height: 16px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,251,253,.88); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(11,31,58,.05); }
.nav { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand img { width: 32px; height: 32px; }
.brand img.brand-logo { width: auto; height: 36px; }
.brand-name { font-family: var(--font); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--brand); }
.nav-links { display: flex; gap: 24px; margin-left: 12px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .95rem; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; display: block; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .site-header.open .nav { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .site-header.open .nav-links { display: flex; flex-direction: column; width: 100%; margin: 8px 0 0; gap: 4px; order: 3; }
  .site-header.open .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .site-header.open .nav-cta { display: flex; width: 100%; order: 4; margin: 12px 0 4px; }
  .site-header.open .nav-cta .btn { flex: 1; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; background:
  radial-gradient(900px 500px at 85% -10%, rgba(249,115,22,.22), transparent 60%),
  radial-gradient(800px 600px at -10% 20%, rgba(30,93,217,.10), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1.18fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .18em; background: var(--accent); opacity: .35; border-radius: 4px; z-index: -1; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-note { font-size: .9rem; color: var(--mute); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--green); }
.rotator { display: inline; color: var(--brand); }
.rotator span { display: inline-block; animation: rot-in .5s ease; }
@keyframes rot-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; }
.browser { border-radius: 14px; background: var(--white); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.browser-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5DDEA; display: block; }
.browser-bar .url { margin-left: 12px; flex: 1; max-width: 300px; height: 20px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); font-size: 11px; color: var(--mute); display: flex; align-items: center; padding: 0 8px; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.phone { position: absolute; right: -18px; bottom: -36px; width: 26%; min-width: 120px; border-radius: 22px; border: 6px solid var(--ink); background: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; animation: float 7s ease-in-out infinite; }
.phone img { border-radius: 14px; aspect-ratio: 390/700; object-fit: cover; object-position: top; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; color: var(--ink); white-space: nowrap; animation: float 6s ease-in-out infinite; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip-1 { left: -26px; top: 18%; }
.chip-2 { left: 8%; bottom: -18px; animation-delay: -2s; }
.chip-3 { right: 18%; top: -16px; animation-delay: -4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .chip-1 { left: 6px; } .phone { right: 6px; }
}

/* ---------- sections ---------- */
section { padding: 90px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: linear-gradient(135deg, var(--brand-900), var(--brand) 60%, #2563EB); color: var(--white); position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.82); }
.section-dark .eyebrow { color: #FDBA74; }
.section-head { margin-bottom: 48px; }

/* strip of industries */
.strip { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.strip-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; color: var(--mute); font-weight: 600; font-size: .92rem; }
.strip-inner .label { color: var(--ink-2); font-weight: 500; }
.strip-inner span.tag { display: inline-flex; align-items: center; gap: 8px; }
.strip-inner svg { width: 18px; height: 18px; color: var(--accent-600); }

/* feature grid */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(11,31,58,.03); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C9D6EE; }
.card h3 { margin: 14px 0 8px; }
.card p { margin: 0; font-size: .95rem; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.icon.gold { background: var(--accent-50); color: var(--accent-600); }
.icon svg { width: 22px; height: 22px; }

/* split feature rows */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.reverse { grid-template-columns: 1.25fr 1fr; }
.split.reverse .split-text { order: 2; }
.split ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.split li { display: flex; gap: 10px; color: var(--ink-2); }
.split li svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--brand); margin-top: 3px; }
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; background: var(--white); }
.shot img { width: 100%; }
@media (max-width: 960px) { .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; } .split.reverse .split-text { order: 0; } }

/* numbers band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: #FDBA74; line-height: 1.1; }
.stat span { color: rgba(255,255,255,.82); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 6px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--white); font-weight: 700; margin-bottom: 14px; box-shadow: 0 0 0 6px var(--brand-50); }

/* ---------- pricing ---------- */
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); margin: 8px auto 40px; }
.toggle button { border: none; background: transparent; padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--brand); color: var(--white); }
.toggle .save { font-size: .75rem; background: var(--accent); color: var(--white); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.toggle button[aria-pressed="true"] .save { background: var(--accent); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; box-shadow: 0 1px 2px rgba(11,31,58,.03); }
.plan.popular { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--white); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.plan h3 { margin: 0; font-size: 1.1rem; }
.plan .users { color: var(--mute); font-size: .9rem; margin-top: 2px; }
.plan .price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--ink); }
.plan .price small { color: var(--mute); font-size: .9rem; }
.plan .total { font-size: .9rem; color: var(--ink-2); min-height: 2.8em; }
.plan .total strong { color: var(--brand); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; font-size: .93rem; color: var(--ink-2); flex: 1; }
.plan li { display: flex; gap: 8px; }
.plan li svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.plan .btn { width: 100%; }
.compare { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .95rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { background: var(--bg-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.compare td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border-radius: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; background: linear-gradient(135deg, var(--brand-900), var(--brand)); color: var(--white); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.82); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(249,115,22,.45), transparent 70%); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 36px 24px; } .cta-band .actions { justify-content: flex-start; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px 0 28px; margin-top: 90px; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer .brand { color: var(--white); }
.site-footer .brand-name span { color: #7FA8F5; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: var(--white); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 40px; background: radial-gradient(700px 360px at 80% 0%, rgba(249,115,22,.2), transparent 60%), var(--bg); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(30,93,217,.25); border-color: var(--brand); }

/* ---------- floating words (hero) ---------- */
.float-words { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.float-words span { position: absolute; font-family: var(--serif); font-weight: 600; color: var(--brand); opacity: 0; white-space: nowrap; animation: word 6s ease-in-out forwards; }
@keyframes word { 0% { opacity: 0; transform: translateY(12px); } 20% { opacity: .14; transform: none; } 80% { opacity: .14; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- launch offer ---------- */
.announce { background: linear-gradient(90deg, var(--brand-900), var(--brand)); color: var(--white); font-size: .88rem; text-align: center; padding: 8px 16px; }
.announce b { color: #FDBA74; }
.announce a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; white-space: nowrap; }
.was { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .92rem; color: var(--mute); min-height: 1.4em; }
.was s { text-decoration-thickness: 1.5px; }
.off { background: #E6F4EC; color: var(--green); font-weight: 700; font-size: .75rem; padding: 2px 8px; border-radius: 999px; }
.plan .was + .price { margin-top: 4px; }
.launch-note { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-50); border: 1px solid #FED7AA; color: var(--ink); padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.launch-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-600); box-shadow: 0 0 0 4px rgba(249,115,22,.25); }

.browser img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.shot img { aspect-ratio: 16 / 9; height: auto; }

/* ---------- hero: stacked so the product screenshot is shown large and readable ---------- */
.hero { padding-top: 64px; }
.hero-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
.hero-grid > div:first-child { max-width: 860px; margin: 0 auto; }
.hero .lead { margin-left: auto; margin-right: auto; max-width: 720px; }
.hero-actions, .hero-note { justify-content: center; }
.hero-visual { max-width: 1100px; width: 100%; margin: 0 auto; }
.hero-visual .phone { width: 19%; right: -34px; bottom: -44px; }
.chip-1 { left: -40px; top: 22%; }
.chip-2 { left: 6%; bottom: -20px; }
.chip-3 { right: 12%; top: -18px; }
@media (max-width: 960px) {
  .hero-visual .phone { right: 4px; width: 24%; }
  .chip-1 { left: 4px; }
}
@media (max-width: 620px) { .chip { display: none; } }
@media (max-width: 760px) { .float-words { display: none; } }
