/* LaceFi Autofill guide. Same look as lacefi.co.ke: navy on white, one green accent, line icons. */
:root {
  --ink: #0a2540;
  --text: #425466;
  --muted: #697386;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --navy: #0a2540;
  --green: #04aa6d;
  --green-ink: #03875a;
  --green-soft: #e6f7f0;
  --radius: 8px;
  --shadow: 0 50px 100px -20px rgba(50, 50, 93, .25), 0 30px 60px -30px rgba(0, 0, 0, .3);
  --shadow-sm: 0 2px 5px -1px rgba(50, 50, 93, .25), 0 1px 3px -1px rgba(0, 0, 0, .3);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--ink); font-weight: 600; }
section[id] { scroll-margin-top: 72px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Icons: one line style, no backgrounds */
.ic { flex-shrink: 0; width: 20px; height: 20px; }
.ic-btn { width: 17px; height: 17px; }
.ic-fact { width: 18px; height: 18px; color: var(--green-ink); }
.ic-flow { width: 24px; height: 24px; color: var(--green-ink); margin-top: 2px; }
.ic-feat { display: block; width: 24px; height: 24px; color: var(--green-ink); margin-bottom: 14px; }
.ic-help { display: block; width: 26px; height: 26px; color: var(--ink); }
.ic-big { width: 40px; height: 40px; color: var(--green-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; border: 0; cursor: pointer; font-family: inherit; transition: background-color .15s, box-shadow .15s; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1a3a5c; }
.btn-ghost { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px #c1c9d2; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; }
.sub { margin-top: 12px; max-width: 640px; font-size: 18px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.brand span { color: var(--green); }
.brand-sub { font-size: 15px; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.2; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink); }
.nav-links a { opacity: .8; position: relative; }
.nav-links a:hover { opacity: 1; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; margin-right: -8px; cursor: pointer; }

/* Hero */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.lede { margin-top: 20px; font-size: 19px; max-width: 500px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 15px; color: var(--ink); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-shot { margin-right: -120px; }

/* Browser frame */
.frame { margin: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #f1f4f8; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5dbe3; }
.frame-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Install */
.install { padding: 88px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs { display: inline-flex; gap: 4px; margin-top: 32px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font: 500 15px var(--font); color: var(--text); cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.panel { margin-top: 28px; max-width: 760px; }
.panel-note { font-size: 16px; }
.steps { counter-reset: step; margin-top: 24px; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 28px 52px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 600 15px var(--font); color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px #c9d2dc;
}
.steps > li:not(:last-child)::after { content: ''; position: absolute; left: 15.5px; top: 36px; bottom: 6px; width: 1px; background: #d5dbe3; }
.steps h3 { font-size: 18px; line-height: 1.45; }
.steps p { margin-top: 6px; font-size: 16px; }
.steps .btn { margin-top: 12px; }
.fallback { color: var(--muted); }
.copy { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 500 14px var(--font); color: var(--ink); cursor: pointer; }
.copy .ic { width: 15px; height: 15px; }
.copy.done { color: var(--green-ink); box-shadow: inset 0 0 0 1px #9fdcc2; }
.trouble { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; margin-top: 8px; padding: 16px 18px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.trouble .ic { color: var(--muted); margin-top: 2px; }

/* Use it */
.use { padding: 96px 0; }
.use-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.flow { margin-top: 28px; display: grid; gap: 22px; }
.flow li { display: flex; gap: 16px; }
.flow h3 { font-size: 17px; }
.flow p { margin-top: 4px; font-size: 16px; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 72px; }
.feats li { padding-top: 18px; border-top: 1px solid var(--line); }
.feats h3 { font-size: 17px; }
.feats p { margin-top: 6px; font-size: 15px; }

/* Videos */
.videos { padding: 88px 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.video { margin: 0; }
.yt, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; overflow: hidden; }
.yt { position: relative; padding: 0; cursor: pointer; background: #0a2540; box-shadow: var(--shadow-sm); }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.yt:hover img { transform: scale(1.03); }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play svg { width: 56px; height: 56px; padding: 16px 14px 16px 18px; border-radius: 50%; background: rgba(10, 37, 64, .85); fill: #fff; transition: background-color .15s; }
.yt:hover .play svg { background: var(--green); }
.video figcaption { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--ink); }

/* Notes */
.notes { padding: 72px 0; }
.notes-in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 28px; align-items: center; padding: 36px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.notes .h2 { font-size: clamp(24px, 2.6vw, 30px); }
.notes .sub { font-size: 16px; margin-top: 8px; }

/* Help */
.help { padding: 24px 0 96px; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.hcard { display: flex; flex-direction: column; padding: 24px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.hcard:hover { box-shadow: inset 0 0 0 1px #c1c9d2, var(--shadow-sm); transform: translateY(-2px); }
.hcard h3 { margin-top: 16px; font-size: 18px; }
.hcard p { margin-top: 6px; font-size: 15px; flex: 1; }
.hlink { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--green-ink); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot a:hover { color: var(--ink); }
.foot nav { display: flex; gap: 20px; }

/* Group invite card (not blocking) */
.invite { position: fixed; z-index: 60; right: 20px; bottom: 20px; display: flex; gap: 14px; width: 340px; max-width: calc(100vw - 32px); padding: 18px 40px 18px 18px; border-radius: 12px; background: #fff; box-shadow: 0 30px 60px -12px rgba(50, 50, 93, .3), 0 18px 36px -18px rgba(0, 0, 0, .35); }
.invite h3 { font-size: 16px; }
.invite p { margin-top: 4px; font-size: 14px; }
.invite .btn { margin-top: 12px; }
.invite-x { position: absolute; top: 10px; right: 10px; padding: 4px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.invite-x:hover { color: var(--ink); }

/* Motion */
.motion [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion .invite { opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .4s cubic-bezier(.2, .7, .2, 1); }
.motion .invite.in { opacity: 1; transform: none; }
.panel:not([hidden]) { animation: panel-in .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; opacity: 1; border-bottom: 1px solid var(--bg-soft); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 40px 0 64px; }
  .hero-in, .use-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot { margin-right: 0; }
  .feats, .vgrid, .help-grid { grid-template-columns: 1fr; }
  .feats { gap: 28px; margin-top: 56px; }
  .notes-in { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand-sub { font-size: 14px; }
  .nav-links { padding: 8px 16px 16px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .install, .use, .videos { padding: 64px 0; }
  .tab { padding: 0 14px; }
  .steps > li { padding-left: 46px; }
  .invite { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.motion .hcard[data-reveal].in:hover { transform: translateY(-2px); transition-delay: 0s; transition-duration: .2s; }
