/* Sign-in pages and the public product page (ARES Suite standard design).
   The brand panel keeps the brand colours in both themes; the form side and
   the product page follow the theme tokens of ares.css. */
:root { --brand-primary: #2563eb; --brand-secondary: #22c55e; --brand-dark: #0b1220; --brand-deep: #1e40af;
  --shadow-md: 0 2px 4px rgba(16,24,40,.06), 0 12px 32px rgba(16,24,40,.10);
  --demo-border: #f59e0b; --demo-bg: #fffbeb; --demo-badge: #b45309; }
@media (prefers-color-scheme: dark) {
  :root { --shadow-md: 0 2px 4px rgba(0,0,0,.35), 0 14px 36px rgba(0,0,0,.35);
    --demo-border: #b7791f; --demo-bg: #2d220c; --demo-badge: #d97706; }
}

/* ── sign-in ─────────────────────────────────────────────────────────────── */
body.auth { background: var(--bg); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  gap: 32px; padding: 48px 52px; color: #dbe6ff;
  background: linear-gradient(150deg, var(--brand-dark) 0%, var(--brand-deep) 55%, var(--brand-primary) 100%); }
.auth-aside::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: rgba(255,255,255,.07); }
.auth-aside > * { position: relative; z-index: 1; }
.auth-logo { height: 56px; width: auto; align-self: flex-start; margin-left: -4px; }
.auth-aside h2 { color: #fff; font-size: 29px; line-height: 1.2; margin: 0 0 16px; letter-spacing: -.02em; font-weight: 700; max-width: 30rem; }
.auth-aside p { margin: 0 0 24px; color: #bfd3ff; font-size: 16px; line-height: 1.5; max-width: 30rem; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.auth-points li { display: flex; gap: 11px; align-items: flex-start; color: #e6edff; font-size: 15px; line-height: 1.45; }
.auth-points svg { flex: none; margin-top: 1px; color: var(--brand-secondary); }
.auth-foot { font-size: 12.5px; color: #a9c1f7; }
.auth-main { display: flex; flex-direction: column; padding: 24px 32px 40px; min-width: 0; }
.auth-panel { width: 100%; max-width: 420px; margin: auto; padding-top: 24px; }
.auth-panel h1 { font-size: 25px; font-weight: 680; letter-spacing: -.015em; margin: 0 0 6px; }
.auth-intro { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.auth-panel .card { box-shadow: var(--shadow-md); padding: 22px 24px 26px; border-radius: 14px; }
.auth-panel .card > label:first-of-type { margin-top: 0; }
.auth-panel .card > .alert:first-child { margin-top: 0; }
.auth-panel .mfa-option:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.auth-about { margin: 22px 0 0; text-align: center; font-size: 13px; }
.auth-about a { color: var(--muted); }
.auth-about a:hover { color: var(--accent); }
.demo-notice { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 14px;
  border: 1px solid var(--demo-border); border-radius: 10px; background: var(--demo-bg); color: var(--text); font-size: 13.5px; line-height: 1.45; }
.demo-badge { flex: none; padding: 4px 10px; border-radius: 6px; background: var(--demo-badge); color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: .12em; }
.demo-notice a { font-weight: 600; }
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { padding: 22px 20px 24px; gap: 0; }
  .auth-logo { height: 42px; }
  .auth-aside h2 { font-size: 21px; margin: 14px 0 6px; }
  .auth-aside p { margin-bottom: 0; font-size: 15px; }
  .auth-points, .auth-foot { display: none; }
  .auth-main { padding: 20px 16px 32px; }
  .auth-panel { padding-top: 4px; }
}

/* ── public product page ─────────────────────────────────────────────────── */
body.site { background: var(--bg); font-size: 15px; }
.site-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.site-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-top .site-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 18px; letter-spacing: -.01em; }
.site-brand:hover { text-decoration: none; }
.site-brand img { width: 34px; height: 34px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav .btn { padding: 8px 14px; }
.btn.lg { padding: 12px 22px; font-size: 15.5px; border-radius: 9px; }
.site-hero { position: relative; overflow: hidden; color: #e6edff;
  background: linear-gradient(150deg, var(--brand-dark) 0%, var(--brand-deep) 60%, var(--brand-primary) 100%); }
.site-hero::after { content: ""; position: absolute; right: -140px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; background: rgba(255,255,255,.07); }
.site-hero .site-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.site-hero .eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a9c1f7; margin-bottom: 14px; }
.site-hero h1 { font-size: 44px; line-height: 1.1; letter-spacing: -.025em; color: #fff; margin: 0 0 18px; font-weight: 760; }
.site-hero p.lead { font-size: 18px; line-height: 1.55; color: #c9d8ff; margin: 0 0 28px; max-width: 36rem; }
.site-hero .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.site-hero .btn.light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.site-hero .btn.light:hover { background: #e8eefe; }
.site-hero .btn.outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.site-hero .btn.outline:hover { background: rgba(255,255,255,.1); }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(320px, 100%); height: auto; filter: drop-shadow(0 24px 48px rgba(0,0,0,.35)); }
.site-section { padding: 64px 0; }
.site-section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.site-section h2 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 720; }
.site-section .sub { color: var(--muted); font-size: 16px; margin: 0 0 32px; max-width: 46rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .tiles.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; }
.site-section.alt .tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .tiles.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.tile { background: var(--bg); }
.tile h3 { font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 10px 0 6px; }
.tile p { margin: 0; color: var(--muted); line-height: 1.55; }
.tile .ti { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tile .ti svg { width: 22px; height: 22px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px 20px 64px; line-height: 1.55; color: var(--muted); }
.steps li strong { display: block; color: var(--text); margin-bottom: 4px; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
.site-section.alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.site-cta { text-align: center; }
.site-cta .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.site-foot { border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; padding: 22px 0; }
.site-foot .site-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .site-wrap { padding: 0 16px; }
  .site-hero .site-wrap { grid-template-columns: minmax(0, 1fr); padding-top: 44px; padding-bottom: 52px; gap: 28px; }
  .site-hero h1 { font-size: 32px; }
  .site-hero p.lead { font-size: 16.5px; }
  .hero-art { display: none; }
  .site-section { padding: 44px 0; }
  .site-section h2 { font-size: 23px; }
}
@media (max-width: 480px) {
  .site-nav .btn.primary { display: none; }
  .site-brand { font-size: 16px; }
}
