/* subscribe.css — styles for /subscribe B2B landing page and checkout modal */

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #0f172a; background: #f8fafc; }

/* ── Nav ── */
.sub-nav { background: #0f172a; padding: 0 24px; display: flex; align-items: center; height: 56px; gap: 16px; }
.sub-nav a { color: #e2e8f0; text-decoration: none; font-size: .9rem; font-weight: 500; }
.sub-nav-logo { color: #fff !important; font-weight: 800; font-size: 1.05rem; margin-right: auto; }
.sub-nav a:hover { color: #fff; }

/* ── Hero ── */
.sub-hero { text-align: center; padding: 64px 24px 48px; background: linear-gradient(160deg, #eff6ff 0%, #fff 60%); }
.sub-badge { display: inline-block; background: #0ea5e9; color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 4px 12px; border-radius: 99px; margin-bottom: 16px; }
.sub-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 16px; color: #0f172a; }
.sub-hero p { font-size: 1.1rem; color: #475569; max-width: 560px; margin: 0 auto 32px; line-height: 1.6; }
.sub-hero-props { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 0; }
.sub-prop { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 16px; font-size: .88rem; font-weight: 500; color: #0f172a; display: flex; align-items: center; gap: 6px; }

/* ── Tiers ── */
.sub-section { max-width: 1040px; margin: 0 auto; padding: 56px 24px; }
.sub-section-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #0ea5e9; margin-bottom: 8px; }
.sub-section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 36px; color: #0f172a; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .tier-grid { grid-template-columns: 1fr; } }
.tier-card { background: #fff; border: 2px solid #e2e8f0; border-radius: 16px; padding: 28px 24px; position: relative; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.tier-card:hover { border-color: #0ea5e9; box-shadow: 0 8px 32px rgba(14,165,233,.12); }
.tier-card.popular { border-color: #0ea5e9; box-shadow: 0 4px 24px rgba(14,165,233,.15); }
.tier-popular-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #0ea5e9; color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 14px; border-radius: 99px; white-space: nowrap; }
.tier-emoji { font-size: 2.5rem; margin-bottom: 12px; }
.tier-name { font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; }
.tier-desc { font-size: .85rem; color: #64748b; margin: 0 0 20px; }
.tier-price { font-size: 2.2rem; font-weight: 800; color: #0f172a; letter-spacing: -.03em; margin: 0 0 4px; }
.tier-price span { font-size: 1rem; font-weight: 500; color: #64748b; }
.tier-perunit { font-size: .82rem; color: #94a3b8; margin: 0 0 20px; }
.tier-features { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tier-features li { font-size: .88rem; color: #374151; display: flex; align-items: flex-start; gap: 8px; }
.tier-features li::before { content: '✓'; color: #10b981; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.tier-cta { background: #0ea5e9; color: #fff; border: none; border-radius: 10px; padding: 14px 20px; font-size: 1rem; font-weight: 700; cursor: pointer; width: 100%; transition: background .15s, transform .1s; }
.tier-cta:hover { background: #0369a1; }
.tier-cta:active { transform: scale(.98); }
.tier-card:not(.popular) .tier-cta { background: #0f172a; }
.tier-card:not(.popular) .tier-cta:hover { background: #1e293b; }

/* ── How it works ── */
.how-section { background: #fff; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 640px) { .how-grid { grid-template-columns: 1fr; gap: 24px; } }
.how-step { text-align: center; }
.how-num { width: 44px; height: 44px; border-radius: 50%; background: #eff6ff; color: #0ea5e9; font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.how-step h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.how-step p { font-size: .88rem; color: #475569; margin: 0; line-height: 1.5; }

/* ── Loyalty block ── */
.loyalty-section { background: #eff6ff; }
.loyalty-box { background: #fff; border: 2px solid #0ea5e9; border-radius: 16px; padding: 32px; max-width: 600px; margin: 0 auto; text-align: center; }
.loyalty-box h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 12px; }
.loyalty-box p { color: #475569; margin: 0 0 20px; line-height: 1.5; }
.loyalty-steps { display: flex; justify-content: center; gap: 8px; margin: 0 0 20px; }
.loyalty-pip { height: 8px; border-radius: 4px; background: #e2e8f0; flex: 1; max-width: 80px; }
.loyalty-pip.done { background: #0ea5e9; }
.loyalty-unlock { font-size: .85rem; color: #0369a1; font-weight: 600; margin: 0; }

/* ── Modal ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 100; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 16px; padding: 32px; width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal h2 { margin: 0 0 8px; font-size: 1.2rem; }
.modal-tier-label { font-size: .85rem; color: #64748b; margin: 0 0 24px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: .85rem; font-weight: 600; color: #374151; }
.form-field input, .form-field textarea { border: 1.5px solid #d1d5db; border-radius: 8px; padding: 10px 12px; font-size: .95rem; font-family: inherit; transition: border-color .15s; outline: none; }
.form-field input:focus, .form-field textarea:focus { border-color: #0ea5e9; }
.form-field textarea { resize: vertical; min-height: 72px; }
.modal-submit { background: #0ea5e9; color: #fff; border: none; border-radius: 10px; padding: 14px 20px; font-size: 1rem; font-weight: 700; width: 100%; cursor: pointer; transition: background .15s; }
.modal-submit:hover { background: #0369a1; }
.modal-submit:disabled { background: #94a3b8; cursor: not-allowed; }
.modal-cancel { background: none; border: none; color: #64748b; font-size: .88rem; cursor: pointer; margin-top: 12px; width: 100%; }
.modal-cancel:hover { color: #374151; }
.modal-error { color: #dc2626; font-size: .85rem; margin-top: 8px; }

/* ── Footer strip ── */
.sub-footer { background: #0f172a; color: #94a3b8; text-align: center; padding: 24px; font-size: .85rem; }
.sub-footer a { color: #38bdf8; text-decoration: none; }

/* ── Cancel toast ── */
.cancelled-toast { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 12px 16px; text-align: center; color: #b91c1c; font-size: .9rem; max-width: 500px; margin: 16px auto 0; }
