/* ── SecuMed — Professional Medical Messaging Styles ── */

:root {
    --primary: #0f4c75;
    --primary-dark: #0b3954;
    --primary-light: #e8f1f8;
    --accent: #1b9e77;
    --accent-light: #e0f5ee;
    --danger: #c0392b;
    --text: #1c2a3a;
    --text-light: #5a6b7e;
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --border: #dce3eb;
    --radius: 10px;
    --shadow: 0 2px 16px rgba(15,76,117,.07);
    --shadow-lg: 0 8px 32px rgba(15,76,117,.10);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Navigation ── */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar .logo {
    font-size: 1.4rem; font-weight: 800; color: var(--primary);
    text-decoration: none; letter-spacing: -.02em;
}
.navbar .logo span { color: var(--accent); }
.navbar nav a {
    margin-left: 32px; text-decoration: none; color: var(--text-light);
    font-weight: 500; font-size: .9rem; transition: color .2s;
}
.navbar nav a:hover { color: var(--primary); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 8px; font-weight: 600;
    font-size: .95rem; cursor: pointer; border: none; transition: all .2s;
    text-decoration: none; line-height: 1.4;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow); }
.btn-secondary { background: var(--bg); color: var(--primary); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); background: var(--primary-light); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #158a68; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Hero ── */
.hero {
    padding: 80px 0 64px;
    background: linear-gradient(160deg, var(--primary-light) 0%, var(--bg) 50%, var(--accent-light) 100%);
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; font-weight: 800; margin-bottom: 20px; letter-spacing: -.03em; }
.hero h1 .highlight { color: var(--primary); }
.hero p.subtitle { font-size: 1.1rem; color: var(--text-light); margin-bottom: 32px; max-width: 480px; line-height: 1.7; }

/* ── Domain Checker ── */
.domain-checker {
    background: var(--bg); border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.domain-checker h3 { font-size: .9rem; margin-bottom: 12px; color: var(--text-light); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.domain-input-group {
    display: flex; gap: 0; border: 2px solid var(--border); border-radius: 8px; overflow: hidden;
    transition: border-color .2s;
}
.domain-input-group:focus-within { border-color: var(--primary); }
.domain-input-group input {
    flex: 1; padding: 14px 16px; border: none; font-size: 1rem; outline: none;
    font-family: var(--font);
}
.domain-input-group .domain-suffix {
    padding: 14px 16px; background: var(--bg-alt); color: var(--text-light);
    font-weight: 500; white-space: nowrap; border-left: 1px solid var(--border);
    font-size: .95rem;
}
.domain-input-group button {
    padding: 14px 20px; background: var(--primary); color: #fff; border: none;
    cursor: pointer; font-weight: 600; font-size: .9rem; transition: background .2s;
}
.domain-input-group button:hover { background: var(--primary-dark); }
.domain-result {
    margin-top: 12px; padding: 10px 14px; border-radius: 6px;
    font-size: .9rem; font-weight: 500; display: none;
}
.domain-result.available { display: block; background: var(--accent-light); color: #158a68; }
.domain-result.taken { display: block; background: #fef2f2; color: var(--danger); }

/* ── Trust Badges ── */
.badges {
    display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px;
}
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 6px; font-size: .8rem; font-weight: 600;
    letter-spacing: .02em;
}
.badge-fr { background: var(--primary-light); color: var(--primary-dark); }
.badge-ephemeral { background: var(--accent-light); color: #158a68; }
.badge-rgpd { background: #fef8ee; color: #8a6914; border: 1px solid #f3e8c8; }

/* ── Hero Visual ── */
.hero-visual {
    display: flex; justify-content: center; align-items: center;
}
.hero-visual .mockup {
    background: var(--bg); border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--border);
    max-width: 380px; width: 100%;
}
.mockup .inbox-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px;
}
.mockup .inbox-header h4 { color: var(--primary); font-size: .9rem; font-weight: 700; }
.mockup .inbox-header .timer { color: var(--danger); font-size: .75rem; font-weight: 600; }
.mockup .email-item {
    padding: 11px 0; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.mockup .email-item:last-child { border: none; }
.mockup .email-sender { font-weight: 600; font-size: .88rem; }
.mockup .email-subject { color: var(--text-light); font-size: .82rem; }
.mockup .email-time {
    font-size: .72rem; color: var(--danger); white-space: nowrap;
    background: #fef2f2; padding: 3px 8px; border-radius: 4px; font-weight: 600;
}

/* ── Sections ── */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* ── How It Works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
    background: var(--bg); border-radius: var(--radius); padding: 32px 24px;
    border: 1px solid var(--border); text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.step-number {
    width: 44px; height: 44px; border-radius: 50%; background: var(--primary);
    color: #fff; font-weight: 800; font-size: 1.1rem;
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-light); font-size: .9rem; line-height: 1.6; }
.step .step-time { color: var(--accent); font-weight: 700; font-size: .82rem; margin-top: 10px; }

/* ── Pricing ── */
.pricing-card {
    max-width: 420px; margin: 0 auto;
    background: var(--bg); border-radius: var(--radius); padding: 40px;
    border: 2px solid var(--primary); box-shadow: var(--shadow-lg); text-align: center;
}
.pricing-card .price { font-size: 3.2rem; font-weight: 800; color: var(--primary); letter-spacing: -.03em; }
.pricing-card .price span { font-size: 1.1rem; color: var(--text-light); font-weight: 500; }
.pricing-card .price-desc { color: var(--text-light); margin: 8px 0 24px; font-size: .9rem; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li {
    padding: 10px 0; border-bottom: 1px solid var(--border);
    font-size: .9rem; display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before { content: ""; display: inline-block; width: 18px; height: 18px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.pricing-features li::after { content: none; }

/* ── Pricing checkmark icon via pseudo-element ── */
.pricing-features li { position: relative; padding-left: 0; }
.pricing-features li::before {
    content: "";
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent-light); flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ── Checkout Section ── */
#checkout {
    max-width: 520px; margin: 0 auto; padding: 40px;
    background: var(--bg); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
#checkout h2 { margin-bottom: 24px; font-size: 1.4rem; letter-spacing: -.02em; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
    border-radius: 8px; font-size: .95rem; font-family: var(--font);
    transition: border-color .2s, box-shadow .2s; outline: none;
    background: var(--bg);
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,76,117,.08); }
.form-group .hint { font-size: .78rem; color: var(--text-light); margin-top: 4px; }
.checkout-summary {
    background: var(--bg-alt); border-radius: 8px; padding: 16px;
    margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center;
    border: 1px solid var(--border);
}
.checkout-summary .total { font-size: 1.2rem; font-weight: 800; color: var(--primary); }

/* ── Success Page ── */
.success-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); }
.success-card {
    max-width: 540px; width: 100%; background: var(--bg); border-radius: var(--radius);
    padding: 48px; box-shadow: var(--shadow-lg); text-align: center;
}
.success-icon-circle {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--accent-light); color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.success-card h1 { font-size: 1.7rem; margin-bottom: 12px; color: var(--accent); letter-spacing: -.02em; }
.success-card .subtitle { color: var(--text-light); margin-bottom: 32px; font-size: .95rem; }

.credentials-box {
    background: var(--bg-alt); border-radius: 8px; padding: 24px;
    text-align: left; margin-bottom: 24px; border: 1px solid var(--border);
}
.credentials-box h3 { font-size: .9rem; margin-bottom: 16px; color: var(--text); font-weight: 700; }
.credential-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.credential-row:last-child { border: none; }
.credential-row .label { font-size: .82rem; color: var(--text-light); }
.credential-row .value { font-weight: 600; font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace; font-size: .9rem; }

.ephemeral-reminder {
    background: #fef8ee; border-radius: 8px; padding: 16px; margin-bottom: 24px;
    font-size: .88rem; color: #7a5a15; border: 1px solid #f3e8c8; line-height: 1.6;
}
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Dashboard ── */
.dashboard { padding: 40px 0; min-height: 100vh; background: var(--bg-alt); }
.dashboard-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px;
}
.dashboard-header h1 { font-size: 1.4rem; letter-spacing: -.02em; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.dash-card {
    background: var(--bg); border-radius: var(--radius); padding: 24px;
    border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
.dash-card h3 { font-size: .9rem; color: var(--text-light); margin-bottom: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.dash-card .stat { font-size: 2rem; font-weight: 800; color: var(--primary); }

.dash-form { max-width: 400px; }
.dash-form .form-group { margin-bottom: 16px; }

/* ── Footer ── */
.footer {
    padding: 32px 0; border-top: 1px solid var(--border); background: var(--bg);
}
.footer .container {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
.footer .legal { font-size: .82rem; color: var(--text-light); }
.footer .footer-badges { display: flex; gap: 10px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2rem; }
    .hero p.subtitle { margin: 0 auto 24px; }
    .badges { justify-content: center; }
    .steps { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .navbar nav { display: none; }
    .success-actions { flex-direction: column; }
    #checkout { padding: 28px 20px; }
    .pricing-card { padding: 28px 20px; }
}

/* ── Spinner ── */
.spinner {
    display: inline-block; width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff;
    border-radius: 50%; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Alert ── */
.alert {
    padding: 12px 16px; border-radius: 8px; font-size: .88rem; margin-bottom: 16px;
}
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #f5c6c2; }
.alert-success { background: var(--accent-light); color: #158a68; border: 1px solid #b0e0d0; }
