/* Gravity OMS — Subscription Site visual system
 * Consolidated from homepage-wireframe-v3 + pricing-signup-wireframe.
 * Tokens, base typography, and named component utilities.
 */

:root {
    --primary: #1e40af;
    --primary-hover: #1e3a8a;
    --accent: #7c3aed;
    --tint: #eef2ff;
    --tint-2: #f5f3ff;
    --ink: #0f172a;
    --body: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --canvas: #f8fafc;
    --surface: #ffffff;
    --success: #16a34a;
    --warn: #d97706;

    /* Accent gradient — single source of truth for headline/number accents.
     * One restrained two-stop blue→purple ramp. Do NOT add a third magenta
     * stop; that was the old "rainbow" look we deliberately retired. */
    --accent-gradient: linear-gradient(120deg, var(--primary), var(--accent));
    /* Dark-surface variant (lighter, for contrast on the dark CTA block). */
    --accent-gradient-dark: linear-gradient(120deg, #93c5fd, #a78bfa);

    /* Radius scale — three steps. Pills for chips/badges, sm for controls,
     * md for content cards, lg for large feature containers. */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    /* Shadow scale — layered (tight contact + wide ambient) for real depth.
     * Premium surfaces lean on these instead of hard 1px borders. */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 2px 4px -2px rgba(15, 23, 42, 0.06), 0 10px 24px -8px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 4px 8px -4px rgba(15, 23, 42, 0.06), 0 22px 44px -14px rgba(15, 23, 42, 0.14);
    --shadow-xl: 0 8px 16px -8px rgba(15, 23, 42, 0.10), 0 36px 64px -20px rgba(15, 23, 42, 0.20);
    --shadow-primary: 0 6px 16px -6px rgba(30, 64, 175, 0.45);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--body);
    background: var(--canvas);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

p { margin: 0 0 16px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
}

/* NAV */
.nav { background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 14px 0; position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 38px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--body); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { background: var(--primary); color: white !important; padding: 9px 18px; border-radius: var(--radius-sm); font-weight: 600 !important; transition: all 0.2s; box-shadow: var(--shadow-primary); }
.nav-cta:hover { background: var(--primary-hover); transform: translateY(-1px); }
.lang-pill { border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; font-size: 12px; color: var(--primary) !important; font-weight: 600 !important; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); width: 42px; height: 42px; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* Mobile nav: collapse links into a dropdown panel behind a hamburger toggle */
@media (max-width: 991.98px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 16px 16px;
        background: white;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px -12px rgba(15,23,42,0.18);
    }
    .nav-links.open { display: flex; }
    .nav-links > a,
    .nav-dropdown-toggle { padding: 10px 4px; }
    .nav-dropdown { position: static !important; }
    .nav-dropdown-menu { position: static !important; display: none; border: none !important; box-shadow: none !important; padding: 0 0 4px 12px !important; min-width: 0 !important; }
    .nav-cta { text-align: center; margin-top: 6px; }
    .lang-pill { align-self: flex-start; }
}

/* HERO */
.hero { background: var(--surface); padding: 80px 0 100px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero-bg-grid { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--border) 1px, transparent 1px); background-size: 28px 28px; opacity: 0.4; mask-image: radial-gradient(ellipse at top right, black 30%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at top right, black 30%, transparent 70%); }
.hero-bg-blob { position: absolute; top: -200px; right: -200px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(124,58,237,0.08), transparent 60%); pointer-events: none; animation: float-blob 22s ease-in-out infinite alternate; }
.hero-bg-blob-2 { position: absolute; bottom: -150px; left: -150px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(30,64,175,0.06), transparent 60%); pointer-events: none; animation: float-blob-2 26s ease-in-out infinite alternate; }
@keyframes float-blob { 0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; } 50% { transform: translate(35px, -55px) scale(1.12); opacity: 0.95; } }
@keyframes float-blob-2 { 0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; } 50% { transform: translate(-45px, 40px) scale(1.18); opacity: 0.85; } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: 60px; line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 20px; }
.hero h1 .accent { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { font-size: 18.5px; line-height: 1.6; color: var(--muted); margin-bottom: 28px; max-width: 540px; }
.hero .persona-line { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
/* Rotating hero headline/persona: smooth cross-fade + reserved height so
 * the layout doesn't jump as the JS swaps copy of varying length. */
#heroPersona, #heroHeadline { transition: opacity 0.35s ease-in-out; }
#heroHeadline { min-height: 150px; }
@media (max-width: 991.98px) { #heroHeadline { min-height: 132px; } }
@media (max-width: 640px) { #heroHeadline { min-height: 110px; } }

/* Primary CTAs */
.ctas { display: flex; gap: 12px; margin-bottom: 28px; }
.btn-primary { background: var(--primary); color: white; padding: 13px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; border: none; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 24px -8px rgba(30, 64, 175, 0.5); }
.btn-outline { background: white; color: var(--primary); padding: 13px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; border: 1.5px solid var(--primary); text-decoration: none; display: inline-block; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.btn-outline:hover { background: var(--tint); transform: translateY(-2px) scale(1.02); }
.check-row { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--ink); font-weight: 500; }
.check-row span { display: inline-flex; align-items: center; gap: 6px; }
.check-row svg { color: var(--success); flex-shrink: 0; }

/* Hero illustration — orbit with module satellites */
.hero-illo { position: relative; width: 100%; aspect-ratio: 1 / 0.95; }
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-ring { fill: none; stroke: var(--primary); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: 0.35; }
.orbit-ring-2 { stroke: var(--accent); opacity: 0.3; }
.orbit-dot { fill: var(--primary); }
.orbit-dot-2 { fill: var(--accent); }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin-slow { animation: spin 28s linear infinite; transform-origin: 50% 50%; }
.spin-slower { animation: spin 42s linear infinite reverse; transform-origin: 50% 50%; }
.hero-device { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: linear-gradient(135deg, #1e293b, #334155); border-radius: 14px; padding: 8px; box-shadow: 0 24px 60px -12px rgba(15,23,42,0.35); width: 86%; z-index: 2; }
.hero-screen { background: white; border-radius: 7px; padding: 14px; font-size: 11px; color: var(--ink); }
img.hero-screen { display: block; width: 100%; height: auto; padding: 0; border-radius: 7px; object-fit: cover; }
.fake-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.fake-row:last-child { border-bottom: none; }
.fake-pill { background: var(--tint); color: var(--primary); padding: 2px 8px; border-radius: 4px; font-size: 9px; font-weight: 600; }
.fake-pill.web { background: #ecfdf5; color: #047857; }
.fake-pill.pos { background: #fef3c7; color: #92400e; }
.fake-status { color: var(--success); font-weight: 600; font-size: 10px; }
.fake-header { font-weight: 700; color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; display: flex; justify-content: space-between; font-size: 11px; }

/* Module satellites around orbit */
.module-chip { position: absolute; background: rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 11px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; box-shadow: var(--shadow-md); z-index: 3; animation: float 6s ease-in-out infinite; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.module-chip:hover { transform: translateY(-4px) scale(1.04); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.module-chip svg { width: 14px; height: 14px; color: var(--primary); }
.module-chip.m1 { top: 6%; left: 0; animation-delay: 0s; }
.module-chip.m2 { top: 4%; right: 6%; animation-delay: 1s; }
.module-chip.m3 { bottom: 18%; left: -2%; animation-delay: 2s; }
.module-chip.m4 { bottom: 12%; right: 0; animation-delay: 3s; }
.module-chip.m5 { top: 44%; left: -6%; animation-delay: 4s; }
.module-chip.m6 { top: 38%; right: -4%; animation-delay: 5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Integration partner logos orbiting the hero device.
 * Two shapes: square logos (WA, FB, Domex) render as 44px white
 * circles; wordmark logos (Koombiyo, Royal Express, POS) render as
 * white pills with the logo inside. Positioned in the gaps between
 * the 6 module-chip slots so they don't overlap. */
.integ-float {
    position: absolute;
    z-index: 4;
    background: white;
    box-shadow: 0 8px 18px -6px rgba(15, 23, 42, 0.18), 0 2px 4px -2px rgba(15, 23, 42, 0.08);
    animation: float 7s ease-in-out infinite;
}
.integ-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 6px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.integ-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.integ-pill {
    border-radius: 8px;
    padding: 6px 12px;
    height: 36px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.integ-pill img {
    height: 22px;
    width: auto;
    display: block;
}

/* Positions — clock layout around the device, avoiding the 6 module
 * chip slots (m1-m6 take the four corners + mid-left + mid-right). */
.int-wa       { top: -2%;    left: 42%;  animation-delay: -0.5s; }
.int-fb       { top: 22%;    right: -10%; animation-delay: -1.5s; transform: rotate(3deg); }
.int-domex    { bottom: -2%; left: 34%;  animation-delay: -2.5s; }
.int-koombiyo { bottom: -3%; right: 20%; animation-delay: -3.5s; transform: rotate(-2deg); }
.int-royal    { top: 60%;    left: -10%; animation-delay: -4.5s; transform: rotate(-3deg); }
.int-pos      { top: 24%;    left: -8%;  animation-delay: -5.5s; transform: rotate(2deg); }

/* Lift on hover — defined after the .int-* position rules so this
 * transform wins over their resting rotate. */
.integ-float { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.integ-float:hover { transform: translateY(-5px) scale(1.08); box-shadow: var(--shadow-lg); }

@media (prefers-reduced-motion: reduce) {
    .integ-float { animation: none; }
}
/* Hide on phones — too crowded otherwise (6 module chips + 6 integ logos) */
@media (max-width: 640px) {
    .integ-float { display: none; }
}

/* PROOF STRIP */
.proof-strip { background: var(--canvas); padding: 36px 0; border-bottom: 1px solid var(--border); }
.proof-label { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; margin-bottom: 20px; }
.proof-row { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.proof-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 8px 14px; border: 1px solid var(--border); background: white; border-radius: 999px; color: var(--ink); }
.proof-item svg { color: var(--primary); }

/* SOCIAL PROOF — testimonials + customer logo wall (scaffold) */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 30px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; margin: 0; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(124, 58, 237, 0.2); }
.testimonial-stars { display: inline-flex; gap: 2px; color: #f59e0b; margin-bottom: 16px; }
.testimonial-quote { font-size: 15.5px; line-height: 1.6; color: var(--ink); font-weight: 500; margin: 0 0 22px; flex-grow: 1; }
.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after { content: '\201D'; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-monogram { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--accent-gradient); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; text-transform: uppercase; }
.testimonial-author-meta { display: flex; flex-direction: column; line-height: 1.35; }
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.testimonial-role { font-size: 12.5px; color: var(--muted); }

.logo-wall { margin-top: 56px; text-align: center; }
.logo-wall-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.logo-wall-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
.logo-wall-item { height: 48px; display: flex; align-items: center; justify-content: center; }
.logo-wall-item img { max-height: 40px; width: auto; filter: grayscale(1); opacity: 0.6; transition: filter 0.3s ease, opacity 0.3s ease; }
.logo-wall-item img:hover { filter: grayscale(0); opacity: 1; }
/* Empty placeholder slot — visibly a "drop your logo here" target, never
 * mistaken for a real customer. Replace by setting paths in testimonials.php. */
.logo-wall-item-empty { min-width: 132px; padding: 0 18px; border: 1.5px dashed var(--border); border-radius: var(--radius-sm); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; background: var(--canvas); }
@media (max-width: 991.98px) {
    .testimonial-grid { grid-template-columns: 1fr; }
}

/* SECTIONS */
section.block { padding: 96px 0; position: relative; overflow: hidden; }
section.alt { background: var(--canvas); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 56px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: 40px; line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 14px; }
.section-head h2 .accent { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-head .eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* PAIN */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.pain-card:hover { transform: translateY(-4px); border-color: rgba(124, 58, 237, 0.25); box-shadow: var(--shadow-lg); }
/* Gradient hairline that reveals along the top edge on hover. */
.pain-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent-gradient); opacity: 0; transition: opacity 0.3s ease; }
.pain-card:hover::after { opacity: 1; }
.pain-card:hover .pain-icon-svg { transform: scale(1.08) rotate(4deg); }
.pain-card-deco { position: absolute; top: -20px; right: -20px; width: 120px; height: 120px; background: radial-gradient(circle, var(--tint), transparent 70%); opacity: 0.7; }
.pain-icon-svg { width: 52px; height: 52px; background: #fef2f2; color: #dc2626; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; position: relative; transition: transform 0.3s ease; }
.pain-card h3 { font-size: 18px; margin-bottom: 10px; }
.pain-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.pain-card .num { color: var(--warn); font-weight: 700; }
.pain-card .em { color: var(--ink); font-weight: 600; }

/* MODULES GRID */
.modules-section { position: relative; }
.modules-orbit-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; opacity: 0.08; pointer-events: none; }
.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.module-tile { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 18px; box-shadow: var(--shadow-sm); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; }
.module-tile:hover { border-color: rgba(30, 64, 175, 0.25); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.module-tile-ico { width: 40px; height: 40px; background: var(--tint); color: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.module-tile h4 { font-size: 13px; margin-bottom: 4px; color: var(--ink); }
.module-tile p { font-size: 11px; color: var(--muted); margin: 0; line-height: 1.5; }
.modules-foot { text-align: center; margin-top: 36px; font-size: 14px; color: var(--muted); }
.modules-foot a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* PILLARS — 4 platform pillars */
.pillar-block { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 88px; }
.pillar-block:last-child { margin-bottom: 0; }
.pillar-block.reverse { direction: rtl; }
.pillar-block.reverse > * { direction: ltr; }
.pillar-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--tint); color: var(--primary); padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 16px; }
.pillar-badge .pillar-num { background: var(--primary); color: white; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.pillar-block h3 { font-size: 30px; line-height: 1.15; margin-bottom: 12px; }
.pillar-block .promise { color: var(--muted); font-size: 16px; margin-bottom: 22px; line-height: 1.55; }
.pillar-modules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pillar-module-pill { background: white; border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.pillar-module-pill svg { color: var(--primary); width: 12px; height: 12px; }
.pillar-img { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; min-height: 260px; font-size: 11px; color: var(--ink); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.pillar-img-deco { position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; background: radial-gradient(circle, var(--tint-2), transparent 70%); opacity: 0.8; pointer-events: none; }
.pillar-img-screenshot { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); position: relative; z-index: 1; box-shadow: var(--shadow-lg); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.pillar-img-screenshot:hover { transform: translateY(-4px) scale(1.015); box-shadow: var(--shadow-xl); }

/* SL CHIPS (Built for Sri Lanka) */
.sl-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sl-chip { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; }
.sl-chip:hover { transform: translateY(-4px); border-color: rgba(30, 64, 175, 0.25); box-shadow: var(--shadow-md); }
.sl-chip-ico { width: 48px; height: 48px; background: var(--tint); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: var(--primary); transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease; }
.sl-chip:hover .sl-chip-ico { transform: scale(1.1); background: var(--tint-2); color: var(--accent); }
.sl-chip h4 { font-size: 14px; margin-bottom: 4px; }
.sl-chip p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
.sl-map-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; opacity: 0.04; pointer-events: none; transition: opacity 0.5s ease; }
section.block:hover .sl-map-bg { opacity: 0.06; }

/* METRICS */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.metric .big { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.metric .cap { font-size: 13px; color: var(--muted); margin-top: 10px; max-width: 200px; margin-left: auto; margin-right: auto; }
.metric .ico { color: var(--primary); margin: 0 auto 12px; opacity: 0.6; }

/* FREE TOOLS */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.tool-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; display: flex; gap: 18px; align-items: flex-start; box-shadow: var(--shadow-sm); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.tool-card:hover { border-color: rgba(30, 64, 175, 0.25); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tool-icon { width: 48px; height: 48px; background: var(--tint); color: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool-card h4 { font-size: 16px; margin-bottom: 4px; }
.tool-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* DARK CTA */
.cta-dark { background: linear-gradient(135deg, #090d16 0%, #0f172a 40%, #1e1b4b 75%, #3b0764 100%); color: white; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-lg); padding: 72px; text-align: center; margin: 0 32px; position: relative; overflow: hidden; box-shadow: var(--shadow-xl); }
.cta-orbit-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px; opacity: 0.08; pointer-events: none; }
.cta-dark h2 { color: white; font-size: 40px; margin-bottom: 14px; position: relative; }
.cta-dark h2 .accent { background: var(--accent-gradient-dark); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cta-dark p { color: #cbd5e1; font-size: 16px; margin-bottom: 32px; position: relative; }
.cta-dark .btns { display: flex; gap: 12px; justify-content: center; position: relative; }
.cta-dark .btn-wa { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.3); padding: 13px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.cta-dark .btn-wa:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px) scale(1.02); }
/* Dark CTA responsiveness — desktop 72px padding / 40px heading / side-by-side
 * buttons overflow and crowd on small screens. */
@media (max-width: 991.98px) {
    .cta-dark { padding: 56px 40px; }
    .cta-dark h2 { font-size: 32px; }
}
@media (max-width: 640px) {
    .cta-dark { padding: 40px 22px; margin: 0 16px; border-radius: var(--radius-md); }
    .cta-dark h2 { font-size: 26px; }
    .cta-dark p { font-size: 14.5px; }
    .cta-dark .btns { flex-wrap: wrap; gap: 10px; }
    .cta-dark .btn-wa { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
}

/* FOOTER */
footer { background: white; border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
footer h5 { font-size: 13px; color: var(--ink); margin-bottom: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li a { color: var(--muted); text-decoration: none; font-size: 13px; line-height: 2; }
footer p { color: var(--muted); font-size: 13px; }
.copyright { text-align: center; font-size: 12px; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--border); }
/* Mobile footer — instead of 5 tall stacked blocks, keep the brand full-width
 * on top and lay the link groups out as a compact 2-up grid. */
@media (max-width: 991.98px) {
    footer { padding: 44px 0 24px; margin-top: 56px; }
    /* Centre the whole footer block: the link groups sit in the middle with
     * equal gutters instead of being packed against the left edge. Text inside
     * each group stays left-aligned. */
    .footer-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 28px 44px;
        margin-bottom: 28px;
    }
    .footer-grid > div:first-child { flex: 0 0 100%; text-align: center; }
    .footer-grid > div:first-child .logo { justify-content: center; }
    footer li a { font-size: 12px; }
    html[lang="si"] footer ul li a { font-size: 12px !important; }
}

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* ============================================================
 * PRICING + SIGNUP (from pricing-signup-wireframe)
 * ============================================================ */

/* Page head (used by Pricing, Features, About, Contact) */
.page-head { padding: 72px 0 48px; text-align: center; background: var(--surface); border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: 42px; line-height: 1.1; max-width: 720px; margin: 0 auto 14px; }
.page-head h1 .accent { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-head p { font-size: 17px; color: var(--muted); max-width: 580px; margin: 0 auto; }

/* Toggles (billing monthly/annual, currency LKR/USD) */
.toggles { display: flex; justify-content: center; gap: 32px; padding: 32px 0; align-items: center; flex-wrap: wrap; }
.toggle-group { display: flex; align-items: center; gap: 12px; }
.toggle-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.toggle-pill { background: white; border: 1px solid var(--border); border-radius: 999px; padding: 4px; display: inline-flex; gap: 4px; }
.toggle-pill button { background: transparent; border: none; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--muted); border-radius: 999px; cursor: pointer; font-family: inherit; }
.toggle-pill button.active { background: var(--primary); color: white; }
.save-badge { background: var(--success); color: white; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-left: 6px; }

/* PRICING GRID — 5 tiers (Pico, Starter, Growth, Scale, Enterprise) */
.pricing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 0 32px 48px; max-width: 1240px; margin: 0 auto; }
.price-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px 20px; position: relative; box-shadow: var(--shadow-sm); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.recommended { border-color: var(--primary); border-width: 2px; box-shadow: 0 20px 45px -16px rgba(30, 64, 175, 0.28); transform: translateY(-8px); background: linear-gradient(to bottom, #ffffff, #fafaff); }
.price-card.recommended::before { content: 'MOST POPULAR'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; padding: 5px 12px; border-radius: 4px; white-space: nowrap; }
.price-name { font-weight: 800; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.price-tag { font-size: 12px; color: var(--muted); margin-bottom: 16px; min-height: 32px; }
.price-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.price-amount .ccy { font-size: 13px; color: var(--muted); font-weight: 600; }
.price-amount .num { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.price-amount .per { font-size: 13px; color: var(--muted); }
.price-usd { font-size: 11px; color: var(--muted); margin-bottom: 18px; }
.price-includes { font-size: 11px; color: var(--ink); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.price-features { list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1; }
.price-features li { font-size: 12px; padding: 4px 0; color: var(--ink); display: flex; align-items: flex-start; gap: 6px; }
.price-features li svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }
.price-features li.plus { color: var(--primary); font-weight: 600; }
.price-cta { display: block; text-align: center; padding: 10px; border-radius: 7px; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.price-cta-primary { background: var(--primary); color: white; }
.price-cta-primary:hover { background: var(--primary-hover); }
.price-cta-outline { background: white; color: var(--primary); border: 1.5px solid var(--primary); }
.price-cta-outline:hover { background: var(--tint); }
.addon-toggle { margin-top: 12px; padding: 10px; background: var(--tint); border-radius: 8px; font-size: 11px; }
.addon-toggle label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink); font-weight: 500; }
.addon-toggle input { margin: 0; }

/* ROI calculator */
.roi-section { background: var(--surface); border-top: 1px solid var(--border); padding: 72px 0; }
.roi-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.roi-eyebrow { color: var(--primary); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.roi-grid h2 { font-size: 30px; line-height: 1.15; margin-bottom: 12px; }
.roi-grid h2 .accent { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.roi-grid > div:first-child p { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.roi-sliders { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-lg); }
.roi-sliders label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.roi-sliders .row { margin-bottom: 22px; }
.slider-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.slider-val { color: var(--primary); font-weight: 700; font-size: 14px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; background: var(--border); border-radius: 4px; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; background: var(--accent-gradient); border: 2px solid white; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 10px rgba(30, 64, 175, 0.3); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; background: var(--accent-gradient); border: 2px solid white; border-radius: 50%; cursor: pointer; }
.roi-result { background: linear-gradient(135deg, var(--tint), var(--tint-2)); border: 1.5px solid rgba(124, 58, 237, 0.15); border-radius: var(--radius-md); padding: 22px; margin-top: 8px; box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.12); }
.roi-result-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.08em; }
.roi-result-amount { font-size: 32px; font-weight: 800; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; }
.roi-result-note { font-size: 12px; color: var(--muted); }
.roi-result-payback { background: white; padding: 12px; border-radius: 8px; margin-top: 12px; font-size: 12px; color: var(--ink); border: 1px dashed var(--primary); }
.roi-result-payback strong { color: var(--primary); }

/* COMPARISON TABLE */
.compare-section { background: var(--canvas); padding: 72px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.compare-head { text-align: center; margin-bottom: 36px; }
.compare-head .eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--primary); text-transform: uppercase; background: var(--tint); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.compare-head h2 { font-size: 32px; margin: 0; }
.compare-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding-bottom: 6px;
    position: relative;
    /* IMPORTANT: keep overflow visible so the sticky plan-header row
     * sticks against the page scroll, not against this wrap. Setting
     * overflow-x: auto here would make .compare-wrap the sticky's
     * scrolling ancestor and the sticky would stop working. */
}
.compare-table {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    /* No overflow: hidden here either — same reason as above.
     * Clean rounded corners come from per-row radius on the first
     * and last rows below. */
    min-width: 0;
    box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.16);
    position: relative;
}
.compare-row { display: grid; grid-template-columns: 1.7fr repeat(5, 1fr); border-bottom: 1px solid var(--border); align-items: center; transition: background-color 0.15s ease; }
.compare-row:last-child { border-bottom: none; }
.compare-row > div { padding: 14px 18px; }
.compare-row > div + div { border-left: 1px solid var(--border); }
.compare-row:not(.head):not(.section):not(.cta-row):hover { background: #fafbff; }

/* Sticky plan-name header. top: matches the actual nav height
 * (logo 50px + nav padding 14px*2 = ~78px). Solid white base so
 * content scrolls under cleanly, with a sharp bottom border + soft
 * shadow to separate it from the rows below.
 * Rounded top corners replace what .compare-table used to clip via
 * overflow: hidden (we dropped that so sticky positioning works). */
.compare-row.head.sticky-head {
    position: sticky;
    top: 78px;
    z-index: 4;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 14px -10px rgba(15, 23, 42, 0.18);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    overflow: hidden;
}
/* Match radius on the bottom row so the rounded-corner illusion is
 * preserved without overflow: hidden on the table. */
.compare-row.cta-row {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    overflow: hidden;
}
.compare-row.head.sticky-head > div { background: white; }
.compare-row.head.sticky-head > div.plan-popular { background: linear-gradient(180deg, var(--tint), var(--tint)), white; }

/* Keep the sticky head a single short line: hide the per-plan order-volume
 * sub-label and the "Most popular" badge text (the column tint already
 * highlights Growth). Was making the sticky bar ~3 lines tall, which
 * covered the first row on scroll. */
.compare-row.head.sticky-head .plan-sub { display: none; }
.compare-row.head.sticky-head .plan-pop-badge { display: none; }
.compare-row.head.sticky-head .plan-head { display: flex; align-items: center; justify-content: center; gap: 6px; }
.compare-row.head.sticky-head .plan-head .plan-name { font-size: 14px; }
.compare-row.head.sticky-head .plan-popular .plan-name::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-left: 4px;
    box-shadow: 0 0 0 3px var(--tint);
}
.compare-row.head.sticky-head > div { padding-top: 12px; padding-bottom: 12px; }
.compare-row.head > div { padding: 16px 14px; }
.compare-row.head .feat { font-weight: 700; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.compare-row .plan-head { text-align: center; position: relative; }
.compare-row .plan-head .plan-name { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.compare-row .plan-head .plan-sub { font-size: 10px; color: var(--muted); margin-top: 4px; font-weight: 500; }
/* Popular plan head cell: solid white BASE so the sticky row covers
 * content scrolling underneath, with the brand tint stacked on top as
 * the highlight layer. Was previously a fading-to-transparent gradient
 * which let content bleed through when the head row became sticky. */
.compare-row .plan-head.plan-popular { background: linear-gradient(180deg, var(--tint), var(--tint)), white; }
.compare-row .plan-head.plan-popular .plan-name { color: var(--primary); }
.plan-pop-badge { display: inline-block; background: var(--primary); color: white; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-bottom: 6px; box-shadow: 0 4px 10px -4px rgba(30, 64, 175, 0.5); }

/* Section dividers with icon */
.compare-row.section { background: var(--tint); font-weight: 700; font-size: 11px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; }
.compare-row.section > div { padding: 10px 18px; }
.compare-row.section .section-label { display: inline-flex; align-items: center; gap: 10px; }
.compare-row.section .section-label svg { color: var(--primary); flex-shrink: 0; }

/* Collapsible <details>/<summary> wrapper around each section's rows */
.compare-section-group { border-bottom: 1px solid var(--border); }
.compare-section-group:last-of-type { border-bottom: none; }
.compare-section-group > .compare-row.section { border-bottom: 1px solid var(--border); }
summary.compare-row.section {
    display: grid;
    grid-template-columns: 1.7fr repeat(5, 1fr);
    align-items: center;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color 0.15s ease;
}
summary.compare-row.section::-webkit-details-marker { display: none; }
summary.compare-row.section::marker { content: ""; display: none; }
summary.compare-row.section:hover { background: #e0e7ff; }
summary.compare-row.section:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}
.section-title { white-space: nowrap; }
.section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 2px 6px -2px rgba(30, 64, 175, 0.45);
}
.section-chevron {
    margin-left: auto;
    color: var(--primary);
    transition: transform 0.22s ease;
}
.compare-section-group:not([open]) .section-chevron { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) {
    .section-chevron { transition: none; }
    summary.compare-row.section { transition: none; }
}

/* Feature cell + tooltip */
.compare-row .feat { font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.feat-tip { position: relative; display: inline-flex; align-items: center; color: var(--muted); cursor: help; transition: color 0.15s; }
.feat-tip:hover, .feat-tip:focus { color: var(--primary); }
.feat-tip[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: white;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    width: max-content;
    max-width: 280px;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10;
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.3);
}
.feat-tip[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.feat-tip:hover[data-tooltip]::after,
.feat-tip:hover[data-tooltip]::before,
.feat-tip:focus[data-tooltip]::after,
.feat-tip:focus[data-tooltip]::before { opacity: 1; }

/* Value cells */
.compare-row .val { text-align: center; font-size: 13px; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.compare-row .val svg { vertical-align: middle; }
.compare-row .val .x { color: #cbd5e1; font-weight: 600; font-size: 18px; line-height: 1; }
.compare-row .val .val-text { font-weight: 600; color: var(--ink); }

/* Highlighted "Most popular" column */
.compare-row .col-popular { background: rgba(238, 242, 255, 0.55); position: relative; }
.compare-row:not(.head) .col-popular { background: rgba(238, 242, 255, 0.4); }
.compare-row.section .col-popular { background: rgba(255, 255, 255, 0.4); }
.compare-row.cta-row .col-popular { background: transparent; }

/* Per-plan CTA row */
.compare-row.cta-row { background: var(--canvas); border-top: 2px solid var(--border); }
.compare-row.cta-row > div { padding: 18px 14px; border-left: none; }
.compare-row.cta-row .val { padding: 18px 8px; }

/* SIGNUP SECTION (3-step state machine) */
.signup-section { background: var(--surface); padding: 80px 0; border-top: 1px solid var(--border); }
.signup-head { text-align: center; max-width: 700px; margin: 0 auto 48px; padding: 0 32px; }
.signup-head h2 { font-size: 32px; line-height: 1.1; }
.signup-head h2 .accent { color: var(--primary); }
.signup-head p { color: var(--muted); font-size: 16px; }
.signup-steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.signup-step { background: var(--canvas); border: 1px solid var(--border); border-radius: 16px; padding: 28px; position: relative; }
.signup-step-num { position: absolute; top: -14px; left: 24px; background: var(--primary); color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.signup-step-progress { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.signup-step-progress .dot { width: 24px; height: 4px; background: var(--border); border-radius: 2px; }
.signup-step-progress .dot.active { background: var(--primary); }
.signup-step-progress .label { margin-left: 8px; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.signup-step h3 { font-size: 18px; margin-bottom: 16px; }
.signup-form-field { margin-bottom: 14px; }
.signup-form-field label { display: block; font-size: 12px; color: var(--ink); font-weight: 600; margin-bottom: 5px; }
.signup-form-field input, .signup-form-field select { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px; font-family: inherit; font-size: 13px; color: var(--ink); background: white; }
.signup-form-field input:focus, .signup-form-field select:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: var(--primary); }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-group label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; cursor: pointer; background: white; transition: all 0.2s; font-weight: 500; }
.chip-group label.active { background: var(--tint); border-color: var(--primary); color: var(--primary); }
.chip-group input { display: none; }
.radio-group { display: flex; flex-direction: column; gap: 6px; }
.radio-group label { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; background: white; font-size: 13px; transition: all 0.2s; }
.radio-group label.active { border-color: var(--primary); background: var(--tint); color: var(--primary); font-weight: 600; }
.step3-plan-cards { display: grid; gap: 8px; }
.step3-plan-card { padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: white; transition: all 0.2s; }
.step3-plan-card.selected { border-color: var(--primary); background: var(--tint); }
.step3-plan-card .name { font-weight: 700; color: var(--ink); }
.step3-plan-card .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.step3-plan-card .price { font-weight: 700; color: var(--primary); }
.step3-recommended-tag { background: var(--primary); color: white; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 3px; margin-left: 6px; }
.step-cta-row { display: flex; gap: 8px; margin-top: 20px; }
.step-cta-row button { flex: 1; padding: 10px; border-radius: 7px; font-weight: 600; font-size: 13px; cursor: pointer; font-family: inherit; border: none; }
.step-cta-row .back { background: white; color: var(--muted); border: 1px solid var(--border); }
.step-cta-row .next { background: var(--primary); color: white; }
.step3-final { background: var(--ink); color: white; padding: 12px; border-radius: 7px; font-weight: 600; font-size: 13px; text-align: center; cursor: pointer; border: none; width: 100%; margin-top: 20px; }
.step3-promise { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ============================================================
 * ACCESSIBILITY — reduced motion opt-out
 * ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .spin-slow, .spin-slower { animation: none; }
    .module-chip, .channel-chip { animation: none; }
    .hero-bg-blob, .hero-bg-blob-2 { animation: none; }
    .fade-in { opacity: 1; animation: none; }
}

/* ============================================================
 * MOBILE BREAKPOINT — collapse grids to single column
 * ============================================================ */

@media (max-width: 991.98px) {
    section.block { padding: 60px 0; }
    .hero { padding: 56px 0 72px; }
    .hero-grid, .roi-grid { grid-template-columns: 1fr; gap: 32px; }
    .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
    .price-card.recommended { transform: none; }
    .pain-grid, .sl-chips, .metrics-grid, .tools-grid, .price-grid { grid-template-columns: 1fr; }
    /* Modules stay multi-column on mobile — 3 across on tablet.
     * minmax(0,1fr) keeps tracks equal even with long unbreakable words. */
    .modules-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .pillar-block, .pillar-block.reverse { grid-template-columns: 1fr; direction: ltr; }
    /* Compare table: collapse the 6-column grid into a stacked-row layout.
     * No more horizontal scrolling on mobile. Each feature row becomes:
     *   [Feature label, full width]
     *   [Pico: value] [Starter: value] [Growth: value] [Scale: value] [Enterprise: value]
     * The value cells are mini chips that show "Plan: result" so the row
     * still encodes the full comparison, just vertically. */
    .compare-head h2 { font-size: 24px; }
    .compare-head .eyebrow { font-size: 10px; padding: 4px 10px; }
    .compare-section { padding: 48px 0; }
    .compare-section .container { padding-left: 16px; padding-right: 16px; }

    .compare-wrap { overflow-x: hidden; background: none; padding-bottom: 0; }
    .compare-table { min-width: 0; border-radius: 12px; box-shadow: 0 16px 32px -20px rgba(15, 23, 42, 0.18); }

    /* Hide the desktop plan-header row entirely on mobile; the plan name
     * is shown per-cell instead via the data-plan attribute. */
    .compare-row.head.sticky-head { display: none; }

    /* All non-head rows become vertical: feature label on its own line,
     * value cells flow as a wrap-grid below. */
    .compare-row,
    summary.compare-row.section,
    .compare-row.cta-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
        gap: 8px;
    }
    .compare-row > div + div { border-left: none; }
    .compare-row > div { padding: 0; }

    /* Feature label */
    .compare-row .feat {
        font-size: 13.5px;
        font-weight: 700;
        color: var(--ink);
        gap: 6px;
    }

    /* Value chips: 2 per row on phones, plan name + value side by side */
    .compare-row .val {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--canvas);
        border: 1px solid var(--border);
        border-radius: 7px;
        padding: 8px 12px;
        font-size: 12px;
        text-align: left;
    }
    .compare-row .val::before {
        content: attr(data-plan);
        font-size: 10px;
        font-weight: 700;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-right: 12px;
    }
    .compare-row .val.col-popular {
        background: var(--tint);
        border-color: var(--primary);
    }
    .compare-row .val.col-popular::before { color: var(--primary); }
    .compare-row .val .val-text { font-weight: 700; color: var(--ink); }
    .compare-row .val svg { width: 16px; height: 16px; }
    .compare-row .val .x { font-size: 14px; color: #94a3b8; }

    /* Grid the value chips: 2 columns on phone, dense layout */
    .compare-row:not(.head):not(.section):not(.cta-row) {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 14px 14px 16px;
    }
    .compare-row:not(.head):not(.section):not(.cta-row) .feat {
        grid-column: 1 / -1;
        margin-bottom: 4px;
    }
    .compare-row:not(.head):not(.section):not(.cta-row) {
        grid-template-columns: 1fr 1fr;
    }
    .compare-row:not(.head):not(.section):not(.cta-row) .val:nth-child(2) {
        grid-column: 1 / -1; /* Pico spans full width on its own row */
    }
    /* Actually use a cleaner pattern: 2x2 + 1 full-width for the popular */
    .compare-row:not(.head):not(.section):not(.cta-row) .val { grid-column: auto; }
    .compare-row:not(.head):not(.section):not(.cta-row) .val.col-popular {
        grid-column: 1 / -1;
        order: -1;
        font-size: 13px;
    }
    .compare-row:not(.head):not(.section):not(.cta-row) .val.col-popular::before { font-size: 11px; }
    .compare-row:not(.head):not(.section):not(.cta-row):hover { background: transparent; }

    /* Section header — keep horizontal, with name + count + chevron */
    summary.compare-row.section {
        display: grid !important;
        grid-template-columns: 1fr auto auto;
        gap: 8px;
        align-items: center;
        padding: 12px 14px;
    }
    summary.compare-row.section > div:not(.section-label) { display: none; }
    summary.compare-row.section .section-label {
        position: static;
        background: none;
        margin: 0;
        width: auto;
        font-size: 12px;
    }
    .section-count { min-width: 20px; height: 20px; font-size: 10px; }

    /* Per-plan CTA row — the desktop layout puts one button under each plan
     * column. On mobile the columns are gone, so 5 identical "Try it Free"
     * buttons are meaningless. Collapse to a single full-width CTA. */
    .compare-row.cta-row {
        background: var(--canvas);
        padding: 16px 14px;
    }
    .compare-row.cta-row .feat { display: none; }
    .compare-row.cta-row .val { display: none; }
    .compare-row.cta-row .val.col-popular {
        display: flex;
        justify-content: center;
        background: transparent;
        border: none;
        padding: 4px 0;
    }
    .compare-row.cta-row .val.col-popular::before { display: none; }
    .compare-row.cta-row .val.col-popular a { display: block; width: 100%; text-align: center; }

    /* Disable any sticky behavior that doesn't apply in stacked layout */
    .compare-row.head.sticky-head { position: static; }
}

@media (max-width: 380px) {
    .compare-row:not(.head):not(.section):not(.cta-row) { grid-template-columns: 1fr; }
    .compare-row:not(.head):not(.section):not(.cta-row) .val.col-popular { order: 0; }
}

/* Compare-table toolbar with the Expand/Collapse-all toggle */
.compare-toolbar {
    max-width: 1180px;
    margin: 0 auto 16px;
    display: flex;
    justify-content: flex-end;
    padding: 0 8px;
}
.compare-toggle-all {
    background: white;
    border: 1px solid var(--border);
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.compare-toggle-all:hover {
    background: var(--tint);
    border-color: var(--primary);
}
.compare-toggle-all .toggle-label-collapse { display: none; }
.compare-toggle-all[data-state="expanded"] .toggle-label-expand { display: none; }
.compare-toggle-all[data-state="expanded"] .toggle-label-collapse { display: inline; }

/* Tablet — scale the enlarged desktop display type back down. */
@media (max-width: 991.98px) {
    .hero h1 { font-size: 44px; }
    .section-head h2 { font-size: 32px; }
}

/* Phones — single-column signup + compact display type.
 * (Previously these three rules were orphaned outside any media query
 * due to a lost opening brace, which silently shrank the desktop hero.) */
@media (max-width: 640px) {
    .signup-steps { grid-template-columns: 1fr; }
    .hero h1 { font-size: 34px; }
    .section-head h2 { font-size: 26px; }
    /* Slimmer hero CTAs — the desktop padding/size feels bulky on phones.
     * flex-wrap lets the longer Sinhala labels stack instead of overflowing. */
    .ctas { gap: 10px; flex-wrap: wrap; }
    .btn-primary, .btn-outline { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
    /* Module tiles: 2 per row on phones with tighter padding. */
    .modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .module-tile { padding: 16px 14px; }
}

/* Floating WhatsApp button (site-wide, footer-rendered). */
.floating-wa {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    display: block;
    text-decoration: none;
    z-index: 999;
    filter: drop-shadow(0 6px 16px rgba(37, 211, 102, 0.35)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: transform 0.2s ease, filter 0.2s ease;
}
.floating-wa img {
    width: 100%;
    height: 100%;
    display: block;
}
.floating-wa:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 22px rgba(37, 211, 102, 0.5)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}
.floating-wa:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.5);
    outline-offset: 3px;
    border-radius: 50%;
}
@media (prefers-reduced-motion: reduce) {
    .floating-wa, .floating-wa:hover { transition: none; transform: none; }
}
@media (max-width: 600px) {
    .floating-wa { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}

/* Trial reassurance line shown under primary signup CTAs. */
.trial-reassurance {
    font-size: 12px;
    color: var(--muted);
    margin-top: 10px;
    text-align: center;
}
.trial-reassurance .sep {
    margin: 0 6px;
    color: var(--border);
}

/* Product tour strip (home page, between hero and proof strip). */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.tour-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: zoom-in;
}
.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 64, 175, 0.25);
}
.tour-card-img img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.tour-card:hover .tour-card-img img { transform: scale(1.05); }
.tour-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
.tour-card-img {
    aspect-ratio: 3 / 2;
    background: var(--canvas);
    overflow: hidden;
}
.tour-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.tour-card-label {
    padding: 14px 16px;
}
.tour-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}
.tour-card-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}
@media (prefers-reduced-motion: reduce) {
    .tour-card, .tour-card:hover { transition: none; transform: none; }
}
@media (max-width: 768px) {
    .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 480px) {
    /* Keep 2 per row on phones (smaller cards) rather than one big card each. */
    .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tour-card-label { padding: 10px 12px; }
    .tour-card-title { font-size: 12.5px; margin-bottom: 2px; }
    .tour-card-desc { font-size: 11px; line-height: 1.4; }
}

/* About page banner. Honours the image's natural aspect so nothing is clipped. */
.about-banner {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    border-radius: 14px;
    display: block;
    margin-bottom: 32px;
    box-shadow: 0 16px 32px -16px rgba(15, 23, 42, 0.2);
}

/* Native <dialog> lightbox for the home tour cards (click-to-zoom). */
.img-lightbox {
    border: none;
    background: transparent;
    padding: 0;
    max-width: 92vw;
    max-height: 92vh;
    color: white;
    overflow: visible;
}
.img-lightbox::backdrop {
    background: rgba(15, 23, 42, 0.82);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.img-lightbox[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: lb-fade 0.18s ease;
}
@keyframes lb-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.img-lightbox-img {
    display: block;
    max-width: 92vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 36px 80px -24px rgba(0, 0, 0, 0.55), 0 8px 16px -8px rgba(0, 0, 0, 0.3);
    background: white;
}
.img-lightbox-close {
    position: absolute;
    top: -42px;
    right: 0;
    width: 32px;
    height: 32px;
    background: white;
    color: var(--ink);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease;
}
.img-lightbox-close:hover { transform: scale(1.08); }
.img-lightbox-meta {
    text-align: center;
    max-width: 600px;
    padding: 0 16px;
}
.img-lightbox-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px;
}
.img-lightbox-desc {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.85);
    margin: 0 0 10px;
}
.img-lightbox-link {
    display: inline-block;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 1px;
}
.img-lightbox-link:hover { border-bottom-color: white; }
@media (prefers-reduced-motion: reduce) {
    .img-lightbox[open] { animation: none; }
    .img-lightbox-close { transition: none; }
}

/* ============================================================
 * SINHALA SCRIPT CLEANUP & BALANCING (html[lang="si"])
 * ============================================================ */
html[lang="si"],
html[lang="si"] body,
html[lang="si"] input,
html[lang="si"] select,
html[lang="si"] textarea,
html[lang="si"] button {
    font-family: 'Noto Sans Sinhala', 'Inter', system-ui, sans-serif !important;
}

/* Base adjustment: Sinhala characters are physically larger and rounder */
html[lang="si"] body {
    font-size: 15px !important;
    line-height: 1.75 !important;
}

/* Headings: Prevent overlap, excessive size, and blobby font-weight */
html[lang="si"] h1,
html[lang="si"] h2,
html[lang="si"] h3,
html[lang="si"] h4,
html[lang="si"] h5,
html[lang="si"] h6,
html[lang="si"] .h1,
html[lang="si"] .h2,
html[lang="si"] .h3 {
    font-family: 'Noto Sans Sinhala', 'Inter', system-ui, sans-serif !important;
    font-weight: 700 !important; /* 800 is too bold, causes letter merging in Sinhala */
    letter-spacing: normal !important; /* No negative letter-spacing for Sinhala script */
    line-height: 1.45 !important; /* Give vertical space for modifier symbols */
}

/* Scale heading sizes down to match visual weight of English equivalent */
html[lang="si"] h1,
html[lang="si"] .hero h1 {
    font-size: 2.3rem !important;
}
html[lang="si"] h2,
html[lang="si"] .section-head h2 {
    font-size: 1.75rem !important;
}
html[lang="si"] h3,
html[lang="si"] .pillar-block h3 {
    font-size: 1.45rem !important;
}
html[lang="si"] h4 {
    font-size: 1.15rem !important;
}

/* Sub-headings / intro copy */
html[lang="si"] .sub,
html[lang="si"] .hero .sub,
html[lang="si"] .section-head p {
    font-size: 14.5px !important;
    line-height: 1.65 !important;
}

/* Adjust CTAs, Buttons, and Navigation links */
html[lang="si"] .btn-primary,
html[lang="si"] .btn-outline,
html[lang="si"] .btn,
html[lang="si"] .nav-cta,
html[lang="si"] .price-cta,
html[lang="si"] .nav-links a {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
}

/* Adjust Footer and small texts */
html[lang="si"] footer,
html[lang="si"] footer p,
html[lang="si"] footer li a {
    font-size: 12.5px !important;
    line-height: 1.8 !important;
}

/* Adjust Pricing / Tiers / ROI */
html[lang="si"] .price-name {
    font-size: 16px !important;
    font-weight: 700 !important;
}
html[lang="si"] .price-tag {
    font-size: 11.5px !important;
    min-height: 38px !important;
}
html[lang="si"] .price-features li {
    font-size: 11.5px !important;
    line-height: 1.65 !important;
}
html[lang="si"] .roi-sliders label,
html[lang="si"] .slider-val {
    font-size: 12.5px !important;
}
html[lang="si"] .roi-result-label {
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
}

/* Adjust FAQ Accordion */
html[lang="si"] .faq-item summary {
    font-size: 14.5px !important;
    line-height: 1.55 !important;
}
html[lang="si"] .faq-item p {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
}

/* Adjust Step Forms */
html[lang="si"] .signup-step h3 {
    font-size: 16px !important;
}
html[lang="si"] .signup-form-field label {
    font-size: 11px !important;
}
html[lang="si"] .chip-group label,
html[lang="si"] .radio-group label {
    font-size: 11.5px !important;
}
html[lang="si"] .step3-plan-card {
    font-size: 11.5px !important;
}
html[lang="si"] .step3-plan-card .name {
    font-size: 11.5px !important;
}
