/* Advance SaaS platform pages: landing, sign up, log in, admin (src/platform/*). */
:root {
  --navy: #0b1b3f; --navy-2: #13295c; --navy-3: #1e3a8a; --sun: #f59e0b; --sun-2: #fbbf24; --sun-ink: #451a03;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc; --soft: #eef2f8;
  --ok: #15803d; --ok-bg: #dcfce7; --err: #991b1b; --err-bg: #fef2f2;
  --head: "Sora", system-ui, sans-serif; --body: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
a { color: var(--navy-3); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.s-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.s-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.s-row.tight { gap: 6px; }
.s-row form { margin: 0; }
.s-small { font-size: 13px; color: #cbd5e1; margin: 14px 0 0; }
.s-small.dark, .s-muted { color: var(--muted); }
.s-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Buttons */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font: 700 15px/1.2 var(--body); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.s-btn:hover { transform: translateY(-1px); }
.s-btn-lg { padding: 15px 24px; font-size: 16px; }
.s-btn-sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 8px 24px -10px rgba(245, 158, 11, .8); }
.s-btn-sun:hover { background: var(--sun-2); }
.s-btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.s-btn-light:hover { background: rgba(255, 255, 255, .18); }
.s-btn-dark { background: var(--navy); color: #fff; }
.s-btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }

/* Header */
.s-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.s-head-row { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.s-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 700 19px var(--head); }
.s-logo b { color: var(--sun); }
.s-logo.light { color: #fff; }
.s-nav { display: flex; gap: 4px; flex: 1; }
.s-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.s-nav a:hover { background: var(--soft); }
.s-head-cta { display: flex; gap: 8px; margin-left: auto; }
.s-head form { margin: 0 0 0 auto; }
@media (max-width: 860px) { .s-nav { display: none; } }
@media (max-width: 420px) { .s-head-cta .s-btn-ghost { display: none; } .s-logo { font-size: 17px; } }

/* Hero */
.s-hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(245, 158, 11, .22), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #0e2350 100%); color: #fff; overflow: hidden; }
.s-hero-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.s-chip { display: inline-block; background: rgba(245, 158, 11, .15); color: var(--sun-2); border: 1px solid rgba(245, 158, 11, .35); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.s-hero h1 { font-size: clamp(34px, 5.2vw, 58px); margin: 18px 0 16px; }
.s-hero h1 span { color: var(--sun); }
.s-lead { font-size: 18px; color: #cbd5e1; margin: 0 0 26px; max-width: 620px; }
.s-lead.dark { color: var(--muted); }
.s-hero-art { position: relative; min-height: 360px; }
.s-mock { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); padding: 16px; transform: rotate(-1.5deg); }
.s-mock-top { display: flex; gap: 6px; align-items: center; margin-bottom: 14px; }
.s-mock-top span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.s-mock-top b { margin-left: 8px; font-size: 13px; color: var(--muted); }
.s-mock-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s-mock-tiles div { background: var(--soft); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.s-mock-tiles strong { font: 800 26px var(--head); color: var(--navy); }
.s-mock-tiles span { font-size: 12px; color: var(--muted); }
.s-mock-tiles .warn { background: #fef3c7; }
.s-mock-list { margin-top: 12px; display: grid; gap: 8px; }
.s-mock-list div { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.s-mock-list em { margin-left: auto; font-style: normal; color: var(--muted); font-weight: 600; font-size: 12px; }
.s-mock-list i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.s-mock-list .g { background: #22c55e; } .s-mock-list .y { background: var(--sun); } .s-mock-list .b { background: #3b82f6; }
.s-mock-phone { position: absolute; right: -6px; bottom: -34px; width: 230px; background: #e7fbe9; color: #052e16; border-radius: 16px; padding: 12px 14px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); transform: rotate(3deg); font-size: 13px; }
.s-mock-phone b { color: #128c3e; font-size: 12px; }
.s-mock-phone p { margin: 4px 0 0; }
@media (max-width: 900px) {
  .s-hero-row { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 72px; gap: 40px; }
  .s-hero-art { min-height: 0; }
  .s-mock-phone { right: 8px; }
}

/* Numbers strip */
.s-strip { background: #fff; border-bottom: 1px solid var(--line); }
.s-strip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.s-strip-row div { display: flex; flex-direction: column; }
.s-strip-row strong { font: 800 24px var(--head); color: var(--navy); }
.s-strip-row span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .s-strip-row { grid-template-columns: 1fr 1fr; } }

/* Sections */
.s-section { padding-top: 76px; padding-bottom: 76px; }
.s-section > h2, .s-how h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 8px 0 12px; max-width: 760px; }
.s-eyebrow { color: #b45309; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 30px; }
.s-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: transform .15s ease, box-shadow .15s ease; }
.s-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .35); }
.s-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff7e6; font-size: 22px; }
.s-card h3 { font-size: 18px; margin: 14px 0 6px; }
.s-card p { margin: 0; color: var(--muted); font-size: 15px; }

.s-how { background: var(--navy); color: #fff; }
.s-how .s-eyebrow { color: var(--sun-2); }
.s-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.s-steps li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.s-steps b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); font: 800 16px var(--head); }
.s-steps strong { font: 700 18px var(--head); margin-top: 6px; }
.s-steps span { color: #cbd5e1; font-size: 15px; }
@media (max-width: 900px) { .s-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .s-steps { grid-template-columns: 1fr; } }

/* Pricing */
.s-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; align-items: stretch; }
.s-plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; }
.s-plan.best { border: 2px solid var(--sun); box-shadow: 0 30px 60px -34px rgba(245, 158, 11, .7); }
.s-plan h3 { font-size: 22px; }
.s-plan p { margin: 0; }
.s-price { font: 800 34px var(--head); color: var(--navy); margin: 8px 0; }
.s-price small { font: 600 15px var(--body); color: var(--muted); }
.s-plan ul { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 8px; flex: 1; }
.s-plan li { padding-left: 26px; position: relative; color: var(--ink-2); }
.s-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.s-flag { position: absolute; top: -12px; left: 24px; background: var(--sun); color: var(--sun-ink); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 900px) { .s-plans { grid-template-columns: 1fr; } }

/* FAQ */
.s-faq { margin-top: 24px; display: grid; gap: 10px; max-width: 860px; }
.s-faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.s-faq-item summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.s-faq-item p { margin: 10px 0 0; color: var(--muted); }

/* Call to action + footer */
.s-cta { background: linear-gradient(120deg, var(--navy-2), var(--navy)); color: #fff; }
.s-cta-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.s-cta h2 { font-size: clamp(24px, 3vw, 34px); }
.s-cta p { color: #cbd5e1; margin: 6px 0 0; }
.s-foot { background: #071330; color: #cbd5e1; }
.s-foot-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-top: 48px; padding-bottom: 28px; }
.s-foot-row div { display: flex; flex-direction: column; gap: 8px; }
.s-foot-row strong { color: #fff; }
.s-foot-row a { color: #cbd5e1; text-decoration: none; }
.s-foot-row a:hover { color: #fff; }
.s-foot-row p { margin: 6px 0 0; font-size: 14px; }
.s-foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; padding-bottom: 24px; font-size: 13px; }
@media (max-width: 700px) { .s-foot-row { grid-template-columns: 1fr; } }

/* Sign up / log in */
.s-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 72px; align-items: start; }
.s-auth.single { grid-template-columns: minmax(0, 460px); justify-content: center; }
.s-auth-side h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.s-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.s-ticks li { padding-left: 30px; position: relative; font-weight: 600; }
.s-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.s-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 60px -40px rgba(15, 23, 42, .4); }
.s-form h1 { font-size: 28px; }
.s-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.s-form input, .s-form select, .s-mini input, .s-mini select { font: 500 16px var(--body); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.s-form input:focus, .s-mini input:focus { border-color: var(--navy-3); outline: none; }
.s-err { background: var(--err-bg); color: var(--err); border-radius: 10px; padding: 10px 14px; font-weight: 600; margin: 0; }
.s-ok { background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
@media (max-width: 800px) { .s-auth { grid-template-columns: 1fr; padding-top: 32px; } }

/* Admin */
.s-admin { padding-top: 28px; padding-bottom: 60px; }
.s-admin h1 { font-size: 28px; margin-bottom: 14px; }
.s-admin h2 { font-size: 20px; margin: 32px 0 12px; }
.s-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.s-tiles div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; }
.s-tiles strong { font: 800 24px var(--head); color: var(--navy); }
.s-tiles span { color: var(--muted); font-size: 14px; }
.s-tiles .warn { background: #fef3c7; border-color: #fcd34d; }
.s-table { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.s-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.s-table th, .s-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.s-table th { background: var(--soft); font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.s-table small { color: var(--muted); }
.s-table form { margin: 0; }
.s-mini { display: grid; gap: 8px; margin-top: 8px; min-width: 220px; }
.s-mini label { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; color: var(--muted); gap: 2px; }
.s-mini input, .s-mini select { padding: 7px 9px; font-size: 14px; border-radius: 8px; }
