/* Shared styles for klyzen.co/guides/* — same palette and type as the
   landing page (`../index.html`), tuned for long-form reading. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/landing/fonts/BricolageGrotesque.woff") format("woff");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
:root {
  color-scheme: light;
  --violet: #673ce8;
  --violet-hover: #5630cc;
  --violet-tint: #f3f0fc;
  --violet-mist: #e4dcf9;
  --violet-deep: #211549;
  --ground: #fafafc;
  --surface: #ffffff;
  --ink: #17151f;
  --muted: #686474;
  --border: #e9e6f0;
  --border-strong: #d9d4e6;
  --success: #16865c;
  --success-tint: #e6f4ee;
  --warn: #a9690f;
  --warn-tint: #fbf1df;
  --danger: #b42318;
  --danger-tint: #fcebea;
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--violet);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.wrap {
  width: min(100% - 2 * clamp(16px, 4vw, 40px), 760px);
  margin-inline: auto;
}
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 252, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header .wrap,
.footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  flex-wrap: wrap;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--violet);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: var(--violet-hover);
}
.btn--sm {
  padding: 8px 14px;
  font-size: 0.95rem;
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

main {
  padding-block: 32px 64px;
}
.crumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 18px;
}
.crumbs a {
  color: inherit;
}
h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 12px;
}
.lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 12px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 28px;
}
h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 44px 0 12px;
}
h3 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
}
p,
ul,
ol {
  margin: 0 0 16px;
}
li {
  margin-bottom: 6px;
}
strong {
  font-weight: 650;
}
.answer {
  border-left: 4px solid var(--violet);
  background: var(--violet-tint);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 28px;
}
.answer p:last-child {
  margin-bottom: 0;
}
.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 0 0 20px;
  font-size: 0.98rem;
}
.note--warn {
  background: var(--warn-tint);
  border-color: #efd7a8;
}
.note--danger {
  background: var(--danger-tint);
  border-color: #f2c1bd;
}
.disclosure {
  font-size: 0.95rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
th {
  font-weight: 650;
  background: var(--violet-tint);
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
caption {
  caption-side: bottom;
  text-align: left;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 10px 14px;
}

/* Waitlist CTA block (same endpoint and states as the landing page). */
.cta {
  background: var(--violet-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 36px 0;
}
.cta h2 {
  margin: 0 0 6px;
  color: #fff;
}
.cta p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
}
.cta--inline {
  padding: 20px 22px;
}
.cta--inline h2 {
  font-size: 1.2rem;
}
.waitlist {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.waitlist label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.waitlist input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}
.waitlist input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.waitlist .btn {
  background: #fff;
  color: var(--violet-deep);
}
.waitlist .btn:hover {
  background: var(--violet-mist);
}
.waitlist__msg {
  flex-basis: 100%;
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  min-height: 1.4em;
}
.waitlist__msg a {
  color: #fff;
}
.waitlist__msg[data-tone="error"] {
  color: #ffb4ad;
}
.waitlist__msg[data-tone="success"] {
  color: #9be3c3;
}

/* Interactive tool */
.tool {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0 0 28px;
}
.tool h3 {
  margin-top: 0;
}
.tool .fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.tool label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.tool input,
.tool select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}
.tool output {
  display: block;
  margin-top: 6px;
}
.tool .result {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--violet-tint);
}
.tool .result[data-level="ok"] {
  background: var(--success-tint);
}
.tool .result[data-level="warn"] {
  background: var(--warn-tint);
}
.tool .result[data-level="stop"] {
  background: var(--danger-tint);
}
.tool .result p:last-child {
  margin-bottom: 0;
}
.tool small {
  color: var(--muted);
}

.sources {
  font-size: 0.92rem;
  color: var(--muted);
}
.sources li {
  overflow-wrap: anywhere;
}
.related {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.related a {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
}
.related a:hover {
  border-color: var(--violet);
}
.related small {
  display: block;
  color: var(--muted);
}
.footer {
  border-top: 1px solid var(--border);
  padding-block: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer nav a {
  color: var(--muted);
}
@media (max-width: 520px) {
  .btn--sm {
    padding: 7px 12px;
  }
}
