/* ============================================
   Call Back Clinic — Design Tokens
   Palette pulled directly from the product/app (not invented for the site):
   navy #081B4C, gold #E6991C, green #20773F, beige #F3EBDD
   ============================================ */

:root {
    --navy: #081B4C;
    --navy-dark: #050F2E;
    --gold: #E6991C;
    --gold-light: #FDF0DC;
    --green: #20773F;
    --green-light: #E7F5EC;
    --beige: #F3EBDD;
    --beige-deep: #EAE0C9;
    --white: #FFFFFF;
    --red: #B91C1C;
    --red-light: #FBEAEA;
    --ink: #1C1C1E;
    --ink-muted: #64607A;
    --ink-faint: #8A87A0;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 3px rgba(8,27,76,0.07);
    --shadow: 0 1px 2px rgba(8,27,76,0.06), 0 12px 28px rgba(8,27,76,0.08);
    --shadow-lg: 0 20px 60px rgba(8,27,76,0.16);
    --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--beige);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--navy);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 600;
}

.mono { font-family: var(--font-mono); }

.lead { font-size: 19px; color: var(--ink-muted); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
    box-shadow: 0 8px 20px rgba(230,153,28,0.35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(230,153,28,0.45); }
.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid rgba(8,27,76,0.18);
}
.btn-ghost:hover { border-color: var(--navy); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(243,235,221,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(8,27,76,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--navy); }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 600; color: var(--navy); }
.nav-links a { opacity: 0.75; transition: opacity 0.15s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { display: flex; align-items: center; }

/* ---------- Card (matches the app's BrandCard exactly) ---------- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

/* ---------- Section rhythm ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: 38px; margin: 12px 0 14px; }

@media (max-width: 860px) {
    section { padding: 64px 0; }
    .section-head h2 { font-size: 30px; }
}

/* ============================================
   Hero
   ============================================ */
.hero { padding: 72px 0 100px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: 52px; margin: 18px 0 20px; }
.hero h1 .accent { color: var(--gold); }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-faint); }

/* Signature element: a realistic recreation of the actual product dashboard,
   not stock art - this is what the app really looks like. */
.mock-phone {
    position: relative;
    background: var(--white);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    max-width: 360px;
    margin: 0 auto;
    border: 1px solid rgba(8,27,76,0.06);
}
.mock-screen { background: var(--beige); border-radius: 24px; overflow: hidden; }
.mock-topbar { background: var(--beige); padding: 18px 18px 14px; display: flex; align-items: center; gap: 10px; }
.mock-topbar img { width: 24px; height: 24px; }
.mock-topbar span { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 15px; }
.mock-body { padding: 4px 14px 18px; }
.mock-card { background: var(--white); border-radius: 14px; box-shadow: var(--shadow-sm); padding: 14px; margin-bottom: 12px; }
.mock-label { font-size: 12px; color: var(--ink-faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.mock-stats { display: flex; gap: 20px; }
.mock-stat b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--navy); }
.mock-stat span { font-size: 11px; color: var(--ink-faint); }
.mock-row { display: flex; justify-content: space-between; align-items: center; }
.mock-row + .mock-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(8,27,76,0.06); }
.mock-caller { font-family: var(--font-mono); font-size: 13px; color: var(--navy); font-weight: 700; }
.mock-meta { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }
.mock-badge {
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
    background: var(--green-light); color: var(--green);
    opacity: 0; transform: translateY(4px);
    animation: badgeIn 0.5s ease forwards;
    animation-delay: 1.1s;
}
@keyframes badgeIn { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 38px; }
    .mock-phone { margin-top: 24px; }
}

/* ============================================
   How it works — a real timeline (not numbered circles),
   since the product genuinely happens in a time sequence.
   ============================================ */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--green)); }
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -32px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--gold); }
.tl-item:last-child .tl-dot { border-color: var(--green); }
.tl-time { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); margin-bottom: 4px; }
.tl-item h3 { font-size: 20px; margin-bottom: 6px; }
.tl-item p { color: var(--ink-muted); max-width: 44ch; }

/* ============================================
   Features grid
   ============================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid rgba(8,27,76,0.05); }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 20px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-muted); }

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

/* ============================================
   How-it-works two-role split (Reception / Doctor)
   ============================================ */
.role-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.role-card { background: var(--white); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.role-card::before { content: ''; position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: var(--gold); }
.role-card.doctor::before { background: var(--navy); }
.role-tag { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); font-weight: 700; }
.role-card.doctor .role-tag { color: var(--navy); }
.role-card h3 { font-size: 24px; margin: 10px 0 12px; }
.role-card ul { margin-top: 16px; padding-left: 20px; color: var(--ink-muted); font-size: 14.5px; }
.role-card li { margin-bottom: 8px; }

@media (max-width: 780px) { .role-split { grid-template-columns: 1fr; } }

/* ============================================
   Pricing
   ============================================ */
.pricing-card {
    max-width: 460px; margin: 0 auto;
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 44px;
    border: 2px solid var(--gold);
    position: relative;
}
.pricing-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: var(--navy-dark); font-weight: 700; font-size: 12.5px;
    padding: 6px 16px; border-radius: 999px; letter-spacing: 0.02em;
}
.price-row { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 4px; }
.price-amount { font-family: var(--font-display); font-size: 56px; color: var(--navy); font-weight: 700; }
.price-period { color: var(--ink-muted); font-size: 15px; }
.price-billing { color: var(--ink-faint); font-size: 14px; margin-bottom: 28px; }
.price-features { list-style: none; margin-bottom: 32px; }
.price-features li { display: flex; gap: 10px; padding: 9px 0; font-size: 15px; color: var(--ink); border-bottom: 1px dashed rgba(8,27,76,0.08); }
.price-features li:last-child { border-bottom: none; }
.check { color: var(--green); font-weight: 700; }

/* ============================================
   CTA band
   ============================================ */
.cta-band { background: var(--navy); border-radius: var(--radius-lg); padding: 64px 48px; text-align: center; }
.cta-band h2 { color: var(--white); font-size: 34px; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 50ch; margin: 0 auto 30px; }

/* ============================================
   Footer
   ============================================ */
footer { padding: 56px 0 40px; border-top: 1px solid rgba(8,27,76,0.08); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-muted); }
.footer-links a:hover { color: var(--navy); }
.footer-note { font-size: 13px; color: var(--ink-faint); margin-top: 18px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 60;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--green); color: white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(32,119,63,0.4);
    font-size: 26px;
}

/* ---------- Simple policy page layout ---------- */
.policy { padding: 64px 0 100px; }
.policy h1 { font-size: 36px; margin-bottom: 8px; }
.policy .updated { color: var(--ink-faint); font-size: 14px; margin-bottom: 40px; }
.policy h2 { font-size: 22px; margin: 36px 0 12px; }
.policy p, .policy li { color: var(--ink-muted); font-size: 15.5px; margin-bottom: 10px; }
.policy ul { padding-left: 22px; }
