/* ============================================
   MedSync — Ambassador Programme page
   Inherits tokens + nav/footer/buttons from styles.css
   ============================================ */

/* ---- Shared section rhythm ---- */
.amb-section { padding: 120px 0; }
.amb-section-tight { padding: 96px 0; }
.amb-narrow { max-width: 760px; }

.amb-head { margin-bottom: 56px; }
.amb-head-sm { margin-bottom: 44px; }
.amb-tint { background: var(--bg-subtle); }

.amb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
}
.amb-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.amb-h2 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 450;
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 20px;
}
.amb-lede {
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 620px;
}

/* ============================================
   HERO — dark canvas, light message
   ============================================ */
.amb-hero {
    position: relative;
    background: var(--black);
    color: #fff;
    padding: 190px 0 104px;
    overflow: hidden;
    isolation: isolate;
}
/* Ambient glows sit behind the confetti, above the hero background */
.amb-hero::before,
.amb-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}
.amb-hero::before {
    width: 720px; height: 720px;
    top: -320px; left: -160px;
    background: rgba(26, 115, 232, 0.28);
}
.amb-hero::after {
    width: 560px; height: 560px;
    bottom: -300px; right: -120px;
    background: rgba(13, 148, 136, 0.18);
}
/* Confetti field — the Antigravity background */
#amb-confetti {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.amb-hero-content {
    position: relative;
    z-index: 1;
}

.amb-seats {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 12px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
}
.amb-seats-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
    animation: amb-pulse 2.4s ease-in-out infinite;
}
@keyframes amb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.amb-hero h1 {
    font-size: clamp(40px, 6.4vw, 76px);
    font-weight: 450;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 28px;
    max-width: 15ch;
    text-wrap: balance;
}
.amb-hero h1 em {
    font-style: normal;
    color: #7cb2f0;
}
.amb-hero-sub {
    font-size: clamp(16.5px, 2vw, 20px);
    line-height: 1.6;
    color: rgba(255,255,255,0.68);
    max-width: 600px;
    margin-bottom: 44px;
}

.amb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 72px;
}
.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border-radius: var(--radius-pill);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-accent:hover {
    background: #1765cc;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(26, 115, 232, 0.38);
}
.btn-accent:active { transform: translateY(0) scale(0.98); }
.btn-accent svg { width: 17px; height: 17px; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-pill);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.34);
    transform: translateY(-2px);
}

/* ---- Countdown (dark: used in the hero and the closing CTA) ---- */
.amb-countdown {
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-card);
    padding: 24px 28px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}
.amb-cd-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    margin-bottom: 18px;
}
.amb-cd-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #ff8f6b;
}
.amb-cd-live {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #ff8f6b;
    box-shadow: 0 0 0 3px rgba(255, 143, 107, 0.16);
    animation: amb-pulse 1.6s ease-in-out infinite;
}
.amb-cd-date {
    font-size: 13.5px;
    color: rgba(255,255,255,0.52);
}

.amb-cd-clock {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.amb-cd-unit {
    flex: 0 1 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
}
.amb-cd-num {
    font-size: clamp(28px, 3.4vw, 38px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.amb-cd-key {
    font-size: 11.5px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}
.amb-cd-sep {
    align-self: center;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    color: rgba(255,255,255,0.22);
    margin-top: -14px;
}
.amb-cd-closed {
    display: none;
    font-size: 15px;
    color: rgba(255,255,255,0.72);
}
.amb-countdown.is-closed .amb-cd-clock,
.amb-countdown.is-closed .amb-cd-head { display: none; }
.amb-countdown.is-closed .amb-cd-closed { display: block; }

/* Compact variant inside the closing CTA — sizing only, same dark palette */
.amb-countdown.is-compact {
    max-width: 560px;
    margin: 0 auto 36px;
    text-align: left;
}
.amb-countdown.is-compact .amb-cd-unit { flex-basis: 84px; padding: 12px 6px; }
.amb-countdown.is-compact .amb-cd-num { font-size: clamp(24px, 3vw, 30px); }

/* Hero fact strip */
.amb-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-card);
    overflow: hidden;
}
.amb-fact {
    background: rgba(23, 24, 29, 0.82);
    backdrop-filter: blur(10px);
    padding: 26px 28px;
}
.amb-fact-val {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 5px;
}
.amb-fact-key {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   PROOF BAND — Spain to India
   ============================================ */
.amb-proof {
    background: #17181d;
    color: #fff;
    padding: 84px 0;
    border-top: 1px solid rgba(255,255,255,0.09);
}
.amb-proof-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 26px;
}
.amb-proof-route {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 9px 20px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-pill);
}
.amb-proof-place {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}
.amb-proof-place.is-next { color: #7cb2f0; }
.amb-proof-arrow {
    width: 56px;
    height: 14px;
    color: rgba(255,255,255,0.3);
}
.amb-proof-line {
    font-size: clamp(28px, 4.2vw, 50px);
    font-weight: 450;
    line-height: 1.16;
    letter-spacing: -0.03em;
    max-width: 34ch;
    text-wrap: balance;
}
.amb-proof-line span { color: #7cb2f0; }

/* ============================================
   MISSION / INTRO
   ============================================ */
.amb-want { margin: 4px 0 44px; }
.amb-want-lead {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 22px;
}
.amb-want-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 28px;
    border-left: 2px solid var(--accent);
    list-style: none;
}
.amb-want-list li {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 450;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--black);
}

.amb-body p {
    font-size: 17.5px;
    line-height: 1.68;
    color: var(--grey);
}
.amb-body p + p { margin-top: 20px; }

/* Stat + quote band */
.amb-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 64px;
}
.amb-stat {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 44px 40px;
}
.amb-stat-num {
    font-size: clamp(48px, 6vw, 64px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--accent);
    margin-bottom: 14px;
}
.amb-stat-label {
    font-size: 16px;
    line-height: 1.55;
    color: var(--grey);
}
.amb-quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--black);
    border-radius: var(--radius-card);
    padding: 44px 40px;
    color: #fff;
}
.amb-quote p {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 450;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.amb-quote span { color: #7cb2f0; }

.amb-disclaimer {
    margin-top: 32px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--light-muted);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ============================================
   BENEFITS
   ============================================ */
.amb-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.amb-featured-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 40px;
    background: #fff;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.3s;
}
.amb-featured-card:hover {
    transform: translateY(-4px);
    border-color: rgba(26, 115, 232, 0.32);
    box-shadow: 0 18px 48px rgba(18,19,23,0.09);
}
.amb-featured-val {
    font-size: clamp(34px, 4.4vw, 44px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 12px;
}
.amb-featured-val small {
    font-size: 17px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0;
}
.amb-featured-desc {
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--muted);
}

.amb-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
}
.amb-perk {
    display: flex;
    gap: 18px;
    padding: 30px 32px;
    background: #fff;
    transition: background 0.3s;
}
.amb-perk:hover { background: var(--bg-subtle); }
.amb-perk-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: rgba(26, 115, 232, 0.08);
    color: var(--accent);
}
.amb-perk-icon svg { width: 20px; height: 20px; }
.amb-perk-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.amb-perk-desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--muted);
}

/* ============================================
   COMMITMENT
   ============================================ */
.amb-commit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.amb-commit {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 36px 32px;
    background: #fff;
}
.amb-commit-num {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--black);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 22px;
}
.amb-commit-title {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--black);
    margin-bottom: 10px;
}
.amb-commit-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

/* ============================================
   ELIGIBILITY TABLE
   ============================================ */
.amb-table {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
}
.amb-tr {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    padding: 22px 32px;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}
.amb-tr:last-child { border-bottom: none; }
.amb-tr-head {
    background: var(--bg-subtle);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 16px;
    padding-bottom: 16px;
}
.amb-td-benefit {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    letter-spacing: -0.01em;
}
.amb-td-req {
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}
.amb-td-req strong {
    font-weight: 600;
    color: var(--grey);
}

/* ============================================
   HOW TO APPLY
   ============================================ */
.amb-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    counter-reset: step;
}
.amb-step { position: relative; padding-top: 28px; border-top: 2px solid var(--border); }
.amb-step-n {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.amb-step-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--black);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.amb-step-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

/* ============================================
   CLOSING CTA
   ============================================ */
.amb-cta {
    position: relative;
    background: var(--black);
    color: #fff;
    border-radius: var(--radius-media);
    padding: 88px 64px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    margin-bottom: 120px;
}
.amb-cta::before {
    content: '';
    position: absolute;
    width: 640px; height: 640px;
    top: -380px; left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 115, 232, 0.3);
    filter: blur(130px);
    border-radius: 50%;
    z-index: -1;
}
.amb-cta h2 {
    font-size: clamp(32px, 4.2vw, 46px);
    font-weight: 450;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}
.amb-cta p {
    font-size: 17.5px;
    line-height: 1.6;
    color: rgba(255,255,255,0.66);
    max-width: 520px;
    margin: 0 auto 40px;
}
.amb-cta-note {
    margin-top: 26px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.42);
}

/* ---- WhatsApp help ---- */
.amb-help {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.amb-help-q {
    font-size: 15px;
    color: rgba(255,255,255,0.62);
    margin-bottom: 16px;
}
.amb-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 13px 26px;
    border: 1px solid rgba(37, 211, 102, 0.4);
    background: rgba(37, 211, 102, 0.09);
    border-radius: var(--radius-pill);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.amb-help-btn:hover {
    background: rgba(37, 211, 102, 0.16);
    border-color: rgba(37, 211, 102, 0.65);
    transform: translateY(-2px);
}
.amb-help-btn:active { transform: translateY(0) scale(0.99); }
.amb-help-icon {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    color: #25d366;
}
.amb-help-num {
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.6);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .amb-facts { grid-template-columns: repeat(2, 1fr); }
    .amb-proof { padding: 72px 0; }
    .amb-commit-grid, .amb-steps { grid-template-columns: 1fr; }
    .amb-steps { gap: 32px; }
    .amb-band { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .amb-section { padding: 76px 0; }
    .amb-section-tight { padding: 60px 0; }

    /* Hero: nav shrinks to ~56px here, so the top offset comes down with it */
    .amb-hero { padding: 128px 0 76px; }
    .amb-hero h1 { max-width: none; }
    .amb-hero-sub { margin-bottom: 32px; }
    .amb-hero-actions { gap: 10px; margin-bottom: 40px; }
    .btn-accent, .btn-outline { width: 100%; justify-content: center; padding: 15px 24px; }
    .amb-seats { margin-bottom: 24px; font-size: 12.5px; }

    .amb-featured, .amb-perks { grid-template-columns: 1fr; }
    .amb-tr { grid-template-columns: 1fr; gap: 6px; padding: 20px 24px; }
    .amb-tr-head { display: none; }
    .amb-stat, .amb-quote { padding: 34px 28px; }
    .amb-cta { padding: 60px 24px; border-radius: var(--radius-card); margin-bottom: 72px; }
    .amb-perk { padding: 24px 22px; }
    .amb-featured-card { padding: 30px 24px; }
    .amb-fact { padding: 22px 20px; }
    .amb-want-list { padding-left: 20px; gap: 8px; }
    .amb-head { margin-bottom: 38px; }

    /* Countdown: four units stay on one row, evenly divided */
    .amb-countdown { padding: 20px 16px; margin-bottom: 28px; }
    .amb-cd-head { margin-bottom: 14px; }
    .amb-cd-clock { gap: 6px; }
    .amb-cd-unit { flex: 1 1 0; min-width: 0; padding: 12px 4px; }
    .amb-cd-num { font-size: 24px; }
    .amb-cd-key { font-size: 10px; letter-spacing: 0.04em; }
    .amb-cd-sep { display: none; }
    .amb-countdown.is-compact { margin-bottom: 28px; }
    .amb-countdown.is-compact .amb-cd-unit { flex: 1 1 0; }

    /* WhatsApp help: full-width tap target */
    .amb-help { margin-top: 32px; padding-top: 28px; }
    .amb-help-btn { width: 100%; justify-content: center; padding: 14px 20px; gap: 10px; }
}

@media (max-width: 480px) {
    .amb-section { padding: 60px 0; }
    .amb-section-tight { padding: 52px 0; }
    .amb-hero { padding: 112px 0 64px; }

    /* Stack the countdown header so the date never collides with the label */
    .amb-cd-head { flex-direction: column; align-items: flex-start; gap: 5px; }
    .amb-cd-date { font-size: 12.5px; }
    .amb-cd-unit { padding: 10px 2px; border-radius: 10px; }
    .amb-cd-num { font-size: 21px; }
    .amb-cd-key { font-size: 9px; }

    .amb-fact { padding: 18px 16px; }
    .amb-fact-val { font-size: 22px; }
    .amb-fact-key { font-size: 12px; }

    .amb-proof { padding: 60px 0; }
    .amb-proof-inner { gap: 20px; }
    .amb-proof-route { gap: 12px; padding: 8px 16px; }
    .amb-proof-arrow { width: 36px; }
    .amb-proof-place { font-size: 11.5px; letter-spacing: 0.08em; }

    .amb-stat, .amb-quote { padding: 28px 22px; }
    .amb-featured-card { padding: 26px 20px; }
    .amb-perk { padding: 22px 18px; gap: 14px; }
    .amb-commit { padding: 28px 22px; }
    .amb-tr { padding: 18px 20px; }
    .amb-cta { padding: 52px 20px; }
    .amb-want-list { padding-left: 16px; }
    .amb-eyebrow { margin-bottom: 18px; }

    /* Number drops to its own line rather than squeezing the label */
    .amb-help-q { font-size: 14.5px; }
    .amb-help-btn { flex-wrap: wrap; row-gap: 2px; padding: 13px 16px; }
    .amb-help-text { font-size: 14.5px; }
    .amb-help-num {
        width: 100%;
        padding-left: 0;
        border-left: 0;
        text-align: center;
        font-size: 13px;
    }
}
