/* medicalportal.site — landing + signup styles. Zero JS, self-contained. */

:root {
    --mp-primary: #2c7be5;
    --mp-primary-dark: #1c5db1;
    --mp-accent: #17c3b2;
    --mp-ink: #1a2b45;
    --mp-ink-soft: #52627a;
    --mp-muted: #8a97ac;
    --mp-bg: #f7f9fc;
    --mp-card: #ffffff;
    --mp-border: #e0e7ef;
    --mp-danger: #dc3545;
    --mp-shadow: 0 6px 20px rgba(20, 45, 90, 0.06);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--mp-ink);
    background: var(--mp-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ─────────────────────────────────────────── */
.nav {
    background: #fff;
    border-bottom: 1px solid var(--mp-border);
    position: sticky; top: 0; z-index: 100;
}
.nav-inner {
    max-width: 1140px; margin: 0 auto; padding: 14px 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.brand {
    font-weight: 700; font-size: 20px; letter-spacing: -0.5px;
    color: var(--mp-ink);
}
.brand-accent { color: var(--mp-primary); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--mp-ink-soft); font-weight: 500; }
.nav-links a.btn-primary { color: #fff; }

/* ── Buttons ─────────────────────────────────────── */
.btn-primary, .btn-ghost {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    text-align: center;
}
.btn-primary {
    background: var(--mp-primary); color: #fff !important;
    box-shadow: 0 4px 12px rgba(44, 123, 229, 0.25);
}
.btn-primary:hover { background: var(--mp-primary-dark); transform: translateY(-1px); }
.btn-ghost {
    background: transparent; color: var(--mp-primary) !important;
    border: 1.5px solid var(--mp-primary);
}
.btn-ghost:hover { background: rgba(44, 123, 229, 0.06); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ── Hero ────────────────────────────────────────── */
.hero {
    padding: 80px 24px 100px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
    border-bottom: 1px solid var(--mp-border);
}
.hero-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.hero h1 {
    font-size: 52px; line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 0 0 20px;
    color: var(--mp-ink);
}
.hero-sub {
    font-size: 20px;
    color: var(--mp-ink-soft);
    max-width: 700px; margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-fine {
    margin-top: 24px;
    color: var(--mp-muted);
    font-size: 14px;
}

/* ── Sections ────────────────────────────────────── */
.section-inner {
    max-width: 1140px; margin: 0 auto; padding: 80px 24px;
}
.features h2, .pricing h2 {
    font-size: 34px; text-align: center;
    letter-spacing: -0.5px; margin: 0 0 60px;
}
.features {
    background: #fff; border-bottom: 1px solid var(--mp-border);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.feature {
    background: var(--mp-bg);
    border: 1px solid var(--mp-border);
    padding: 24px;
    border-radius: 12px;
}
.feature h3 {
    margin: 0 0 8px;
    color: var(--mp-primary);
    font-size: 17px;
}
.feature p {
    margin: 0;
    color: var(--mp-ink-soft);
    font-size: 14.5px;
    line-height: 1.55;
}

/* ── Pricing ─────────────────────────────────────── */
.pricing { background: #fff; }
.pricing-sub {
    text-align: center;
    color: var(--mp-ink-soft);
    margin: -40px 0 40px;
}
.price-card {
    max-width: 440px; margin: 0 auto;
    background: #fff;
    border: 2px solid var(--mp-primary);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--mp-shadow);
}
.price-tag {
    font-size: 56px; font-weight: 700;
    color: var(--mp-ink); letter-spacing: -2px;
    margin-bottom: 24px;
}
.price-suf { font-size: 20px; color: var(--mp-muted); font-weight: 500; }
.price-card ul {
    list-style: none; padding: 0; margin: 0 0 32px; text-align: left;
}
.price-card li {
    padding: 10px 0; border-bottom: 1px solid var(--mp-border);
    color: var(--mp-ink-soft);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before { content: "✓ "; color: var(--mp-accent); font-weight: 700; margin-right: 6px; }
.muted { color: var(--mp-muted); font-size: 13px; }

/* ── Footer ─────────────────────────────────────── */
.foot {
    background: #fff;
    border-top: 1px solid var(--mp-border);
    padding: 30px 24px;
    text-align: center;
    color: var(--mp-muted);
    font-size: 14px;
}

/* ── Signup Form ─────────────────────────────────── */
.form-section, .thanks-section {
    padding: 60px 24px;
    min-height: calc(100vh - 60px);
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
}
.form-inner, .thanks-inner {
    max-width: 640px; margin: 0 auto;
    background: #fff; border-radius: 12px;
    padding: 44px 40px;
    box-shadow: var(--mp-shadow);
    border: 1px solid var(--mp-border);
}
.form-inner h1, .thanks-inner h1 {
    font-size: 28px; margin: 0 0 8px;
    color: var(--mp-ink);
    letter-spacing: -0.5px;
}
.form-sub { color: var(--mp-ink-soft); margin: 0 0 28px; }
.signup-form label {
    display: block; margin-bottom: 18px;
    font-weight: 600; font-size: 14px;
    color: var(--mp-ink);
}
.signup-form input, .signup-form textarea {
    display: block; width: 100%; margin-top: 6px;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--mp-ink);
    background: #fbfcfe;
    border: 1.5px solid var(--mp-border);
    border-radius: 8px;
    transition: border-color 0.15s, background 0.15s;
}
.signup-form input:focus, .signup-form textarea:focus {
    outline: none;
    border-color: var(--mp-primary);
    background: #fff;
}
.signup-form .hint { display: block; margin-top: 4px; color: var(--mp-muted); font-size: 12.5px; font-weight: 400; }
.signup-form .opt { color: var(--mp-muted); font-weight: 400; }
.signup-form .fine { color: var(--mp-muted); font-size: 13px; margin: 12px 0 0; }
.subdomain-row {
    display: flex; align-items: stretch; margin-top: 6px;
    border: 1.5px solid var(--mp-border);
    border-radius: 8px;
    background: #fbfcfe;
    overflow: hidden;
    transition: border-color 0.15s, background 0.15s;
}
.subdomain-row:focus-within {
    border-color: var(--mp-primary);
    background: #fff;
}
.subdomain-row input {
    flex: 1; border: none; background: transparent;
    margin: 0; border-radius: 0;
}
.subdomain-row input:focus { background: transparent; }
.subdomain-suf {
    display: flex; align-items: center;
    padding: 0 14px;
    background: #eff3f9;
    color: var(--mp-ink-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    border-left: 1px solid var(--mp-border);
}
.two-col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.two-col label { margin-bottom: 0; }
.signup-form button {
    display: block; width: 100%;
    margin-top: 8px;
}
.alert {
    padding: 12px 16px; border-radius: 8px;
    margin-bottom: 22px;
    font-size: 14px;
}
.alert-error {
    background: #fdecea; color: var(--mp-danger);
    border: 1px solid #f5c2c7;
}

/* ── Thanks page ─────────────────────────────────── */
.thanks-inner { text-align: center; }
.thanks-icon {
    display: inline-flex;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--mp-accent);
    color: #fff;
    font-size: 34px; font-weight: 700;
    align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.thanks-inner p { color: var(--mp-ink-soft); margin: 0 0 14px; }
.thanks-fine { font-size: 14px; color: var(--mp-muted); margin: 18px 0 26px; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
    .hero { padding: 50px 20px 60px; }
    .hero h1 { font-size: 34px; }
    .hero-sub { font-size: 16px; }
    .section-inner { padding: 50px 20px; }
    .features h2, .pricing h2 { font-size: 26px; margin-bottom: 40px; }
    .form-inner, .thanks-inner { padding: 30px 22px; }
    .two-col { grid-template-columns: 1fr; }
    .nav-links a:not(.btn-primary) { display: none; }
    .price-tag { font-size: 44px; }
}
