/* =============================================================
   ScriptForge shared styles (sales, login, register, upgrade)
   ============================================================= */
:root {
  --bg: #f6f5f2; --surface: #fff; --ink: #16151a; --ink-2: #4a4852; --ink-3: #8a8792;
  --line: #e7e4de; --accent: #ff4d2e; --accent-ink: #d93a1d; --accent-soft: #fff0ec; --ok: #1f9d55;
  --radius: 14px; --shadow: 0 1px 2px rgba(22,21,26,.04), 0 8px 24px rgba(22,21,26,.06);
  --font: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.55; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246,245,242,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 14px; height: 14px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.link { text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 550; padding: 8px 12px; border-radius: 8px; }
.nav-links a.link:hover { color: var(--ink); background: #efede8; }
@media (max-width: 720px) { .nav-links a.hide-sm { display: none; } }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border-radius: 11px; font-weight: 650; font-size: 15px; padding: 11px 18px; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(255,77,46,.25); }
.btn-accent:hover { background: var(--accent-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c2a33; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { padding: 15px 24px; font-size: 16.5px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .65; cursor: progress; }

/* ---- Type ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--accent-ink); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.display { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 12px; }
.lead { font-size: 18.5px; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.center { text-align: center; }

/* ---- Cards & forms ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 6px; }
.input { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fcfbf9; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.input:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(22,21,26,.06); }
.alert { display: none; padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert.show { display: block; }
.alert.err { background: #fdecec; color: #a32020; }
.alert.ok { background: #e9f7ef; color: #17683a; }

/* ---- Auth pages ---- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side .brand { color: #fff; }
.auth-side blockquote { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.2; max-width: 440px; }
.auth-side .glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,77,46,.35), transparent 65%); right: -180px; bottom: -200px; }
.auth-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; color: #d8d6de; font-size: 15px; position: relative; }
.auth-points li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 10px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-family: var(--serif); font-weight: 600; font-size: 32px; margin: 0 0 6px; letter-spacing: -0.01em; }
.auth-box .sub { color: var(--ink-2); margin: 0 0 28px; }
.auth-foot { margin-top: 20px; font-size: 14.5px; color: var(--ink-2); text-align: center; }
.auth-foot a { color: var(--accent-ink); font-weight: 650; text-decoration: none; }
.mobile-brand { display: none; margin-bottom: 28px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .mobile-brand { display: flex; } }

.footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--ink-3); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
