/* ===== Variables ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-subtle: #eef2ff;
    --secondary: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #000000;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.06);
    --transition: 150ms cubic-bezier(.4,0,.2,1);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

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

/* ===== Navigation ===== */
.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,.92);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.navbar-brand:hover { color: var(--primary); }

.navbar-brand svg { width: 28px; height: 28px; }

.navbar-links {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
}

.navbar-links a:not(.btn) {
    font-size: .9rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: .5rem .875rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.navbar-links a:not(.btn):hover,
.navbar-links a:not(.btn).active {
    color: var(--primary);
    background: var(--primary-subtle);
}

/* Admin links in the top navbar */
.navbar-links a.nav-admin:not(.btn) {
    color: var(--warning);
    font-weight: 600;
}

.navbar-links a.nav-admin:not(.btn):hover,
.navbar-links a.nav-admin:not(.btn).active {
    color: var(--gray-900);
    background: color-mix(in srgb, var(--warning), white 82%);
}

/* ===== Layout ===== */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ===== Cards ===== */
.card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-header {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--gray-100);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .625rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border-color: var(--gray-300);
}
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-400); color: var(--gray-700); }

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover { background: #059669; color: white; }

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover { background: #dc2626; color: white; }

.btn-sm { padding: .375rem .875rem; font-size: .8125rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: .875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: .375rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: .625rem .875rem;
    font-size: .9rem;
    font-family: inherit;
    color: var(--gray-800);
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.form-control::placeholder { color: var(--gray-400); }

.form-hint {
    font-size: .8125rem;
    color: var(--gray-500);
    margin-top: .25rem;
}

/* ===== Auth Pages ===== */
.auth-container {
    max-width: 440px;
    margin: 3rem auto;
}

.auth-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: .375rem;
}

.auth-subtitle {
    font-size: .9rem;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .875rem;
    color: var(--gray-500);
}

.auth-footer a { font-weight: 500; }

/* ===== Alerts ===== */
.alert {
    padding: .875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ===== Dashboard ===== */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

.page-subtitle {
    font-size: .95rem;
    color: var(--gray-500);
    margin-top: .25rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.stat-label {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: .25rem;
}

.stat-extra {
    font-size: .8125rem;
    color: var(--gray-400);
    margin-top: .125rem;
}

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .625rem;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-success {
    background: #ecfdf5;
    color: #065f46;
}

.badge-error {
    background: #fef2f2;
    color: #991b1b;
}

.badge-warning {
    background: #fffbeb;
    color: #92400e;
}

.badge-danger {
    background: #fef2f2;
    color: #991b1b;
}

.badge-info {
    background: #eff6ff;
    color: #1e40af;
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-orange {
    background: #ffedd5;
    color: #9a3412;
}

/* ===== Tables ===== */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.table th {
    text-align: left;
    padding: .75rem 1rem;
    font-weight: 600;
    font-size: .8125rem;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.table tbody tr:last-child td { border-bottom: none; }

.table tbody tr:hover { background: var(--gray-50); }

/* ===== Subscription Comparison ===== */
.comparison-section {
    margin-top: 2rem;
}

.comparison-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.comparison-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.02em;
}

.comparison-header p {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-top: .5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.plan-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.plan-card.recommended {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: .25rem 1rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.plan-price {
    margin: 1rem 0;
}

.plan-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.03em;
}

.plan-price .period {
    font-size: .9rem;
    color: var(--gray-500);
}

.plan-price .original {
    font-size: .875rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-top: .25rem;
}

.plan-save {
    display: inline-block;
    background: #ecfdf5;
    color: #065f46;
    font-size: .75rem;
    font-weight: 700;
    padding: .2rem .5rem;
    border-radius: 4px;
    margin-top: .25rem;
}

.plan-features {
    list-style: none;
    margin: 1.5rem 0;
    flex: 1;
}

.plan-features li {
    padding: .375rem 0 .375rem 1.25rem;
    font-size: .9rem;
    color: var(--gray-600);
    position: relative;
}

.plan-features li small {
    display: block;
    width: 100%;
    white-space: nowrap;
    opacity: .7;
    font-size: .85em;
    line-height: 1.4;
}

.plan-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: .375rem;
    width: 1rem;
    text-align: center;
}

.plan-features li.basic::before {
    color: var(--gray-800);
}

.plan-features li.everything::before {
    color: var(--primary-dark);
}

.plan-features li.disabled {
    color: var(--gray-400);
}

.plan-features li.disabled::before {
    content: '—';
    color: var(--gray-300);
}

.plan-cta {
    margin-top: auto;
}

.trial-badge {
    display: block;
    text-align: center;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: .3rem .75rem;
    font-size: .8125rem;
    font-weight: 600;
}

.plan-cta .note {
    font-size: .8125rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: .75rem;
}

.current-plan-indicator {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .5rem 1rem;
    background: var(--primary-subtle);
    color: var(--primary-dark);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
    width: 100%;
    justify-content: center;
}

/* ===== Account Info ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.info-label {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.info-value {
    font-size: 1rem;
    color: var(--gray-800);
    font-weight: 500;
}

/* ===== Subscription Cards ===== */
.subscription-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subscription-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

.subscription-card:hover { box-shadow: var(--shadow-md); }

.sub-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sub-icon.android { background: #dcfce7; color: #16a34a; }
.sub-icon.ios { background: #e0e7ff; color: #4f46e5; }

.sub-details { flex: 1; min-width: 0; }

.sub-app-name {
    font-weight: 600;
    color: var(--gray-900);
}

.sub-plan {
    font-size: .875rem;
    color: var(--gray-500);
}

.sub-meta {
    text-align: right;
    flex-shrink: 0;
}

.sub-expiry {
    font-size: .875rem;
    color: var(--gray-500);
}

/* ===== Empty States ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: .4;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: .5rem;
}

.empty-state p {
    font-size: .9rem;
    color: var(--gray-500);
    max-width: 400px;
    margin: 0 auto .5rem;
}

/* ===== Footer ===== */
.site-footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    font-size: .8125rem;
    color: var(--gray-400);
}

.footer-links {
    margin-bottom: .5rem;
}

.footer-links a {
    color: var(--gray-500);
    font-weight: 500;
    transition: color var(--transition);
}

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

.footer-divider {
    margin: 0 .5rem;
    color: var(--gray-300);
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    background: linear-gradient(135deg, var(--primary-subtle) 0%, #f0f4ff 50%, #faf5ff 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
}

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

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .3rem .875rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.03em;
    line-height: 1.15;
}

.hero-title-sub {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0;
    margin-top: .375rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-top: 1rem;
    line-height: 1.7;
}

/* ===== Hero Buttons Container ===== */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2rem;
    max-width: 960px;
    margin: 2rem auto 0;
}

/* ===== Platform Groups ===== */
.platform-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.platform-group-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
}
.platform-group-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    row-gap: 0.5rem;
    flex-wrap: wrap;
}
/* Desktop group takes full width so it always starts on its own row */
.platform-group-desktop {
    flex-basis: 100%;
}

/* ===== Store Buttons ===== */
.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    padding: 0 1.5rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    text-decoration: none;
    transition: all var(--transition);
    min-width: 180px;
    height: 3.6rem;
    box-sizing: border-box;
}

.store-button svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.store-label {
    font-size: .7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.store-apple {
    background: var(--black);
    color: white;
}
.store-apple:hover {
    background: var(--gray-900);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.store-google {
    background: white;
    color: var(--gray-800);
    border: 1.5px solid var(--gray-300);
}
.store-google:hover {
    border-color: var(--gray-400);
    color: var(--gray-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.store-desktop {
    background: var(--gray-800);
    color: white;
}
.store-desktop:hover {
    background: var(--gray-700);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.store-msstore {
    background: #0078d4;
    color: white;
}
.store-msstore:hover {
    background: #106ebe;
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.store-snapstore {
    background: #e95420;
    color: white;
}
.store-snapstore:hover {
    background: #d4410e;
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.store-macappstore {
    background: var(--black);
    color: white;
}
.store-macappstore:hover {
    background: var(--gray-900);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.store-webapp {
    background: var(--primary);
    color: white;
}
.store-webapp:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== Split Download Button (Architecture Dropdown) ===== */
.download-group {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}
.download-group:has(.download-toggle) .download-main {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: 0;
}

/* Fixed widths for desktop platform buttons to prevent resizing when switching options */
#dg-windows .download-main {
    width: 220px;
}
#dg-macos .download-main {
    width: 215px;
}
#dg-linux .download-main {
    width: 180px;
}
.download-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    border: none;
    cursor: pointer;
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    border-left: 1px solid rgba(255,255,255,0.2);
    transition: background 0.15s ease;
    color: white;
    /* Inherit bg from adjacent button */
    background: var(--gray-800);
}
.download-group:has(.store-msstore) .download-toggle { background: #0078d4; }
.download-group:has(.store-macappstore) .download-toggle { background: var(--black); }
.download-group:has(.store-snapstore) .download-toggle { background: #e95420; }
.download-toggle:hover { filter: brightness(1.15); }

.download-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    margin-top: 4px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.15));
    overflow: hidden;
}
.download-dropdown.open { display: block; }

.download-option {
    display: block;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: background 0.1s;
    cursor: pointer;
    white-space: nowrap;
}
.download-option:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}
.download-option.active {
    font-weight: 600;
    color: var(--primary);
    background: var(--gray-50, #f8f9fa);
}

.download-arch-label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.75;
    margin-top: 1px;
    font-weight: 400;
}

/* ===== Features Section ===== */
.features-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 2rem;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.feature-card {
    flex: 1 1 240px;
    max-width: 340px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.feature-icon {
    font-size: 2rem;
    margin-bottom: .75rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .375rem;
}

.feature-card p {
    font-size: .875rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
    margin-bottom: 2rem;
}

.cta-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .5rem;
}

.cta-card > p {
    font-size: 1rem;
    color: var(--gray-500);
}

/* ===== Legal Pages ===== */
.legal-page {
    max-width: 780px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.legal-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.02em;
}

.legal-meta {
    font-size: .875rem;
    color: var(--gray-500);
    margin-top: .375rem;
}

.legal-content {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .75rem;
}

.legal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-top: 1rem;
    margin-bottom: .5rem;
}

.legal-section p {
    font-size: .925rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: .5rem;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: .5rem 0;
}

.legal-section ul li {
    position: relative;
    padding: .25rem 0 .25rem 1.5rem;
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.legal-section ul li::before {
    content: '•';
    position: absolute;
    left: .375rem;
    color: var(--primary);
    font-weight: 700;
}

.legal-contact {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-top: .75rem;
}

.legal-contact p {
    margin-bottom: .125rem;
    font-size: .9rem;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: .5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar-inner { flex-wrap: wrap; }
    .navbar-links { row-gap: .5rem; flex-wrap: wrap; width: 100%; margin-top: .5rem; }
    .plans-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .subscription-card { flex-direction: column; text-align: center; }
    .sub-meta { text-align: center; }
    .auth-card { padding: 1.75rem; }
    .page-title { font-size: 1.375rem; }
    .hero { padding: 2.5rem 1rem 2rem; }
    .hero-title { font-size: 2rem; }
    .hero-description { font-size: 1rem; }
    .store-buttons { flex-direction: column; align-items: center; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 1.25rem; }
    .platform-group-desktop { flex-basis: auto; }
    .platform-group-buttons { flex-direction: column; align-items: center; }
    .store-button { width: 100%; max-width: 260px; justify-content: center; }
    .download-group { width: 100%; max-width: 260px; justify-content: center; }
    .download-group .download-main { flex: 1; justify-content: center; }
    .features-grid { gap: .75rem; }
    .legal-content { padding: 1.5rem; }
    .legal-header h1 { font-size: 1.5rem; }
    .cta-card { padding: 1.75rem; }
}
