/* Advaitamaa Billing — product website. One stylesheet for every page. */
:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-soft: #f3e8ff;
  --accent: #f59e0b;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #0f172a;
  --success: #16a34a;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.25);
  --shadow-sm: 0 6px 20px -8px rgba(15, 23, 42, 0.18);
  --max: 1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--bg-dark); color: #cbd5e1; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.section.dark .eyebrow { background: rgba(124, 58, 237, .2); color: #c4b5fd; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.gradient-text { background: linear-gradient(90deg, var(--primary), #db2777 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(124, 58, 237, .7); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-ghost { color: var(--ink); padding: 10px 14px; }
.btn-ghost:hover { color: var(--primary); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { transform: translateY(-2px); }
.btn.disabled { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15, 23, 42, .2); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.12rem; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), #a855f7); display: grid; place-items: center; color: #fff; }
.brand-mark svg { width: 20px; height: 20px; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); margin-top: -3px; }
.nav-links { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--primary); transition: right .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; z-index: -1; animation: drift 14s ease-in-out infinite alternate; }
.hero::before { width: 520px; height: 520px; background: #c4b5fd; top: -160px; right: -120px; }
.hero::after { width: 420px; height: 420px; background: #fde68a; bottom: -180px; left: -140px; animation-delay: -6s; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero p.lead { margin: 18px 0 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: .9rem; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--success); }
.hero-visual { position: relative; min-height: 440px; }
.device-laptop { position: relative; border-radius: 14px; background: #1e293b; padding: 10px 10px 14px; box-shadow: var(--shadow); transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); transition: transform .6s; }
.device-laptop:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.device-laptop img { border-radius: 6px; }
.device-laptop::after { content: ''; position: absolute; left: -6%; right: -6%; bottom: -14px; height: 14px; background: linear-gradient(#cbd5e1, #94a3b8); border-radius: 0 0 14px 14px; }
.device-phone { position: absolute; width: 34%; right: -4%; bottom: -30px; border-radius: 28px; background: #0f172a; padding: 8px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.device-phone img { border-radius: 21px; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-sm); font-size: .85rem; font-weight: 600; color: var(--ink); animation: float 7s ease-in-out infinite; }
.chip small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; }
.chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.chip .dot svg { width: 18px; height: 18px; }
.chip.c1 { top: 6%; left: -6%; animation-delay: -2s; }
.chip.c2 { bottom: 18%; left: -10%; animation-delay: -4s; }
.chip.c3 { top: -4%; right: 8%; animation-delay: -1s; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.stat b { display: block; font-size: 2.3rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.icon.amber { background: #fef3c7; color: #b45309; }
.icon.green { background: #dcfce7; color: #15803d; }
.icon.pink { background: #fce7f3; color: #be185d; }
.icon.blue { background: #dbeafe; color: #1d4ed8; }

/* Showcase */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px 0 28px; }
.tab { border: 1px solid var(--line); background: #fff; color: var(--text); padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; }
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.browser { max-width: 1040px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.browser-bar i:nth-child(2) { background: #fbbf24; }
.browser-bar i:nth-child(3) { background: #34d399; }
.browser-bar span { margin-left: 12px; font-size: .78rem; color: var(--muted); background: #fff; padding: 3px 12px; border-radius: 6px; flex: 1; max-width: 360px; }
.browser-screen { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.browser-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.02); transition: opacity .6s, transform .8s; }
.browser-screen img.on { opacity: 1; transform: none; }
.caption { text-align: center; color: var(--muted); margin-top: 18px; min-height: 1.6em; }
.phones { display: flex; justify-content: center; gap: 26px; margin-top: 64px; flex-wrap: wrap; }
.phone-frame { width: 220px; border-radius: 30px; background: #0f172a; padding: 8px; box-shadow: var(--shadow); transition: transform .3s; }
.phone-frame:nth-child(even) { transform: translateY(30px); }
.phone-frame:hover { transform: translateY(-8px); }
.phone-frame img { border-radius: 23px; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.rev .split-media { order: -1; }
.split-media img { border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Download cards */
.dl { display: flex; flex-direction: column; }
.dl .btn { margin-top: auto; justify-content: center; }
.dl p { margin-bottom: 18px !important; }
.dl .meta { font-size: .8rem; color: var(--muted); margin-top: 10px; text-align: center; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; margin-left: 6px; vertical-align: middle; }
.badge.green { background: #dcfce7; color: #166534; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 34px 22px; }
.steps.grid-4 { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 24px; width: 38px; height: 38px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(124, 58, 237, .8); }
.step h3 { margin-top: 10px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.step kbd { font-family: inherit; font-size: .85em; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-width: 2px; padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.section.dark .step { background: #1e293b; border-color: #334155; }
.section.dark .step p { color: #94a3b8; }

/* Testimonials */
.quote { display: flex; flex-direction: column; margin: 0; }
.quote blockquote { margin: 0 0 20px; font-size: 1.02rem; color: var(--ink); }
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), #db2777); }
.who b { display: block; color: var(--ink); }
.who span { font-size: .85rem; color: var(--muted); }

/* Pricing */
.term-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin-top: 8px; }
.term-toggle button { border: 0; background: none; font: inherit; font-weight: 600; padding: 9px 20px; border-radius: 999px; cursor: pointer; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.term-toggle button.active { background: var(--primary); color: #fff; }
.term-toggle small { font-size: .72rem; font-weight: 700; background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 999px; }
.offer-banner { display: inline-block; margin-top: 18px; background: linear-gradient(90deg, #f59e0b, #db2777); color: #fff; font-weight: 700; font-size: .9rem; padding: 7px 16px; border-radius: 999px; animation: float 5s ease-in-out infinite; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; }
.plan.recommended { border: 2px solid var(--primary); box-shadow: var(--shadow); transform: translateY(-8px); }
.plan.recommended:hover { transform: translateY(-14px); }
.plan-flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.plan h3 { font-size: 1.4rem; margin-bottom: 2px; }
.plan .plan-tag { color: var(--primary); font-weight: 600; margin-bottom: 18px; }
.plan-price s { color: var(--muted); font-size: 1rem; margin-right: 4px; }
.plan-price b { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.plan-price span { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.plan-save { align-self: flex-start; margin: 10px 0 18px; font-size: .78rem; font-weight: 700; color: #166534; background: #dcfce7; padding: 3px 10px; border-radius: 999px; }
.plan .btn { justify-content: center; margin-top: 6px; }
.plan-trial { text-align: center; font-size: .85rem; margin: 10px 0 22px; }
.plan .plan-intro { color: var(--ink); font-weight: 600; margin: 0; }
.plan .ticks li { font-size: .93rem; }
.table-wrap { overflow-x: auto; margin-top: 40px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; background: #fff; font-size: .93rem; }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--bg-dark); color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.compare tr.group td { background: var(--bg-soft); font-weight: 700; color: var(--ink); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.compare .yes { color: var(--success); font-weight: 800; }
.compare .no { color: #cbd5e1; }
.compare s { color: var(--muted); font-weight: 400; }
.addon { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.addon s { color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--primary); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary) 50%, #db2777); color: #ede9fe; border-radius: 24px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: -80px; top: -140px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; }

/* Page hero */
.page-hero { padding: 72px 0 56px; background: radial-gradient(ellipse at top right, #ede9fe, transparent 60%), radial-gradient(ellipse at bottom left, #fef3c7, transparent 55%); }

/* Contact */
.form { display: grid; gap: 14px; }
.form label { font-weight: 600; font-size: .9rem; color: var(--ink); display: grid; gap: 6px; }
.form input, .form textarea, .form select { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.form textarea { min-height: 140px; resize: vertical; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-item .icon { margin: 0; flex: none; }

/* Footer */
.site-footer { background: var(--bg-dark); color: #94a3b8; padding: 72px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand small { color: #94a3b8; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Animations */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.12); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, .45); } 100% { box-shadow: 0 0 0 16px rgba(124, 58, 237, 0); } }
.pulse { animation: pulse 2s infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .grid-4, .steps.grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .plan.recommended { transform: none; }
}
@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { 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%; gap: 4px; order: 3; padding-top: 10px; }
  .site-header.open .nav-links a { display: block; padding: 10px 0; }
  .site-header.open .nav-cta { display: flex; width: 100%; order: 4; margin: 6px 0 4px; }
  .site-header.open .nav-cta .btn { flex: 1; justify-content: center; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .split-media { order: 0; }
  .hero-visual { min-height: 0; margin-top: 20px; }
  .chip.c1 { left: 0; } .chip.c2 { left: 0; } .chip.c3 { right: 0; }
  .section { padding: 72px 0; }
  .cta-band { padding: 36px 26px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .grid-4, .steps.grid-4, .stats, .footer-grid { grid-template-columns: 1fr; }
  .phones { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 20px; margin-left: -20px; margin-right: -20px; gap: 16px; }
  .phone-frame { width: 62%; flex: none; scroll-snap-align: center; }
  .phone-frame:nth-child(even) { transform: none; }
  .chip { display: none; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
}
