/* Shared styling for the long-form marketing pages (G2, docs/MARKETING.md §4).
 *
 * index.html keeps its own inline styles because it is a single full-bleed hero
 * and shares almost nothing with these. Everything below is for prose pages, so
 * it lives in one file rather than being pasted into seven of them.
 *
 * Palette and type intentionally match index.html — a visitor arriving from a
 * search result should not feel like they left the product.
 */

:root {
  --bg0: #07080c;
  --bg1: #12151c;
  --ink: #f4efe6;
  --muted: #a8a093;
  --amber: #e8a14a;
  --amber-deep: #c47a22;
  --line: rgba(244, 239, 230, 0.12);
  --ok: #7fc08a;
  --no: #b4675f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(232, 161, 74, 0.16), transparent 58%),
    radial-gradient(760px 520px at -12% 42%, rgba(70, 110, 160, 0.14), transparent 55%),
    var(--bg0);
  background-attachment: fixed;
}

/* ---------- chrome ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem clamp(1.15rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.mark-t {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a1208;
  background: linear-gradient(145deg, #f0c07a, var(--amber-deep));
  box-shadow: 0 8px 24px rgba(232, 161, 74, 0.22);
}

.mark span {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 0.35rem 1.15rem;
  flex-wrap: wrap;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover { color: var(--ink); border-bottom-color: var(--amber); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }

main {
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 4rem) clamp(1.15rem, 4vw, 3rem) 4rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem clamp(1.15rem, 4vw, 3rem) 2.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; }

/* ---------- prose ---------- */

.crumb {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--amber); }

h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.05rem, 5.2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
}

h1 em { font-style: normal; color: var(--amber); }

h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 1.72rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 2.9rem 0 0.75rem;
}

h3 {
  font-size: 1.06rem;
  font-weight: 600;
  margin: 1.9rem 0 0.5rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.06rem, 2.3vw, 1.18rem);
  margin: 0 0 1.6rem;
}

p { margin: 0 0 1.05rem; }
a { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(232, 161, 74, 0.32); }
a:hover { border-bottom-color: var(--amber); }

ul, ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
li { margin: 0 0 0.45rem; }
li::marker { color: var(--amber); }

strong { color: #fff; font-weight: 600; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(244, 239, 230, 0.07);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.08em 0.36em;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }

/* ---------- components ---------- */

.card {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  padding: 1.15rem 1.25rem;
  background: rgba(244, 239, 230, 0.028);
  margin: 0 0 1rem;
}

.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.note {
  border-left: 3px solid var(--amber);
  background: rgba(232, 161, 74, 0.07);
  border-radius: 0 0.7rem 0.7rem 0;
  padding: 0.95rem 1.1rem;
  margin: 0 0 1.35rem;
}

.note :last-child { margin-bottom: 0; }

/* Ordered steps that stay legible when a heading wraps. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.4rem; }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 2.6rem;
  margin: 0 0 0.9rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.08rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1208;
  background: linear-gradient(145deg, #f0c07a, var(--amber-deep));
}

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

.grid .card { margin: 0; }

/* Tables scroll rather than squash on a phone. */
.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.94rem;
}

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

th { color: var(--ink); font-weight: 600; white-space: nowrap; }
td { color: var(--muted); }
tbody tr:hover td { background: rgba(244, 239, 230, 0.022); }
.yes { color: var(--ok); }
.no { color: var(--no); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.95rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #1a1208; background: linear-gradient(145deg, #f0c07a, var(--amber)); }
.btn-primary:hover { background: linear-gradient(145deg, #f6d19a, #eead5a); }

.btn-secondary {
  color: var(--ink);
  background: rgba(244, 239, 230, 0.04);
  border-color: var(--line);
}

.btn-secondary:hover { border-color: rgba(232, 161, 74, 0.45); background: rgba(232, 161, 74, 0.08); }
.ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.6rem 0 0; }

details {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.85rem 1.05rem;
  margin: 0 0 0.65rem;
  background: rgba(244, 239, 230, 0.022);
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--amber);
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

details[open] summary::after { content: "\2212"; }
details[open] summary { margin-bottom: 0.6rem; }
details > :last-child { margin-bottom: 0; }

.next {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2.4rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.next a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.next a:hover { color: var(--ink); border-color: rgba(232, 161, 74, 0.45); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}
