/* EZBookly — crisp contemporary marketing homepage (blue accent) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #fafafa;
    --bg-subtle: #f4f4f5;
    --surface: #ffffff;
    --text: #09090b;
    --muted: #52525b;
    --subtle: #a1a1aa;
    --border: #e4e4e7;
    --border-strong: #d4d4d8;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-deep: #1e40af;
    --primary-soft: #eff6ff;
    --primary-muted: #dbeafe;
    --ink-soft: #f4f4f5;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 20px 40px -28px rgba(9, 9, 11, 0.12);
    --shadow-sm: 0 4px 16px -8px rgba(9, 9, 11, 0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: Inter, 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.07), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

a { color: inherit; }

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
}

.logo {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo span { color: var(--primary); }

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

.nav a {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.nav a:hover {
    color: var(--text);
    background: var(--ink-soft);
}

.nav a.nav-register {
    margin-left: 4px;
    padding: 8px 16px;
    font-size: 0.875rem;
    color: #fff;
    background: var(--primary);
    box-shadow: none;
}

.nav a.nav-register:hover {
    color: #fff;
    background: var(--primary-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    color: #fff;
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    box-shadow: none;
}

.btn-secondary:hover {
    color: var(--primary);
    border-color: var(--primary-muted);
    background: var(--primary-soft);
}

/* Hero */
.hero {
    padding: 72px 0 88px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--muted);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2.35rem, 5vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
    margin-bottom: 22px;
    font-weight: 600;
}

.hero h1 em {
    font-style: normal;
    color: var(--primary);
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-pill {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
    padding: 0;
    border: none;
    background: none;
}

.hero-pill + .hero-pill::before {
    content: '·';
    margin-right: 10px;
    color: var(--subtle);
}

.hero-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.hero-card h2 {
    font-size: 0.9375rem;
    margin-bottom: 18px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.check-list {
    list-style: none;
    display: grid;
    gap: 13px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.5;
}

.check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
}

/* Sections */
section { padding: 80px 0; }

.section-alt {
    background: var(--bg-subtle);
    border-block: 1px solid var(--border);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.85rem, 3.4vw, 2.5rem);
    letter-spacing: -0.035em;
    margin-bottom: 14px;
    font-weight: 600;
}

.section-lead {
    color: var(--muted);
    font-size: 1.0625rem;
    line-height: 1.65;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: var(--ink-soft);
    color: var(--text);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 0.975rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.step:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px -6px rgba(37, 99, 235, 0.55);
}

.step:nth-child(2) .step-num { background: #3b82f6; }
.step:nth-child(3) .step-num { background: #1d4ed8; }
.step:nth-child(4) .step-num { background: #1e40af; }

.step h3 {
    font-size: 0.9375rem;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.step p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
}

/* Footer */
.site-footer {
    padding: 40px 0 52px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-inner p,
.footer-links {
    font-size: 0.875rem;
    color: var(--muted);
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

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

/* Mobile */
.menu-toggle {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text);
}

@media (max-width: 900px) {
    .hero-grid,
    .features,
    .steps {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .menu-toggle { display: block; }

    .nav {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(250, 250, 250, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 12px 20px 16px;
    }

    .nav.open { display: flex; }

    .nav a { width: 100%; text-align: center; }

    .nav a.nav-register {
        margin-left: 0;
        width: 100%;
    }

    .hero { padding-top: 44px; }

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

/* Register page */
.register-page {
    padding: 48px 0 72px;
}

.register-wrap {
    max-width: 440px;
}

.register-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    letter-spacing: -0.035em;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.register-lead {
    color: var(--muted);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.6;
}

.register-form .form-group {
    margin-bottom: 16px;
}

.register-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--muted);
}

.register-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--surface);
    font-family: inherit;
}

.register-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.register-submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
}

.register-back {
    text-align: center;
    margin-top: 20px;
}

.register-back a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert-success,
.alert-error {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
