/* WineFlow Landing - Shared Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Kit Primary Palette */
    --wine-primary: #8B1E2D;
    --wine-secondary: #5C0F1C;
    --wine-accent: #A8324A;
    --gold: #D6A756;
    --gold-hover: #C49A45;
    --dark: #2F343C;           /* Graph Gray — brand kit §4 */
    --cream: #F8FAFC;          /* Cloud White */
    --white: #ffffff;

    /* Brand Kit Secondary / UI */
    --dashboard-blue: #2E5EAA;
    --mint-signal: #4ED1B3;

    /* Utility */
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;       /* Slate */
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;

    /* Glass system */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', Arial, Helvetica, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--gray-50);
}

h1, h2, h3, h4, .nav-logo, .footer-logo {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

.pricing-price, .stat-value, [data-mono] {
    font-family: 'JetBrains Mono', monospace;
}

/* ── Scroll Reveal Animations ────────────── */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children in grids */
.stagger > .reveal:nth-child(1),
.stagger > .reveal-scale:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2),
.stagger > .reveal-scale:nth-child(2) { transition-delay: 0.08s; }
.stagger > .reveal:nth-child(3),
.stagger > .reveal-scale:nth-child(3) { transition-delay: 0.16s; }
.stagger > .reveal:nth-child(4),
.stagger > .reveal-scale:nth-child(4) { transition-delay: 0.24s; }
.stagger > .reveal:nth-child(5),
.stagger > .reveal-scale:nth-child(5) { transition-delay: 0.32s; }
.stagger > .reveal:nth-child(6),
.stagger > .reveal-scale:nth-child(6) { transition-delay: 0.40s; }
.stagger > .reveal:nth-child(7),
.stagger > .reveal-scale:nth-child(7) { transition-delay: 0.48s; }
.stagger > .reveal:nth-child(8),
.stagger > .reveal-scale:nth-child(8) { transition-delay: 0.56s; }
.stagger > .reveal:nth-child(9),
.stagger > .reveal-scale:nth-child(9) { transition-delay: 0.64s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .stagger > * {
        transition-delay: 0s !important;
    }
}

/* ── Wave Divider ────────────────────────── */

.wave-divider {
    position: relative;
    margin-top: -1px;
    line-height: 0;
    overflow: hidden;
}
.wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Grain Texture Overlay ───────────────── */

.grain {
    position: relative;
}
.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ── Keyframe Animations ─────────────────── */

@keyframes aurora {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(3deg); }
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes float-wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* ── Navigation ───────────────────────────── */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: background 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth), backdrop-filter 0.3s var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--wine-primary);
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-logo-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--wine-primary);
}

.nav-cta {
    background: var(--wine-primary);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--wine-secondary);
    transform: scale(1.05);
}

.btn-login {
    background: var(--red-600) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease !important;
}

.btn-login:hover {
    background: var(--red-700) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--wine-primary);
}

/* ── Buttons ──────────────────────────────── */

.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.btn-primary:hover {
    background: var(--gold-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(201, 162, 39, 0.6);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--wine-primary);
}

/* ── Shared Layout ────────────────────────── */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--wine-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ── Footer ───────────────────────────────── */

.footer {
    background: linear-gradient(180deg, var(--dark) 0%, #1a1d21 100%);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-logo .nav-logo-icon {
    width: 24px;
    height: 24px;
}

.footer-brand p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--white);
}

/* Footer simple variant (legal pages) */
.footer-simple {
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-simple .footer-bottom {
    border-top: none;
    padding-top: 0;
}

/* ── Cookie Banner ────────────────────────── */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 1.5rem 2rem;
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.cookie-text p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.cookie-text a {
    color: var(--wine-primary);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.cookie-btn-accept {
    background: var(--wine-primary);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: var(--wine-secondary);
}

.cookie-btn-manage {
    background: var(--gray-200);
    color: var(--gray-700);
}

.cookie-btn-manage:hover {
    background: var(--gray-300);
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
}

.cookie-modal h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.cookie-category {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category h4 {
    font-size: 1rem;
    color: var(--dark);
}

.cookie-category p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-300);
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-slider::before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
    background: var(--wine-primary);
}

.cookie-toggle input:checked + .cookie-slider::before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cookie-modal-buttons .cookie-btn {
    flex: 1;
}

/* ── Legal Page Shared Styles ─────────────── */

.legal-body {
    line-height: 1.7;
}

.page-hero {
    background: linear-gradient(135deg, var(--wine-primary) 0%, var(--wine-secondary) 100%);
    padding: 10rem 2rem 4rem;
    text-align: center;
    color: var(--white);
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-hero p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content h2 {
    color: var(--wine-primary);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--wine-accent);
}

.content h3 {
    color: var(--dark);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content p {
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.content ul, .content ol {
    color: var(--gray-700);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content a {
    color: var(--wine-primary);
}

.content a:hover {
    text-decoration: none;
}

.info-box {
    background: var(--cream);
    border-left: 4px solid var(--wine-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.info-box h4 {
    color: var(--wine-primary);
    margin-bottom: 0.75rem;
}

.info-box p {
    margin-bottom: 0.5rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.highlight-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box p {
    color: #92400e;
    margin-bottom: 0;
}

.last-updated {
    color: var(--gray-500);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 2rem;
}

/* ── User Roles Section ──────────────────── */

.roles-section {
    padding: 6rem 2rem;
    background: var(--white);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.role-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-color: var(--wine-primary);
}

.role-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    background: var(--cream);
}

.role-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.role-card .role-subtitle {
    font-size: 0.8rem;
    color: var(--wine-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.role-card .role-permissions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.role-card .role-permissions li {
    font-size: 0.82rem;
    color: var(--gray-600);
    padding: 0.2rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.role-card .role-permissions li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--wine-primary);
    font-weight: bold;
}

/* ── Feature Comparison Table ────────────── */

.comparison-section {
    padding: 0 2rem 3rem;
    background: var(--gray-50);
}

.comparison-table-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: var(--white);
}

.comparison-table thead th {
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    background: var(--wine-primary);
    color: var(--white);
    position: sticky;
    top: 0;
}

.comparison-table thead th:first-child {
    text-align: left;
    border-radius: 12px 0 0 0;
}

.comparison-table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.comparison-table tbody td {
    padding: 0.7rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.88rem;
    color: var(--gray-700);
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--dark);
}

.comparison-table tbody tr:hover {
    background: var(--cream);
}

.comparison-table .check {
    color: var(--mint-signal);
    font-size: 1.1rem;
    font-weight: bold;
}

.comparison-table .cross {
    color: var(--gray-300);
    font-size: 1.1rem;
}

.comparison-table .table-category td {
    background: var(--gray-50);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wine-primary);
    padding: 0.5rem 1rem;
}

/* ── Add-on Cards ────────────────────────── */

.addons-section {
    padding: 3rem 2rem 6rem;
    background: var(--gray-50);
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.addon-card {
    background: var(--white);
    border: 2px dashed var(--gold);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.addon-card:hover {
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.15);
}

.addon-card h4 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.addon-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wine-primary);
    margin-bottom: 0.25rem;
}

.addon-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-500);
}

.addon-description {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.addon-availability {
    font-size: 0.78rem;
    color: var(--gray-500);
    font-style: italic;
}

/* ── Contact Section ─────────────────────── */

.contact-section {
    padding: 6rem 2rem;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.contact-info-item span {
    font-size: 1.2rem;
}

.contact-info-item a {
    color: var(--wine-primary);
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 2rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--wine-primary);
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 0.85rem 2rem;
    background: var(--wine-primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background: var(--wine-secondary);
    transform: scale(1.02);
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-status.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Honeypot - hidden from humans */
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ── Badges / Tags ───────────────────────── */

.tag-addon {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.tag-enterprise {
    display: inline-block;
    background: var(--wine-primary);
    color: var(--white);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.tag-included {
    display: inline-block;
    background: rgba(78, 209, 179, 0.15);
    color: #0d7a5f;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Feature card badge overlay */
.feature-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.feature-card {
    position: relative;
}

/* Pricing card feature list enhancements */
.pricing-features .disabled {
    color: var(--gray-300);
    text-decoration: line-through;
}

.pricing-features .addon-label {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
}

/* ── Billing Interval Toggle ──────────────── */

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.pricing-toggle-label {
    font-size: 0.95rem;
    color: var(--gray-500);
    cursor: pointer;
    transition: color 0.3s;
}

.pricing-toggle-label.active {
    color: var(--dark);
    font-weight: 600;
}

.pricing-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.pricing-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pricing-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-200);
    border-radius: 26px;
    cursor: pointer;
    transition: 0.3s;
}

.pricing-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.pricing-switch input:checked + .pricing-slider {
    background: var(--wine-primary);
}

.pricing-switch input:checked + .pricing-slider::before {
    transform: translateX(22px);
}

.pricing-badge-save {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

/* ── Integrations Section ────────────────── */

.integrations-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.integrations-stat {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    text-align: center;
}

.integrations-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--wine-primary);
    line-height: 1.2;
}

.integrations-stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

/* ── Tab Navigation ── */

.int-tabs-wrapper {
    margin-bottom: 2.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
}

.int-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.int-tabs {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    padding: 0.35rem;
    background: var(--gray-100);
    border-radius: 14px;
    min-width: max-content;
}

.int-tab {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.15rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.int-tab:hover {
    color: var(--wine-primary);
    background: rgba(139, 30, 45, 0.05);
}

.int-tab.active {
    background: var(--white);
    color: var(--wine-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.int-tab-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.int-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: rgba(139, 30, 45, 0.08);
    color: var(--wine-primary);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

/* ── Tab Panels ── */

.int-panels {
    position: relative;
}

.int-panel {
    display: none;
    animation: intFadeIn 0.35s ease;
}

.int-panel.active {
    display: block;
}

@keyframes intFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Integration Card Grid ── */

.int-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.int-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: all 0.3s ease;
    cursor: default;
}

.int-card:hover {
    transform: translateY(-4px);
    border-color: var(--wine-primary);
    box-shadow: 0 12px 32px rgba(139, 30, 45, 0.1);
}

.int-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.int-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-color, var(--gray-300));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.int-card-logo svg {
    width: 26px;
    height: 26px;
}

.int-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.int-card-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark);
    margin: 0;
}

.int-card-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.int-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    margin: auto 0 0 0;
    padding: 0;
}

.int-card-features li {
    display: inline-block;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--gray-600);
}

/* Direction badges (reused) */

.connector-direction {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.connector-direction.import {
    background: #dcfce7;
    color: #166534;
}

.connector-direction.export {
    background: #dbeafe;
    color: #1e40af;
}

.connector-direction.bidirectional {
    background: rgba(214, 167, 86, 0.15);
    color: #92600e;
}

/* ── Responsive ───────────────────────────── */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2rem;
    }

    .roles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .addons-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .int-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .int-tabs {
        justify-content: flex-start;
    }

    .integrations-hero-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* On mobile, reveal-left and reveal-right become simple vertical reveals */
    .reveal-left,
    .reveal-right {
        transform: translateY(20px);
    }
    .reveal-left.visible,
    .reveal-right.visible {
        transform: translateY(0);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .page-hero {
        padding: 8rem 1.5rem 3rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .content {
        padding: 2rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }

    .int-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .int-card {
        padding: 1.25rem;
    }

    .int-card-desc {
        font-size: 0.86rem;
    }

    .int-card-features li {
        font-size: 0.72rem;
    }

    .int-tab {
        padding: 0.6rem 1rem;
        font-size: 0.82rem;
    }

    .integrations-hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .comparison-table-wrapper {
        margin: 0 -1rem;
        border-radius: 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
        max-width: 400px !important;
    }

    .lang-switcher {
        width: 100%;
        position: relative;
    }

    .lang-switcher-btn {
        width: 100%;
        justify-content: center;
    }

    .lang-dropdown {
        position: relative;
        top: 0;
        box-shadow: none;
        border: 1px solid var(--gray-200);
    }

    .lang-dropdown.show {
        display: flex;
        flex-direction: column;
    }
}

/* ── Language Switcher ──────────────────────── */
.lang-switcher {
    position: relative;
    display: inline-flex;
}

.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
}

.lang-switcher-btn:hover {
    border-color: var(--wine-primary);
    color: var(--wine-primary);
}

.lang-switcher-btn svg {
    flex-shrink: 0;
}

.lang-code {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-chevron {
    transition: transform 0.2s ease;
}

.lang-dropdown.show ~ .lang-switcher-btn .lang-chevron,
.lang-switcher-btn:focus + .lang-dropdown + .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
    min-width: 140px;
    padding: 0.4rem;
    z-index: 1000;
    flex-direction: column;
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 0.55rem 1rem;
    background: none;
    border: none;
    border-radius: 8px;
    text-align: left;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.15s ease;
}

.lang-option:hover {
    background: var(--gray-50);
    color: var(--wine-primary);
}

.lang-option.active {
    background: var(--cream);
    color: var(--wine-primary);
    font-weight: 600;
}
