:root {
    /* Core palette */
    --canvas: #F6F6F6;
    --ink: #1C1C1C;
    --muted: #545454;
    --dim: #969696;
    --divider: #E3E3E3;
    --accent: #4043FF;

    /* Surfaces */
    --card-bg: #F6F6F6;
    --card-border: #FFFFFF;
    --card-shadow-light: rgba(255,255,255,0.9);
    --card-shadow-dark: rgba(0,0,0,0.06);
    --card-inset-border: rgba(255,255,255,0.6);

    /* Navbar / glass */
    --nav-bg: rgba(246,246,246,0.94);
    --nav-icon-gradient-start: #1A1A1A;
    --nav-icon-gradient-end: rgba(0,0,0,0.7);

    /* Footer */
    --footer-bg: #1C1C1C;
    --footer-text: rgba(246,246,246,0.94);
    --footer-gradient-start: #474747;
    --footer-gradient-end: #1A1A1A;

    /* Heading gradient */
    --grad-start: #121212;
    --grad-end: rgba(18,18,18,0.7);

    /* Buttons */
    --btn-bg: #1C1C1C;
    --btn-text: #F6F6F6;
    --btn-hover-bg: #333333;

    /* Forms */
    --input-bg: #FFFFFF;
    --input-border: #E3E3E3;
    --input-shadow: rgba(0,0,0,0.04);

    /* Feedback */
    --success-bg: #ECFDF3;
    --success-border: #B9F2D1;
    --success-text: #065F2B;
    --error-bg: #FEF2F2;
    --error-border: #FCC7C7;
    --error-text: #8A1414;
    --error-accent: #E04545;
    --field-error: #B42318;

    /* Fonts */
    --font-heading: 'Instrument Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-hand: 'Caveat', cursive;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;

    /* Footer shape */
    --footer-radius: 24px 24px 0 0;

    /* Misc */
    --tooltip-bg: #1C1C1C;
    --tooltip-text: #FFFFFF;
    --dot-inactive: #D4D4D4;
    --dot-active: #1C1C1C;
    --section-alt-bg: #EFEFEF;
    --marker-color: #BFBFBF;
    --hover-bg: rgba(0,0,0,0.05);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--canvas);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    font-size: 18px;
    line-height: 1.4;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
h1 { font-weight: 600; letter-spacing: -0.02em; text-transform: capitalize; }

/* Gradient heading text fill */
.h-grad {
    background-image: linear-gradient(0deg, var(--grad-start) 0%, var(--grad-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Neumorphic shadows */
.neu {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow:
        0 0.602px 0.602px 0 rgba(28,28,28,0.01),
        0 2.289px 2.289px 0 rgba(28,28,28,0.03),
        0 10px 10px 0 rgba(28,28,28,0.12),
        0 -6px 6px -5px var(--card-border);
}
.neu-subtle {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow:
        0 0.602px 0.602px 0 rgba(28,28,28,0),
        0 2.289px 2.289px 0 rgba(28,28,28,0.02),
        0 10px 10px 0 rgba(28,28,28,0.08),
        0 -6px 6px -5px var(--card-border);
}

/* Buttons */
.btn-primary {
    background: var(--btn-bg);
    color: var(--btn-text);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.02em;
    line-height: 1.6;
    padding: 14px 24px;
    border-radius: 16px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow:
        rgba(255,255,255,0.15) 0 0 20px 1.64px inset,
        rgba(0,0,0,0.13) 0 0.84px 0.5px -0.31px,
        rgba(0,0,0,0.13) 0 1.99px 1.19px -0.63px,
        rgba(0,0,0,0.13) 0 3.63px 2.18px -0.94px,
        rgba(0,0,0,0.13) 0 6.04px 3.62px -1.25px,
        rgba(0,0,0,0.13) 0 9.75px 5.85px -1.56px,
        rgba(0,0,0,0.13) 0 15.96px 9.57px -1.88px,
        rgba(0,0,0,0.13) 0 27.48px 16.49px -2.19px,
        rgba(0,0,0,0.13) 0 50px 30px -2.5px;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary.sm { font-size: 14px; padding: 10px 18px; border-radius: 12px; }

.btn-secondary {
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.02em;
    line-height: 1.6;
    padding: 14px 24px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform .25s ease;
    box-shadow:
        0 0.602px 0.602px 0 rgba(28,28,28,0.01),
        0 2.289px 2.289px 0 rgba(28,28,28,0.03),
        0 10px 10px 0 rgba(28,28,28,0.12),
        0 -6px 6px -5px var(--card-border);
}
.btn-secondary:hover { transform: translateY(-1px); }

/* Section badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 27px;
    border: 1px solid var(--card-border);
    background: var(--canvas);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    box-shadow:
        0 0.602px 0.602px 0 rgba(28,28,28,0),
        0 2.289px 2.289px 0 rgba(28,28,28,0.02),
        0 10px 10px 0 rgba(28,28,28,0.08),
        0 -6px 6px -5px var(--card-border);
}
.badge svg { width: 14px; height: 14px; color: var(--dim); stroke-width: 1.5; }
.badge-gray {
    background: #F3F4F6;
    color: #374151;
    border-color: #E5E7EB;
}

/* Hero composite badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 16px 4px 4px;
    background: var(--canvas);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    box-shadow:
        0 0.602px 0.602px 0 rgba(28,28,28,0),
        0 2.289px 2.289px 0 rgba(28,28,28,0.02),
        0 10px 10px 0 rgba(28,28,28,0.08),
        0 -6px 6px -5px var(--card-border);
}
.hero-badge-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--card-border);
    border-radius: 100px;
    background: var(--canvas);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -0.2px;
}
.pulse {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: var(--accent);
    flex-shrink: 0;
}
.pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    background: var(--accent);
    opacity: 0.25;
    animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
    0%   { transform: scale(0.8); opacity: 0.35; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Feature icon block */
.icon-feature {
    width: 42px;
    height: 40px;
    background: linear-gradient(var(--nav-icon-gradient-start) 0%, var(--nav-icon-gradient-end) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(28,28,28,0.18);
    color: #FFFFFF;
}
.icon-feature svg { width: 22px; height: 22px; color: var(--canvas); stroke-width: 1.5; }

/* Pricing popular badge */
.popular-badge {
    position: absolute;
    top: -10px;
    right: -14px;
    background: var(--accent);
    color: var(--btn-text);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transform: rotate(13deg) scale(0.957);
    box-shadow: rgba(64,67,255,0.38) 0 1px 32px 0, 0 6px 20px rgba(64,67,255,0.25);
    z-index: 5;
}

/* Check star badge for pricing */
.check-star {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.check-star svg { width: 12px; height: 12px; color: var(--btn-text); stroke-width: 2.5; }

/* FAQ toggle */
.faq-toggle {
    width: 26px;
    height: 26px;
    border-radius: 9999px;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .25s ease;
}
.faq-toggle svg { width: 13px; height: 13px; color: var(--canvas); stroke-width: 2; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-answer { max-height: 300px; }

/* Footer social icon */
.footer-social {
    width: 42px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(var(--footer-gradient-start) 0%, var(--footer-gradient-end) 100%);
    box-shadow:
        rgba(255,255,255,0.08) 0 0 12px 1px inset,
        rgba(0,0,0,0.25) 0 4px 10px -2px,
        rgba(0,0,0,0.3) 0 8px 18px -4px;
    color: var(--canvas);
    transition: transform .2s ease;
}
.footer-social:hover { transform: translateY(-1px); }
.footer-social svg { width: 16px; height: 16px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(32px) scale(0.96); transition: opacity .7s ease, transform .7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* Hero screenshot perspective */
/* Hero dashboard mockup — isolated from theme overrides */
.hero-dashboard, .hero-dashboard * { box-shadow: none !important; text-decoration: none !important; }
.hero-dashboard a { pointer-events: none; }

.hero-tilt {
    transform: perspective(1400px) rotateX(18deg) scale(0.94) translateY(-40px);
    opacity: 0.001;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1s ease;
}
.hero-tilt.visible {
    transform: perspective(1400px) rotateX(0deg) scale(1) translateY(0);
    opacity: 1;
}

/* Marquee */
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; flex-shrink: 0; align-items: center; gap: 52px; padding-right: 52px; animation: scroll 30s linear infinite; }
.marquee-track img { height: 34px; }
.marquee-slow .marquee-track { animation-duration: 50s; gap: 16px; padding-right: 16px; }
@keyframes scroll { to { transform: translateX(-100%); } }

/* Responsive type */
.h1 { font-size: 68px; line-height: 1.1; }
.h2 { font-size: 58px; line-height: 1.1; font-weight: 500; }
.h3 { font-size: 42px; line-height: 1.1; }
@media (max-width: 1024px) {
    .h1 { font-size: 56px; }
    .h2 { font-size: 48px; }
    .h3 { font-size: 36px; }
}
@media (max-width: 640px) {
    .h1 { font-size: 40px; }
    .h2 { font-size: 36px; }
    .h3 { font-size: 30px; }
}

/* Mobile nav */
.mobile-menu { transform: translateX(100%); transition: transform .3s ease; }
.mobile-menu.open { transform: translateX(0); }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-dropdown-toggle svg.chevron-icon { width: 12px; height: 12px; transition: transform .2s ease; }
.nav-dropdown.open .nav-dropdown-toggle svg.chevron-icon { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    min-width: 180px; padding: 6px; border-radius: 12px;
    background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(4px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
    display: block; padding: 8px 14px; border-radius: 8px; font-size: 14px;
    color: var(--ink); text-decoration: none; transition: background .15s ease;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--hover-bg); }

/* Mobile nav accordion */
.mob-accordion-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.mob-accordion-toggle svg.chevron-icon { width: 14px; height: 14px; transition: transform .2s ease; }
.mob-accordion.open .mob-accordion-toggle svg.chevron-icon { transform: rotate(180deg); }
.mob-accordion-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; display: flex; flex-direction: column; gap: 2px; }
.mob-accordion.open .mob-accordion-body { max-height: 400px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .hero-tilt { transform: none !important; opacity: 1 !important; }
}

@keyframes orbit-spin    { from { transform: rotate(0deg);   } to { transform: rotate(360deg);  } }
@keyframes orbit-counter { from { transform: rotate(0deg);   } to { transform: rotate(-360deg); } }
.orbit { position: absolute; inset: 0; animation: orbit-spin 40s linear infinite; transform-origin: 50% 50%; }
.orbit-tile { position: absolute; transform: translate(-50%, -50%); }
.orbit-tile > * { animation: orbit-counter 40s linear infinite; transform-origin: 50% 50%; position: relative; }
.orbit-tile [data-tip] { position: relative; cursor: pointer; }
.orbit-tile [data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    background: var(--tooltip-bg);
    color: var(--tooltip-text);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    z-index: 20;
}

.orbit-tile [data-tip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .orbit, .orbit-tile > * { animation: none !important; }
}

/* Testimonial slider */
.t-slider { position: relative; }
.t-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.t-track::-webkit-scrollbar { display: none; }
.t-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}
@media (min-width: 768px) {
    .t-slide { flex: 0 0 calc((100% - 40px) / 3); }
}
.t-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.t-dot {
    width: 8px; height: 8px; border-radius: 9999px;
    background: var(--dot-inactive); border: none; padding: 0; cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
.t-dot.active { width: 26px; background: var(--dot-active); }

/* Tab panel transitions */
@keyframes tab-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tab-panel[hidden] { display: none !important; }
.tab-panel { animation: tab-fade-in .45s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
    .tab-panel { animation: none; }
}

/* Pricing controls */
.price-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 14px;
    gap: 4px;
    background: var(--canvas);
    border: 1px solid var(--card-border);
    box-shadow:
        0 0.602px 0.602px 0 rgba(28,28,28,0.01),
        0 2.289px 2.289px 0 rgba(28,28,28,0.03),
        0 10px 10px 0 rgba(28,28,28,0.08);
}
.price-toggle button {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--muted);
    padding: 9px 22px;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: all .25s ease;
}
.price-toggle button.active {
    color: var(--ink);
    background: var(--input-bg);
    box-shadow:
        inset 1px 1px 2px rgba(28,28,28,0.06),
        inset -1px -1px 2px rgba(255,255,255,1),
        0 1px 2px rgba(28,28,28,0.04);
}
.currency-select {
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    background: var(--canvas);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 10px 38px 10px 16px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231C1C1C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    box-shadow:
        0 0.602px 0.602px 0 rgba(28,28,28,0.01),
        0 2.289px 2.289px 0 rgba(28,28,28,0.03),
        0 10px 10px 0 rgba(28,28,28,0.08);
}

@keyframes price-flash {
    0%   { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}
[data-price].price-flash {
    animation: price-flash .35s ease;
}

/* Comparison table */
.compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.compare-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
}
.compare-table th,
.compare-table td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid var(--divider);
}
.compare-table thead th {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    padding-top: 22px;
    padding-bottom: 22px;
    color: var(--ink);
}
.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    color: var(--muted);
    position: sticky;
    left: 0;
    background: var(--canvas);
    z-index: 1;
}
.compare-section-th {
    background: var(--section-alt-bg) !important;
    color: var(--muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px !important;
    font-weight: 600;
    text-align: left !important;
    padding: 10px 18px !important;
}
.compare-table .check {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 9999px;
    background: var(--accent);
    color: var(--btn-text);
    align-items: center;
    justify-content: center;
}
.compare-table .check svg { width: 12px; height: 12px; }
.compare-table .dash { color: #C9C9C9; font-weight: 500; }
.compare-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease;
}
.compare-collapse.open { max-height: 4000px; overflow: visible; }
.t-slider{
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 11%, rgba(0, 0, 0, 1) 89%, rgba(0, 0, 0, 0) 100%);
}
/* Contact form */
.contact-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    box-shadow: inset 2px 2px 6px var(--input-shadow), inset -2px -2px 6px var(--card-shadow-light);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
    outline: none;
}
.contact-input::placeholder { color: var(--dim); }
.contact-input:focus {
    border-color: var(--accent);
    box-shadow: inset 2px 2px 6px rgba(0,0,0,0.05), 0 0 0 4px rgba(64,67,255,0.12);
}

/* Form alerts + field errors */
.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 20px;
    border: 1px solid transparent;
    animation: alert-in .3s ease;
}
.form-alert.hidden { display: none; }
.form-alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.form-alert.success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success-text);
}
.form-alert.error {
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error-text);
}
@keyframes alert-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.field-error {
    display: block;
    min-height: 0;
    font-size: 12px;
    color: var(--field-error);
    margin-top: 6px;
    line-height: 1.3;
}
.field-error:empty { display: none; }
.contact-input.is-error {
    border-color: var(--error-accent);
    box-shadow: inset 2px 2px 6px rgba(224,69,69,0.08), 0 0 0 4px rgba(224,69,69,0.10);
}
.contact-input.is-error:focus {
    border-color: var(--error-accent);
    box-shadow: inset 2px 2px 6px rgba(224,69,69,0.08), 0 0 0 4px rgba(224,69,69,0.18);
}
.btn-spinner.spin { animation: btn-spin 0.7s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Signup extras */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 12px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    box-shadow: 2px 2px 6px var(--input-shadow), -2px -2px 6px var(--card-shadow-light);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    transition: transform .15s ease, box-shadow .15s ease;
}
.social-btn:hover { transform: translateY(-1px); box-shadow: 3px 3px 10px rgba(0,0,0,0.06), -3px -3px 10px rgba(255,255,255,0.95); }
.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.or-divider::before, .or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--divider);
}
.signup-cta { padding-top: 12px; padding-bottom: 12px; font-size: 15px; }
.field-hint { transition: opacity .15s ease; }
.is-error ~ .field-hint { display: none; }

/* Legal / policy pages */
.policy-prose { color: var(--ink); font-size: 16px; line-height: 1.7; }
.policy-prose h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 48px;
    margin-bottom: 14px;
    padding-top: 28px;
    border-top: 1px solid var(--divider);
    scroll-margin-top: 100px;
    text-transform: none;
}
.policy-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.policy-prose h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    text-transform: none;
}
.policy-prose p { margin-bottom: 14px; }
.policy-prose ul { list-style: disc; padding-left: 28px; margin-bottom: 14px; }
.policy-prose ul li { margin-bottom: 8px; padding-left: 4px; }
.policy-prose ul li::marker { color: var(--marker-color); }
.policy-prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.policy-prose a:hover { color: var(--accent); }
.policy-prose strong { font-weight: 600; }
.policy-prose hr { border: none; border-top: 1px solid var(--divider); margin: 32px 0; }

.policy-toc {
    position: sticky;
    top: 100px;
    font-size: 13.5px;
    padding-top: 8px;
}
.policy-toc h4 {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--marker-color);
    margin-bottom: 10px;
    padding-left: 12px;
}
.policy-toc a {
    display: block;
    padding: 5px 12px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.4;
    transition: background .15s ease;
}
.policy-toc a:hover { background: var(--hover-bg); }

/* Features page — modules & integrations */
.module-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow:
        -6px -6px 12px var(--card-shadow-light),
        6px 6px 14px var(--card-shadow-dark),
        inset 0 0 0 1px var(--card-inset-border);
    transition: transform .2s ease, box-shadow .2s ease;
}
.module-card:hover {
    transform: translateY(-2px);
    box-shadow:
        -8px -8px 16px var(--card-shadow-light),
        8px 8px 18px var(--card-shadow-dark),
        inset 0 0 0 1px var(--card-inset-border);
}
.module-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--btn-bg);
    color: var(--btn-text);
    display: flex;
    align-items: center;
    justify-content: center;
}
.module-icon svg { width: 20px; height: 20px; }
.module-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 4px;
}
.module-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}

.integration-tile {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow:
        -4px -4px 10px var(--card-shadow-light),
        4px 4px 10px var(--card-shadow-dark),
        inset 0 0 0 1px var(--card-inset-border);
    transition: transform .2s ease, box-shadow .2s ease;
}
.integration-tile:hover {
    transform: translateY(-2px);
    box-shadow:
        -6px -6px 12px var(--card-shadow-light),
        6px 6px 14px var(--card-shadow-dark),
        inset 0 0 0 1px var(--card-inset-border);
}
.integration-dot {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--btn-text);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.integration-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
}
.integration-cat {
    font-size: 11px;
    color: var(--dim);
    margin-top: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .module-card, .integration-tile { transition: none; }
    .module-card:hover, .integration-tile:hover { transform: none; }
}
