/* Satori Demos landing page. Palette from the approved Claude Design mockup (Satori Demo Hub). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
}

:root {
  --ground: #f6f5f1;
  --surface: #ffffff;
  --surface2: #f8f7f3;
  --line: #e2dfd6;
  --line-soft: #eeece6;
  --ink: #1c2233;
  --ink2: #3f4657;
  --muted: #5a6072;
  --heading: #0f1e3c;
  --link: #0f1e3c;
  --bar: #0f1e3c;
  --bar-line: transparent;
  --button: #0f1e3c;
  --button-hover: #1b2f58;
  --gold: #c9a84c;
  --gold-ink: #7d6318;
  --gold-tint: #fbf6e6;
  --info-ink: #0f1e3c;
  --info-tint: #eef1f7;
  --shadow: rgba(15, 30, 60, 0.08);
  --focus: #c9a84c;
  color-scheme: light;
}

/* Dark tokens: chosen explicitly, or by "Match my computer" when the system is dark. */
:root[data-theme="dark"] {
  --ground: #0b1220;
  --surface: #131b2d;
  --surface2: #182139;
  --line: #28324d;
  --line-soft: #1e2740;
  --ink: #e7eaf2;
  --ink2: #b9c0d0;
  --muted: #97a0b4;
  --heading: #e7eaf2;
  --link: #c3d2f3;
  --bar: #070c18;
  --bar-line: #1e2740;
  --button: #3557a3;
  --button-hover: #4166b8;
  --gold-ink: #ecd38c;
  --gold-tint: #2b2514;
  --info-ink: #c3d2f3;
  --info-tint: #1c2b4f;
  --shadow: rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --ground: #0b1220;
    --surface: #131b2d;
    --surface2: #182139;
    --line: #28324d;
    --line-soft: #1e2740;
    --ink: #e7eaf2;
    --ink2: #b9c0d0;
    --muted: #97a0b4;
    --heading: #e7eaf2;
    --link: #c3d2f3;
    --bar: #070c18;
    --bar-line: #1e2740;
    --button: #3557a3;
    --button-hover: #4166b8;
    --gold-ink: #ecd38c;
    --gold-tint: #2b2514;
    --info-ink: #c3d2f3;
    --info-tint: #1c2b4f;
    --shadow: rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; }
a:hover { opacity: 0.92; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--heading);
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header */
.bar {
  background: var(--bar);
  border-bottom: 1px solid var(--bar-line);
  color: #ffffff;
}
.bar-inner {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { display: block; }
.brand-name { font-weight: 600; letter-spacing: 0.2em; font-size: 14px; }
.brand-rule { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.28); }
.brand-sub { color: #cfd5e2; font-size: 14px; }

.bar-tools { display: flex; align-items: center; gap: 12px; }
.pill {
  font-size: 12.5px;
  color: #cfd5e2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 12px;
}

.theme { position: relative; }
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.14); }
.theme-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  min-width: 200px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--shadow);
}
.theme-menu[hidden] { display: none; }
.theme-menu button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-menu button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  flex: none;
}
.theme-menu button[aria-pressed="true"] { font-weight: 600; color: var(--heading); }
.theme-menu button[aria-pressed="true"]::before { background: var(--gold); }
.theme-menu button:hover { background: var(--surface2); }

/* Main */
.main {
  flex: 1;
  padding-top: 72px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--heading);
  text-wrap: balance;
}
.lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink2); max-width: 640px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 1px 2px var(--shadow);
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag { font-size: 12.5px; border-radius: 999px; padding: 3px 10px; }
.tag-gold { color: var(--gold-ink); background: var(--gold-tint); }
.tag-info { color: var(--info-ink); background: var(--info-tint); }
.card-head { display: flex; flex-direction: column; gap: 8px; }
.card-head h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.15;
  color: var(--heading);
}
.card-head p { margin: 0; color: var(--ink2); font-size: 16px; }

.points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
}
.points li { display: flex; gap: 12px; align-items: flex-start; }
.points li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.card-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--button);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { background: var(--button-hover); opacity: 1; }
.note { font-size: 13.5px; color: var(--muted); }

.good {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--line-soft);
  color: var(--ink2);
  font-size: 14px;
}
.good-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--heading); }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot-inner {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}
.foot-inner a { color: var(--link); }

/* Phone width */
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .main { padding-top: 40px; padding-bottom: 40px; gap: 32px; }
  h1 { font-size: 36px; }
  .lede { font-size: 16.5px; }
  .card { padding: 24px; }
  .card-head h2 { font-size: 26px; }
  .pill { display: none; }
  .good { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Sign-in page (signin.html): split screen like the risk assessment's "Welcome back" ---------- */
.signin { display: flex; flex-wrap: wrap; min-height: 100vh; }
.signin-main {
  box-sizing: border-box;
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
}
.signin-brand { display: flex; align-items: center; gap: 12px; color: var(--heading); }
.signin-brand .brand-name { font-size: 17px; }
.signin-brand .brand-rule { background: var(--line); }
.signin-brand .brand-sub { color: var(--muted); }
.signin-brand img { display: block; }
.signin-center { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 48px 0; }
.signin-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.signin-form h1 { margin: 0; font-size: 38px; }
.signin-form p { margin: 0; }
.signin-lede { font-size: 15px; color: var(--muted); }
.signin-note { text-align: center; font-size: 13px; color: var(--muted); }
.signin-foot { margin: 0; font-size: 12px; color: var(--muted); }
.signin .btn { justify-content: center; min-height: 48px; font-size: 15px; border: 0; cursor: pointer; width: 100%; }
.signin .btn[disabled] { opacity: 0.6; cursor: default; }
.signin-error {
  border: 1px solid #d91515;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface2);
}
.signin-error[hidden] { display: none; }
.signin-panel {
  box-sizing: border-box;
  flex: 1 1 480px;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 48px;
  background: var(--bar);
  border-left: 1px solid var(--bar-line);
  color: #ffffff;
  text-align: center;
}
.signin-panel img { display: block; height: auto; max-width: 28%; }
.signin-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; color: var(--gold); }
.signin-claim { margin: 0; max-width: 420px; font-family: Fraunces, Georgia, serif; font-size: 30px; line-height: 1.25; font-weight: 500; text-wrap: balance; }
@media (min-width: 768px) { .signin-panel { position: sticky; top: 0; height: 100vh; } }
@media (max-width: 767px) { .signin-panel { min-height: 0; } }
@media (max-width: 640px) { .signin-main { padding: 24px 16px; } .signin-form h1 { font-size: 32px; } }

/* Signed-in line in the landing page header */
.who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #cfd5e2; }
.who[hidden] { display: none; }
.who a { color: #ffffff; text-underline-offset: 3px; }
@media (max-width: 640px) { .who-label { display: none; } }
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .logo-light { display: none !important; }
  :root[data-theme="system"] .logo-dark { display: block !important; }
}
