/* ============================================================
   NotesXD Landing Page — Styles
   Apple-inspired design with dark/light mode
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --nav-height: 56px;

    /* Light theme */
    --bg-primary: #fbfbfd;
    --bg-secondary: #f5f5f7;
    --bg-card: #ffffff;
    --bg-nav: rgba(251, 251, 253, 0.72);
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --accent: #007AFF;
    --accent-hover: #0056CC;
    --border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 40px 80px rgba(0, 0, 0, 0.16);
    --badge-bg: rgba(0, 122, 255, 0.08);
    --badge-text: #007AFF;
    --highlight-bg: #f5f5f7;
    --highlight-alt-bg: #ffffff;
    --card-hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    --progress-bg: #007AFF;
    --step-bg: #f5f5f7;
    --step-number-bg: #1d1d1f;
    --step-number-text: #ffffff;
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-card: #1c1c1e;
    --bg-nav: rgba(0, 0, 0, 0.72);
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #6e6e73;
    --accent: #0A84FF;
    --accent-hover: #409CFF;
    --border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 40px 80px rgba(0, 0, 0, 0.5);
    --badge-bg: rgba(10, 132, 255, 0.12);
    --badge-text: #0A84FF;
    --highlight-bg: #111111;
    --highlight-alt-bg: #1c1c1e;
    --card-hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    --progress-bg: #0A84FF;
    --step-bg: #1c1c1e;
    --step-number-bg: #f5f5f7;
    --step-number-text: #000000;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* ---- Layout ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Scroll Progress ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--progress-bg);
    z-index: 1001;
    transition: width 0.1s linear;
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    z-index: 10;
}

.nav-logo img {
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--text-primary);
}

.btn-nav {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 980px;
    background: var(--accent);
    color: #ffffff !important;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-nav:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.icon-moon { display: none; }

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 10;
}

.nav-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 980px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    padding: 14px 28px;
    font-size: 16px;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    padding: 14px 28px;
    font-size: 16px;
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--badge-bg);
}

.btn-large {
    padding: 16px 32px;
    font-size: 17px;
}

/* ---- Hero Section ---- */
.hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--badge-text);
    background: var(--badge-bg);
    padding: 8px 20px;
    border-radius: 980px;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    min-height: 3.3em;
}

.hero-title-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .hero-title-text {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #f5f5f7;
}

.hero-cursor {
    display: inline-block;
    width: 3px;
    height: 0.75em;
    background: var(--accent);
    margin-left: 3px;
    border-radius: 2px;
    vertical-align: baseline;
    position: relative;
    top: 0.05em;
    animation: cursorBlink 0.75s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: clamp(17px, 2.5vw, 21px);
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image {
    margin-top: 60px;
    width: 100%;
    max-width: 1000px;
    position: relative;
}

.hero-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .hero-image-wrapper:hover {
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* ---- Section Titles ---- */
.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 56px;
    line-height: 1.15;
}

/* ---- Quick Features Grid ---- */
.quick-features {
    padding: 100px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

.feature-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--badge-bg);
    border-radius: 14px;
    margin-bottom: 20px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---- How It Works ---- */
.how-it-works {
    padding: 100px 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step {
    text-align: center;
    max-width: 280px;
    padding: 0 20px;
}

.step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    background: var(--step-number-bg);
    color: var(--step-number-text);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.step p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 28px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* ---- Feature Sections ---- */
.feature-section {
    padding: 100px 0;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.feature-reverse .feature-row {
    direction: rtl;
}

.feature-reverse .feature-row > * {
    direction: ltr;
}

.feature-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--badge-text);
    background: var(--badge-bg);
    padding: 6px 14px;
    border-radius: 980px;
    margin-bottom: 20px;
}

.feature-text h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 18px;
}

.feature-text p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    font-size: 15px;
    color: var(--text-secondary);
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
}

.feature-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease;
}

.feature-image:hover {
    transform: scale(1.02);
}

.feature-image img {
    width: 100%;
    height: auto;
}

/* ---- Feature Highlights (text-only sections) ---- */
.feature-highlight {
    padding: 120px 0;
    background: var(--highlight-bg);
    transition: background-color 0.3s ease;
}

.feature-highlight-alt {
    background: var(--highlight-alt-bg);
}

.highlight-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.highlight-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--badge-bg);
    border-radius: 24px;
    margin: 0 auto 28px;
    color: var(--accent);
}

.highlight-content h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 18px;
}

.highlight-content p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

.privacy-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.privacy-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 10px 18px;
    border-radius: 980px;
    border: 1px solid var(--border);
}

[data-theme="dark"] .privacy-badge {
    background: var(--bg-card);
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 140px 0;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--badge-bg) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.8;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

/* ---- Floating Action Button ---- */
/* ---- Footer ---- */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-tertiary);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ---- Animations ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll[data-animation="scale"] {
    transform: translateY(40px) scale(0.95);
}

.animate-on-scroll[data-animation="slide-left"] {
    transform: translateX(60px);
    opacity: 0;
}

.animate-on-scroll[data-animation="slide-right"] {
    transform: translateX(-60px);
    opacity: 0;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1) translateX(0);
}

.features-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.08s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.16s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.24s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.32s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.4s; }
.features-grid .feature-card:nth-child(7) { transition-delay: 0.48s; }
.features-grid .feature-card:nth-child(8) { transition-delay: 0.56s; }
.features-grid .feature-card:nth-child(9) { transition-delay: 0.64s; }

.steps .step:nth-child(1) { transition-delay: 0s; }
.steps .step-connector:nth-child(2) { transition-delay: 0.15s; }
.steps .step:nth-child(3) { transition-delay: 0.25s; }
.steps .step-connector:nth-child(4) { transition-delay: 0.35s; }
.steps .step:nth-child(5) { transition-delay: 0.45s; }

.privacy-badges .privacy-badge:nth-child(1) { transition-delay: 0s; }
.privacy-badges .privacy-badge:nth-child(2) { transition-delay: 0.1s; }
.privacy-badges .privacy-badge:nth-child(3) { transition-delay: 0.2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-reverse .feature-row {
        direction: ltr;
    }

    .feature-text {
        text-align: center;
    }

    .feature-list {
        align-items: center;
    }

    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: calc(100vh - var(--nav-height));
        height: calc(100dvh - var(--nav-height));
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        z-index: 999;
        overflow-y: auto;
        display: flex;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a:not(.btn) {
        font-size: 28px;
        font-weight: 700;
        letter-spacing: -0.02em;
        color: var(--text-primary);
    }

    .nav-links a:not(.btn):active {
        opacity: 0.6;
    }

    .nav-links .btn-nav {
        margin-top: 8px;
        font-size: 17px;
        padding: 14px 32px;
    }

    .nav-links .theme-toggle {
        margin-top: 8px;
        width: 44px;
        height: 44px;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 48px);
    }

    .hero-title {
        font-size: clamp(32px, 9vw, 48px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        margin-top: 40px;
    }

    .quick-features,
    .how-it-works,
    .feature-section,
    .feature-highlight {
        padding: 64px 0;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .step-connector {
        transform: rotate(90deg);
        padding-top: 0;
    }

    .feature-text {
        text-align: center;
    }

    .feature-list {
        align-items: flex-start;
        text-align: left;
    }

    .privacy-badges {
        flex-direction: column;
        align-items: center;
    }

    .cta-section {
        padding: 80px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 36px;
    }

    .footer-links {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-badge {
        font-size: 13px;
        padding: 6px 14px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
    }

    .feature-card {
        padding: 24px 20px;
    }
}

/* ---- Print ---- */
@media print {
    .nav,
    .scroll-progress,
    .theme-toggle,
    .nav-mobile-toggle {
        display: none;
    }

    .hero {
        padding-top: 40px;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ---- Pro crown tag + tooltip ---- */
.feature-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.feature-card-head h3 {
    margin-bottom: 0;
}

.nav-pro {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-pro-crown {
    color: #FF9F0A;
    flex-shrink: 0;
}

.pro-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(135deg, #FFB300, #FF8A00);
    cursor: help;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255, 138, 0, 0.35);
}

.pro-tag svg {
    display: block;
}

.pro-tag::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    padding: 8px 11px;
    border-radius: 9px;
    width: max-content;
    max-width: 220px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 30;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.pro-tag::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 6px solid transparent;
    border-top-color: var(--text-primary);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 30;
}

.pro-tag:hover::after,
.pro-tag:focus-visible::after,
.pro-tag:hover::before,
.pro-tag:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---- Pro section ---- */
.pro-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.pro-card {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: var(--card-hover-shadow);
}

.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFB300, #FF8A00);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.3);
}

.pro-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.pro-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 660px;
    margin: 0 auto 36px;
}

.pro-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.pro-col {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 26px;
}

.pro-col-highlight {
    position: relative;
    border-color: transparent;
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.10), rgba(255, 138, 0, 0.05));
}

.pro-col-highlight::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(135deg, #FFB300, #FF8A00);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pro-col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.pro-col-highlight .pro-col-title {
    color: #E8890B;
}

.pro-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #E8890B;
    margin: 20px 0 0;
}

.pro-price-unit {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.pro-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.pro-features li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.pro-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--badge-bg);
}

.pro-features li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    width: 5px;
    height: 9px;
    border: solid var(--accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pro-features-pro li::after {
    border-color: #E8890B;
}

.pro-trial {
    margin-top: 28px;
    font-size: 13.5px;
    color: var(--text-tertiary);
    font-weight: 600;
}

@media (max-width: 640px) {
    .pro-cols {
        grid-template-columns: 1fr;
    }

    .pro-card {
        padding: 32px 22px;
    }
}
