/* ═══════════════════════════════════════════════════════════════
   Pinify Dashboard — Design System
   Colors: midnight base · coral primary · peach · warm amber · cream
═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
    --bg:          #0a0806;
    --bg-2:        #110d09;
    --bg-3:        #17120d;
    --surface:     rgba(255,200,160,.04);
    --surface-2:   rgba(255,200,160,.07);
    --border:      rgba(255,200,160,.08);
    --border-2:    rgba(255,200,160,.14);

    --coral:       #FF9A86;
    --coral-2:     #FFB399;
    --coral-dim:   rgba(255,154,134,.15);
    --peach:       #FFB399;
    --peach-dim:   rgba(255,179,153,.12);
    --amber:       #FFD6A6;
    --amber-dim:   rgba(255,214,166,.12);
    --cream:       #FFF0BE;
    --cream-dim:   rgba(255,240,190,.10);

    --emerald:     #34d399;
    --emerald-dim: rgba(52,211,153,.12);
    --rose:        #fb7185;
    --rose-dim:    rgba(251,113,133,.12);
    --sky:         #38bdf8;
    --sky-dim:     rgba(56,189,248,.10);

    --text:        #fdf4ec;
    --text-2:      #b8a89a;
    --text-3:      #6b5a50;

    --radius:      14px;
    --radius-sm:   8px;
    --radius-lg:   20px;
    --transition:  .2s cubic-bezier(.16,1,.3,1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar          { width: 4px; height: 4px; }
::-webkit-scrollbar-track    { background: transparent; }
::-webkit-scrollbar-thumb    { background: rgba(255,154,134,.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,154,134,.55); }

/* ── Background pattern ──────────────────────────────────────── */
.grid-bg {
    background-image:
        linear-gradient(rgba(255,154,134,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,154,134,.035) 1px, transparent 1px);
    background-size: 52px 52px;
}

/* ── Glass cards ─────────────────────────────────────────────── */
.glass {
    background: rgba(20,14,10,.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-2);
}

.glass-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.glass-card:hover {
    border-color: rgba(255,154,134,.25);
    box-shadow: 0 0 0 1px rgba(255,154,134,.08), 0 8px 32px rgba(0,0,0,.35);
}

.glass-light {
    background: rgba(255,200,160,.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.db-sidebar {
    background: linear-gradient(180deg, #0e0a07 0%, #0a0806 100%) !important;
    border-right: 1px solid var(--border) !important;
    position: relative;
}

.db-sidebar::before {
    content: '';
    position: absolute;
    top: -40px; left: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,154,134,.14) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-link {
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 500;
    color: var(--text-2);
    transition: all var(--transition);
    border-left: 2px solid transparent;
    padding: 9px 12px !important;
    gap: 10px !important;
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--coral-dim), transparent);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: inherit;
}

.sidebar-link:not(.active):hover {
    background: var(--surface) !important;
    color: var(--text) !important;
    border-left-color: rgba(255,154,134,.35) !important;
}
.sidebar-link:not(.active):hover::before { opacity: 1; }

.sidebar-link.active {
    background: rgba(255,154,134,.12) !important;
    color: var(--cream) !important;
    border-left: 2px solid var(--coral) !important;
    box-shadow: inset 0 0 20px rgba(255,154,134,.05);
}
.sidebar-link.active::before { opacity: 1; }
.sidebar-link.active svg { color: var(--coral-2) !important; }

.sidebar-active {
    background: rgba(255,154,134,.12);
    border-left: 2px solid var(--coral);
}

/* ── Gradient text ───────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--coral) 0%, var(--amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-warm {
    background: linear-gradient(135deg, var(--cream) 0%, var(--coral-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* keep old class working */
.gradient-text-purple {
    background: linear-gradient(135deg, var(--coral-2) 0%, var(--coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Glow orbs ───────────────────────────────────────────────── */
.glow-orb {
    border-radius: 50%;
    filter: blur(80px);
    opacity: .28;
    pointer-events: none;
}
.glow-orb-sm {
    border-radius: 50%;
    filter: blur(40px);
    opacity: .18;
    pointer-events: none;
}

/* ── Gradient borders ────────────────────────────────────────── */
.gradient-border { position: relative; }
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,154,134,.5), rgba(255,214,166,.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, var(--coral), #e8704e);
    box-shadow: 0 0 20px rgba(255,154,134,.3), 0 4px 16px rgba(0,0,0,.35);
    transition: all var(--transition);
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: .01em;
    color: #1a0a04;
}
.btn-primary:hover {
    box-shadow: 0 0 36px rgba(255,154,134,.5), 0 8px 24px rgba(0,0,0,.4);
    transform: translateY(-1px);
    filter: brightness(1.08);
}
.btn-primary:active { transform: scale(.98); }

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--border-2);
    transition: all var(--transition);
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.btn-secondary:hover {
    background: rgba(255,154,134,.1);
    border-color: rgba(255,154,134,.4);
    transform: translateY(-1px);
}

/* ── Stat cards ──────────────────────────────────────────────── */
.stat-card {
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(255,154,134,.07) 0%, transparent 70%);
    pointer-events: none;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(255,154,134,.14), 0 16px 48px rgba(0,0,0,.4);
    border-color: rgba(255,154,134,.22) !important;
}

/* ── Forms ───────────────────────────────────────────────────── */
input, select, textarea {
    transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(255,154,134,.5) !important;
    box-shadow: 0 0 0 3px rgba(255,154,134,.1) !important;
}

/* ── Dashboard navbar ────────────────────────────────────────── */
.navbar-scrolled {
    background: rgba(10,8,6,.9) !important;
    backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid var(--border) !important;
}

/* ── Feature/pricing cards ───────────────────────────────────── */
.feature-card {
    transition: all .3s cubic-bezier(.16,1,.3,1);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 40px rgba(255,154,134,.15), 0 20px 48px rgba(0,0,0,.4);
    border-color: rgba(255,154,134,.3) !important;
}

.pricing-popular {
    background: linear-gradient(135deg, rgba(255,154,134,.1), rgba(255,214,166,.05));
    border: 1px solid rgba(255,154,134,.32) !important;
    box-shadow: 0 0 40px rgba(255,154,134,.1), 0 20px 48px rgba(0,0,0,.3);
}

/* ── Hero gradient ───────────────────────────────────────────── */
.hero-gradient {
    background:
        radial-gradient(ellipse 80% 80% at 50% -20%, rgba(255,154,134,.18) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(255,214,166,.07) 0%, transparent 60%);
}

/* ── Dashboard mockup ────────────────────────────────────────── */
.dashboard-mockup {
    background: rgba(20,14,10,.9);
    border: 1px solid rgba(255,154,134,.16);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 60px rgba(255,154,134,.14),
        0 0 120px rgba(255,214,166,.05),
        0 24px 64px rgba(0,0,0,.6);
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
.animate-float      { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float 9s ease-in-out 1.5s infinite; }
.animate-float-med  { animation: float 7.5s ease-in-out 3s infinite; }


@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255,200,160,.05) 50%, transparent 100%);
    background-size: 200% auto;
    animation: shimmer 2.5s linear infinite;
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(255,154,134,.4); }
    70%  { box-shadow: 0 0 0 10px rgba(255,154,134,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,154,134,0); }
}
.pulse-ring { animation: pulse-ring 2s cubic-bezier(.455,.03,.515,.955) infinite; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center;
    font-size: .68rem; font-weight: 600; letter-spacing: .04em;
    padding: 2px 9px; border-radius: 99px;
    text-transform: uppercase;
}
.badge-coral   { background: var(--coral-dim);   color: var(--coral-2);  border: 1px solid rgba(255,154,134,.22); }
.badge-amber   { background: var(--amber-dim);   color: var(--amber);    border: 1px solid rgba(255,214,166,.22); }
.badge-cream   { background: var(--cream-dim);   color: var(--cream);    border: 1px solid rgba(255,240,190,.18); }
.badge-emerald { background: var(--emerald-dim); color: var(--emerald);  border: 1px solid rgba(52,211,153,.2); }
.badge-rose    { background: var(--rose-dim);    color: var(--rose);     border: 1px solid rgba(251,113,133,.2); }
.badge-sky     { background: var(--sky-dim);     color: var(--sky);      border: 1px solid rgba(56,189,248,.18); }

/* keep old names working */
.badge-violet  { background: var(--coral-dim);  color: var(--coral-2); border: 1px solid rgba(255,154,134,.22); }
.badge-cyan    { background: var(--sky-dim);     color: var(--sky);     border: 1px solid rgba(56,189,248,.18); }

/* ── Dividers ────────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-2), transparent);
}

/* ── Nav mobile overlay ──────────────────────────────────────── */
.nav-overlay {
    background: rgba(10,8,6,.98);
    backdrop-filter: blur(24px);
}

/* ── Chart ───────────────────────────────────────────────────── */
canvas { display: block; }

/* ── Performance ─────────────────────────────────────────────── */
.mockup-float { will-change: transform; }
.animate-float, .animate-float-slow, .animate-float-med { will-change: transform; }

/* Defer paint for below-fold sections — desktop only to avoid mobile scroll jumps */
@media (min-width: 768px) {
    #features, #pricing, footer {
        content-visibility: auto;
        contain-intrinsic-size: 0 600px;
    }
}

/* ── Alpine cloak ────────────────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   Tailwind replacement — only classes actually used in index.php
   Removes ~400KB CDN dependency
═══════════════════════════════════════════════════════════════ */

/* Arbitrary sizes for glow orbs */
.w-\[600px\] { width: 600px; }
.h-\[600px\] { height: 600px; }
.w-\[400px\] { width: 400px; }
.h-\[400px\] { height: 400px; }
.w-\[300px\] { width: 300px; }
.h-\[300px\] { height: 300px; }

/* Layout */
.flex          { display: flex; }
.inline-flex   { display: inline-flex; }
.grid          { display: grid; }
.hidden        { display: none; }
.inline-block  { display: inline-block; }
.block         { display: block; }
.fixed         { position: fixed; }
.absolute      { position: absolute; }
.relative      { position: relative; }

/* Flexbox */
.flex-col          { flex-direction: column; }
.flex-wrap         { flex-wrap: wrap; }
.items-center      { align-items: center; }
.items-end         { align-items: flex-end; }
.items-start       { align-items: flex-start; }
.justify-center    { justify-content: center; }
.justify-between   { justify-content: space-between; }
.shrink-0          { flex-shrink: 0; }
.-space-x-2 > * + * { margin-left: -0.5rem; }

/* Grid */
.grid-cols-2       { grid-template-columns: repeat(2,minmax(0,1fr)); }
.col-span-2        { grid-column: span 2 / span 2; }

/* Spacing — gap */
.gap-1   { gap: 0.25rem; }
.gap-2   { gap: 0.5rem; }
.gap-3   { gap: 0.75rem; }
.gap-5   { gap: 1.25rem; }
.gap-6   { gap: 1.5rem; }
.gap-8   { gap: 2rem; }
.gap-12  { gap: 3rem; }
.gap-x-10{ column-gap: 2.5rem; }
.gap-y-5 { row-gap: 1.25rem; }
.gap-2\.5{ gap: 0.625rem; }

/* Spacing — padding */
.p-2    { padding: 0.5rem; }
.p-4    { padding: 1rem; }
.p-6    { padding: 1.5rem; }
.p-7    { padding: 1.75rem; }
.p-10   { padding: 2.5rem; }
.px-3   { padding-left: .75rem;  padding-right: .75rem; }
.px-4   { padding-left: 1rem;    padding-right: 1rem; }
.px-5   { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6   { padding-left: 1.5rem;  padding-right: 1.5rem; }
.px-8   { padding-left: 2rem;    padding-right: 2rem; }
.px-2\.5{ padding-left: .625rem; padding-right: .625rem; }
.py-1   { padding-top: .25rem;  padding-bottom: .25rem; }
.py-1\.5{ padding-top: .375rem; padding-bottom: .375rem; }
.py-2   { padding-top: .5rem;   padding-bottom: .5rem; }
.py-2\.5{ padding-top: .625rem; padding-bottom: .625rem; }
.py-3   { padding-top: .75rem;  padding-bottom: .75rem; }
.py-3\.5{ padding-top: .875rem; padding-bottom: .875rem; }
.py-12  { padding-top: 3rem;    padding-bottom: 3rem; }
.py-14  { padding-top: 3.5rem;  padding-bottom: 3.5rem; }
.py-20  { padding-top: 5rem;    padding-bottom: 5rem; }
.py-24  { padding-top: 6rem;    padding-bottom: 6rem; }
.pt-6   { padding-top: 1.5rem; }
.pt-20  { padding-top: 5rem; }
.pb-12  { padding-bottom: 3rem; }

/* Spacing — margin */
.mx-auto  { margin-left: auto; margin-right: auto; }
.mb-1     { margin-bottom: .25rem; }
.mb-2     { margin-bottom: .5rem; }
.mb-3     { margin-bottom: .75rem; }
.mb-4     { margin-bottom: 1rem; }
.mb-5     { margin-bottom: 1.25rem; }
.mb-6     { margin-bottom: 1.5rem; }
.mb-8     { margin-bottom: 2rem; }
.mb-10    { margin-bottom: 2.5rem; }
.mb-12    { margin-bottom: 3rem; }
.mb-14    { margin-bottom: 3.5rem; }
.mb-16    { margin-bottom: 4rem; }
.mt-5     { margin-top: 1.25rem; }

/* Sizing */
.w-full    { width: 100%; }
.w-px      { width: 1px; }
.w-1\.5    { width: .375rem; }
.w-4       { width: 1rem; }
.w-5       { width: 1.25rem; }
.w-6       { width: 1.5rem; }
.w-8       { width: 2rem; }
.w-12      { width: 3rem; }
.h-1\.5    { height: .375rem; }
.h-4       { height: 1rem; }
.h-5       { height: 1.25rem; }
.h-6       { height: 1.5rem; }
.h-8       { height: 2rem; }
.h-12      { height: 3rem; }
.gap-1     { gap: .25rem; }
.min-h-screen { min-height: 100vh; min-height: 100dvh; }
.max-w-xs  { max-width: 20rem; }
.max-w-lg  { max-width: 32rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }

/* Positioning */
.inset-0    { top:0;right:0;bottom:0;left:0; }
.top-1\/2   { top: 50%; }
.right-0    { right: 0; }
.bottom-0   { bottom: 0; }
.left-0     { left: 0; }
.left-1\/2  { left: 50%; }
.left-1\/4  { left: 25%; }
.-top-3     { top: -.75rem; }
.-top-32    { top: -8rem; }
.top-full   { top: 100%; }
.-translate-x-1\/2 { transform: translateX(-50%); }

/* Z-index */
.z-0  { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Typography */
.text-xs      { font-size: .75rem;  line-height: 1rem; }
.text-sm      { font-size: .875rem; line-height: 1.25rem; }
.text-base    { font-size: 1rem;    line-height: 1.5rem; }
.text-lg      { font-size: 1.125rem;line-height: 1.75rem; }
.text-3xl     { font-size: 1.875rem;line-height: 2.25rem; }
.text-4xl     { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.font-black   { font-weight: 900; }
.text-center  { text-align: center; }
.uppercase    { text-transform: uppercase; }
.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight  { letter-spacing: -.025em; }
.tracking-widest { letter-spacing: .1em; }
.space-y-2\.5 > * + * { margin-top: .625rem; }

/* Colors */
.text-white      { color: #fff; }
.text-slate-300  { color: #cbd5e1; }
.text-slate-400  { color: #94a3b8; }
.text-slate-500  { color: #64748b; }
.text-slate-600  { color: #475569; }
.text-amber-400  { color: #fbbf24; }
.bg-emerald-500  { background-color: #10b981; }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-purple-400 { --tw-gradient-from:#c084fc; --tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(192,132,252,0)); }
.to-indigo-500   { --tw-gradient-to:#6366f1; }
.from-cyan-400   { --tw-gradient-from:#22d3ee; --tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(34,211,238,0)); }
.to-teal-500     { --tw-gradient-to:#14b8a6; }
.from-pink-400   { --tw-gradient-from:#f472b6; --tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(244,114,182,0)); }
.to-rose-500     { --tw-gradient-to:#f43f5e; }
.from-amber-400  { --tw-gradient-from:#fbbf24; --tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(251,191,36,0)); }
.to-orange-500   { --tw-gradient-to:#f97316; }

/* Borders */
.rounded-full  { border-radius: 9999px; }
.rounded-lg    { border-radius: .5rem; }
.rounded-xl    { border-radius: .75rem; }
.rounded-2xl   { border-radius: 1rem; }
.rounded-3xl   { border-radius: 1.5rem; }
.border-2      { border-width: 2px; }
.border-t      { border-top-width: 1px; border-style: solid; }
.border-y      { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; }
.border-slate-900  { border-color: #0f172a; }
.border-white\/5   { border-color: rgba(255,255,255,.05); }
.border-white\/10  { border-color: rgba(255,255,255,.10); }
.border            { border-width: 1px; border-style: solid; }

/* Opacity */
.opacity-30 { opacity: .3; }
.opacity-40 { opacity: .4; }

/* Transitions */
.transition-all    { transition: all .15s ease; }
.transition-colors { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.duration-200      { transition-duration: .2s; }

/* Hover */
.hover\:text-white:hover       { color: #fff; }
.hover\:text-slate-300:hover   { color: #cbd5e1; }
.hover\:bg-white\/5:hover      { background-color: rgba(255,255,255,.05); }
.hover\:bg-white\/10:hover     { background-color: rgba(255,255,255,.10); }

/* Remove underline from all links globally */
a { text-decoration: none; }

/* Remove list-style dots globally */
ul, ol { list-style: none; }

/* Animations */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.animate-pulse  { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes bounce { 0%,100%{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)} 50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)} }
.animate-bounce { animation: bounce 1s infinite; }

/* ── Mobile-first base (< 640px) ─────────────────────────────── */
@media (max-width: 639px) {
    /* Shrink huge section padding on phones */
    .py-24 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .py-20 { padding-top: 3rem; padding-bottom: 3rem; }

    /* Hero headline font clamp */
    .text-4xl { font-size: 2rem; line-height: 1.2; }

    /* Pricing grid: 1 column */
    .grid.md\:grid-cols-3 { grid-template-columns: 1fr; }

    /* CTA section inner padding */
    .p-10 { padding: 1.75rem; }

    /* Footer: single column — scoped so trust-stats 2-col grid stays 2-col on mobile */
    footer .grid.grid-cols-2 { grid-template-columns: 1fr; }
}

/* Responsive — sm (640px) */
@media (min-width:640px) {
    .sm\:px-6        { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:text-lg     { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:text-4xl    { font-size: 2.25rem; line-height: 2.5rem; }
    .sm\:text-5xl    { font-size: 3rem; line-height: 1; }
    .sm\:flex-row    { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .sm\:col-span-4  { grid-column: span 4 / span 4; }
    .sm\:p-16        { padding: 4rem; }
    .sm\:text-5xl    { font-size: 3rem; line-height: 1; }
}

/* Responsive — md (768px) */
@media (min-width:768px) {
    .md\:flex        { display: flex; }
    .md\:hidden      { display: none !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:767px) {
    .md\:flex  { display: none !important; }
    .md\:hidden{ display: block; }
}

/* Responsive — lg (1024px) */
@media (min-width:1024px) {
    .lg\:px-8        { padding-left: 2rem; padding-right: 2rem; }
    .lg\:gap-16      { gap: 4rem; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5,minmax(0,1fr)); }
    .lg\:col-span-2  { grid-column: span 2 / span 2; }
    .lg\:text-6xl    { font-size: 3.75rem; line-height: 1; }
}

/* ── Missing utilities (used across pages) ───────────────────── */
.w-10    { width: 2.5rem; }
.h-10    { height: 2.5rem; }
.w-14    { width: 3.5rem; }
.h-14    { height: 3.5rem; }
.w-16    { width: 4rem; }
.h-16    { height: 4rem; }
.p-3     { padding: .75rem; }
.p-5     { padding: 1.25rem; }
.p-8     { padding: 2rem; }
.px-2    { padding-left: .5rem; padding-right: .5rem; }
.py-4    { padding-top: 1rem; padding-bottom: 1rem; }
.py-5    { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6    { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8    { padding-top: 2rem; padding-bottom: 2rem; }
.py-10   { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.mt-1    { margin-top: .25rem; }
.mt-2    { margin-top: .5rem; }
.mt-3    { margin-top: .75rem; }
.mt-4    { margin-top: 1rem; }
.mt-6    { margin-top: 1.5rem; }
.mt-8    { margin-top: 2rem; }
.mb-0    { margin-bottom: 0; }
.mb-7    { margin-bottom: 1.75rem; }
.mb-9    { margin-bottom: 2.25rem; }
.mr-2    { margin-right: .5rem; }
.ml-2    { margin-left: .5rem; }
.gap-4   { gap: 1rem; }
.gap-7   { gap: 1.75rem; }
.gap-10  { gap: 2.5rem; }
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.text-2xl    { font-size: 1.5rem;  line-height: 2rem; }
.text-xl     { font-size: 1.25rem; line-height: 1.75rem; }
.text-5xl    { font-size: 3rem;    line-height: 1; }
.text-6xl    { font-size: 3.75rem; line-height: 1; }
.italic      { font-style: italic; }
.not-italic  { font-style: normal; }
.underline   { text-decoration: underline; }
.truncate    { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.break-all   { word-break: break-all; }
.select-none { user-select: none; }
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.pointer-events-none { pointer-events: none; }
.min-w-0     { min-width: 0; }
.max-w-sm    { max-width: 24rem; }
.max-w-md    { max-width: 28rem; }
.max-w-4xl   { max-width: 56rem; }
.max-w-6xl   { max-width: 72rem; }
.flex-1      { flex: 1 1 0%; }
.flex-none   { flex: none; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow   { flex-grow: 1; }
.self-start  { align-self: flex-start; }
.self-center { align-self: center; }
.self-end    { align-self: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-end   { justify-content: flex-end; }
.items-baseline { align-items: baseline; }
.grid-cols-1  { grid-template-columns: repeat(1,minmax(0,1fr)); }
.grid-cols-3  { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-cols-4  { grid-template-columns: repeat(4,minmax(0,1fr)); }
.col-span-1   { grid-column: span 1 / span 1; }
.col-span-3   { grid-column: span 3 / span 3; }
.row-span-2   { grid-row: span 2 / span 2; }
.border-0     { border-width: 0; }
.border-l     { border-left-width: 1px; border-style: solid; }
.border-r     { border-right-width: 1px; border-style: solid; }
.border-b     { border-bottom-width: 1px; border-style: solid; }
.border-l-4   { border-left-width: 4px; border-style: solid; }
.rounded      { border-radius: .25rem; }
.rounded-sm   { border-radius: .125rem; }
.rounded-md   { border-radius: .375rem; }
.shadow       { box-shadow: 0 1px 3px rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.06); }
.shadow-md    { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06); }
.shadow-lg    { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05); }
.shadow-xl    { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04); }
.ring-1       { box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.ring-2       { box-shadow: 0 0 0 2px rgba(255,255,255,.1); }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto   { overflow-y: auto; }
.overflow-auto     { overflow: auto; }
.object-contain    { object-fit: contain; }
.object-cover      { object-fit: cover; }
.fill-current { fill: currentColor; }
.stroke-current { stroke: currentColor; }
.opacity-0   { opacity: 0; }
.opacity-50  { opacity: .5; }
.opacity-60  { opacity: .6; }
.opacity-70  { opacity: .7; }
.opacity-80  { opacity: .8; }
.opacity-100 { opacity: 1; }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.resize-none { resize: none; }
.appearance-none { appearance: none; -webkit-appearance: none; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.top-0       { top: 0; }
.right-4     { right: 1rem; }
.left-4      { left: 1rem; }
.bottom-4    { bottom: 1rem; }
.top-4       { top: 1rem; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-x-0     { transform: translateX(0); }
.translate-y-0     { transform: translateY(0); }
.scale-95    { transform: scale(.95); }
.scale-100   { transform: scale(1); }
.rotate-180  { transform: rotate(180deg); }
.origin-top  { transform-origin: top; }
.z-20  { z-index: 20; }
.z-30  { z-index: 30; }
.z-40  { z-index: 40; }
.z-100 { z-index: 100; }
.invisible { visibility: hidden; }
.visible   { visibility: visible; }
.list-disc   { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.no-underline { text-decoration: none; }
.font-mono   { font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.line-clamp-2 { overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2; }
.line-clamp-3 { overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3; }
.sm\:hidden { display: block; }
@media (min-width:640px) { .sm\:hidden { display: none !important; } }

/* ── Extra sm breakpoint helpers ─────────────────────────────── */
@media (min-width:640px) {
    .sm\:w-auto      { width: auto; }
    .sm\:mt-0        { margin-top: 0; }
    .sm\:text-xl     { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\:text-2xl    { font-size: 1.5rem; line-height: 2rem; }
    .sm\:text-3xl    { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\:py-16       { padding-top: 4rem; padding-bottom: 4rem; }
    .sm\:items-center { align-items: center; }
    .sm\:justify-between { justify-content: space-between; }
    .sm\:gap-4       { gap: 1rem; }
    .sm\:gap-6       { gap: 1.5rem; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (min-width:768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .md\:col-span-2  { grid-column: span 2 / span 2; }
    .md\:text-4xl    { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl    { font-size: 3rem; line-height: 1; }
    .md\:px-8        { padding-left: 2rem; padding-right: 2rem; }
    .md\:py-20       { padding-top: 5rem; padding-bottom: 5rem; }
    .md\:gap-8       { gap: 2rem; }
    .md\:gap-12      { gap: 3rem; }
    .md\:flex-row    { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:justify-between { justify-content: space-between; }
    .md\:block       { display: block; }
    .md\:flex-1      { flex: 1 1 0%; }
}

@media (min-width:1024px) {
    .lg\:text-5xl    { font-size: 3rem; line-height: 1; }
    .lg\:text-7xl    { font-size: 4.5rem; line-height: 1; }
    .lg\:py-32       { padding-top: 8rem; padding-bottom: 8rem; }
    .lg\:gap-20      { gap: 5rem; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .lg\:col-span-3  { grid-column: span 3 / span 3; }
    .lg\:col-span-4  { grid-column: span 4 / span 4; }
    .lg\:flex-row    { flex-direction: row; }
    .lg\:items-center { align-items: center; }
}

/* ── Utilities added for new homepage sections ─────────────────── */

/* Sizing — missing arbitrary heights/widths for glow orbs */
.h-\[400px\] { height: 400px; }
.w-\[500px\] { width: 500px; }
.h-\[500px\] { height: 500px; }
.w-\[700px\] { width: 700px; }
.h-\[700px\] { height: 700px; }
.w-\[800px\] { width: 800px; }
.h-\[800px\] { height: 800px; }

/* Sizing — small avatar / icon sizes */
.w-9  { width: 2.25rem; }
.h-9  { height: 2.25rem; }
.w-11 { width: 2.75rem; }
.h-11 { height: 2.75rem; }

/* Spacing — missing */
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mt-16 { margin-top: 4rem; }
.gap-16 { gap: 4rem; }
.gap-9  { gap: 2.25rem; }
.px-7   { padding-left: 1.75rem; padding-right: 1.75rem; }
.pb-5   { padding-bottom: 1.25rem; }

/* Transitions */
.transition-transform { transition: transform .2s ease; }
.duration-300 { transition-duration: .3s; }

/* Focus */
.focus\:outline-none:focus { outline: none; }

/* Responsive — md grid-cols-4 already exists; ensure base grid-cols-2 works at mobile */
@media (max-width: 639px) {
    .py-16 { padding-top: 3rem; padding-bottom: 3rem; }
}

/* How It Works connector line positioning */
.left-1\/3  { left: 33.333333%; }
.right-1\/3 { right: 33.333333%; }
.h-px       { height: 1px; }
.top-10     { top: 2.5rem; }

/* FAQ button — reset browser default button styles */
#faq-list button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
#faq-list button:focus-visible {
    outline: 2px solid rgba(255,154,134,.5);
    outline-offset: 2px;
    border-radius: .5rem;
}
