/* 2DSM.com - Common Styles for Landing Pages */
/* Shared styles for mainpage.php and pro_nail.php */

/* CSS Variables */
:root {
    --ink: #111827;
    --muted: #5b6474;
    --primary: #ff6b35;
    --secondary: #0ea5a4;
    --bg: #f7f3ee;
    --card: #ffffff;
    --border: #e5e1da;
    --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

/* Reset & Base */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

a { 
    color: inherit; 
    text-decoration: none; 
}

button { 
    font-family: inherit; 
}

img { 
    max-width: 100%; 
    display: block; 
}

/* Container */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Typography */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    color: var(--secondary);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #ff6b35, #ff8f59);
    color: #fff;
    box-shadow: 0 12px 25px rgba(255, 107, 53, 0.25);
}

.btn.primary:hover { 
    transform: translateY(-2px); 
}

.btn.ghost {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn.light {
    background: #fff;
    color: var(--primary);
    border: 1px solid rgba(255,107,53,0.2);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 243, 238, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 225, 218, 0.7);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.brand {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    height: 36px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.brand-tagline {
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--muted);
    flex-wrap: wrap;
}

.nav-links a { 
    padding: 6px 10px; 
    border-radius: 999px; 
}

.nav-links a:hover { 
    background: rgba(255, 107, 53, 0.12); 
    color: var(--primary); 
}

/* Section */
.section { 
    padding: 70px 0; 
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-head h2 { 
    font-size: 30px; 
}

.section-head p { 
    color: var(--muted); 
    font-size: 14px; 
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.modal.active { 
    display: flex; 
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
}

.modal-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    width: min(92vw, 560px);
    padding: 26px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
    z-index: 1;
    max-height: 88vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: rgba(15, 23, 42, 0.08);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.modal-header h3 { 
    font-size: 20px; 
    margin-bottom: 6px; 
}

.modal-header p { 
    font-size: 13px; 
    color: var(--muted); 
}

/* Form */
.form-grid { 
    display: grid; 
    gap: 14px; 
    margin-top: 16px; 
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.input-row { 
    display: grid; 
    grid-template-columns: 1fr auto; 
    gap: 10px; 
}

.btn-code {
    padding: 10px 16px;
    border-radius: 10px;
    background: #0ea5a4;
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-code:disabled { 
    opacity: 0.6; 
    cursor: not-allowed; 
}

.status-message { 
    font-size: 12px; 
    color: var(--muted); 
    margin-top: 4px; 
}

.status-message.success { 
    color: #16a34a; 
}

.status-message.error { 
    color: #dc2626; 
}

.selected-plan {
    background: #f9fafb;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #ebeef2;
    display: grid;
    gap: 6px;
}

.selected-plan .label { 
    font-size: 12px; 
    color: var(--muted); 
}

.selected-plan .value { 
    font-size: 16px; 
    font-weight: 700; 
}

.selected-plan .meta { 
    font-size: 12px; 
    color: var(--muted); 
}

.change-plan { 
    font-size: 12px; 
    color: var(--primary); 
    font-weight: 600; 
}

.billing-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
}

.billing-option {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    display: grid;
    gap: 4px;
}

.billing-option.selected { 
    border-color: var(--primary); 
    background: rgba(255, 107, 53, 0.08); 
}

.billing-option.disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
}

.billing-option input { 
    display: none; 
}

.form-actions { 
    display: grid; 
    gap: 10px; 
}

.form-alert {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.form-alert.error { 
    background: #fee2e2; 
    color: #991b1b; 
}

.form-alert.success { 
    background: #dcfce7; 
    color: #166534; 
}

/* Animations */
@keyframes fadeUp {
    from { 
        opacity: 0; 
        transform: translateY(18px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Responsive */
@media (max-width: 980px) {
    .section-head { 
        flex-direction: column; 
        align-items: flex-start; 
    }
}

@media (max-width: 600px) {
    .nav { 
        flex-direction: column; 
        gap: 10px; 
    }
    
    .billing-grid { 
        grid-template-columns: 1fr; 
    }
}

