/* Public home page. Builds on app.css tokens and components. */

.l-body { font-size: 16px; line-height: 1.6; background: var(--bg); }
.l-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.l-body .icon { width: 18px; height: 18px; }
.l-accent { color: var(--brand); }
.l-hide-sm {}

/* ── Nav ──────────────────────────────────────────────────────────────── */
.l-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.l-nav-inner { height: 68px; display: flex; align-items: center; gap: 24px; }
.l-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.l-brand img { height: 36px; width: auto; }
.l-brand-text { display: grid; line-height: 1.15; }
.l-brand-text strong { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.l-brand-text small { font-size: 12px; color: var(--muted); }
.l-links { display: flex; gap: 4px; margin: 0 auto; }
.l-links a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: background .15s, color .15s; }
.l-links a:hover { background: var(--surface-3); color: var(--text); }
.l-nav-actions { display: flex; align-items: center; gap: 8px; }
.l-nav .l-menu-btn { display: none; }
.l-nav .theme-icon-light, .l-nav .theme-icon-dark { display: inline-grid; }
[data-theme="light"] .l-nav .theme-icon-dark, [data-theme="dark"] .l-nav .theme-icon-light { display: none; }

.l-mobile { border-top: 1px solid var(--border); background: var(--surface); }
.l-mobile nav { display: grid; padding-top: 8px; padding-bottom: 20px; }
.l-mobile nav > a { padding: 14px 4px; font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--border); }
.l-mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.l-hero {
  position: relative; overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(900px 420px at 15% -10%, var(--brand-soft-2) 0%, transparent 60%),
    radial-gradient(700px 400px at 100% 10%, var(--brand-soft) 0%, transparent 60%);
}
.l-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: .55;
}
.l-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.l-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.l-pill .dot { color: var(--success); }
.l-h1 { margin-top: 22px; font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.06; font-weight: 800; letter-spacing: -.04em; }
.l-h1 .l-accent { display: block; }
.l-lead { margin-top: 20px; max-width: 540px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.l-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.l-cta-row .btn-lg { height: 50px; padding: 0 22px; font-size: 15.5px; }
.l-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.l-checks li { display: flex; align-items: center; gap: 8px; }
.l-checks .icon { width: 17px; height: 17px; color: var(--success); }

/* Rate checker */
.l-rate-card { padding: 24px; box-shadow: var(--shadow-lg); border-radius: 18px; }
.l-rate-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.l-rate-head { margin-bottom: 16px; }
.l-rate-head .muted { font-size: 14.5px; margin-top: 2px; }
.l-rate-input { height: 50px !important; font-size: 16px; border-radius: 12px; }
.l-rate-card .input-wrap > .icon { width: 18px; height: 18px; left: 14px; }
.l-rate-card .input-wrap > .input { padding-left: 42px; }
.l-rate-chips { margin-top: 12px; }
.l-rate-chips .chip { height: 30px; font-size: 12.5px; padding: 0 12px; }
.l-rate-results { margin-top: 16px; min-height: 252px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.l-rate-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface); font-size: 14.5px; }
.l-rate-row:last-child { border-bottom: 0; }
.l-rate-dest { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-rate-code { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.l-rate-price { font-family: var(--font-mono); font-weight: 600; font-size: 14.5px; text-align: right; min-width: 92px; }
.l-rate-price small { font-family: var(--font); font-weight: 500; color: var(--muted); font-size: 12px; }
.l-rate-empty { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 250px; padding: 24px; text-align: center; color: var(--muted); font-size: 14.5px; }
.l-rate-empty .icon { width: 26px; height: 26px; color: var(--faint); }
.l-rate-more { display: block; padding: 10px 14px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--brand-text); background: var(--surface); }
.l-rate-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.l-rate-count { font-weight: 600; color: var(--text-2); }
.l-skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-3), var(--border), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Payment strip ────────────────────────────────────────────────────── */
.l-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.l-strip-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 30px; padding-top: 22px; padding-bottom: 22px; }
.l-strip-label { font-size: 14px; color: var(--muted); font-weight: 500; }
.l-coin { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
.l-coin-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-size: 14px; font-weight: 700; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.l-section { padding: 96px 0; }
.l-section-tight { padding: 32px 0 96px; }
.l-section-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.l-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.l-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.l-h2 { margin-top: 10px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.l-sub { margin-top: 14px; font-size: 17px; color: var(--muted); }
.l-sub-left { max-width: 480px; }

/* Steps */
.l-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.l-steps li { position: relative; padding: 28px; }
.l-steps h3 { margin-top: 18px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.l-steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.l-step-num { position: absolute; top: 22px; right: 24px; font-family: var(--font-mono); font-size: 40px; font-weight: 600; line-height: 1; color: var(--surface-3); }
[data-theme="dark"] .l-step-num { color: var(--border-strong); }
.l-step-icon, .l-feature-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.l-step-icon .icon, .l-feature-icon .icon { width: 22px; height: 22px; }

/* Features */
.l-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.l-feature { padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.l-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.l-feature h3 { margin-top: 18px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.l-feature p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Split + mock */
.l-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.l-list { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; font-weight: 500; color: var(--text-2); }
.l-list li { display: flex; align-items: center; gap: 10px; }
.l-list .icon { width: 18px; height: 18px; color: var(--success); }

.l-mock { position: relative; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.l-mock-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.l-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.l-mock-bar span:first-child { background: #ff5f57; } .l-mock-bar span:nth-child(2) { background: #febc2e; } .l-mock-bar span:nth-child(3) { background: #28c840; }
.l-mock-bar em { margin-left: 10px; font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.l-mock-body { display: flex; min-height: 300px; }
.l-mock-side { width: 56px; padding: 16px 12px; display: grid; align-content: start; gap: 10px; border-right: 1px solid var(--border); }
.l-mock-side i { display: block; height: 30px; border-radius: 8px; background: var(--surface-3); }
.l-mock-side i.is-active { background: var(--brand-soft-2); }
.l-mock-main { flex: 1; padding: 18px; display: grid; gap: 14px; align-content: start; }
.l-mock-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.l-mock-stat { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; display: grid; gap: 2px; }
.l-mock-stat small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.l-mock-stat b { font-family: var(--font-mono); font-size: 19px; font-weight: 600; }
.l-mock-stat.is-hero { background: linear-gradient(135deg, var(--brand) 0%, #9f1515 100%); border-color: transparent; color: #fff; }
.l-mock-stat.is-hero small { color: rgba(255,255,255,.8); }
.l-mock-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.l-mock-table div { display: grid; grid-template-columns: 1fr 56px 80px; gap: 10px; padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.l-mock-table div:last-child { border-bottom: 0; }
.l-mock-table .mono { color: var(--muted); }
.l-mock-table b { text-align: right; font-weight: 600; color: var(--text); }
.l-mock-note { position: absolute; right: 14px; bottom: 10px; font-size: 11px; color: var(--faint); }

/* Referral band */
.l-invite {
  display: flex; align-items: center; gap: 22px; padding: 30px 32px; border-radius: 20px;
  background: linear-gradient(120deg, var(--brand-soft-2) 0%, var(--brand-soft) 45%, var(--surface) 100%);
  border: 1px solid var(--border);
}
.l-invite-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand); color: #fff; flex-shrink: 0; box-shadow: 0 10px 24px -8px rgba(220, 38, 38, .6); }
.l-invite-icon .icon { width: 26px; height: 26px; }
.l-invite-text { flex: 1; min-width: 0; }
.l-invite-text h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.l-invite-text p { margin-top: 4px; color: var(--text-2); }

/* FAQ */
.l-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.l-faq { border-top: 1px solid var(--border); }
.l-faq details { border-bottom: 1px solid var(--border); }
.l-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; font-size: 16.5px; font-weight: 600; cursor: pointer; list-style: none; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary .icon { color: var(--muted); transition: transform .2s; }
.l-faq details[open] summary .icon { transform: rotate(180deg); }
.l-faq details p { padding: 0 2px 20px; color: var(--muted); max-width: 640px; }
.l-inline-btn { background: none; border: 0; padding: 0; font: inherit; }

/* Final CTA (dark in both themes) */
.l-cta {
  padding: 88px 0; text-align: center; color: #fff;
  background: radial-gradient(700px 300px at 50% 0%, rgba(239, 68, 68, .35) 0%, transparent 70%), #0e0f12;
}
.l-cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.l-cta p { margin-top: 12px; font-size: 17px; color: rgba(255,255,255,.7); }
.l-cta-center { justify-content: center; }
.l-btn-on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.l-btn-on-dark:hover { background: rgba(255,255,255,.14); }

/* Footer */
.l-footer { background: var(--surface); border-top: 1px solid var(--border); }
.l-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.l-footer-brand p { margin-top: 14px; max-width: 300px; color: var(--muted); font-size: 14.5px; }
.l-footer h3 { margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.l-footer-grid > div:not(.l-footer-brand) { display: grid; align-content: start; gap: 10px; }
.l-footer-grid a:not(.l-brand), .l-footer-link { font-size: 14.5px; color: var(--text-2); text-align: left; background: none; border: 0; padding: 0; }
.l-footer-grid a:not(.l-brand):hover, .l-footer-link:hover { color: var(--brand-text); }
.l-footer-bottom { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }

/* Floating support */
.l-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px;
  border-radius: 999px; background: #229ed9; color: #fff; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 10px 30px -8px rgba(34, 158, 217, .7); transition: transform .15s;
}
.l-float:hover { transform: translateY(-2px); }
.l-terms { max-height: 60vh; overflow: auto; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .l-links { display: none; }
  .l-nav-actions { margin-left: auto; }
  .l-nav .l-menu-btn { display: inline-grid; }
  .l-hero-grid, .l-split, .l-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .l-hero { padding: 56px 0 72px; }
  .l-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .l-container { padding: 0 16px; }
  .l-hide-sm { display: none; }
  .l-section { padding: 64px 0; }
  .l-section-tight { padding: 16px 0 64px; }
  .l-head { margin-bottom: 36px; }
  .l-lead { font-size: 16.5px; }
  .l-cta-row .btn-lg { flex: 1 1 100%; }
  .l-steps, .l-features { grid-template-columns: minmax(0, 1fr); }
  .l-invite { flex-direction: column; align-items: flex-start; padding: 24px; }
  .l-invite .btn { width: 100%; }
  .l-rate-card { padding: 18px; }
  .l-rate-row { grid-template-columns: minmax(0, 1fr) auto; }
  .l-rate-code { display: none; }
  .l-mock-side { display: none; }
  .l-mock-stats { grid-template-columns: 1fr 1fr; }
  .l-mock-stat:last-child { display: none; }
  .l-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .l-float span { display: none; }
  .l-float { width: 50px; height: 50px; padding: 0; justify-content: center; }
}
