/* ============================================================================
   KardSight — Public site redesign (KSD-46)
   Shared foundation: design tokens + base + layout + components (nav/footer).
   Ported from the Lovable mockup (teal/navy brand, Sora + Inter).
   Plain CSS — no build step, no framework. Load once per page:
       <link rel="stylesheet" href="/css/redesign.css">
   Fonts (add to each page <head>, after the preconnects):
       <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@600;700;800&display=swap" rel="stylesheet">
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  --radius: 0.75rem;

  /* Brand palette */
  --brand: #67B1B4;          /* teal accent            */
  --brand-soft: #E6F2F3;     /* pale teal surface      */
  --brand-ink: #2B6C6F;      /* deep teal (text on soft) */
  --ink: #313850;            /* deep navy — headings   */
  --ink-deep: #1E2338;       /* darkest navy           */
  --surface: #FFFFFF;
  --surface-muted: #F4F6FA;
  --muted-foreground: #6A7285;
  --border: #E4E7EE;
  --ring: #67B1B4;
  --destructive: #DC2626;

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  --shadow-card: 0 1px 2px rgba(30, 35, 56, .04), 0 8px 24px -16px rgba(30, 35, 56, .18);
  --shadow-brand: 0 8px 24px -10px color-mix(in oklab, var(--brand) 70%, transparent);
}

/* ---- Base / reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { border-color: var(--border); }

html { font-family: var(--font-sans); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Utility text colors */
.text-brand { color: var(--brand); }
.text-muted { color: var(--muted-foreground); }
.text-ink { color: var(--ink); }

/* ---- Layout -------------------------------------------------------------- */
.container-page {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section { padding-block: 4rem; }
@media (max-width: 640px) { .section { padding-block: 1.5rem; } }

/* ---- Buttons ------------------------------------------------------------- */
.btn-primary, .btn-dark, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: color-mix(in oklab, var(--brand) 88%, black); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-deep); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* ---- Pills / tags -------------------------------------------------------- */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- Form fields --------------------------------------------------------- */
.field-input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.95rem;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 25%, transparent);
}

/* ---- Cards --------------------------------------------------------------- */
.card-surface {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ============================================================================
   Site header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1rem;
}
.site-header__logo img { height: 40px; width: auto; }

.site-nav { display: none; align-items: center; gap: 1.5rem; }
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--ink) 85%, transparent);
  transition: color .15s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  height: 2.25rem; width: 2.25rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  color: color-mix(in oklab, var(--ink) 70%, transparent);
  transition: color .15s ease, background .15s ease;
}
.icon-btn:hover { color: var(--brand); background: var(--brand-soft); }
.icon-btn img { height: 1rem; width: 1rem; object-fit: contain; }

.pill-soon {
  display: none;
  align-items: center; gap: 0.25rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 0.25rem 0.5rem;
}
.nav-login { display: none; font-size: 0.875rem; font-weight: 600; color: var(--ink); padding: 0.5rem 0.75rem; }
.nav-login:hover { color: var(--brand); }
.nav-cta { display: none; }

.nav-toggle {
  height: 2.5rem; width: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
}
.nav-toggle:hover { background: var(--brand-soft); }

/* Mobile menu panel */
/* Mobile menu panel */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: min(320px, 90vw);
  border: 1px solid var(--border);
  border-radius: 0 0 0 .75rem;
  background: #fff;
  box-shadow: var(--shadow-card);
  z-index: 50;
}
.mobile-menu.open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; padding-block: 1rem; }
.mobile-menu nav a {
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 1rem; font-weight: 500; color: var(--ink);
}
.mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] {
  background: var(--brand-soft); color: var(--brand);
}
.mobile-menu__cta { margin-top: 0.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .nav-login, .nav-cta { display: inline-flex; }
  .icon-btn.discord { display: inline-flex; }
  .nav-toggle { display: none; }
}
@media (min-width: 1024px) { .pill-soon { display: inline-flex; } }
@media (max-width: 767px) { .icon-btn.discord { display: none; } }

/* ============================================================================
   Site footer
   ========================================================================== */
.site-footer {
  margin-top: 4rem;
  background: var(--ink);
  color: rgba(255, 255, 255, .8);
  position: relative;
  overflow: hidden;
}
.site-footer__glow {
  pointer-events: none;
  position: absolute; inset-inline: 0; top: -6rem; height: 12rem; opacity: .4;
  background: radial-gradient(60% 100% at 50% 0%, color-mix(in oklab, var(--brand) 55%, transparent) 0%, transparent 70%);
}
.site-footer__inner { padding-block: 3rem; position: relative; }
.site-footer__grid { display: grid; gap: 2.5rem; text-align: center; }
.site-footer h4 {
  color: #fff; font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.site-footer a { color: rgba(255, 255, 255, .7); transition: color .15s ease; }
.site-footer a:hover { color: var(--brand); }
.site-footer ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; font-size: 0.875rem; }
.footer-socials { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.footer-socials a, .footer-socials span {
  height: 2.25rem; width: 2.25rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.footer-socials a:hover { background: var(--brand); }
/* color drives currentColor for both fill-based and stroke-based glyphs;
   do NOT force `fill` here or it overrides the stroke icons' fill="none". */
.footer-socials svg { height: 1rem; width: 1rem; color: #fff; }
/* Filled glyphs (Facebook/YouTube/Discord) carry no `fill` attr, so they default to
   black. Give them fill:currentColor — but EXCLUDE the stroke-based icons
   (Instagram/Email, fill="none") or they render as solid white blocks. */
.footer-socials svg:not([fill="none"]) { fill: currentColor; }
.footer-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: -0.02em; }
.footer-wordmark span { color: var(--brand); }
.footer-brand-copy { margin-top: 1rem; max-width: 24rem; font-size: 0.875rem; line-height: 1.6; color: rgba(255, 255, 255, .7); }
.footer-cta-btn {
  margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 0.875rem; font-weight: 600; padding: 0.625rem 1.25rem; transition: background .15s ease;
}
.footer-cta-btn:hover { background: var(--brand-ink); color: #fff; }
.site-footer__legal {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center;
  font-size: 0.75rem; color: rgba(255, 255, 255, .5);
}
.site-footer__legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; color: rgba(255, 255, 255, .6); }
.site-footer__disclaimer {
  margin-top: 2rem; margin-inline: auto; max-width: 48rem;
  border: 1px solid color-mix(in oklab, var(--brand) 30%, transparent);
  background: color-mix(in oklab, var(--brand) 10%, transparent);
  border-radius: 0.75rem; padding: 1rem 1.25rem; text-align: center;
  font-size: 0.8125rem; line-height: 1.6; color: rgba(255, 255, 255, .9);
}
.site-footer__disclaimer b { color: var(--brand); }

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; text-align: left; align-items: start; }
  .footer-col-brand { grid-column: span 5; display: flex; flex-direction: column; align-items: flex-start; }
  .footer-col-explore { grid-column: span 3; }
  .footer-col-cta { grid-column: span 4; display: flex; flex-direction: column; align-items: flex-start; }
  .footer-socials { justify-content: flex-start; }
  .site-footer__legal { flex-direction: row; justify-content: space-between; }
}

/* ============================================================================
   Reusable page components (home + about/blog/etc.)
   ========================================================================== */
/* Centered section header: eyebrow pill + title + sub */
.section-head { text-align: center; max-width: 42rem; margin-inline: auto; }
.section-head h2 { margin-top: 1rem; font-size: clamp(1.875rem, 3vw, 2.25rem); font-weight: 800; }
.section-head p { margin-top: 0.75rem; font-size: 0.95rem; color: var(--muted-foreground); }
.h2-lg { font-size: clamp(1.875rem, 5vw, 3rem) !important; }

/* Generic responsive grids */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Icon-badge tile (personas, tools, learning, features) */
.tile { border: 1px solid var(--border); background: #fff; border-radius: 1rem; padding: 1.25rem; position: relative; }
.tile__icon { height: 2.5rem; width: 2.5rem; border-radius: 0.5rem; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.tile__icon svg { height: 1.25rem; width: 1.25rem; }
.tile__title { margin-top: 0.75rem; font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.tile__body { margin-top: 0.5rem; font-size: 0.75rem; line-height: 1.6; color: var(--muted-foreground); }
.tile--row { display: flex; gap: 0.75rem; align-items: flex-start; }
.tile--row .tile__icon { flex-shrink: 0; }
.badge-corner { position: absolute; top: 0.75rem; right: 0.75rem; border-radius: 0.375rem; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; padding: 0.125rem 0.375rem; }
.badge-corner--brand { background: var(--brand); color: #fff; }
.badge-corner--ink { background: var(--ink); color: #fff; }
.mt-0 { margin-top: 0 !important; }
.pt-0 { padding-top: 0 !important; }

/* Rounded panel wrapper (how-it-works, opportunities, features) */
.panel { position: relative; overflow: hidden; border-radius: 1.5rem; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-card); padding: 3rem 1.5rem; }
@media (min-width: 768px) { .panel { padding: 3.5rem 3rem; } }
.panel--brand { background: var(--brand-soft); border: none; }
.panel__blob { pointer-events: none; position: absolute; height: 18rem; width: 18rem; border-radius: 999px; filter: blur(64px); }
.panel__blob--tr { top: -6rem; right: -6rem; background: color-mix(in oklab, var(--brand) 10%, transparent); }
.panel__blob--bl { bottom: -6rem; left: -6rem; background: var(--brand-soft); }
/* lift real content above the blobs WITHOUT re-positioning the absolute blobs themselves */
.panel > :not(.panel__blob) { position: relative; z-index: 1; }

/* Category chips row */
.chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.375rem; }
.chip { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 11px; font-weight: 600; color: color-mix(in oklab, var(--ink) 80%, transparent); padding: 0.25rem 0.625rem; }

/* Horizontal scroll-snap carousel (opportunities, testimonials) */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
@media (min-width: 640px) { .carousel__track { grid-auto-columns: 45%; } }
@media (min-width: 1024px) { .carousel__track { grid-auto-columns: calc((100% - 2.5rem) / 3); } }
.carousel__nav { margin-top: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.carousel__btn { height: 2.5rem; width: 2.5rem; border-radius: 999px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-card); display: inline-flex; align-items: center; justify-content: center; color: var(--brand); }
.carousel__btn:hover { background: var(--brand-soft); }

/* Small inset disclaimer/callout */
.callout-soft { margin-inline: auto; max-width: 48rem; border: 1px solid color-mix(in oklab, var(--brand) 20%, transparent); background: color-mix(in oklab, var(--brand-soft) 40%, transparent); border-radius: 0.75rem; padding: 0.75rem 1rem; text-align: center; font-size: 0.75rem; line-height: 1.6; color: color-mix(in oklab, var(--ink) 80%, transparent); }
.callout-soft b { color: var(--brand); }

/* Carousel dots + responsive opportunities header */
.carousel__dots { display: flex; gap: 0.375rem; align-items: center; }
.carousel__dots button { height: 0.375rem; width: 0.375rem; border-radius: 999px; background: var(--border); border: none; padding: 0; cursor: pointer; transition: width .2s ease, background .2s ease; }
.carousel__dots button[aria-current="true"] { width: 1.5rem; background: var(--brand); }
@media (min-width: 768px) {
  .opps-head { flex-direction: row !important; align-items: flex-end; justify-content: space-between; }
  .opps-head > a { align-self: auto !important; }
}

/* ============================================================================
   Page hero + content panels (about / compare / contact / blog headers)
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(to bottom, color-mix(in oklab, var(--brand-soft) 60%, transparent), #fff); }
.page-hero__inner { max-width: 48rem; margin-inline: auto; text-align: center; padding-block: 4rem; }
@media (min-width: 768px) { .page-hero__inner { padding-block: 6rem; } }
.page-hero h1 { margin-top: 1.25rem; font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.05; }
.page-hero__sub { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.7; color: var(--muted-foreground); }
.page-hero__cta { margin-top: 2rem; display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }

/* Rounded content panels */
.rpanel { position: relative; overflow: hidden; border: 1px solid var(--border); background: #fff; border-radius: 1.5rem; padding: 2rem; box-shadow: var(--shadow-card); }
@media (min-width: 768px) { .rpanel { padding: 2.5rem; } }
.rpanel--ink { background: var(--ink); color: #fff; border: none; }
.rpanel--ink h2 { color: #fff; }
.rpanel--brand { background: var(--brand-soft); border: none; box-shadow: none; }
.rpanel--brand h2 { color: var(--brand-ink); }
.rpanel__blob { pointer-events: none; position: absolute; height: 18rem; width: 18rem; border-radius: 999px; filter: blur(64px); }
.rpanel > :not(.rpanel__blob) { position: relative; z-index: 1; }

/* About stat cards */
.stat-card { border: 1px solid var(--border); background: #fff; border-radius: 1rem; padding: 1.5rem; text-align: center; }
.stat-card .v { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; color: var(--ink); }
.stat-card .l { margin-top: .25rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); }

/* Check-list item card */
.check-item { display: flex; align-items: flex-start; gap: .75rem; border: 1px solid var(--border); background: #fff; border-radius: 1rem; padding: 1.25rem; }
.check-item svg { flex-shrink: 0; margin-top: 2px; color: var(--brand); }
.check-item span { font-size: .875rem; color: var(--ink); line-height: 1.6; }

/* Pill on dark */
.pill-dark { display: inline-flex; align-items: center; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; padding: .25rem .75rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Two-column responsive split */
.split-2 { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .split-2 { grid-template-columns: 1fr 1fr; } }

/* ============================================================================
   Blog index cards
   ========================================================================== */
.blog-featured { display: grid; grid-template-columns: 1fr; border: 1px solid var(--border); border-radius: 1.5rem; overflow: hidden; background: #fff; transition: box-shadow .2s ease; }
.blog-featured:hover { box-shadow: 0 24px 48px -20px rgba(30,35,56,.25); }
@media (min-width: 1024px) { .blog-featured { grid-template-columns: 1.1fr 1fr; } }
.blog-thumb { position: relative; min-height: 260px; display: flex; align-items: center; justify-content: center; }
.blog-thumb svg { color: rgba(255,255,255,.9); }
.blog-featured__body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .blog-featured__body { padding: 2.5rem; } }
.blog-cat { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.blog-featured__body h2 { margin-top: .75rem; font-size: clamp(1.5rem,3vw,1.875rem); font-weight: 800; line-height: 1.15; transition: color .15s ease; }
.blog-featured:hover h2 { color: var(--brand); }
.blog-meta { margin-top: 1.25rem; display: flex; align-items: center; gap: 1rem; font-size: .75rem; color: var(--muted-foreground); }

.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { border: 1px solid var(--border); background: #fff; border-radius: 1rem; overflow: hidden; transition: box-shadow .2s ease; display: block; }
.blog-card:hover { box-shadow: 0 16px 32px -16px rgba(30,35,56,.22); }
.blog-card__thumb { height: 10rem; display: flex; align-items: center; justify-content: center; }
.blog-card__thumb svg { color: rgba(255,255,255,.9); }
.blog-card__body { padding: 1.25rem; }
.blog-card__body h3 { margin-top: .5rem; font-size: 1rem; font-weight: 700; line-height: 1.3; transition: color .15s ease; }
.blog-card:hover h3 { color: var(--brand); }
.blog-card__excerpt { margin-top: .5rem; font-size: .75rem; color: var(--muted-foreground); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card__foot { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: var(--muted-foreground); }
.read-link { display: inline-flex; align-items: center; gap: .25rem; color: var(--brand); font-weight: 600; }

/* thumbnail gradients */
.grad-teal { background: linear-gradient(135deg, #2dd4bf, #0891b2); }
.grad-amber { background: linear-gradient(135deg, #fcd34d, #f97316); }
.grad-sky { background: linear-gradient(135deg, #38bdf8, #4f46e5); }
.grad-fuchsia { background: linear-gradient(135deg, #e879f9, #9333ea); }
.grad-rose { background: linear-gradient(135deg, #fb7185, #dc2626); }

/* ============================================================================
   Blog post (article) template
   ========================================================================== */
.post-banner { height: 16rem; display: flex; align-items: center; justify-content: center; }
.post-banner svg { color: rgba(255,255,255,.9); }
.post-wrap { max-width: 48rem; margin-inline: auto; margin-top: -4rem; position: relative; padding-inline: 1.5rem; }
@media (min-width: 768px) { .post-wrap { margin-top: -5rem; } }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow-card); padding: 2rem; }
@media (min-width: 768px) { .post-card { padding: 3rem; } }
.post-back { display: inline-flex; align-items: center; gap: .375rem; font-size: .75rem; font-weight: 600; color: var(--brand); }
.post-back:hover { text-decoration: underline; }
.post-card h1 { margin-top: .5rem; font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; }
.post-meta { margin-top: 1.25rem; display: flex; align-items: center; gap: 1rem; font-size: .75rem; color: var(--muted-foreground); border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; }

/* Prose — styles the existing .article-content markup */
.article-prose { margin-top: 1.5rem; font-size: 1rem; line-height: 1.75; color: color-mix(in oklab, var(--ink) 85%, transparent); }
.article-prose > *:first-child { margin-top: 0; }
.article-prose h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 2rem 0 .75rem; }
.article-prose h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 1.5rem 0 .5rem; }
.article-prose p { margin: 1rem 0; }
.article-prose ul, .article-prose ol { margin: 1rem 0; padding-left: 1.25rem; }
.article-prose li { margin: .375rem 0; }
.article-prose a { color: var(--brand); font-weight: 600; }
.article-prose a:hover { text-decoration: underline; }
.article-prose strong { color: var(--ink); font-weight: 700; }
.article-prose img { border-radius: .75rem; margin: 1.5rem 0; }
.article-prose blockquote { border-left: 3px solid var(--brand); padding-left: 1rem; margin: 1.25rem 0; color: var(--muted-foreground); font-style: italic; }
.article-prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9rem; }
.article-prose th, .article-prose td { border: 1px solid var(--border); padding: .5rem .75rem; text-align: left; }
.article-prose th { background: var(--surface-muted); font-weight: 700; color: var(--ink); }
.post-cta { margin-top: 2.5rem; border-radius: 1rem; background: var(--brand-soft); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
@media (min-width: 640px) { .post-cta { flex-direction: row; align-items: center; justify-content: space-between; } }
.post-cta__t { font-size: .875rem; font-weight: 700; color: var(--brand-ink); }
.post-cta__s { font-size: .75rem; color: color-mix(in oklab, var(--brand-ink) 80%, transparent); }

/* ============================================================================
   Partner / integration tiles (about + home) — mockup: rounded-2xl border,
   surface-muted/50 bg, p-5; logo in an h-16 box, max-h-16 max-w-[140px] contain.
   ========================================================================== */
.partner { border: 1px solid var(--border); background: color-mix(in oklab, var(--surface-muted) 50%, transparent);
  border-radius: 1rem; padding: 1.25rem; display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease; }
.partner:hover { border-color: color-mix(in oklab, var(--brand) 40%, transparent); box-shadow: var(--shadow-card); }
.partner__logo { height: 4rem; width: 100%; display: flex; align-items: center; justify-content: center; }
.partner__logo img { max-height: 4rem; max-width: 140px; object-fit: contain; }
.partner__name { margin-top: 1rem; font-size: .875rem; font-weight: 800; color: var(--ink); }
.partner__note { margin-top: .25rem; font-size: 11px; color: var(--muted-foreground); }

/* About page final CTA — text left, button right on md+ (mockup layout) */
.about-cta { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1fr; }
.about-cta > a { justify-self: start; }
@media (min-width: 768px) {
  .about-cta { grid-template-columns: 1fr auto; }
  .about-cta > a { justify-self: end; flex-shrink: 0; }
}

/* ============================================================================
   Accordion card (contact "how we help", subscribe FAQ, etc.)
   Promoted to shared so every page that uses .faq-item gets the bordered card.
   ========================================================================== */
.faq-item { border: 1px solid var(--border); border-radius: 1rem; background: #fff; box-shadow: var(--shadow-card); overflow: hidden; }
.faq-item .accordion-btn { width: 100%; display: flex; align-items: center; gap: 1rem; text-align: left; background: #fff; border: none; border-radius: 0; margin: 0; padding: 1.25rem; font-family: inherit; font-size: .95rem; font-weight: 700; color: var(--ink); cursor: pointer; transition: background .15s ease; }
.faq-item .accordion-btn:hover { background: color-mix(in oklab, var(--brand-soft) 40%, transparent); }
.faq-item .accordion-icon { flex-shrink: 0; color: var(--brand); transition: transform .2s ease; }
.faq-item .accordion-content { max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.faq-item .accordion-content p { padding: 0 1.25rem 1.25rem; margin: 0; font-size: .875rem; line-height: 1.7; color: var(--muted-foreground); }
