/* Authenwise design system */
:root {
  --ink:#0b1220; --fg:#0f172a; --muted:#5b6b82; --faint:#8a99ad; --line:#e3e8ef; --line-2:#d5dce6;
  --bg:#ffffff; --bg-2:#f6f8fb; --card:#ffffff;
  --acc:#2563eb; --acc-600:#1d4ed8; --acc-50:#eff6ff; --acc-100:#dbeafe; --on-acc:#ffffff;
  --ai:#fee2e2; --ai-line:#fca5a5; --ai-ink:#b91c1c;
  --mid:#fef3c7; --mid-line:#fcd34d; --mid-ink:#b45309;
  --ok:#15803d; --ok-bg:#dcfce7;
  --radius:14px; --shadow:0 1px 2px rgba(11,18,32,.04), 0 8px 24px -12px rgba(11,18,32,.12);
  --shadow-lg:0 2px 4px rgba(11,18,32,.04), 0 24px 48px -16px rgba(11,18,32,.22);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fg:#e6ebf2; --muted:#9aa8bb; --faint:#6f7f95; --line:#1c2638; --line-2:#26324a;
    --bg:#070c17; --bg-2:#0b1220; --card:#0e1626;
    --acc:#3b82f6; --acc-600:#93c5fd; --acc-50:#0c1a35; --acc-100:#1e3a8a; --on-acc:#ffffff;
    --ai:#3f1214; --ai-line:#7f1d1d; --ai-ink:#fca5a5; --mid:#3a2a07; --mid-line:#78530c; --mid-ink:#fcd34d;
    --ok:#4ade80; --ok-bg:#0f2e1a;
  }
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; font:16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color:var(--fg); background:var(--bg);
       -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
img, svg { display:block; }
.wrap { max-width:1140px; margin:0 auto; padding:0 20px; }
.muted { color:var(--muted); }

/* ---------- buttons ---------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; font:inherit; font-weight:600; font-size:15px;
       border-radius:10px; padding:10px 18px; cursor:pointer; border:1px solid var(--line-2); background:var(--card); color:var(--fg);
       transition:background .15s, border-color .15s, transform .05s; white-space:nowrap; }
.btn:hover { border-color:var(--faint); }
.btn:active { transform:translateY(1px); }
.btn.primary { background:var(--acc); border-color:var(--acc); color:var(--on-acc); }
.btn.primary:hover { background:var(--acc-600); border-color:var(--acc-600); }
.btn.ghost { border-color:transparent; background:transparent; }
.btn.lg { padding:13px 24px; font-size:16px; }
.btn.block { width:100%; }
.btn:disabled { opacity:.55; cursor:wait; }

/* ---------- header ---------- */
.site-header { position:sticky; top:0; z-index:20; background:color-mix(in srgb, var(--bg) 85%, transparent);
               backdrop-filter:saturate(1.4) blur(10px); border-bottom:1px solid var(--line); }
.site-header .wrap { height:68px; display:flex; align-items:center; gap:28px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:800; font-size:20px; letter-spacing:-.02em; }
.brand .mark { width:30px; height:30px; }
.brand b { color:var(--acc); font-weight:800; }
.nav { display:flex; gap:24px; font-size:15px; color:var(--muted); font-weight:500; }
.nav a:hover, .nav a.active { color:var(--fg); }
.nav-right { margin-left:auto; display:flex; gap:10px; align-items:center; }
.avatar { width:34px; height:34px; border-radius:50%; background:var(--acc-100); color:var(--acc-600); display:grid; place-items:center;
          font-weight:700; font-size:14px; }
.menu { position:relative; }
.menu-btn { display:flex; align-items:center; gap:8px; background:none; border:0; cursor:pointer; color:var(--fg); font:inherit; padding:4px; }
.menu-pop { position:absolute; right:0; top:46px; min-width:220px; background:var(--card); border:1px solid var(--line); border-radius:12px;
            box-shadow:var(--shadow-lg); padding:6px; display:none; }
.menu.open .menu-pop { display:block; }
.menu-pop .who { padding:10px 12px; border-bottom:1px solid var(--line); margin-bottom:6px; font-size:14px; }
.menu-pop .who small { display:block; color:var(--muted); }
.menu-pop a, .menu-pop button { display:block; width:100%; text-align:left; padding:9px 12px; border-radius:8px; font:inherit; font-size:14px;
                                background:none; border:0; color:var(--fg); cursor:pointer; }
.menu-pop a:hover, .menu-pop button:hover { background:var(--bg-2); }

/* ---------- hero ---------- */
.hero { background:radial-gradient(1200px 500px at 50% -10%, var(--acc-50), transparent 70%), var(--bg); padding:72px 0 40px; text-align:center; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--acc-600);
           background:var(--acc-50); border:1px solid var(--acc-100); border-radius:999px; padding:5px 12px; margin-bottom:20px; }
.eyebrow i { width:6px; height:6px; border-radius:50%; background:var(--acc); }
h1 { font-size:clamp(34px, 5.6vw, 60px); line-height:1.05; letter-spacing:-.035em; margin:0 auto 18px; max-width:860px; font-weight:800; }
h1 em { font-style:normal; color:var(--acc); }
.hero p.sub { color:var(--muted); font-size:clamp(17px, 2vw, 20px); max-width:640px; margin:0 auto 30px; }
.hero-cta { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.trust { display:flex; gap:22px; justify-content:center; flex-wrap:wrap; margin-top:22px; font-size:14px; color:var(--muted); }
.trust span { display:inline-flex; align-items:center; gap:7px; }
.trust svg { width:16px; height:16px; color:var(--acc); }

/* ---------- checker ---------- */
.checker { max-width:960px; margin:40px auto 0; text-align:left; }
.panel { background:var(--card); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-lg); overflow:hidden; }
.panel-head { display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--line); background:var(--bg-2);
              font-size:14px; color:var(--muted); }
.panel-head .dots { display:flex; gap:6px; margin-right:6px; }
.panel-head .dots i { width:10px; height:10px; border-radius:50%; background:var(--line-2); }
.panel-head .plan-chip { margin-left:auto; }
textarea.input-text { width:100%; min-height:240px; border:0; outline:0; font:inherit; font-size:16px; line-height:1.7; resize:vertical; padding:18px 20px;
                      background:transparent; color:var(--fg); }
.panel-foot { display:flex; gap:12px; align-items:center; justify-content:space-between; padding:12px 16px; border-top:1px solid var(--line); flex-wrap:wrap; }
.count { color:var(--muted); font-size:14px; }
.chip { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; border-radius:999px; padding:3px 10px;
        background:var(--acc-50); color:var(--acc-600); border:1px solid var(--acc-100); }
.sample-links { font-size:14px; color:var(--muted); }
.sample-links button { background:none; border:0; color:var(--acc-600); font:inherit; cursor:pointer; padding:0 4px; font-weight:600; }

.result { margin-top:20px; }
.res-top { display:grid; grid-template-columns:auto 1fr; gap:24px; align-items:center; padding:22px; border-bottom:1px solid var(--line); }
.gauge { width:112px; height:112px; border-radius:50%; display:grid; place-items:center; }
.gauge > div { width:88px; height:88px; border-radius:50%; background:var(--card); display:grid; place-items:center; text-align:center; }
.gauge b { font-size:26px; font-weight:800; line-height:1; }
.gauge small { display:block; font-size:11px; color:var(--muted); margin-top:3px; }
.verdict { font-size:22px; font-weight:800; letter-spacing:-.01em; }
.stats { display:flex; gap:22px; flex-wrap:wrap; margin-top:8px; font-size:14px; color:var(--muted); }
.stats b { color:var(--fg); }
.legend { display:flex; gap:18px; padding:12px 22px; border-bottom:1px solid var(--line); font-size:13px; color:var(--muted); flex-wrap:wrap; }
.legend i { display:inline-block; width:12px; height:12px; border-radius:3px; vertical-align:-1px; margin-right:6px; border:1px solid; }
.res-text { padding:22px; white-space:pre-wrap; line-height:1.9; overflow-wrap:anywhere; max-height:560px; overflow:auto; }
.hl-high { background:var(--ai); box-shadow:inset 0 -2px var(--ai-line); border-radius:3px; }
.hl-medium { background:var(--mid); box-shadow:inset 0 -2px var(--mid-line); border-radius:3px; }
.legend .hl-high { border-color:var(--ai-line); } .legend .hl-medium { border-color:var(--mid-line); }
.res-note { font-size:13px; color:var(--muted); background:var(--bg-2); padding:12px 22px; border-top:1px solid var(--line); }
.alert { border-radius:12px; padding:14px 16px; font-size:15px; display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.alert.err { background:var(--ai); color:var(--ai-ink); }
.alert.info { background:var(--acc-50); color:var(--acc-600); border:1px solid var(--acc-100); }
.spinner { width:16px; height:16px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ---------- sections ---------- */
section.block { padding:96px 0 0; }
.section-head { text-align:center; max-width:680px; margin:0 auto 44px; }
.kicker { font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--acc-600); margin-bottom:10px; }
h2 { font-size:clamp(28px, 3.6vw, 40px); line-height:1.12; letter-spacing:-.03em; margin:0 0 12px; font-weight:800; }
.section-head p { color:var(--muted); font-size:18px; margin:0; }
.features { display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; }
.feature { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:26px; }
.feature .ic { width:42px; height:42px; border-radius:10px; background:var(--acc-50); color:var(--acc-600); display:grid; place-items:center;
               border:1px solid var(--acc-100); margin-bottom:16px; }
.feature .ic svg { width:22px; height:22px; }
.feature h3 { margin:0 0 6px; font-size:18px; letter-spacing:-.01em; }
.feature p { margin:0; color:var(--muted); font-size:15px; }
.steps { display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; counter-reset:s; }
.step { padding:26px; border-top:2px solid var(--line); }
.step::before { counter-increment:s; content:"0" counter(s); font-weight:800; color:var(--acc); font-size:14px; letter-spacing:.06em; }
.step h3 { margin:10px 0 6px; font-size:18px; }
.step p { margin:0; color:var(--muted); font-size:15px; }
.bands { display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; }
.band { border:1px solid var(--line); border-radius:var(--radius); padding:20px; background:var(--card); }
.band .bar-c { height:6px; border-radius:6px; margin-bottom:14px; }
.band strong { display:block; margin-bottom:4px; }
.band span { color:var(--muted); font-size:14px; }

/* ---------- pricing ---------- */
.pricing { display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; align-items:stretch; }
.plan { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:28px; display:flex; flex-direction:column; position:relative; }
.plan.featured { border:2px solid var(--acc); box-shadow:var(--shadow-lg); }
.plan .badge { position:absolute; top:-13px; left:28px; background:var(--acc); color:var(--on-acc); font-size:12px; font-weight:700; padding:4px 12px; border-radius:999px; }
.plan h3 { margin:0 0 4px; font-size:20px; }
.plan .desc { color:var(--muted); font-size:15px; min-height:48px; margin:0 0 18px; }
.price { display:flex; align-items:baseline; gap:6px; margin-bottom:4px; }
.price b { font-size:44px; letter-spacing:-.03em; font-weight:800; }
.price span { color:var(--muted); }
.price-note { font-size:14px; color:var(--muted); min-height:22px; margin-bottom:20px; }
.price-note strong { color:var(--acc-600); }
.plan ul { list-style:none; padding:0; margin:22px 0 0; display:grid; gap:11px; font-size:15px; }
.plan li { display:flex; gap:10px; align-items:flex-start; }
.plan li svg { width:18px; height:18px; color:var(--acc); flex:none; margin-top:3px; }
.plan .spacer { flex:1; }
table.compare { width:100%; border-collapse:collapse; font-size:15px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.compare th, .compare td { padding:14px 18px; border-bottom:1px solid var(--line); text-align:left; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align:center; }
.compare thead th { background:var(--bg-2); font-size:14px; }
.compare tr:last-child td { border-bottom:0; }
.yes { color:var(--acc); font-weight:700; } .no { color:var(--faint); }

/* ---------- faq / cta / footer ---------- */
.faq { max-width:780px; margin:0 auto; }
details { border-bottom:1px solid var(--line); padding:18px 4px; }
summary { cursor:pointer; font-weight:600; font-size:17px; list-style:none; display:flex; justify-content:space-between; gap:16px; }
summary::-webkit-details-marker { display:none; }
summary::after { content:"+"; color:var(--muted); font-size:22px; line-height:1; }
details[open] summary::after { content:"−"; }
details p { color:var(--muted); margin:10px 0 0; }
.cta-band { margin:110px 0 0; background:var(--ink); color:#e6ebf2; border-radius:24px; padding:56px 40px; text-align:center;
            background-image:radial-gradient(600px 240px at 50% 0%, rgba(59,130,246,.22), transparent 70%); }
.cta-band h2 { color:#fff; }
.cta-band p { color:#9aa8bb; font-size:18px; margin:0 0 26px; }
.site-footer { border-top:1px solid var(--line); margin-top:96px; padding:48px 0 40px; font-size:14px; color:var(--muted); }
.foot-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:32px; }
.foot-grid h4 { color:var(--fg); margin:0 0 12px; font-size:14px; }
.foot-grid a { display:block; padding:3px 0; }
.foot-grid a:hover { color:var(--fg); }
.foot-bottom { margin-top:36px; padding-top:20px; border-top:1px solid var(--line); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; }

/* ---------- auth pages ---------- */
.auth { min-height:calc(100vh - 68px); display:grid; grid-template-columns:1fr 1fr; }
.auth-side { background:var(--ink); color:#cbd5e1; padding:64px 56px; display:flex; flex-direction:column; justify-content:center;
             background-image:radial-gradient(500px 300px at 20% 10%, rgba(59,130,246,.18), transparent 70%); }
.auth-side h2 { color:#fff; }
.auth-side ul { list-style:none; padding:0; margin:24px 0 0; display:grid; gap:14px; }
.auth-side li { display:flex; gap:12px; }
.auth-side li svg { width:20px; height:20px; color:#60a5fa; flex:none; margin-top:2px; }
.auth-main { display:grid; place-items:center; padding:48px 20px; }
.form { width:100%; max-width:400px; }
.form h1 { font-size:30px; text-align:left; margin:0 0 6px; }
.form .lead { color:var(--muted); margin:0 0 26px; }
.field { margin-bottom:16px; }
.field label { display:block; font-size:14px; font-weight:600; margin-bottom:6px; }
.field input { width:100%; font:inherit; padding:11px 14px; border-radius:10px; border:1px solid var(--line-2); background:var(--card); color:var(--fg); outline:0; }
.field input:focus { border-color:var(--acc); box-shadow:0 0 0 3px var(--acc-100); }
.form .switch { text-align:center; color:var(--muted); font-size:14px; margin-top:20px; }
.form .switch a { color:var(--acc-600); font-weight:600; }
.form-err { display:none; margin-bottom:14px; }
.fine { font-size:12px; color:var(--faint); margin-top:14px; text-align:center; }

/* ---------- dashboard ---------- */
.dash { padding:36px 0 0; }
.dash-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; margin-bottom:24px; }
.dash-head h1 { font-size:30px; text-align:left; margin:0; }
.cards { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; margin-bottom:24px; }
.stat { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:20px; }
.stat .lbl { font-size:13px; color:var(--muted); font-weight:500; }
.stat .val { font-size:26px; font-weight:800; letter-spacing:-.02em; margin:4px 0 2px; }
.meter { height:8px; border-radius:8px; background:var(--bg-2); border:1px solid var(--line); overflow:hidden; margin-top:10px; }
.meter > i { display:block; height:100%; background:var(--acc); border-radius:8px; }
.testmode { background:var(--mid); color:var(--mid-ink); font-size:13px; text-align:center; padding:7px 12px; }

/* ---------- toast ---------- */
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(20px); background:var(--ink); color:#fff; padding:12px 18px;
         border-radius:10px; font-size:14px; opacity:0; transition:.25s; z-index:50; box-shadow:var(--shadow-lg); }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

@media (max-width: 900px) {
  .features, .steps, .pricing, .cards { grid-template-columns:1fr; }
  .bands { grid-template-columns:1fr 1fr; }
  .auth { grid-template-columns:1fr; } .auth-side { display:none; }
  .foot-grid { grid-template-columns:1fr 1fr; }
  .compare { font-size:13px; } .compare th, .compare td { padding:10px 8px; }
}
@media (max-width: 640px) {
  .nav { display:none; }
  .site-header .wrap { gap:12px; }
  .nav-right .btn.ghost { display:none; }
  .res-top { grid-template-columns:1fr; justify-items:start; }
  .bands { grid-template-columns:1fr; }
  .cta-band { padding:40px 22px; }
  section.block { padding-top:72px; }
}
