@import url('./variables.css');

/* ===== Reset & Base ===== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-light);
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

::selection {
    background: var(--accent-light);
    color: var(--primary);
}

/* ===== Typography ===== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.25rem; letter-spacing: -0.025em; }
h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 0.75em; }
p:last-child { margin-bottom: 0; }

.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-small { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }
.text-mono { font-family: var(--font-mono); font-size: 0.9em; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ===== Layout ===== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-xs {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.page {
    padding-top: var(--nav-height);
    padding-bottom: var(--space-2xl);
    min-height: 100vh;
}

.page-padded {
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-md) var(--space-2xl);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

/* ===== Cards ===== */

.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: var(--space-lg);
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-interactive:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-flush {
    padding: 0;
}

.card-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.card-body {
    padding: var(--space-lg);
}

.card-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
    background: var(--bg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ===== Buttons ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.4;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: #2563EB;
    border-color: #2563EB;
    color: #FFFFFF;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--card);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--bg);
    border-color: var(--text-secondary);
}

.btn-danger {
    background: var(--danger);
    color: #FFFFFF;
    border-color: var(--danger);
}

.btn-danger:hover {
    background: #DC2626;
    border-color: #DC2626;
    color: #FFFFFF;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
}

.btn-ghost:hover {
    background: var(--bg);
    color: var(--text);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8125rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius);
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}

/* ===== Forms ===== */

.input,
.textarea,
.select {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.input::placeholder,
.textarea::placeholder {
    color: var(--text-tertiary);
}

.textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.form-error {
    font-size: 0.8125rem;
    color: var(--danger);
    margin-top: 4px;
}

.input-error {
    border-color: var(--danger);
}

.input-error:focus {
    box-shadow: 0 0 0 3px var(--danger-light);
}

/* ===== Navigation — Top Nav ===== */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--primary);
    color: #FFFFFF;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg);
    box-shadow: var(--shadow-md);
}

.top-nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.top-nav-brand:hover {
    color: #FFFFFF;
    opacity: 0.9;
}

.top-nav-brand svg {
    width: 28px;
    height: 28px;
}

.top-nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-left: auto;
}

.top-nav-link {
    padding: 8px 16px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
}

.top-nav-link:hover {
    color: #FFFFFF;
    background: rgba(255,255,255,0.1);
}

.top-nav-link.active {
    color: #FFFFFF;
    background: rgba(255,255,255,0.15);
}

.top-nav-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: var(--space-md);
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}

.top-nav-user:hover {
    background: rgba(255,255,255,0.1);
}

.top-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFFFFF;
}

/* ===== Navigation — Bottom Nav (Mobile) ===== */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--card);
    border-top: 1px solid var(--border);
    z-index: 100;
    padding: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.bottom-nav-items {
    display: flex;
    height: 100%;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.6875rem;
    font-weight: 500;
    transition: color var(--transition);
    padding: 8px 0;
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--accent);
}

/* ===== Badges ===== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.badge-active {
    background: var(--success-light);
    color: #047857;
    border-color: transparent;
}

.badge-warning {
    background: var(--warning-light);
    color: #92400E;
    border-color: transparent;
}

.badge-danger {
    background: var(--danger-light);
    color: #B91C1C;
    border-color: transparent;
}

.badge-pending {
    background: var(--bg);
    color: var(--text-secondary);
    border-color: var(--border);
}

.badge-accent {
    background: var(--accent-light);
    color: #1D4ED8;
    border-color: transparent;
}

.badge-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.6875rem;
    border-radius: var(--radius-full);
    background: var(--danger);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== Progress Bar ===== */

.progress {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    min-width: 0;
}

.progress-bar-success {
    background: var(--success);
}

.progress-bar-warning {
    background: var(--warning);
}

.progress-bar-danger {
    background: var(--danger);
}

.progress-sm {
    height: 4px;
}

.progress-lg {
    height: 12px;
}

/* ===== Activity Feed ===== */

.feed-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    background: var(--accent-light);
    color: var(--accent);
}

.feed-icon-success {
    background: var(--success-light);
    color: var(--success);
}

.feed-icon-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.feed-icon-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.feed-content {
    flex: 1;
    min-width: 0;
}

.feed-text {
    font-size: 0.9375rem;
    line-height: 1.5;
}

.feed-timestamp {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ===== Checklist Items ===== */

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    transition: border-color var(--transition), box-shadow var(--transition);
    margin-bottom: var(--space-sm);
}

.checklist-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-light);
}

.checklist-item.done {
    opacity: 0.6;
    background: var(--bg);
}

.checklist-item.done .checklist-title {
    text-decoration: line-through;
}

.checklist-checkbox {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.checklist-checkbox:hover {
    border-color: var(--accent);
}

.checklist-checkbox.checked {
    background: var(--success);
    border-color: var(--success);
    color: #FFFFFF;
}

.checklist-body {
    flex: 1;
    min-width: 0;
}

.checklist-title {
    font-weight: 500;
    font-size: 0.9375rem;
}

.checklist-party {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.checklist-party .text-mono {
    font-size: 0.8em;
}

.checklist-meta {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.checklist-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ===== Modal ===== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition-slow);
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--bg);
    color: var(--text);
}

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
}

/* ===== Toast Notifications ===== */

.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + var(--space-md));
    right: var(--space-md);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px var(--space-lg);
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--text-secondary);
    animation: toast-in 0.3s ease;
    min-width: 300px;
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.toast-content {
    flex: 1;
    font-size: 0.9375rem;
}

.toast-dismiss {
    flex-shrink: 0;
    color: var(--text-tertiary);
    padding: 4px;
    border-radius: var(--radius);
}

.toast-dismiss:hover {
    color: var(--text);
    background: var(--bg);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== FAB (Floating Action Button) ===== */

.fab {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--space-md));
    right: var(--space-md);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 90;
    transition: all var(--transition);
    font-size: 1.5rem;
}

.fab:hover {
    background: #2563EB;
    transform: scale(1.08);
    box-shadow: var(--shadow-xl);
}

.fab svg {
    width: 24px;
    height: 24px;
}

/* ===== Empty States ===== */

.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.4;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.empty-state-text {
    color: var(--text-secondary);
    max-width: 360px;
    margin: 0 auto var(--space-lg);
    font-size: 0.9375rem;
}

/* ===== Loading ===== */

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-sm {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

.spinner-lg {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
    background-size: 400% 100%;
    border-radius: var(--radius);
    animation: shimmer 1.5s ease infinite;
}

.skeleton-line + .skeleton-line {
    margin-top: var(--space-sm);
}

.skeleton-line-short {
    width: 60%;
}

.skeleton-line-xs {
    width: 30%;
    height: 12px;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ===== Tables (Admin) ===== */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    cursor: default;
    user-select: none;
}

.data-table th.sortable {
    cursor: pointer;
}

.data-table th.sortable:hover {
    color: var(--text);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background var(--transition);
}

.data-table tbody tr:hover {
    background: var(--bg);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== Landing-Specific Styles ===== */

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg);
    transition: background var(--transition-slow), box-shadow var(--transition-slow);
}

.landing-nav.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.landing-nav .top-nav-brand {
    color: var(--primary);
}

.landing-nav .top-nav-links {
    margin-left: auto;
}

.landing-nav .top-nav-link {
    color: var(--text-secondary);
}

.landing-nav .top-nav-link:hover {
    color: var(--text);
    background: var(--bg);
}

/* ===== Section Spacing ===== */

.section {
    padding: var(--space-3xl) 0;
}

.section-lg {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

.section-alt {
    background: var(--card);
}

/* ===== Hero ===== */

.hero {
    padding: calc(var(--nav-height) + 60px) 0 80px;
    text-align: center;
    background: linear-gradient(170deg, var(--primary) 0%, #1E3A5F 50%, var(--primary-light) 100%);
    color: #FFFFFF;
}

.hero h1 {
    color: #FFFFFF;
    font-size: 2.5rem;
    max-width: 720px;
    margin: 0 auto var(--space-lg);
}

.hero-subtitle {
    font-size: 1.1875rem;
    opacity: 0.85;
    max-width: 560px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary {
    padding: 14px 32px;
    font-size: 1.0625rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.hero .btn-secondary {
    background: rgba(255,255,255,0.12);
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.25);
}

.hero .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    color: #FFFFFF;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

/* ===== Pricing Cards ===== */

.pricing-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: border-color var(--transition), box-shadow var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.pricing-target {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.pricing-amount {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.pricing-minutes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.pricing-features {
    text-align: left;
    flex: 1;
    margin-bottom: var(--space-lg);
}

.pricing-features li {
    padding: 6px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== FAQ Accordion ===== */

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: var(--space-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform var(--transition-slow);
    color: var(--text-secondary);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: var(--space-lg);
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===== Footer ===== */

.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: var(--space-2xl) 0;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-size: 0.9375rem;
    opacity: 0.7;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.footer-links a {
    display: block;
    padding: 4px 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8125rem;
    opacity: 0.5;
}

/* ===== Legal Pages ===== */

.legal-page {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-3xl);
}

.legal-page h1 {
    margin-bottom: var(--space-sm);
}

.legal-page .last-updated {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--space-2xl);
}

.legal-page h2 {
    font-size: 1.375rem;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.legal-page h3 {
    font-size: 1.125rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.9375rem;
}

.legal-page ul,
.legal-page ol {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }

.legal-page li {
    margin-bottom: var(--space-sm);
}

/* ===== Steps ===== */

.steps {
    counter-reset: step;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.step h3 {
    margin-bottom: var(--space-sm);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ===== Social Proof ===== */

.social-proof {
    text-align: center;
    padding: var(--space-2xl) 0;
    background: var(--accent-light);
}

.social-proof-text {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== Comparison Table ===== */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table thead th {
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.comparison-table thead th:first-child {
    border-radius: var(--radius) 0 0 0;
}

.comparison-table thead th:last-child {
    border-radius: 0 var(--radius) 0 0;
}

.comparison-table tbody tr:hover {
    background: var(--bg);
}

.comparison-table .check {
    color: var(--success);
    font-weight: 700;
    font-size: 1.125rem;
}

.comparison-table .dash {
    color: var(--text-tertiary);
}

/* ===== Utility ===== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ===== Responsive ===== */

@media (min-width: 768px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }

    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }

    .hero h1 { font-size: 3rem; }
    .hero-subtitle { font-size: 1.25rem; }

    .footer-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .footer-grid > div:first-child {
        flex: 1 1 100%;
    }

    .footer-grid > div:not(:first-child) {
        flex: 1;
    }

    .fab {
        bottom: var(--space-xl);
    }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }

    .hero {
        padding: calc(var(--nav-height) + 100px) 0 120px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .section-lg { padding: 100px 0; }

    .footer-grid > div:first-child {
        flex: 2 1 auto;
    }
}

@media (max-width: 767px) {
    .bottom-nav {
        display: block;
    }

    .page {
        padding-bottom: calc(var(--bottom-nav-height) + var(--space-lg));
    }

    .top-nav-links {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }

    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
        max-width: none;
    }

    .toast {
        min-width: 0;
    }

    .modal {
        max-width: none;
        margin: var(--space-md);
        max-height: calc(100vh - var(--space-xl));
    }

    .hero {
        padding: calc(var(--nav-height) + 40px) 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}
