/* Frum Finance customer guides: static, no build step. */
:root {
  --ink: #1e1b4b;
  --ink-soft: #4b5563;
  --primary: #4338ca;
  --primary-deep: #312e81;
  --primary-wash: #eef2ff;
  --accent: #d97706;
  --accent-wash: #fffbeb;
  --growth: #0d9488;
  --line: #e5e7eb;
  --bg: #fafafa;
  --card: #ffffff;
  --code-bg: #f3f4f6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

header.site {
  background: var(--primary-deep);
  color: #fff;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #818cf8, #4338ca);
  color: #fff;
  font-size: 1rem;
}

nav.site a {
  color: #c7d2fe;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
}

nav.site a:hover,
nav.site a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

main.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 4rem;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: 1.9rem;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.35rem;
  margin: 2.4rem 0 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 1.08rem;
  margin: 1.6rem 0 0.4rem;
}

p.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0.2rem 0 1.5rem;
}

p {
  margin: 0.7rem 0;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-deep);
}

code {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.08rem 0.35rem;
  font-size: 0.88em;
  word-break: break-all;
}

pre {
  background: var(--primary-deep);
  color: #e0e7ff;
  border-radius: 0.7rem;
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
}

pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
  font-size: 0.9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.94rem;
  background: var(--card);
  border-radius: 0.7rem;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--primary-wash);
  color: var(--primary-deep);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 1.5rem 0;
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(49, 46, 129, 0.12);
  color: inherit;
}

.card h3 {
  margin: 0 0 0.25rem;
  color: var(--primary-deep);
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.callout {
  border-radius: 0.7rem;
  padding: 0.85rem 1.1rem;
  margin: 1.1rem 0;
  border: 1px solid;
  font-size: 0.95rem;
}

.callout.info {
  background: var(--primary-wash);
  border-color: #c7d2fe;
}

.callout.warn {
  background: var(--accent-wash);
  border-color: #fde68a;
}

.callout.good {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.callout strong:first-child {
  display: block;
  margin-bottom: 0.15rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1rem 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.1rem 2.7rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps > li::after {
  content: "";
  position: absolute;
  left: 0.92rem;
  top: 2.15rem;
  bottom: 0.2rem;
  width: 2px;
  background: #c7d2fe;
}

.steps > li:last-child::after {
  display: none;
}

.scope-chip {
  display: inline-block;
  background: var(--primary-wash);
  color: var(--primary-deep);
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

footer.site {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 1.5rem 1rem 2rem;
}

footer.site a {
  color: var(--ink-soft);
}

@media (max-width: 40rem) {
  h1 {
    font-size: 1.55rem;
  }
  main.wrap {
    padding-top: 1.6rem;
  }
}
