/* Prism22 shared styles. Light by default; dark only when chosen. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f4f2ec;
  --ink: #0f1b3d;
  --ink-soft: #4a5578;
  --line: #e8e6df;
  --pink: #ff4f9a;
  --purple: #8b5cf6;
  --orange: #ff9a3d;
  --good: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --glow: linear-gradient(100deg, var(--orange), var(--pink) 50%, var(--purple));
  --shadow: 0 1px 2px rgba(15, 27, 61, .05), 0 8px 24px rgba(15, 27, 61, .06);
  --radius: 16px;
  --wrap: 1080px;
}
:root[data-theme="dark"] {
  --bg: #0b1228;
  --surface: #121b38;
  --surface-2: #18234a;
  --ink: #f3f4fa;
  --ink-soft: #a9b1cc;
  --line: #26315a;
  --good: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.soft { color: var(--ink-soft); }
.grad {
  background: var(--glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 750; font-size: 21px; letter-spacing: -0.03em; text-decoration: none;
}
.brand img { width: 30px; height: 30px; display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 550; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.theme-btn {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); cursor: pointer; font-size: 16px;
}
@media (max-width: 760px) {
  .nav { display: none; }
  .theme-btn { margin-left: auto; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  border: 0; color: #fff; background: var(--glow);
  box-shadow: 0 6px 22px rgba(255, 79, 154, .32);
}
.btn.primary:hover { box-shadow: 0 8px 28px rgba(255, 79, 154, .42); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  html { scroll-behavior: auto; }
}

/* Sections */
section { padding: 84px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 44px); margin: 10px 0 14px; font-weight: 780; }
.pill {
  display: inline-block; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-soft);
  font-size: 13px; font-weight: 650;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid.two, .grid.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { section { padding: 60px 0; } .card { padding: 22px; } }

/* Forms */
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.field input[type="email"] {
  flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
}
.form-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; }
.form-msg { font-size: 14.5px; font-weight: 600; margin-top: 12px; min-height: 1.4em; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: var(--bad); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14.5px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 640px) { .site-footer nav { margin-left: 0; width: 100%; } }

/* Legal and simple text pages */
.doc { max-width: 740px; padding-top: 56px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(34px, 6vw, 48px); font-weight: 800; margin-bottom: 10px; }
.doc h2 { font-size: 22px; margin: 38px 0 10px; font-weight: 720; }
.doc p, .doc li { color: var(--ink-soft); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--ink); }
.draft-note {
  margin: 22px 0 6px; padding: 14px 18px; border-radius: 12px;
  background: var(--surface-2); border: 1px dashed var(--line);
  font-size: 14.5px; color: var(--ink-soft);
}
