/* Inter, self-hosted (variable 400-800). latin-ext carries the rupee sign and loads only when used. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* funfactorlabs.com - shared stylesheet for every page (docs/WEBSITE_REFRESH_PLAN.md).
   Same dark, purple look as the original site; one file, no framework, no build step. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #09090b;
  --bg-2: #111114;
  --card: #18181b;
  --card-hover: #1f1f23;
  --border: #27272a;
  --border-2: #3f3f46;
  --text: #fafafa;
  --muted: #a1a1aa;
  --primary: #7c3aed;
  --primary-2: #a78bfa;
  --primary-3: #5b21b6;
  --accent: #f59e0b;
  --pink: #ec4899;
  --ok: #10b981;
  --grad: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
  --grad-primary: linear-gradient(135deg, #5b21b6, #7c3aed, #a855f7);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, .16), rgba(236, 72, 153, .08));
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r: 16px;
  --r-sm: 10px;
  --t: .25s cubic-bezier(.4, 0, .2, 1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 3px; border-radius: 6px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 2000; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(9, 9, 11, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand img { height: 36px; width: auto; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border-2); border-radius: 8px; color: var(--text); width: 42px; height: 38px; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--muted); font: 500 .92rem var(--font); background: none; border: 0; cursor: pointer; border-radius: 8px; }
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.caret { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 300px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); display: none; }
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: .92rem; font-weight: 500; }
.dropdown a small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.dropdown a:hover { background: var(--card-hover); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--r-sm); font: 600 .95rem var(--font); border: 1px solid transparent; cursor: pointer; transition: transform var(--t), box-shadow var(--t), background var(--t); }
.btn-primary { background: var(--grad-primary); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124, 58, 237, .4); }
.btn-ghost { border-color: var(--border-2); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--card); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.nav-cta { margin-left: 8px; }

@media (max-width: 1000px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 20px; max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 12px; min-width: 0; }
  .nav-cta { margin: 10px 0 0; }
}

/* ---------- sections ---------- */
section { padding: 72px 0; }
@media (max-width: 640px) { section { padding: 52px 0; } }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-2); margin-bottom: 12px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 760px; }
.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin: 0 auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.muted { color: var(--muted); }

/* hero */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 900px; height: 900px; background: radial-gradient(circle, rgba(124, 58, 237, .28), transparent 60%); pointer-events: none; }
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; list-style: none; }
.chips li { font-size: .82rem; color: var(--text); border: 1px solid var(--border-2); background: var(--card); padding: 6px 12px; border-radius: 999px; }
.page-hero { padding: 64px 0 48px; }
.breadcrumb { font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--primary-2); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb span { margin: 0 6px; }

/* cards */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; transition: border-color var(--t), transform var(--t), background var(--t); }
a.card:hover { border-color: var(--primary); transform: translateY(-3px); background: var(--card-hover); }
.card p { color: var(--muted); font-size: .95rem; }
.card .more { display: inline-block; margin-top: 12px; color: var(--primary-2); font-weight: 600; font-size: .9rem; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(124, 58, 237, .35); margin-bottom: 16px; color: var(--primary-2); }
.icon svg { width: 24px; height: 24px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(16, 185, 129, .12); color: var(--ok); border: 1px solid rgba(16, 185, 129, .35); margin-bottom: 12px; }
.tag.soon { background: rgba(245, 158, 11, .1); color: var(--accent); border-color: rgba(245, 158, 11, .35); }

/* steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); list-style: none; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps, .steps.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps, .steps.four { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad-primary); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps li p { color: var(--muted); font-size: .95rem; }

/* checklist */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(16, 185, 129, .15); border: 1px solid var(--ok); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border-right: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(45deg); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* illustration panel (CSS only; no remote images) */
.panel { background: linear-gradient(160deg, #1c1630, #120f1d); border: 1px solid #2e2650; border-radius: 22px; padding: 26px; box-shadow: 0 30px 80px rgba(124, 58, 237, .18); }
.phone { width: 230px; max-width: 100%; margin: 0 auto; border-radius: 34px; border: 8px solid #26262b; background: #0d0d10; padding: 18px 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.phone .row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: #1b1b21; font-size: .8rem; }
.phone .big { font-size: 1.6rem; font-weight: 800; }
.phone .pill { font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: rgba(124, 58, 237, .3); color: #ddd6fe; }
.phone .action { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.phone .action div { background: var(--grad-primary); border-radius: 12px; padding: 12px 6px; text-align: center; font-size: .72rem; font-weight: 700; }
.flow { display: grid; gap: 10px; }
.flow div { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.flow b { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 8px; background: var(--grad-primary); font-size: .8rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 1.4rem; color: var(--primary-2); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* CTA band */
.cta-band { background: var(--grad-soft); border: 1px solid rgba(124, 58, 237, .35); border-radius: 24px; padding: 44px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin-bottom: 6px; }
@media (max-width: 640px) { .cta-band { padding: 28px 22px; } }

/* store badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges img { height: 48px; width: auto; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 1px solid var(--border); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* prose (legal, support) */
.prose { max-width: 860px; }
.prose h2 { font-size: 1.35rem; margin: 34px 0 10px; color: var(--primary-2); }
.prose h3 { margin-top: 22px; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin-bottom: 12px; }
.prose ul, .prose ol { margin: 8px 0 14px 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--primary-2); text-decoration: underline; text-underline-offset: 3px; }
.policy-date { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.note { border-left: 3px solid var(--accent); background: rgba(245, 158, 11, .07); padding: 14px 18px; border-radius: 0 12px 12px 0; color: var(--text); margin: 18px 0; }
table.simple { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.simple th, table.simple td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.simple th { color: var(--text); font-weight: 600; }
table.simple td { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }

/* contact form */
.form { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--border-2); border-radius: 10px; color: var(--text); padding: 12px 14px; font: 400 .95rem var(--font); width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.phone-wrap { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.site-notification { position: fixed; top: 86px; right: 16px; left: 16px; margin-left: auto; max-width: 380px; color: #fff; padding: 14px 20px; border-radius: 12px; z-index: 3000; font-weight: 600; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.site-notification.ok { background: #10b981; }
.site-notification.err { background: #ef4444; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: #070708; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer .foot-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a, .site-footer p { color: var(--muted); font-size: .9rem; }
.site-footer a:hover { color: var(--text); }
.foot-brand img { height: 34px; width: auto; margin-bottom: 12px; }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .84rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* real app screenshot in a phone frame */
.shot-panel { padding: 22px; display: flex; justify-content: center; }
.shot { width: 280px; max-width: 100%; border-radius: 30px; border: 8px solid #26262b; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
/* the menu-link rule above resets background/colour on every menu link; give the CTA its button look back */
.nav-links > li > a.nav-cta { background: var(--grad-primary); color: #fff; padding: 9px 18px; font-weight: 600; }
.nav-links > li > a.nav-cta:hover { color: #fff; }
/* links inside card text must look like links */
.card p a, .faq details p a { color: var(--primary-2); text-decoration: underline; text-underline-offset: 3px; }
