@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap');

/* Design tokens shared with Audit AI. */
:root {
  --ink: #102126;
  --muted: #66767a;
  --faint: #91a0a3;
  --line: #dce5e3;
  --paper: #fbfcfa;
  --white: #ffffff;
  --sidebar: #f1f5f3;
  --teal: #0b746b;
  --teal-strong: #075e58;
  --teal-soft: #e3f2ee;
  --red: #a63c3c;
  --shadow: 0 18px 60px rgba(32, 65, 64, .12);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: "DM Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(11, 116, 107, .2); outline-offset: 2px; }

.eyebrow { color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(251,252,250,.94); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { display: block; height: 34px; width: auto; }
.brand-product { padding-left: 14px; border-left: 1px solid var(--line); }
.brand-name { font-family: "Manrope", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.4px; }
.brand-sub { color: var(--muted); font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase; }
.ghost-button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font-size: 13px; font-weight: 600; cursor: pointer; }
.ghost-button:hover { border-color: #bdceca; background: #f8fbfa; }

.workspace { max-width: 1120px; margin: 0 auto; padding: 48px 32px 72px; }
.hero h1 { margin: 10px 0 8px; font-family: "Manrope", sans-serif; font-size: 38px; letter-spacing: -1.4px; }
.hero p { margin: 0 0 36px; color: var(--muted); font-size: 16px; }

.app-section { margin-bottom: 34px; }
.app-section h2 { margin: 0 0 14px; font-family: "Manrope", sans-serif; font-size: 15px; letter-spacing: -.2px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.app-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.app-card.live { box-shadow: 0 8px 30px rgba(32, 65, 64, .08); }
.app-card.soon { background: var(--sidebar); }
.app-card.soon h3, .app-card.soon p { color: var(--muted); }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-card h3 { margin: 0; font-family: "Manrope", sans-serif; font-size: 18px; letter-spacing: -.3px; }
.app-card p { flex: 1; margin: 0; color: #415458; font-size: 14px; line-height: 1.55; }
.badge { flex-shrink: 0; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: 11px; font-weight: 600; }
.badge.live { border-color: #b9e1d7; color: var(--teal-strong); background: var(--teal-soft); }

.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid var(--teal); border-radius: 9px; color: white; background: var(--teal); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 0 5px 14px rgba(11,116,107,.18); transition: .15s ease; }
.primary-button:hover { background: var(--teal-strong); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.app-card .primary-button { align-self: flex-start; margin-top: 4px; }

.login-page { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; background: var(--sidebar); }
.login-card { width: 100%; max-width: 390px; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.login-logo { display: block; height: 40px; margin-bottom: 22px; }
.login-card h1 { margin: 8px 0 6px; font-family: "Manrope", sans-serif; font-size: 22px; letter-spacing: -.5px; }
.login-card > p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.login-form input { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fbfcfc; font-size: 14px; }
.login-error { min-height: 16px; margin: 0; color: var(--red); font-size: 12px; }

@media (max-width: 640px) {
  .topbar { height: 64px; padding: 0 16px; }
  .brand-logo { height: 26px; }
  .brand-sub { display: none; }
  .workspace { padding: 28px 16px 48px; }
  .hero h1 { font-size: 28px; letter-spacing: -.8px; }
  .app-grid { grid-template-columns: 1fr; }
}
