/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Shared content container (header + main) */
.app-container,
.app-shell {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.app-container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}

.app-header__brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.app-header__brand:hover {
    opacity: 0.9;
}

.app-header__logo {
    display: block;
    height: 32px;
    width: auto;
}

/* Full-width header bar */
.app-header {
    padding-top: max(0.75rem, env(safe-area-inset-top));
}

/* Header anchor navigation */
.app-header__actions {
    flex-wrap: wrap;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav__link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-nav__link:hover {
    color: #0078D4;
}

.header-user-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-user-email {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.header-nav__link--logout {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.header-nav__link--logout:hover {
    color: rgba(255, 255, 255, 0.8);
}

.header-user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-user-menu__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
    flex-shrink: 0;
}

.header-user-menu__sign-out {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-user-menu__sign-out:hover {
    color: #0078D4;
}

/* Hero headline — first screen */
.hero-text-block {
    flex-shrink: 0;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 28px max(1rem, env(safe-area-inset-left)) 20px max(1rem, env(safe-area-inset-right));
    text-align: center;
}

.hero-text-block h1 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
    text-align: center;
}

.hero-text-block p {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.45;
    margin: 0;
    text-align: center;
}

/* Copy buttons with Pro indicators */
.copy-actions button {
    position: relative;
}

.copy-actions button:not([disabled]) {
    cursor: pointer;
}

.copy-actions button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Limit reached modal */
.limit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.limit-modal--show {
    opacity: 1;
    visibility: visible;
}

.limit-modal--closing {
    opacity: 0;
    visibility: hidden;
}

.limit-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.limit-modal__content {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 32px;
    max-width: 420px;
    margin: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.limit-modal--show .limit-modal__content {
    transform: translateY(0);
}

.limit-modal__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffb74d;
}

.limit-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.limit-modal__text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0 0 28px;
}

.limit-modal__text strong {
    color: #ffffff;
    font-weight: 600;
}

.limit-modal__actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.limit-modal__btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.limit-modal__btn--primary {
    background: #0078D4;
    color: #ffffff;
}

.limit-modal__btn--primary:hover {
    background: #106EBE;
    transform: translateY(-1px);
}

.limit-modal__btn--secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.limit-modal__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 640px) {
    .limit-modal__actions {
        flex-direction: row;
    }
    
    .limit-modal__btn {
        flex: 1;
    }
}

/* Anchor scroll offset — keeps section titles below the sticky header */
#pricing,
#faq {
    scroll-margin-top: 80px;
}

@media (min-width: 640px) {
    .hero-text-block {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }

    .hero-text-block h1 {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .app-container,
    .app-shell,
    .hero-text-block {
        max-width: 1200px;
    }

    .hero-text-block {
        padding-top: 24px;
        padding-bottom: 18px;
    }

    .hero-text-block h1 {
        font-size: 28px;
    }

    /* Keep the app canvas within 100dvh after the hero block */
    .app-header .app-container {
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }

    .app-panels .panel-input > .panel-section:first-child,
    .app-panels .panel-output > .panel-section:first-child {
        padding-top: 0.75rem !important;
    }

    .app-panels .panel-input > .panel-section:last-child,
    .app-panels .panel-output > .panel-section:last-child {
        padding-bottom: 0.75rem !important;
    }
}

/* Custom glassmorphic effects and animations */
.glass-panel {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth tab indicator animation */
#tab-indicator {
    box-shadow: 0 4px 20px rgba(0, 120, 212, 0.3);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Drag and drop styles */
.drag-over {
    border-color: rgba(0, 120, 212, 0.5) !important;
    background: rgba(0, 120, 212, 0.1) !important;
}

/* Button glow effect */
.btn-glow:hover {
    box-shadow: 0 0 20px rgba(0, 120, 212, 0.4);
}

/* Fade transitions */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-out;
}

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

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

/* Pulse animation for privacy indicator */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ─── Clean HTML Code panel ─────────────────────────────────────────────── */

.code-panel {
    background: linear-gradient(
        160deg,
        rgba(8, 12, 20, 0.95) 0%,
        rgba(11, 15, 23, 0.98) 100%
    );
}

.code-output,
#code-output {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 12px;
    line-height: 1.75;
    tab-size: 2;
    color: #b8c0cc;
    margin: 0;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
        rgba(0, 0, 0, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Syntax highlighting tokens */
.token-tag {
    color: #79c0ff;
    font-weight: 500;
}

.token-attr {
    color: #ffa657;
}

.token-value {
    color: #7ee787;
}

.token-comment {
    color: #6e7681;
    font-style: italic;
}

/* Scrollable areas inside the right output panel */
#signature-preview,
#code-output,
#outlook-preview .overflow-y-auto {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Selection styling */
::selection {
    background: rgba(0, 120, 212, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(0, 120, 212, 0.3);
    color: white;
}

#code-output::selection,
#code-output *::selection {
    background: rgba(0, 120, 212, 0.45);
    color: #ffffff;
}

/* Focus states for accessibility */
button:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(0, 120, 212, 0.5);
    outline-offset: 2px;
}

/* ─── Responsive: tablet & mobile (< 1024px) ───────────────────────────── */

/* Short labels hidden on desktop */
.privacy-badge__short,
.mode-tab-label-short {
    display: none;
}

@media (max-width: 1023px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        min-height: 100dvh;
    }

    .app-layout {
        height: auto;
        min-height: 100dvh;
    }

    .app-shell {
        height: auto;
    }

    .app-panels {
        flex: none;
        overflow: visible;
    }

    .panel-input {
        min-height: 50dvh;
        flex: none;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .panel-output {
        min-height: 55dvh;
        flex: none;
    }
    
    .app-footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ─── Responsive: tablet portrait (< 768px) ────────────────────────────── */

@media (max-width: 767px) {
    .mode-tab-label-full {
        display: none;
    }

    .mode-tab-label-short {
        display: inline;
    }
}

/* ─── Responsive: mobile (< 640px) ─────────────────────────────────────── */

@media (max-width: 639px) {
    .privacy-badge__full {
        display: none;
    }

    .privacy-badge__short {
        display: inline;
    }

    .mode-tab {
        min-height: 44px;
    }

    .output-tab {
        min-height: 44px;
    }

    #fix-signature {
        min-height: 48px;
    }

    .copy-actions button {
        min-height: 44px;
    }

    #load-template {
        min-height: 44px;
        width: 100%;
        max-width: 220px;
    }

    .code-output,
    #code-output {
        font-size: 11px;
        padding: 0.875rem 1rem;
    }

    #outlook-preview .bg-white.p-4 {
        padding: 0.75rem;
    }

    #email-content {
        font-size: 0.8125rem;
    }
}

/* ─── Responsive: small phones (< 380px) ───────────────────────────────── */

@media (max-width: 379px) {
    .output-tab {
        font-size: 0.6875rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .mode-tab {
        font-size: 0.625rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition-property: color, background-color, border-color, opacity, transform, box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Loading animation for buttons */
.loading {
    pointer-events: none;
}

/* Enhanced glassmorphic effect for panels */
.enhanced-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ─── Old footer (app-footer) ───────────────────────────────────────── */

.app-footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background-color: currentColor;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.footer-links a:hover::after {
    width: 100%;
}


/* ═══════════════════════════════════════════════════════════════════════
   LANDING PAGE SECTIONS
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Shared tokens ──────────────────────────────────────────────────── */
.landing {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lp-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.lp-container--narrow {
    max-width: 780px;
}

.lp-section {
    padding: 96px 0;
}

.lp-section + .lp-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.lp-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0078D4;
    margin-bottom: 14px;
}

.lp-heading {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin: 0;
}

.lp-heading--center {
    text-align: center;
}

/* ── 1. The Ugly Truth ──────────────────────────────────────────────── */
.lp-ugly-truth {
    background: linear-gradient(180deg, rgba(0, 120, 212, 0.04) 0%, transparent 100%);
}

.lp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.lp-split__lead .lp-eyebrow {
    display: block;
    margin-bottom: 16px;
}

.lp-split__body {
    padding-top: 8px;
}

.lp-split__body p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.75;
    margin: 0 0 1.1em;
    font-size: 1rem;
}

.lp-split__body p:last-child {
    margin-bottom: 0;
}

.lp-split__body strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.lp-split__body code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85em;
    color: #79c0ff;
    background: rgba(121, 192, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ── 2. Before / After ──────────────────────────────────────────────── */
.lp-before-after {
    background: rgba(0, 0, 0, 0.2);
}

.lp-ba-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lp-ba-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lp-ba-card--broken {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.04);
}

.lp-ba-card--fixed {
    border-color: rgba(0, 120, 212, 0.4);
    background: rgba(0, 120, 212, 0.04);
}

.lp-ba-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-ba-label--broken {
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
}

.lp-ba-label--fixed {
    color: #34d399;
    background: rgba(0, 120, 212, 0.08);
}

.lp-ba-preview {
    padding: 24px 20px;
    min-height: 130px;
    display: flex;
    align-items: center;
}

/* Broken preview: flexbox ignored — avatar huge, text below */
.lp-broken-sig {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.lp-broken-sig__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.25);
    border: 2px solid rgba(239, 68, 68, 0.4);
    flex-shrink: 0;
}

.lp-broken-sig__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-broken-sig__name {
    height: 14px;
    width: 130px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 4px;
}

.lp-broken-sig__role {
    height: 10px;
    width: 100px;
    background: rgba(239, 68, 68, 0.12);
    border-radius: 4px;
}

.lp-broken-sig__link {
    height: 10px;
    width: 80px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
}

/* Fixed preview: table layout — avatar left, text right, aligned */
.lp-fixed-sig {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.lp-fixed-sig__avatar {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    background: rgba(0, 120, 212, 0.3);
    border: 2px solid rgba(0, 120, 212, 0.5);
    flex-shrink: 0;
}

.lp-fixed-sig__divider {
    width: 1px;
    height: 52px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.lp-fixed-sig__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.lp-fixed-sig__name {
    height: 13px;
    width: 110px;
    background: rgba(52, 211, 153, 0.35);
    border-radius: 4px;
}

.lp-fixed-sig__role {
    height: 9px;
    width: 85px;
    background: rgba(52, 211, 153, 0.2);
    border-radius: 4px;
}

.lp-fixed-sig__links {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.lp-fixed-sig__link {
    height: 9px;
    width: 60px;
    background: rgba(0, 120, 212, 0.3);
    border-radius: 4px;
}

.lp-fixed-sig__link--short {
    width: 44px;
}

/* Code snippets inside BA cards */
.lp-ba-code {
    padding: 14px 20px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11.5px;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.25);
}

.lp-code-dim  { color: rgba(255, 255, 255, 0.4); }
.lp-code-attr { color: #ffa657; }
.lp-code-val  { color: #7ee787; }
.lp-code-comment { color: #f87171; font-style: italic; }
.lp-code-ok      { color: #34d399; font-style: italic; }

/* ── 3. How It Works ────────────────────────────────────────────────── */
.lp-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
}

.lp-step {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px 32px;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lp-step:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 120, 212, 0.3);
}

.lp-step__number {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #0078D4;
    margin-bottom: 16px;
}

.lp-step__icon {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.lp-step__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.lp-step__desc {
    flex: 1;
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin: 0;
}

.lp-step__connector {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 120, 212, 0.5), rgba(0, 120, 212, 0.2));
    align-self: center;
    flex-shrink: 0;
}

/* ── 4. Pricing ─────────────────────────────────────────────────────── */
.lp-pricing {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 120, 212, 0.05) 50%, transparent 100%);
}

.lp-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

/* Shared card base */
.lp-pricing-card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    padding: 40px 36px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* ── Free Plan (subdued) ────────────────────────────────────────────── */
.lp-pricing-card--free {
    background: rgba(11, 15, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.lp-pricing-card--free .lp-pricing-price {
    color: rgba(255, 255, 255, 0.85);
}

.lp-pricing-card--free .lp-pricing-benefits li {
    color: rgba(255, 255, 255, 0.55);
}

.lp-pricing-badge--muted {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
}

.lp-check--muted {
    color: rgba(255, 255, 255, 0.3);
}

/* ── Lifetime Access (premium) ──────────────────────────────────────── */
.lp-pricing-card--pro {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 120, 212, 0.35);
    box-shadow:
        0 0 0 1px rgba(0, 120, 212, 0.1),
        0 24px 64px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 120, 212, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lp-pricing-card--pro::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(0, 120, 212, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.lp-pricing-card--pro .lp-pricing-cta-wrap {
    margin-top: auto;
}

.lp-pricing-cta-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-pricing-cta-wrap .lp-pricing-cta {
    flex: 1;
    min-width: 0;
}

.lp-pro-lifetime-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.22) 0%, rgba(255, 152, 0, 0.12) 100%);
    border: 1px solid rgba(255, 193, 7, 0.45);
    color: #ffd54f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.18);
    animation: lp-pro-badge-float 3s ease-in-out infinite;
}

@keyframes lp-pro-badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.lp-pricing-cta--activated {
    background: linear-gradient(135deg, #1e6b32 0%, #0f4520 100%);
    border: 1px solid rgba(76, 175, 80, 0.45);
    cursor: default;
}

.lp-pricing-cta--activated:hover {
    background: linear-gradient(135deg, #1e6b32 0%, #0f4520 100%);
    transform: none;
}

.lp-pricing-cta--activated:disabled {
    opacity: 1;
    cursor: default;
}

.pricing-restore-link {
    margin-top: 12px;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.pricing-restore-link a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.pricing-restore-link a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.lp-pricing-badge {
    display: inline-block;
    background: rgba(0, 120, 212, 0.15);
    border: 1px solid rgba(0, 120, 212, 0.3);
    color: #60b4ff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
}

/* Meta block below both cards */
.lp-pricing-meta {
    max-width: 900px;
    margin: 32px auto 0;
    text-align: center;
}

.lp-pricing-price {
    font-size: 4.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.lp-pricing-currency {
    font-size: 2rem;
    font-weight: 600;
    vertical-align: super;
    line-height: 1;
    color: rgba(255, 255, 255, 0.7);
}

.lp-pricing-note {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 6px;
    letter-spacing: 0;
}

.lp-pricing-benefits {
    list-style: none;
    padding: 0;
    margin: 32px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.lp-pricing-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.lp-pricing-benefit-text {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
}

.lp-pricing-benefit-text strong {
    font-weight: 700;
    color: #ffffff;
}

.lp-check {
    width: 18px;
    height: 18px;
    color: #34d399;
    flex-shrink: 0;
    margin-top: 2px;
}

.lp-pricing-audience {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
    padding-top: 0;
    border-top: none;
}

.lp-pricing-audience strong {
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lp-pricing-cta {
    display: block;
    width: 100%;
    background: #0078D4;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.01em;
}

.lp-pricing-cta:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.lp-pricing-cta:hover {
    background: #106EBE;
    transform: translateY(-1px);
}

.lp-pricing-cta--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    margin-top: auto;
}

.lp-pricing-cta--outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
    transform: none;
}

.lp-pricing-footer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 16px 0 0;
}

/* ── 2b. Cookbook ───────────────────────────────────────────────────── */
.lp-section-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 10px auto 0;
    max-width: 520px;
    text-align: center;
}

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

.cb-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.cb-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 120, 212, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 120, 212, 0.15);
}

.cb-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 120, 212, 0.1);
    border: 1px solid rgba(0, 120, 212, 0.2);
    color: #60b4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.cb-card:hover .cb-card__icon {
    background: rgba(0, 120, 212, 0.2);
}

.cb-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.35;
}

.cb-card__desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.cb-card__desc code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8em;
    color: #79c0ff;
    background: rgba(121, 192, 255, 0.1);
    padding: 1px 5px;
    border-radius: 3px;
}

.cb-card__cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(0, 120, 212, 0.7);
    margin-top: auto;
    transition: color 0.2s ease;
}

.cb-card:hover .cb-card__cta {
    color: #60b4ff;
}

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

@media (max-width: 639px) {
    .cb-grid {
        grid-template-columns: 1fr;
    }
}

/* ── 5. Security ────────────────────────────────────────────────────── */
.lp-security {
    background: rgba(0, 0, 0, 0.15);
}

.lp-security-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.lp-security-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(0, 120, 212, 0.12);
    border: 1px solid rgba(0, 120, 212, 0.25);
    color: #0078D4;
    margin: 0 auto 28px;
    box-shadow: 0 0 40px rgba(0, 120, 212, 0.2);
}

.lp-security-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
}

.lp-security-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    margin: 0 0 36px;
}

.lp-security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.lp-security-badge {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 7px 16px;
    border-radius: 100px;
}

/* ── 6. FAQ ─────────────────────────────────────────────────────────── */
.lp-accordion {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.lp-faq-item {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease;
}

.lp-faq-item[open] {
    border-color: rgba(0, 120, 212, 0.3);
    background: rgba(0, 120, 212, 0.04);
}

.lp-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color 0.2s ease;
}

.lp-faq-question::-webkit-details-marker { display: none; }

.lp-faq-item[open] .lp-faq-question {
    color: #ffffff;
}

.lp-faq-chevron {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.lp-faq-item[open] .lp-faq-chevron {
    transform: rotate(180deg);
    color: #0078D4;
}

.lp-faq-answer {
    padding: 0 24px 22px;
}

.lp-faq-answer p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    margin: 0;
}

.lp-faq-answer code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85em;
    color: #79c0ff;
    background: rgba(121, 192, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.lp-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 0 28px;
}

.lp-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.lp-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.lp-footer-brand-link {
    display: inline-flex;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.lp-footer-brand-link:hover {
    opacity: 0.9;
}

.lp-footer-logo {
    display: block;
    height: 28px;
    width: auto;
}

.lp-footer-toolkit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.lp-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
}

.lp-footer-nav a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lp-footer-nav a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.lp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.lp-footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

.lp-footer-bottom a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lp-footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Landing responsive ─────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .lp-section {
        padding: 72px 0;
    }

    .lp-steps {
        grid-template-columns: 1fr;
    }

    .lp-step__connector {
        width: 1px;
        height: 32px;
        margin: 0 0 0 60px;
        background: linear-gradient(180deg, rgba(0, 120, 212, 0.5), rgba(0, 120, 212, 0.1));
    }
}

@media (max-width: 767px) {
    .lp-section {
        padding: 56px 0;
    }

    .lp-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lp-ba-grid {
        grid-template-columns: 1fr;
    }

    .lp-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .lp-pricing-card {
        padding: 36px 28px 32px;
    }

    .lp-pricing-cta-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .lp-pro-lifetime-badge {
        align-self: flex-end;
        margin-top: -4px;
    }

    .lp-footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .lp-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-user-block {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .header-user-email {
        font-size: 0.7rem;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
