/* Contentify Sites — baseline stylesheet.
 *
 * Inlined into a page for self-contained preview; in production the renderer
 * links one prebuilt asset instead (a compiled Tailwind build from the adopted
 * template — see docs/SITES_BLOCKS.md § Visual style). This baseline exists so a
 * freshly rendered page is presentable on its own; it is intentionally small and
 * opinionated (one look, no theme tokens), matching "one opinionated look beats a
 * theme system".
 */

:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --radius: 14px;
  --container: 1120px;
  --gap: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

.section { padding: 72px 0; }
.section__heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.section__subhead {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 32px;
  font-size: 1.05rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .05s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #4338ca; }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--bg-soft); }

/* Site chrome — header + footer. Not blocks: blocks are page content, this is
   the frame every page shares. */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 62px;
}
.site-header__brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-nav__link {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav__link:hover { color: var(--ink); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 28px 0;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__nav a { color: var(--ink-soft); text-decoration: none; }
.site-footer__nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  padding: 84px 0 64px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero__headline {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.hero__subhead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 0 28px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media img { border-radius: var(--radius); border: 1px solid var(--line); }
@media (min-width: 880px) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
}

/* Value props */
.vp-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.vp-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.vp-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--accent);
  margin-bottom: 14px;
}
.vp-card__title { margin: 0 0 6px; font-size: 1.1rem; }
.vp-card__body { margin: 0; color: var(--ink-soft); }

/* Feature grid */
.feature-grid { background: var(--bg-soft); }
.fg-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 24px;
}
.fg-item__media img { border-radius: 10px; margin-bottom: 14px; border: 1px solid var(--line); }
.fg-item__title { margin: 0 0 6px; font-size: 1.15rem; }
.fg-item__body { margin: 0; color: var(--ink-soft); }

/* Social proof */
.logo-strip {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  opacity: 0.8;
}
.logo-strip__item span { font-weight: 700; color: var(--ink-soft); font-size: 1.1rem; }
.logo-strip__item img { max-height: 36px; width: auto; }
.testimonials {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 32px;
}
.testimonial {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.testimonial__quote { margin: 0 0 16px; font-size: 1.1rem; }
.testimonial__quote::before { content: "\201C"; }
.testimonial__quote::after { content: "\201D"; }
.testimonial__author { display: block; font-weight: 700; }
.testimonial__meta { color: var(--ink-soft); font-size: 0.95rem; }

/* FAQ */
.faq-list { margin-top: 24px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq-item[open] .faq-item__q::after { content: "\2013"; }
.faq-item__a { padding: 0 0 20px; color: var(--ink-soft); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; }
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.cta-band__headline { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band__subhead { margin: 8px 0 0; color: #cbd5e1; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn--ghost { border-color: #334155; color: #fff; }
.cta-band .btn--ghost:hover { background: #1e293b; }

/* Text / prose */
.text-section__inner { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
.text-section--left .text-section__media { order: -1; }
@media (min-width: 880px) {
  .text-section--left .text-section__inner,
  .text-section--right .text-section__inner { grid-template-columns: 1fr 1fr; max-width: var(--container); }
}
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.5rem; margin: 1.4em 0 0.4em; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.2rem; margin: 1.2em 0 0.3em; }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: 0.3em 0; }
.text-section__media img { border-radius: var(--radius); border: 1px solid var(--line); }
