/* BizGrip public site — auth, pricing, account.
   Builds on css/tokens.css (Inter, --accent #0F62FE, slate palette). */

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  color: var(--text-primary, #0F172A);
  background: var(--bg-secondary, #F8FAFC);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--accent, #0F62FE); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ─────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border, #E2E8F0); }
.nav__inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px;
  color: var(--text-primary); text-decoration: none; letter-spacing: -0.02em; }
.nav__dot { width: 12px; height: 12px; border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), #22C55E); }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a { color: var(--text-secondary, #334155); font-weight: 500; font-size: 14px; }
.nav__links a.is-active { color: var(--accent); }
.nav__links a:hover { text-decoration: none; color: var(--text-primary); }

/* ── Buttons ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent, #0F62FE); color: #fff; }
.btn--primary:hover { background: var(--accent-hover, #0043CE); }
.btn--outline { background: #fff; color: var(--text-primary); border-color: var(--border, #E2E8F0); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { background: transparent; color: var(--text-secondary); }
.btn--ghost:hover { color: var(--text-primary); }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.main { min-height: calc(100vh - 130px); }

/* ── Alerts ──────────────────────────────────────────── */
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert--error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.alert--ok { background: var(--success-light, #F0FDF4); color: #15803D; border: 1px solid #BBF7D0; }

/* ── Auth ────────────────────────────────────────────── */
.auth { max-width: 1040px; margin: 0 auto; padding: 56px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.auth__card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 36px; }
.auth__title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth__sub { color: var(--text-tertiary, #64748B); font-size: 14px; margin: 0 0 24px; }
.auth__alt { margin-top: 18px; font-size: 14px; color: var(--text-tertiary); text-align: center; }
.auth__aside h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 20px; }
.ticklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticklist li { position: relative; padding-left: 30px; color: var(--text-secondary); font-size: 15px; }
.ticklist li::before { content: '✓'; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 6px; background: var(--accent-light, #EBF0FF);
  color: var(--accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.field__input { font-family: inherit; font-size: 14px; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; color: var(--text-primary); outline: none; transition: border .15s; }
.field__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light, #EBF0FF); }

/* ── Pricing ─────────────────────────────────────────── */
.pricing { max-width: 1120px; margin: 0 auto; padding: 56px 24px 72px; }
.pricing__head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.pricing__head h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 12px; }
.pricing__sub { color: var(--text-tertiary); font-size: 16px; margin: 0; }
.toggle { display: inline-flex; margin-top: 24px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 4px; gap: 4px; }
.toggle__opt { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text-tertiary);
  background: transparent; border: none; padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.toggle__opt.is-active { background: var(--accent); color: #fff; }
.toggle__save { font-size: 11px; opacity: .9; margin-left: 4px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.plan--hl { border: 2px solid var(--accent); box-shadow: 0 20px 40px -24px rgba(15,98,254,0.4); }
.plan__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan__name { font-size: 15px; font-weight: 700; color: var(--text-secondary); }
.plan__price { display: flex; align-items: baseline; gap: 4px; margin: 12px 0 4px; }
.plan__amt { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.plan__per { color: var(--text-tertiary); font-size: 14px; font-weight: 500; }
.plan__tagline { color: var(--text-tertiary); font-size: 13px; min-height: 38px; margin: 4px 0 18px; }
.plan__feats { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid var(--border-light, #F1F5F9); display: grid; gap: 12px; }
.plan__feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.tick { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--success, #16A34A); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pricing__foot { text-align: center; color: var(--text-tertiary); font-size: 13px; margin-top: 36px; }

/* ── Account ─────────────────────────────────────────── */
.account { max-width: 1000px; margin: 0 auto; padding: 48px 24px 72px; }
.account__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.account__head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
.account__email { color: var(--text-tertiary); font-size: 14px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0 8px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.card--plan { background: linear-gradient(135deg, #0F172A, #1E293B); color: #fff; border: none; }
.card__label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted, #94A3B8); font-weight: 600; }
.card--plan .card__label { color: #94A3B8; }
.card__plan { font-size: 28px; font-weight: 800; margin: 6px 0 8px; letter-spacing: -0.02em; }
.card__meta { font-size: 13px; color: var(--text-tertiary); margin-bottom: 14px; }
.card--plan .card__meta { color: #CBD5E1; }
.card__mono { font-family: var(--font-mono, monospace); font-size: 13px; word-break: break-all; margin: 6px 0 8px; color: var(--text-secondary); }

.section-title { font-size: 16px; font-weight: 700; margin: 32px 0 14px; }
.empty { background: #fff; border: 1px dashed var(--border); border-radius: 14px; padding: 28px; color: var(--text-tertiary); font-size: 14px; text-align: center; }

.table { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.table__head, .table__row { display: grid; grid-template-columns: 2fr 1.3fr 1fr 1.2fr; gap: 12px; padding: 14px 18px; align-items: center; }
.table__head { background: var(--bg-tertiary, #F1F5F9); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-tertiary); font-weight: 600; }
.table__row { border-top: 1px solid var(--border-light, #F1F5F9); font-size: 14px; }
.cell-name { font-weight: 600; }
.cell-muted { color: var(--text-tertiary); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.dot--on { background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.dot--off { background: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,.15); }

/* ── Footer ──────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: #fff; }
.footer__inner { max-width: 1120px; margin: 0 auto; padding: 22px 24px; display: flex;
  justify-content: space-between; align-items: center; color: var(--text-tertiary); font-size: 13px; }
.footer__links { display: flex; gap: 18px; }

/* ── Landing: shared ─────────────────────────────────── */
.btn--lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.btn--light { background: #fff; color: var(--text-primary); }
.btn--light:hover { background: #EEF2FF; }
.section { max-width: 1120px; margin: 0 auto; padding: 72px 24px; }
.section--tint { max-width: none; background: var(--bg-secondary, #F8FAFC); }
.section--tint > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section__head h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 12px; }
.section__sub { color: var(--text-tertiary); font-size: 16px; margin: 0; }

/* ── Hero ────────────────────────────────────────────── */
.hero { max-width: 1120px; margin: 0 auto; padding: 72px 24px 40px; text-align: center; }
.hero__inner { max-width: 720px; margin: 0 auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 26px; text-decoration: none; }
.pill:hover { text-decoration: none; border-color: var(--accent); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.pill__arrow { color: var(--accent); }
.hero__title { font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -0.04em; margin: 0 0 18px; }
.hero__grad { background: linear-gradient(120deg, var(--accent), #22C55E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: 18px; color: var(--text-tertiary); max-width: 600px; margin: 0 auto 28px; line-height: 1.55; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__note { color: var(--text-muted); font-size: 13px; margin-top: 16px; }
.hero__shot { position: relative; max-width: 340px; margin: 48px auto 0; }
.hero__shot img { width: 100%; border-radius: 26px; box-shadow: 0 40px 80px -30px rgba(15,23,42,.45); border: 1px solid var(--border); }
.hero__glow { position: absolute; inset: -60px -40px auto; height: 320px; z-index: -1;
  background: radial-gradient(circle at 50% 30%, rgba(15,98,254,.22), transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(34,197,94,.18), transparent 55%); filter: blur(20px); }

/* ── Trust ───────────────────────────────────────────── */
.trust { text-align: center; padding: 28px 24px 8px; }
.trust p { color: var(--text-tertiary); font-size: 14px; margin: 0 0 14px; }
.trust__badges { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.trust__badges span { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

/* ── Steps ───────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.step--accent { border-color: var(--accent); box-shadow: 0 20px 40px -28px rgba(15,98,254,.4); }
.step__num { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-light, #EBF0FF);
  color: var(--accent); font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.step p { color: var(--text-tertiary); font-size: 14px; margin: 0; line-height: 1.55; }

/* ── Bento features ──────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.feat--wide { grid-column: span 2; }
.feat__icon { font-size: 26px; margin-bottom: 12px; }
.feat h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.feat p { color: var(--text-tertiary); font-size: 14px; margin: 0; line-height: 1.55; }

/* ── CTA band + FAQ ──────────────────────────────────── */
.cta-band { text-align: center; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; }
.faq__item summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; font-size: 15px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; float: right; color: var(--accent); font-size: 20px; line-height: 1; }
.faq__item[open] summary::after { content: '−'; }
.faq__item p { color: var(--text-tertiary); font-size: 14px; margin: 0 0 18px; line-height: 1.6; }

/* ── Final CTA ───────────────────────────────────────── */
.finalcta { background: linear-gradient(135deg, #0F172A, #12224a); color: #fff; }
.finalcta__inner { max-width: 720px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.finalcta h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 12px; }
.finalcta p { color: #CBD5E1; font-size: 16px; margin: 0 0 26px; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .steps, .bento { grid-template-columns: 1fr; }
  .feat--wide { grid-column: span 1; }
  .hero__title { font-size: 42px; }
}
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav__links a:not(.btn) { display: none; }
  .table__head { display: none; }
  .table__row { grid-template-columns: 1fr 1fr; }
  .pricing__head h1 { font-size: 30px; }
}
