/* Capply guides — shared stylesheet for the static /guides/ pages.
   These pages are served as real files (no JS, no React) so AI/search crawlers
   can read them. Theme mirrors the landing page (pages/landing/landing.css):
   Inter/Inter Tight on white, ink #1d1d1f, Capply blue #2563eb, blue panel CTA.
   Fonts are self-hosted from /fonts/ — never swap for a CDN (CSP font-src 'self'). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-tight-latin.woff2') format('woff2');
}

:root {
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --ink: #1d1d1f;
  --text-80: rgba(0, 0, 0, .8);
  --text-70: rgba(0, 0, 0, .7);
  --grey-2nd: #6e6e73;
  --bg-card-cool: #fafafc;
  --bg-panel: #f6f6f6;
  --divider: #e8e8e8;
  --r-btn: 12px;
  --r-pill: 32px;
  --r-card: 16px;
  --r-panel: 32px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fff;
  color: var(--text-80);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

/* Header — white bar like the landing nav */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--divider);
  padding: 0.9rem 1.25rem;
}
.site-header .inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.site-header nav a {
  font-family: 'Inter Tight', sans-serif;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--blue); }
.site-header nav a.btn {
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.site-header nav a.btn:hover { background: var(--blue-dark); color: #fff; }

/* Layout */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
/* Back button — mirrors the app's (ArrowLeft + muted grey text, hover to ink) */
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--grey-2nd);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
  transition: color 0.15s ease;
}
.back:hover { color: var(--ink); }
.back svg { display: block; }

h1 {
  font-family: 'Inter Tight', sans-serif;
  color: var(--ink);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.meta {
  font-size: 0.88rem;
  color: var(--grey-2nd);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--divider);
}
h2 {
  font-family: 'Inter Tight', sans-serif;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2.4rem 0 0.8rem;
}
h3 {
  font-family: 'Inter Tight', sans-serif;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.8rem 0 0.5rem;
}
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.4rem; }
li { margin-bottom: 0.45rem; }
a { color: var(--blue); }
strong { color: var(--ink); }

.lead {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

/* Callout / answer box — the direct answer AI engines quote */
.answer {
  background: var(--bg-card-cool);
  border: 1px solid var(--divider);
  border-left: 4px solid var(--blue);
  border-radius: var(--r-btn);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.75rem;
}
.answer p:last-child { margin-bottom: 0; }

/* Cards (hub page) */
.card-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}
.card {
  display: block;
  background: var(--bg-card-cool);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  padding: 1.2rem 1.35rem;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--blue); transform: translateY(-2px); }
.card h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--grey-2nd); font-size: 0.95rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: var(--r-btn);
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
th {
  background: var(--bg-panel);
  color: var(--ink);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
}
tr:last-child td { border-bottom: none; }

/* Disclosure box (comparison page) */
.disclosure {
  background: #fef9ec;
  border: 1px solid #f0e3bb;
  border-radius: var(--r-btn);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: #6b5d33;
  margin: 0 0 1.5rem;
}

/* FAQ */
.faq-item { margin-bottom: 1.6rem; }
.faq-item h3 { margin-top: 0; }

/* CTA — blue panel, matching the landing footer panel */
.cta {
  background: var(--blue);
  color: rgba(255, 255, 255, .85);
  border-radius: var(--r-panel);
  padding: 2rem 1.9rem;
  margin-top: 3rem;
}
.cta h2 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}
.cta p { margin-bottom: 1.1rem; }
.cta a.btn {
  display: inline-block;
  background: #fff;
  color: var(--blue);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--r-pill);
}
.cta a.btn:hover { background: #f0f4ff; }
.cta .small { font-size: 0.85rem; color: rgba(255, 255, 255, .7); margin: 0.8rem 0 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 1.75rem 1.25rem 2.5rem;
  font-size: 0.88rem;
  color: var(--grey-2nd);
}
.site-footer .inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  align-items: center;
}
.site-footer a { color: var(--grey-2nd); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 480px) {
  .site-header nav a:not(.btn) { display: none; }
}
