/* SityLink public landing page. Builds on the tokens in app.css. */
.lp { background: var(--surface); }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.lp h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; margin: 14px 0 16px; }
.lp h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); letter-spacing: -.025em; line-height: 1.15; }
.lp h3 { font-size: 1.08rem; margin: 12px 0 6px; }
.lp p { color: var(--ink-2); }

/* Top bar */
.lp-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lp-top-row { display: flex; align-items: center; gap: 24px; height: 66px; }
.lp-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.lp-logo:hover { color: var(--ink); }
.lp-links { display: flex; gap: 22px; margin-left: 12px; }
.lp-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.lp-links a:hover { color: var(--primary); }
.lp-top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lp-signin { font-weight: 600; text-decoration: none; color: var(--ink); }

/* Hero */
.lp-hero { background: radial-gradient(1000px 500px at 85% -10%, var(--primary-soft), transparent 65%), radial-gradient(700px 400px at -10% 110%, var(--cyan-bg), transparent 60%); padding: 64px 0 72px; overflow: hidden; }
.lp-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary) !important; font-weight: 600; font-size: .9rem; margin: 0; }
.lp-eyebrow .icon { width: 18px; height: 18px; }
.lp-lead { font-size: 1.15rem; max-width: 52ch; }
.lp-lead-sm { font-size: 1.05rem; max-width: 50ch; }
.lp-price-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--primary-soft); max-width: 52ch; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 26px 0 0; }
.lp-btn-lg { padding: 13px 22px; font-size: 1rem; border-radius: 12px; }
.lp-trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; }
.lp li { display: flex; gap: 8px; align-items: flex-start; }
.lp li .icon { width: 18px; height: 18px; flex: none; stroke: var(--ok); margin-top: 2px; }

/* Phone mock */
.lp-phone { position: relative; justify-self: center; width: 290px; padding: 12px; border-radius: 42px; background: #0f172a; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .45), 0 0 0 1px rgba(255,255,255,.06) inset; }
.lp-notch { position: absolute; top: 18px; left: 50%; width: 90px; height: 22px; margin-left: -45px; border-radius: 12px; background: #0f172a; z-index: 2; }
.lp-screen { background: #f8fafc; color: #0f172a; border-radius: 32px; padding: 52px 16px 20px; display: grid; gap: 9px; }
.lp-portal-head { text-align: center; display: grid; justify-items: center; gap: 2px; margin-bottom: 6px; }
.lp-portal-head .icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: #2563eb; stroke: #fff; }
.lp-portal-head strong { font-size: 1.05rem; margin-top: 6px; }
.lp-portal-head small { color: #64748b; }
.lp-pkg { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fff; }
.lp-pkg span { display: grid; }
.lp-pkg small { color: #64748b; font-size: .75rem; }
.lp-pkg b { color: #1d4ed8; }
.lp-pkg.on { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.lp-momo { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1.5px solid #e2e8f0; font-size: .85rem; color: #64748b; }
.lp-momo b { color: #0f172a; }
.lp-pay { text-align: center; background: #2563eb; color: #fff; font-weight: 700; padding: 11px; border-radius: 12px; }
.lp-voucher { text-align: center; font-size: .78rem; color: #64748b !important; margin: 2px 0 0; }
.lp-toast { position: absolute; left: -54px; bottom: 74px; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow), 0 12px 30px rgba(15,23,42,.18); border: 1px solid var(--line); }
.lp-toast .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--ok-bg); stroke: var(--ok); }
.lp-toast span { display: grid; font-size: .85rem; }
.lp-toast small { color: var(--muted); }

/* Strip */
.lp-strip { border-block: 1px solid var(--line); background: var(--surface-2); }
.lp-strip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 22px; text-align: center; }
.lp-strip-row div { display: grid; }
.lp-strip-row strong { font-size: 1.2rem; }
.lp-strip-row span { color: var(--muted); font-size: .9rem; }

/* Sections */
.lp-sec { padding: 84px 0; }
.lp-sec-alt { background: var(--bg); }
.lp-sec-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.lp-sec-head p:last-child:not(.lp-kicker) { font-size: 1.05rem; }
.lp-kicker { color: var(--primary) !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 8px; }

.lp-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; }
.lp-ic .icon { width: 24px; height: 24px; }
.lp-ic-blue { background: var(--primary-soft); } .lp-ic-blue .icon { stroke: var(--primary); }
.lp-ic-green { background: var(--green-bg); } .lp-ic-green .icon { stroke: var(--green); }
.lp-ic-violet { background: var(--violet-bg); } .lp-ic-violet .icon { stroke: var(--violet); }
.lp-ic-cyan { background: var(--cyan-bg); } .lp-ic-cyan .icon { stroke: var(--cyan); }
.lp-ic-amber { background: var(--amber-bg); } .lp-ic-amber .icon { stroke: var(--amber); }

.lp-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-who-card, .lp-feature, .lp-pay-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.lp-who-card ul, .lp-pay-card ul, .lp-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }

.lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-feature p { font-size: .94rem; margin: 0; }

.lp-pay-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.lp-pay-card { position: relative; }
.lp-pay-card h3 { display: flex; gap: 10px; align-items: center; font-size: 1.2rem; margin-top: 0; }
.lp-pay-card h3 .icon { width: 26px; height: 26px; stroke: var(--primary); }
.lp-pay-main { background: linear-gradient(155deg, #1e40af, #2563eb 60%, #0ea5e9); border: 0; color: #fff; }
.lp-pay-main p, .lp-pay-main h3 { color: #fff !important; }
.lp-pay-main h3 .icon, .lp-pay-main li .icon { stroke: #fff; }
.lp-tag { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.2); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.lp-note { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 28px 0 0; color: var(--muted) !important; }
.lp-note .icon { width: 20px; height: 20px; stroke: var(--amber); }

.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.lp-mini-card small, .lp-mini-card span { color: var(--muted); font-size: .85rem; }
.lp-mini-card strong { font-size: 1.8rem; letter-spacing: -.02em; }
.lp-mini-card .lp-up { color: var(--ok); }
.lp-bars { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 10px; height: 140px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.lp-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--bar-revenue); }
.lp-bars i:nth-child(1) { height: 35%; } .lp-bars i:nth-child(2) { height: 55%; } .lp-bars i:nth-child(3) { height: 45%; }
.lp-bars i:nth-child(4) { height: 70%; } .lp-bars i:nth-child(5) { height: 60%; } .lp-bars i:nth-child(6) { height: 85%; } .lp-bars i:nth-child(7) { height: 100%; }

.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.lp-steps li { display: block; padding: 28px; border-radius: 20px; border: 1px dashed var(--line-2); }
.lp-steps span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 800; }
.lp-steps p { margin: 0; }

.lp-final { background: linear-gradient(120deg, #1e3a8a, #2563eb 55%, #0891b2); color: #fff; padding: 60px 0; }
.lp-final-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.lp-final h2, .lp-final p { color: #fff !important; margin: 0; }
.lp-final p { opacity: .9; margin-top: 6px; }
.lp-final .lp-cta { margin: 0; }
.lp-btn-white { background: #fff; color: #1e3a8a; font-weight: 700; }
.lp-btn-white:hover { background: #eef4ff; color: #1e3a8a; }
.lp-final-link { color: #fff; font-weight: 600; }
.lp-final-link:hover { color: #fff; }

.lp-foot { padding: 30px 0; border-top: 1px solid var(--line); }
.lp-foot-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.lp-foot p { margin: 0; color: var(--muted); font-size: .9rem; }
.lp-foot nav { display: flex; gap: 18px; }

@media (max-width: 980px) {
  .lp-links { display: none; }
  .lp-hero-grid, .lp-split { grid-template-columns: 1fr; }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-who, .lp-pay-grid, .lp-steps { grid-template-columns: 1fr; }
  .lp-toast { left: -20px; }
}
@media (max-width: 560px) {
  .lp-hero { padding: 40px 0 56px; }
  .lp-sec { padding: 60px 0; }
  .lp-features { grid-template-columns: 1fr; }
  .lp-strip-row { grid-template-columns: repeat(2, 1fr); }
  .lp-signin { display: none; }
  .lp-top-actions .btn { padding: 8px 14px; }
  .lp-cta .lp-btn-lg { flex: 1 1 100%; text-align: center; }
  .lp-phone { width: 260px; }
  .lp-toast { left: -8px; bottom: 30px; }
  .lp-mini-card strong { font-size: 1.4rem; }
}

/* SityLink mark on the phone's portal */
.lp-portal-logo { display: inline-grid; place-items: center; padding: 3px; border-radius: 16px; background: linear-gradient(135deg, #dbeafe, #eff6ff); box-shadow: 0 6px 18px rgba(37,99,235,.25); }
.lp-portal-logo .sity-mark { border-radius: 13px; }
/* On the phone's dark frame in both themes, so fixed light colours (".lp p" would otherwise make it dark text in light mode). */
.lp .lp-phone-foot { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font-size: .68rem; color: #94a3b8; }
.lp-phone-foot b { color: #e2e8f0; } .lp-phone-foot b span { color: #60a5fa; }
/* Pricing cards are light in light mode: the white-on-blue tag would vanish there. */
.pr-plan .lp-tag { background: var(--primary-soft); color: var(--primary); }
/* ---------- Training ---------- */
.tr-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.tr-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
.tr-count { background: linear-gradient(150deg, #1e3a8a, #2563eb 60%, #0891b2); color: #fff; border-radius: 24px; padding: 26px; box-shadow: 0 24px 50px rgba(37, 99, 235, .35); animation: tr-in .7s cubic-bezier(.2, .7, .3, 1) both; }
.lp .tr-count p { color: #fff; margin: 0; }
.tr-count-l { font-weight: 600; opacity: .85; }
.tr-count-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 18px; }
.tr-count-row div { background: rgba(255, 255, 255, .14); border-radius: 14px; padding: 12px 6px; text-align: center; }
.tr-count-row strong { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tr-count-row span { font-size: .75rem; opacity: .85; }
.tr-count-date { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tr-count-date .icon { width: 18px; height: 18px; stroke: #fff; }
.tr-count-price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(255, 255, 255, .25); margin-top: 14px !important; padding-top: 14px; }
.tr-count-price strong { font-size: 1.6rem; }
.tr-modules { counter-reset: none; }
.tr-module { position: relative; animation: tr-in .6s cubic-bezier(.2, .7, .3, 1) both; }
.tr-module:nth-child(2) { animation-delay: .05s; } .tr-module:nth-child(3) { animation-delay: .1s; } .tr-module:nth-child(4) { animation-delay: .15s; }
.tr-module:nth-child(5) { animation-delay: .2s; } .tr-module:nth-child(6) { animation-delay: .25s; } .tr-module:nth-child(7) { animation-delay: .3s; } .tr-module:nth-child(8) { animation-delay: .35s; }
.tr-module .lp-feature { height: 100%; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.tr-module:hover .lp-feature { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 16px 34px color-mix(in srgb, var(--primary) 22%, transparent); }
.tr-step { position: absolute; top: 18px; right: 20px; font-weight: 800; font-size: 1.1rem; color: var(--primary); opacity: .35; z-index: 1; }
.tr-book { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.tr-price { display: flex; flex-direction: column; margin: 10px 0 6px; }
.tr-price strong { font-size: 2.6rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.tr-price span { color: var(--muted); }
.tr-book-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: 0 20px 44px color-mix(in srgb, var(--primary) 16%, transparent); }
.tr-book-card .btn-block { display: flex; justify-content: center; gap: 8px; }
.tr-secure { display: flex; align-items: center; gap: 6px; justify-content: center; margin: 10px 0 0; }
.tr-secure .icon { width: 15px; height: 15px; }
.tr-status { max-width: 560px; text-align: center; }
.tr-status .lp-cta { justify-content: center; }
.tr-receipt { text-align: left; margin: 18px 0; }
.tr-done, .tr-fail { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; animation: tr-pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.tr-done { background: var(--green-bg); } .tr-done .icon { width: 36px; height: 36px; stroke: var(--green); }
.tr-fail { background: #fde8e8; color: #dc2626; font-size: 2rem; font-weight: 800; }
.tr-wait { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; border: 5px solid var(--primary-soft); border-top-color: var(--primary); animation: tr-spin 1s linear infinite; }
.tr-teaser { display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: center; }
.tr-teaser-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: 24px; text-decoration: none; color: #fff; background: linear-gradient(150deg, #1e3a8a, #2563eb 60%, #0891b2); box-shadow: 0 22px 46px rgba(37, 99, 235, .3); transition: transform .25s ease, box-shadow .25s ease; }
.tr-teaser-card:hover { color: #fff; transform: translateY(-6px) rotate(-1deg); box-shadow: 0 28px 56px rgba(37, 99, 235, .42); }
.tr-teaser-card strong { font-size: 2.4rem; font-weight: 800; }
.tr-teaser-tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.tr-teaser-tag .icon { width: 15px; height: 15px; stroke: #fff; }
.tr-teaser-go { margin-top: 10px; font-weight: 700; }
@keyframes tr-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tr-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes tr-spin { to { transform: rotate(360deg); } }
@media (max-width: 980px) { .tr-hero-grid, .tr-book, .tr-teaser { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tr-count-row strong { font-size: 1.4rem; } .tr-price strong { font-size: 2rem; } }
@media (prefers-reduced-motion: reduce) { .tr-count, .tr-module, .tr-done, .tr-fail, .tr-wait { animation: none; } .tr-module:hover .lp-feature, .tr-teaser-card:hover { transform: none; } }
/* Training: refer and earn */
.tr-refer { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
.tr-refer .lp-cta { grid-column: 1 / -1; }
.tr-refer-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tr-refer-steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; transition: transform .2s ease, border-color .2s ease; }
.tr-refer-steps li:hover { transform: translateX(4px); border-color: var(--primary); }
.tr-refer-steps span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-weight: 800; }
.tr-refer-steps small { display: block; color: var(--muted); }
@media (max-width: 980px) { .tr-refer { grid-template-columns: 1fr; } }

/* Grow section: the one-click move from old billing software, then the growth tools */
.lp-migrate { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; margin: 0 0 22px; padding: 28px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--green) 45%, var(--line)); background: linear-gradient(135deg, var(--green-bg), var(--surface) 70%); box-shadow: var(--shadow); }
.lp-migrate h3 { margin: 6px 0 8px; font-size: 1.35rem; }
.lp-migrate p { margin: 0 0 10px; }
.lp-migrate .lp-tag { position: static; display: inline-block; margin: 0; background: var(--green); color: #fff; }
.lp-list-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0 0; }
#grow .lp-feature { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
#grow .lp-feature:hover { transform: translateY(-4px); border-color: var(--primary); }
@media (max-width: 640px) { .lp-migrate { grid-template-columns: 1fr; padding: 22px; } }
@media (prefers-reduced-motion: reduce) { #grow .lp-feature, #grow .lp-feature:hover { transition: none; transform: none; } }
