/* attendex.in — marketing site. Purple / white / ink, light + dark themes. */
:root {
    --violet-50: #F5F3FF; --violet-100: #EDE9FE; --violet-200: #DDD6FE; --violet-300: #C4B5FD;
    --violet-400: #A78BFA; --violet-500: #8B5CF6; --violet-600: #7C3AED; --violet-700: #6D28D9;
    --violet-800: #5B21B6; --violet-900: #4C1D95; --ink: #120F1B; --ink-2: #1B1726;
    --grad: linear-gradient(135deg, #7C3AED 0%, #6D28D9 45%, #A855F7 100%);
    --grad-deep: linear-gradient(135deg, #2E1065 0%, #4C1D95 45%, #6D28D9 100%);

    --bg: #FFFFFF;
    --bg-soft: #F8F7FC;
    --bg-tint: #F5F3FF;
    --card: #FFFFFF;
    --border: #E9E5F3;
    --border-strong: #D9D3EA;
    --text: #3F3B52;
    --heading: #120F1B;
    --muted: #6E6A84;
    --primary: var(--violet-600);
    --primary-strong: var(--violet-700);
    --primary-soft: var(--violet-100);
    --primary-text: var(--violet-700);
    --header-bg: rgba(255, 255, 255, .82);
    --shadow-sm: 0 1px 2px rgba(18, 15, 27, .05), 0 1px 3px rgba(18, 15, 27, .05);
    --shadow: 0 10px 30px -12px rgba(76, 29, 149, .18), 0 2px 6px rgba(18, 15, 27, .04);
    --shadow-lg: 0 30px 70px -25px rgba(76, 29, 149, .35);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font);
    color-scheme: light;
}
html[data-theme="dark"] {
    --bg: #0C0A13;
    --bg-soft: #110E1A;
    --bg-tint: #171226;
    --card: #15111F;
    --border: #262036;
    --border-strong: #342C49;
    --text: #C9C4DA;
    --heading: #FFFFFF;
    --muted: #918BA8;
    --primary: #8B5CF6;
    --primary-strong: #A78BFA;
    --primary-soft: rgba(139, 92, 246, .16);
    --primary-text: #C4B5FD;
    --header-bg: rgba(12, 10, 19, .78);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, .75);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased;
    transition: background-color .2s, color .2s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.small { font-size: .8em; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="dark"] .grad-text { background: linear-gradient(135deg, #C4B5FD, #A78BFA 45%, #E9D5FF); -webkit-background-clip: text; background-clip: text; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--violet-400); outline-offset: 2px; border-radius: 6px; }

/* Logo swap */
.logo { height: 30px; width: auto; }
.logo.on-dark { display: none; }
html[data-theme="dark"] .logo.on-light { display: none; }
html[data-theme="dark"] .logo.on-dark { display: block; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .62rem 1.15rem; border-radius: 11px; border: 1px solid transparent;
    font: 600 .93rem/1.2 var(--font); cursor: pointer; white-space: nowrap;
    transition: transform .15s, box-shadow .15s, background-color .15s, color .15s, border-color .15s;
}
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; border-radius: 13px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .65); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(124, 58, 237, .75); }
.btn-ghost { background: transparent; color: var(--heading); }
.btn-ghost:hover { background: var(--bg-tint); color: var(--heading); }
.btn-outline { border-color: var(--border-strong); color: var(--heading); background: var(--card); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-text); }
.btn-light { background: #fff; color: var(--violet-800); }
.btn-light:hover { color: var(--violet-900); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--card);
    color: var(--heading); display: inline-grid; place-items: center; cursor: pointer; font-size: 1.05rem;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary-text); }
[data-theme-toggle] [data-when="dark"] { display: none; }
html[data-theme="dark"] [data-theme-toggle] [data-when="dark"] { display: inline; }
html[data-theme="dark"] [data-theme-toggle] [data-when="light"] { display: none; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50; background: var(--header-bg);
    -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-wrap { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; justify-content: center; }
.main-nav a { display: block; padding: .5rem .85rem; border-radius: 10px; color: var(--text); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--heading); background: var(--bg-tint); }
.main-nav a.active { color: var(--primary-text); font-weight: 600; }
.nav-mobile-actions { display: none; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; }
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 8px); width: 300px; padding: .5rem;
    background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: flex; gap: .75rem; padding: .6rem .7rem; border-radius: 10px; color: var(--text); align-items: flex-start; }
.dropdown-menu a:hover { background: var(--bg-tint); }
.dropdown-menu i { font-size: 1.1rem; color: var(--primary-text); margin-top: 2px; }
.dropdown-menu strong { display: block; color: var(--heading); font-size: .92rem; font-weight: 600; }
.dropdown-menu small { color: var(--muted); font-size: .8rem; }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--border); margin: .35rem .4rem; }

/* Sections */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head .lead { color: var(--muted); font-size: 1.1rem; margin: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .4rem; font: 700 .75rem/1 var(--font); letter-spacing: .1em;
    text-transform: uppercase; color: var(--primary-text); background: var(--primary-soft); padding: .45rem .75rem;
    border-radius: 999px; margin-bottom: 1.1rem;
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
    content: ''; position: absolute; inset: -20% -10% auto; height: 720px; pointer-events: none;
    background: radial-gradient(600px 340px at 18% 30%, rgba(124, 58, 237, .14), transparent 70%),
                radial-gradient(560px 360px at 85% 20%, rgba(168, 85, 247, .14), transparent 70%);
}
html[data-theme="dark"] .hero::before {
    background: radial-gradient(600px 340px at 18% 30%, rgba(124, 58, 237, .28), transparent 70%),
                radial-gradient(560px 360px at 85% 20%, rgba(168, 85, 247, .2), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .92rem; }
.hero-points i { color: var(--primary); margin-right: .35rem; }
.page-hero { padding: 72px 0 56px; position: relative; overflow: hidden; text-align: center; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 300px at 50% 0%, rgba(124, 58, 237, .14), transparent 70%); pointer-events: none; }
html[data-theme="dark"] .page-hero::before { background: radial-gradient(700px 300px at 50% 0%, rgba(124, 58, 237, .3), transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); max-width: 860px; margin-left: auto; margin-right: auto; }
.page-hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 680px; margin: 0 auto 1.5rem; }

/* Product mock-up (pure HTML/CSS picture of the app) */
.mock { position: relative; }
.mock-window {
    border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--border);
    box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 150px 1fr; min-height: 400px;
    transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .5s;
}
.mock:hover .mock-window { transform: none; }
.mock-side { background: var(--ink); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.mock-side img { height: 17px; width: auto; margin: 2px 6px 16px; }
.mock-side span { display: flex; align-items: center; gap: 8px; color: #A9A3BF; font-size: .72rem; padding: 7px 8px; border-radius: 8px; }
.mock-side span.on { background: rgba(139, 92, 246, .22); color: #fff; }
.mock-main { display: flex; flex-direction: column; background: var(--bg-soft); }
.mock-top { background: var(--grad-deep); color: #fff; padding: 14px 18px; font: 700 .9rem var(--font-display); display: flex; justify-content: space-between; align-items: center; }
.mock-top small { font: 500 .68rem var(--font); opacity: .75; display: block; }
.mock-top .dot { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: .65rem; }
.mock-body { padding: 14px; display: grid; gap: 10px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpi { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; }
.mock-kpi small { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.mock-kpi b { font: 800 1.15rem var(--font-display); color: var(--heading); }
.mock-kpi em { font-style: normal; font-size: .62rem; color: #16A34A; font-weight: 600; margin-left: 4px; }
.mock-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.mock-card h5 { margin: 0 0 8px; font: 700 .72rem var(--font); color: var(--heading); display: flex; justify-content: space-between; }
.mock-card h5 span { color: var(--muted); font-weight: 500; }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.mock-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--violet-200); }
.mock-bars i.hi { background: var(--grad); }
html[data-theme="dark"] .mock-bars i { background: #2D2442; }
html[data-theme="dark"] .mock-bars i.hi { background: var(--grad); }
.mock-row { display: flex; align-items: center; gap: 8px; font-size: .68rem; padding: 5px 0; border-top: 1px solid var(--border); color: var(--text); }
.mock-row:first-of-type { border-top: 0; }
.mock-row .av { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .55rem; font-weight: 700; color: #fff; background: var(--grad); flex-shrink: 0; }
.mock-row .tag { margin-left: auto; font-size: .58rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.tag.ok { background: #DCFCE7; color: #166534; } .tag.late { background: #FEF3C7; color: #92400E; } .tag.leave { background: var(--violet-100); color: var(--violet-800); }
html[data-theme="dark"] .tag.ok { background: rgba(34,197,94,.16); color: #86EFAC; }
html[data-theme="dark"] .tag.late { background: rgba(245,158,11,.16); color: #FCD34D; }
html[data-theme="dark"] .tag.leave { background: rgba(139,92,246,.2); color: #DDD6FE; }
.mock-float {
    position: absolute; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
    padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: .78rem; color: var(--text);
    animation: bob 6s ease-in-out infinite;
}
.mock-float b { display: block; color: var(--heading); font-size: .82rem; }
.mock-float .fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; color: #fff; background: var(--grad); flex-shrink: 0; }
.mock-float.f1 { left: -28px; bottom: 46px; }
.mock-float.f2 { right: -18px; top: -22px; animation-delay: -3s; }
.mock-float.f2 .fi { background: linear-gradient(135deg, #16A34A, #22C55E); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Strip of facts under the hero */
.facts { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 20px; text-align: center; border-left: 1px solid var(--border); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font: 800 1.35rem var(--font-display); color: var(--heading); letter-spacing: -0.02em; }
.fact span { font-size: .88rem; color: var(--muted); }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.ic {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem;
    background: var(--primary-soft); color: var(--primary-text); margin-bottom: 18px;
}
.ic.solid { background: var(--grad); color: #fff; box-shadow: 0 10px 20px -10px rgba(124, 58, 237, .8); }
.card ul.ticks { margin-top: 14px; }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
ul.ticks li { position: relative; padding-left: 1.7rem; font-size: .95rem; }
ul.ticks li::before {
    content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: 0;
    color: var(--primary); font-size: 1.05rem; line-height: 1.5;
}
.card-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 16px; font-weight: 600; font-size: .92rem; }
.card-link i { transition: transform .15s; }
.card-link:hover i { transform: translateX(3px); }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.rev > :first-child { order: 2; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.split .lead { color: var(--muted); font-size: 1.05rem; }
.panel {
    border-radius: 22px; padding: 28px; background: var(--grad-deep); color: #fff; box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
}
.panel::after { content: ''; position: absolute; width: 320px; height: 320px; right: -110px; top: -130px; border-radius: 50%; background: rgba(255,255,255,.07); }
.panel > * { position: relative; z-index: 1; }
.panel h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; display: flex; justify-content: space-between; }
.panel h4 span { font: 500 .8rem var(--font); opacity: .7; }
.panel .line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: rgba(255,255,255,.85); }
.panel .line b { color: #fff; font-weight: 600; }
.panel .line.minus b { color: #FCA5A5; }
.panel .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-weight: 600; }
.panel .total b { font: 800 1.7rem var(--font-display); }
.panel .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.panel .chip { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 12px; font-size: .82rem; }
.panel .punch { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(255,255,255,.08); border-radius: 12px; margin-bottom: 8px; font-size: .88rem; }
.panel .punch i { font-size: 1.2rem; }
.panel .punch small { margin-left: auto; opacity: .7; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 6px; }
.step .num {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 1rem var(--font-display);
    background: var(--grad); color: #fff; margin-bottom: 16px; box-shadow: 0 10px 20px -10px rgba(124, 58, 237, .9);
}

/* Module chips */
.modules { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: 0 auto; }
.module {
    display: inline-flex; align-items: center; gap: .5rem; background: var(--card); border: 1px solid var(--border);
    border-radius: 999px; padding: .55rem 1rem; font-weight: 500; font-size: .92rem; color: var(--heading);
}
.module i { color: var(--primary-text); }

/* Pricing */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.price-card .badge { position: absolute; top: -12px; left: 26px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.price-card .for { color: var(--muted); font-size: .92rem; min-height: 3em; }
.price-card .price { font: 800 1.6rem var(--font-display); color: var(--heading); margin: .5rem 0 1rem; }
.price-card .price small { font: 500 .85rem var(--font); color: var(--muted); }
.price-card ul.ticks { flex: 1; margin-bottom: 22px; }
.slab-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.slab-table th, .slab-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.slab-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.slab-table td b { color: var(--heading); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--heading); display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '\F64D'; font-family: 'bootstrap-icons'; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* CTA band */
.cta-band {
    border-radius: 26px; padding: 52px 56px; background: var(--grad-deep); color: #fff; display: flex; align-items: center;
    justify-content: space-between; gap: 32px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 220px at 90% 0%, rgba(168,85,247,.45), transparent 70%), radial-gradient(360px 200px at 0% 100%, rgba(124,58,237,.4), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .4rem; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; flex-shrink: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 32px; align-items: start; }
.form-card { padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .88rem; color: var(--heading); margin-bottom: .4rem; }
label .req { color: #E11D48; }
input[type=text], input[type=email], input[type=tel], select, textarea {
    width: 100%; font: 400 .95rem var(--font); color: var(--heading); background: var(--bg); border: 1px solid var(--border-strong);
    border-radius: 11px; padding: .72rem .9rem; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, .15); }
.field-error { color: #E11D48; font-size: .8rem; margin-top: .3rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; display: flex; gap: .65rem; font-size: .95rem; }
.alert i { font-size: 1.15rem; }
.alert.ok { background: #DCFCE7; color: #14532D; border: 1px solid #BBF7D0; }
.alert.err { background: #FFE4E6; color: #881337; border: 1px solid #FECDD3; }
html[data-theme="dark"] .alert.ok { background: rgba(34,197,94,.12); color: #BBF7D0; border-color: rgba(34,197,94,.3); }
html[data-theme="dark"] .alert.err { background: rgba(244,63,94,.12); color: #FECDD3; border-color: rgba(244,63,94,.3); }
.info-list { display: grid; gap: 14px; }
.info { display: flex; gap: 14px; align-items: flex-start; }
.info .ic { margin: 0; width: 42px; height: 42px; font-size: 1.1rem; flex-shrink: 0; }
.info strong { display: block; color: var(--heading); font-size: .95rem; }
.info span, .info a { font-size: .92rem; }
.info span { color: var(--muted); }

/* Legal pages */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose .updated { color: var(--muted); font-size: .9rem; }

/* About */
.product-tile { display: flex; gap: 16px; align-items: flex-start; }
.product-tile .ic { margin: 0; flex-shrink: 0; }
.pill { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--primary-soft); color: var(--primary-text); padding: 3px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

/* Footer — ink in both themes */
.site-footer { background: var(--ink); color: #A9A3BF; padding: 72px 0 28px; font-size: .93rem; }
html[data-theme="dark"] .site-footer { background: #08060D; border-top: 1px solid var(--border); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer .logo { height: 28px; margin-bottom: 18px; }
.site-footer p { max-width: 340px; }
.site-footer .by a { color: #fff; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; font-family: var(--font); font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #C9C4DA; }
.site-footer a:hover { color: #fff; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact i { color: var(--violet-400); margin-top: 2px; }
.foot-bottom { margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: #827C99; }
.wa-float {
    position: fixed; right: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%; z-index: 40;
    background: #22C55E; color: #fff; display: grid; place-items: center; font-size: 1.55rem; box-shadow: 0 12px 26px -8px rgba(34,197,94,.7);
    transition: transform .15s;
}
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .mock-float { animation: none; }
    .mock-window { transform: none; }
}

/* Responsive */
@media (max-width: 1060px) {
    .main-nav {
        position: fixed; inset: 72px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border);
        padding: 12px 24px 24px; display: none; box-shadow: var(--shadow-lg); max-height: calc(100vh - 72px); overflow-y: auto;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav a { padding: .8rem .5rem; font-size: 1.02rem; border-bottom: 1px solid var(--border); border-radius: 0; }
    .nav-mobile-actions { display: grid; gap: 8px; margin-top: 16px; }
    .nav-mobile-actions .btn-ghost { border: 1px solid var(--border); }
    .nav-toggle { display: inline-grid; }
    .nav-actions { margin-left: auto; }
    .nav-actions .dropdown { display: none; }
    .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .split.rev > :first-child { order: 0; }
    .g4 { grid-template-columns: repeat(2, 1fr); }
    .g3 { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .mock { max-width: 640px; margin: 0 auto; }
}
@media (max-width: 680px) {
    .container { padding: 0 16px; }
    .section { padding: 68px 0; }
    .hero { padding: 40px 0 64px; }
    .hide-sm { display: none; }
    .g2, .g3, .g4, .form-grid { grid-template-columns: 1fr; }
    .facts-grid { grid-template-columns: 1fr 1fr; }
    .fact:nth-child(3) { border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--border); }
    .mock-window { grid-template-columns: 1fr; transform: none; }
    .mock-side { display: none; }
    .mock-float.f1 { left: 8px; bottom: -26px; }
    .mock-float.f2 { right: 8px; top: -26px; }
    .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 24px; }
    .form-card { padding: 22px; }
    .foot-grid { grid-template-columns: 1fr; gap: 32px; }
    .logo { height: 26px; }
    .slab-table th, .slab-table td { padding: 10px 8px; }
}

/* Home page: "A product of Cybex Innovation" under the header logo */
.brand.with-by { flex-direction: column; align-items: flex-start; gap: 3px; }
.brand.with-by .logo { height: 26px; }
.brand-by { font-size: .7rem; line-height: 1; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.brand-by strong { color: var(--primary-text); font-weight: 700; }
@media (max-width: 680px) { .brand.with-by .logo { height: 22px; } .brand-by { font-size: .64rem; } }
