/* ============================================================================
   OFFIQA — Calm Editorial Workspace
   Unified design system v2.0 · single source of truth for all 148 pages.
   Replaces every per-page stylesheet + the old layout normalization file.
   Aesthetic: warm paper · deep evergreen ink · ochre signal · editorial serif.
   ========================================================================== */

:root {
  /* ---- Surfaces (cool gray, matches the page background) ---- */
  --paper:        #F0F4F9;
  --paper-2:      #E4EAF2;
  --surface:      #FBFCFE;
  --surface-2:    #EFF3F8;

  /* ---- Ink & text ---- */
  --ink:          #161E1A;
  --ink-2:        #2C342E;
  --muted:        #67706A;
  --faint:        #8E958D;

  /* ---- Lines (cool gray) ---- */
  --line:         #DDE3EC;
  --line-2:       #C9D2DF;
  --line-soft:    #E6EBF2;

  /* ---- Brand: deep evergreen ---- */
  --green:        #16463B;
  --green-700:    #0F332A;
  --green-600:    #1B5346;
  --green-400:    #3F7A6B;
  --green-300:    #6E9A8C;
  --green-soft:   #E4ECE6;
  --green-tint:   #EEF3EE;

  /* ---- Links ---- */
  --link:         #1a4fba;
  --link-hover:   #1338a8;

  /* ---- UI accent: teal (section kickers, eyebrows) ---- */
  --teal:         #0891b2;
  --teal-dark:    #0e7490;
  --teal-border:  rgba(14, 116, 144, 0.22);
  --teal-tint:    rgba(236, 254, 255, 0.9);

  /* ---- Accent: warm ochre / terracotta ---- */
  --ochre:        #BC6A2E;
  --ochre-700:    #99511F;
  --ochre-soft:   #F4E6D2;
  --ochre-tint:   #F8EFE0;

  /* ---- States ---- */
  --success:      #2F6B4A;
  --success-soft: #E5F0E7;
  --warning:      #8A5712;
  --warning-soft: #F7EBD2;

  /* ---- Shadows (cool slate-tinted) ---- */
  --shadow-xs: 0 1px 2px rgba(30, 41, 59, 0.05);
  --shadow-sm: 0 6px 20px rgba(30, 41, 59, 0.07);
  --shadow-md: 0 18px 44px rgba(30, 41, 59, 0.10);
  --shadow-lg: 0 34px 80px rgba(15, 23, 42, 0.16);

  /* ---- Radii ---- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  /* ---- Spacing ---- */
  --space-1: 0.35rem;
  --space-2: 0.65rem;
  --space-3: 1rem;
  --space-4: 1.4rem;
  --space-5: 2.1rem;
  --space-6: 3.1rem;
  --space-7: 4.6rem;

  /* ---- Type ---- */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---- Layout widths (folds in old layout normalization) ---- */
  --site-page-width: 1180px;
  --site-readable-width: 880px;
  --site-gutter: 22px;
  --max: var(--site-page-width);
  --max-width: var(--site-page-width);
  --content-width: var(--site-readable-width);
}

* { box-sizing: border-box; }

html {
  width: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.68;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: #EEF2F7;
  background-image:
    radial-gradient(58rem 38rem at 8% -8%, rgba(37, 99, 235, 0.05), transparent 60%),
    radial-gradient(46rem 34rem at 102% 2%, rgba(14, 116, 144, 0.04), transparent 58%);
  background-attachment: fixed;
}

/* faint paper grain for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("/assets/img/paper-grain.svg");
}

.editorial-image {
  margin: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.editorial-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-lg, 1rem);
}

.editorial-image .image-credit {
  margin-top: .45rem;
  font-size: .75rem;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------------------------------------------------------------- Typography */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.018em;
  font-optical-sizing: auto;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  letter-spacing: -0.024em;
}

h3 {
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1.25;
}

h4 { font-size: 1.02rem; font-weight: 600; }

p {
  margin: 0 0 var(--space-3);
  color: var(--ink-2);
}

.small, p.small, .meta { font-size: 0.9rem; color: var(--muted); }
.notice-spaced { margin-top: 1rem; }

strong { color: var(--ink); font-weight: 700; }

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(26, 79, 186, 0.35);
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; text-decoration-color: var(--link-hover); }

ul, ol { margin: 0 0 var(--space-3); padding-left: 1.3rem; color: var(--ink-2); }
li { margin: 0.4rem 0; }
li::marker { color: var(--green-400); }

code {
  max-width: 100%;
  padding: 0.08rem 0.32rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.35rem;
  background: rgba(248, 250, 253, 0.72);
  color: var(--green-700);
  font-family: var(--font-mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

pre {
  display: block;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-overflow-scrolling: touch;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

pre code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  white-space: inherit;
}

::selection { background: var(--green); color: #fff; }

img, svg, video, canvas, iframe { max-width: 100%; height: auto; }

:focus-visible { outline: 2.5px solid var(--green-400); outline-offset: 3px; border-radius: 4px; }

/* ----------------------------------------------------------------- Layout */
main.page, .page {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (var(--site-gutter) * 2)), var(--site-page-width));
  max-width: var(--site-page-width);
  margin: var(--space-5) auto 0;
  padding: 0 0 var(--space-6);
}

section { margin: var(--space-7) 0; }
section > p, article > p { max-width: 74ch; }

article { min-width: 0; }

.split, .with-sidebar, .grid, .columns,
.trust-grid, .footer-grid, .scenario-grid,
.demo-grid, .feature-list, .resource-list,
.pros-cons, .definition-list, .checkbox-grid, .form-grid {
  width: 100%;
  max-width: 100%;
}

.grid > *, .split > *, .with-sidebar > *,
.card, .pricing-card, .persona-card,
.soft, .notice, .quote-box, .sidebar, .sidebar-card,
.workspace-card, .workspace-recipe, .copy-block, .template-box,
.cta-card, .resource-list a, .path-selector a {
  min-width: 0;
}

h1, h2, h3, h4, p, li, dd, td, th,
.button, .badge, .pill, .chip, .tag, .label,
.app-stack span, .tag-list li, .source-pill {
  overflow-wrap: break-word;
}

.grid { display: grid; gap: var(--space-4); }
.grid.two, .two, .columns.two, .split, .demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.grid.three, .three, .trust-grid, .scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.grid.four, .four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.split { align-items: start; gap: var(--space-6); }

.with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(280px, 0.82fr);
  align-items: start;
  gap: var(--space-6);
}

/* =====================================================================
   GLOBAL NAVBAR
   ===================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  margin: 0;
  background: #0B1229;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: var(--site-page-width);
  margin: 0 auto;
  padding: 0.65rem var(--site-gutter);
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; color: #fff; }

.brand-mark {
  display: inline-grid;
  width: 1.95rem;
  height: 1.95rem;
  place-items: center;
  border-radius: 0.5rem;
  background: linear-gradient(145deg, #3B82F6, #2563EB);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.04em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 3px 10px rgba(37, 99, 235, 0.35);
}

.brand-logo {
  display: block;
  flex-shrink: 0;
  width: 1.95rem;
  height: 1.95rem;
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav a {
  padding: 0.46rem 0.78rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav a:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.nav a.active { color: #fff; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

/* search pill */
.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
  min-width: 148px;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.nav-search:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.22); color: rgba(255,255,255,0.55); text-decoration: none; }
.nav-search-icon { width: 0.78rem; height: 0.78rem; color: rgba(255,255,255,0.38); flex-shrink: 0; }
.nav-search span { color: rgba(255,255,255,0.35); }
.nav-search kbd {
  margin-left: auto;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  color: rgba(255,255,255,0.4);
  font-style: normal;
}

/* "Install" plain text link */
.nav a.nav-install,
.nav-right a.nav-install {
  padding: 0.46rem 0.72rem;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav a.nav-install:hover,
.nav-right a.nav-install:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }

.nav a.nav-login,
.nav-right a.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.44rem 0.9rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.nav a.nav-login:hover,
.nav-right a.nav-login:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  text-decoration: none;
}

.nav a.nav-cta,
.nav-right a.nav-cta {
  padding: 0.48rem 1.05rem;
  background: #2563EB;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}
.nav a.nav-cta:hover,
.nav-right a.nav-cta:hover { background: #1D4ED8; color: #fff; text-decoration: none; }

/* ── Nav icon buttons (admin: notifications / mail) ───────────────────────── */
.nav-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav-icon-dot {
  position: absolute;
  top: 0.4rem;
  right: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #2563EB;
}
/* Numeric unread badge (mail icon): contact-form + inbox unread count. */
.nav-icon-badge {
  position: absolute;
  top: 0.05rem;
  right: 0.02rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.28rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2563EB;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px #0B1229;
}
.nav-icon-badge.is-hidden { display: none; }

/* ── Nav user menu (shown when authenticated) ─────────────────────────────── */
.nav-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem 0.35rem 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
  line-height: 1;
}
.nav-user-btn:hover,
.nav-user-menu:hover .nav-user-btn {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.nav-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #fff;
  flex-shrink: 0;
}

.nav-user-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  padding-right: 0.15rem;
}

/* Dropdown panel */
.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 170px;
  background: #1e2130;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
  padding: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 200;
}
.nav-user-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Arrow pointing up */
.nav-user-dropdown-arrow {
  position: absolute;
  top: -6px;
  right: 14px;
  width: 10px;
  height: 10px;
  background: #1e2130;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
}

.nav-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.845rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease;
  white-space: nowrap;
}
.nav-user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}
.nav-user-dropdown-item svg {
  flex-shrink: 0;
  opacity: 0.65;
}
.nav-user-dropdown-item:hover svg { opacity: 1; }

.nav-user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.3rem 0.4rem;
}

.nav-user-dropdown-item--danger {
  color: rgba(248, 113, 113, 0.9);
}
.nav-user-dropdown-item--danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

/* ── Admin notification bell dropdown ─────────────────────────────────────── */
.nav-notif-menu { position: relative; display: inline-flex; align-items: center; }
.nav-notif-dropdown {
  min-width: 260px;
  max-width: 320px;
  max-height: 360px;
  overflow-y: auto;
}
.nav-notif-title {
  padding: 0.4rem 0.65rem 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-notif-item {
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
}
.nav-notif-item:hover { background: rgba(255, 255, 255, 0.06); }
.nav-notif-item-text {
  font-size: 0.845rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}
.nav-notif-item-text strong { color: #fff; }
.nav-notif-item-addr {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}
.nav-notif-item-time {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}
.nav-notif-empty {
  padding: 0.75rem 0.65rem;
  font-size: 0.845rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}
/* Unread inbox email: subtle left accent + brighter text. */
.nav-notif-item--unread {
  position: relative;
  background: rgba(37, 99, 235, 0.08);
}
.nav-notif-item--unread::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #2563EB;
}
.nav-notif-item--unread .nav-notif-item-text { color: #fff; }
/* Inbox items are links to the reader page. */
.nav-notif-item--link { display: block; text-decoration: none; }
.nav-notif-item--link:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }
/* "Open Inbox →" footer of the mail dropdown. */
.nav-notif-foot {
  display: block;
  margin-top: 0.25rem;
  padding: 0.5rem 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: #93b4ff;
  text-align: center;
  text-decoration: none;
}
.nav-notif-foot:hover { color: #fff; text-decoration: none; }
.nav-user-dropdown-item--danger svg { color: currentColor; }

/* ── Admin webmail (Inbox list / reader / compose) ─────────────────────────── */
.admin-inbox {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
  color: #1a2233;
  font-family: inherit;
}
.inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.inbox-head h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0b1229;
  word-break: break-word;
}
.inbox-head-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.inbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: 0.55rem;
  border: 1px solid #d4d7e3;
  background: #fff;
  color: #2a3143;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.inbox-btn:hover { background: #f3f4fb; border-color: #b9bdd0; text-decoration: none; }
.inbox-btn--primary { background: #2563EB; border-color: #2563EB; color: #fff; }
.inbox-btn--primary:hover { background: #1D4ED8; border-color: #1D4ED8; }
.inbox-btn--danger { color: #b42318; border-color: #f0c4c0; background: #fff5f4; }
.inbox-btn--danger:hover { background: #fdeae8; border-color: #e6a29c; }

.inbox-notice {
  margin-bottom: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.55rem;
  font-size: 0.88rem;
  font-weight: 500;
}
.inbox-notice--ok  { background: #e7f6ec; color: #216e3a; border: 1px solid #b7e2c4; }
.inbox-notice--err { background: #fdecea; color: #b42318; border: 1px solid #f3c2bd; }

.inbox-list {
  background: #fff;
  border: 1px solid #e5e7f0;
  border-radius: 0.75rem;
  overflow: hidden;
}
.inbox-empty { padding: 2rem 1rem; text-align: center; color: #6b7280; }
.inbox-row {
  display: grid;
  grid-template-columns: 0.5rem minmax(9rem, 15rem) 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eef0f6;
  text-decoration: none;
  color: #2a3143;
}
.inbox-row:last-child { border-bottom: none; }
.inbox-row:hover { background: #f7f8fc; text-decoration: none; }
.inbox-row-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: transparent; }
.inbox-row--unread { background: #f4f8ff; }
.inbox-row--unread .inbox-row-dot { background: #2563EB; }
.inbox-row--unread .inbox-row-from strong { color: #0b1229; }
.inbox-row-from {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}
.inbox-row-addr { color: #8a90a2; font-size: 0.8rem; }
.inbox-row-subject {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #4b5162;
  font-size: 0.9rem;
}
.inbox-row-date { color: #9096a8; font-size: 0.78rem; white-space: nowrap; }

.inbox-msg-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid #e5e7f0;
  border-radius: 0.75rem 0.75rem 0 0;
  border-bottom: none;
}
.inbox-msg-date { color: #9096a8; font-size: 0.82rem; white-space: nowrap; }
.inbox-msg-body {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e5e7f0;
  border-top: 1px solid #eef0f6;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2a3143;
  white-space: pre-wrap;
  word-break: break-word;
}
.inbox-atts {
  padding: 0.6rem 1rem;
  background: #fff;
  border-left: 1px solid #e5e7f0;
  border-right: 1px solid #e5e7f0;
  font-size: 0.82rem;
}
.inbox-atts-label { font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.72rem; }
.inbox-atts ul { margin: 0.3rem 0 0; padding-left: 1.1rem; color: #4b5162; }
.inbox-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e5e7f0;
  border-top: 1px solid #eef0f6;
  border-radius: 0 0 0.75rem 0.75rem;
}

.inbox-compose {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid #e5e7f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.inbox-field { display: flex; flex-direction: column; gap: 0.35rem; }
.inbox-field > span { font-size: 0.8rem; font-weight: 600; color: #4b5162; }
.inbox-field input,
.inbox-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d4d7e3;
  border-radius: 0.55rem;
  font: inherit;
  font-size: 0.92rem;
  color: #1a2233;
  background: #fff;
}
.inbox-field textarea { resize: vertical; line-height: 1.55; }
.inbox-field input:focus,
.inbox-field textarea:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.inbox-compose .inbox-msg-actions { padding: 0; background: none; border: none; }

@media (max-width: 640px) {
  .inbox-row { grid-template-columns: 0.5rem 1fr auto; }
  .inbox-row-subject { display: none; }
}


/* mobile hamburger */
.nav-toggle-cb { display: none; }
.nav-toggle {
  display: none;
  width: 2.3rem; height: 2.3rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.6rem;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 1rem; height: 1.5px;
  background: rgba(255,255,255,0.85); transform: translateX(-50%); border-radius: 2px; transition: 0.2s ease;
}
.nav-toggle span { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ----------------------------------------------------------- Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); font-weight: 500; text-decoration: none; }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb span { color: var(--faint); }
.breadcrumb > span:last-child, .breadcrumb > *:last-child { color: var(--ink); font-weight: 600; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-6);
  padding: clamp(2.2rem, 5.5vw, 4.6rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(34rem 24rem at 86% -20%, rgba(37, 99, 235, 0.08), transparent 62%),
    radial-gradient(40rem 30rem at -8% 120%, rgba(14, 116, 144, 0.06), transparent 60%),
    linear-gradient(165deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-md);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(30, 41, 59, 0.08) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom right, #000, transparent 60%);
  mask-image: linear-gradient(to bottom right, #000, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

/* =====================================================================
   HERO SPLIT — 2-column layout for product/pricing pages
   Usage: <header class="hero hero-split">
            <div class="hero-col-main">eyebrow + h1 + actions</div>
            <div class="hero-col-aside">lead + meta + trust pills</div>
          </header>
   ===================================================================== */
.hero.hero-split {
  /* Override default dark bg: use deep navy matching homepage home-hero */
  background:
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(22, 70, 59, 0.18), transparent 65%),
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(15, 40, 80, 0.22), transparent 65%),
    linear-gradient(160deg, #080f1e 0%, #0a1628 55%, #0b1c14 100%);
  border-color: rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

/* Override dot grid pattern for dark bg */
.hero.hero-split::before {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
}

/* Left column: eyebrow + h1 + buttons */
.hero-col-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero-col-main .eyebrow {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.2rem;
}
.hero-col-main .eyebrow::before {
  background: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}
.hero.hero-split h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 2rem;
}
.hero-col-main .hero-actions {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
/* Dark-bg button overrides */
.hero.hero-split .button.btn-dark {
  background: #38BDF8;
  color: #0F172A;
  border: none;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.4);
  font-weight: 700;
}
.hero.hero-split .button.btn-dark:hover {
  background: #7DD3FC;
  box-shadow: 0 0 34px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}
.hero.hero-split .button.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
.hero.hero-split .button.btn-outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Right column: lead + meta + trust pills */
.hero-col-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero.hero-split .lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  max-width: 48ch;
  margin: 0;
}
.hero.hero-split .meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}
/* Trust pills row */
.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.hero-trust-pills span {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Mobile: stack columns */
@media (max-width: 860px) {
  .hero.hero-split {
    grid-template-columns: 1fr;
  }
  .hero.hero-split h1 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }
}


.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.2rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid var(--teal-border);
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.18);
}

.lead {
  max-width: 60ch;
  margin: 1.3rem 0 0;
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
  line-height: 1.62;
}

.review {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.review .meta-pill {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.hero-actions, .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
  align-items: center;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 51, 42, 0.26), inset 0 1px 0 rgba(255,255,255,0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.button:hover {
  background: var(--green-700);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 51, 42, 0.32), inset 0 1px 0 rgba(255,255,255,0.16);
}
.button:active { transform: translateY(0); }

.button.secondary {
  background: transparent;
  color: var(--green-700);
  border-color: var(--line-2);
  box-shadow: none;
}
.button.secondary:hover {
  background: var(--green-tint);
  border-color: var(--green-300);
  color: var(--green-700);
  box-shadow: var(--shadow-xs);
}

/* =====================================================================
   SECTION KICKERS / HEADERS
   ===================================================================== */
.section-kicker, .section-header .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  padding: 0.32rem 0.72rem 0.32rem 0.58rem;
  border: 1px solid var(--teal-border);
  border-radius: 999px;
  background: var(--teal-tint);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.section-kicker::before {
  content: "";
  width: 0.44rem; height: 0.44rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}
h2 + p, .section-kicker + h2 { margin-top: 0.5rem; }
.section-header { margin-bottom: var(--space-4); }

/* =====================================================================
   CARDS
   ===================================================================== */
.card {
  position: relative;
  min-width: 0;
  box-sizing: border-box;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card > h3 { margin-bottom: 0.5rem; }
.card > p:last-child { margin-bottom: 0; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--green-700); }

.grid .card:hover, .trust-strip .card:hover, .persona-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-300);
}

/* persona / role cards updated to new layout */
.persona-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.persona-card {
  background: #FFFFFF;
  border: none;
  border-radius: var(--r-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  padding: 1.8rem 2rem;
  width: calc(50% - 0.8rem);
  display: flex;
  flex-direction: column;
}
.persona-grid .persona-card:nth-child(n+3) {
  width: calc(33.333% - 1.07rem);
}
.persona-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 0.8rem;
}
.persona-card p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.persona-card .button.secondary {
  margin-top: auto;
  border-radius: var(--r-xl);
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  box-shadow: none;
}
.persona-card .button.secondary:hover {
  background: var(--surface-2);
  border-color: var(--ink-3);
}

@media (max-width: 800px) {
  .persona-grid .persona-card,
  .persona-grid .persona-card:nth-child(n+3) {
    width: 100%;
  }
}
/* status cards / trust strip */
.trust-strip, .trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.status-card { background: var(--green-tint); border-color: var(--green-soft); }
.status-card h3 { color: var(--green-700); }

/* pricing */
.pricing-card {
  position: relative;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.pricing-card .badge, .badge {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--ochre-tint);
  color: var(--ochre-700);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-line {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.price-line span { display: block; font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500; color: var(--muted); }

/* =====================================================================
   SOFT / FEATURED SECTIONS
   ===================================================================== */
.soft {
  padding: clamp(1.8rem, 4vw, 3.2rem);
}
.soft > .section-kicker { margin-top: 0; }

/* =====================================================================
   QUOTE BOX — editorial pull quote
   ===================================================================== */
.quote-box {
  position: relative;
  margin: var(--space-4) 0 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  background: transparent;
  box-shadow: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}
.quote-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  border-left: 3px solid var(--ink);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

/* =====================================================================
   WORKSPACE RECIPE / DEMO COMPONENTS
   ===================================================================== */
.workspace-recipe { min-width: 0; }
.workspace-card {
  padding: 2.2rem 2.5rem;
  border: none;
  border-radius: var(--r-md);
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.workspace-card h3 { 
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1rem 0 0.3rem; 
}
.workspace-card p.small {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-bottom: 1.2rem;
}
.workspace-card p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.workspace-card p strong {
  color: var(--ink);
  font-weight: 600;
}

.tag-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0 0 0.4rem; padding: 0; list-style: none;
}
.tag-list li,
.tag-list > span {
  margin: 0;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: #EEF2F7;
  color: #64748B;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.15s ease;
}
.tag-list > span:hover { background: var(--green-tint); }
.tag-list a { color: inherit; text-decoration: none; }

.app-stack {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 1.2rem 0;
}
.app-stack span {
  padding: 0.35rem 0.8rem;
  border: none;
  border-radius: 999px;
  background: #E0F2FE;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: #0369A1;
}

.button-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
}
.workspace-card .button {
  border-radius: var(--r-xl);
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  border: none;
}
.workspace-card .button.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.workflow-demo { display: grid; gap: var(--space-4); align-content: start; }
.workflow-demo .card { 
  background: #FFFFFF;
  border: none;
  border-radius: var(--r-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  padding: 1.6rem 2rem; 
}
.workflow-demo .card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 0.6rem;
  text-transform: none;
  letter-spacing: normal;
}
.workflow-demo .card p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}

/* =====================================================================
   TABLES
   ===================================================================== */
.table-wrap, .comparison, .fit-matrix {
  width: 100%; max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: transparent;
}
th, td { padding: 0.95rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
thead th {
  background: var(--green-tint);
  color: var(--green-700);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--green-soft);
}
td { color: var(--ink-2); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-2); }
table.fit-matrix, table.comparison { border: none; box-shadow: none; }

/* =====================================================================
   NOTICES
   ===================================================================== */
.notice, .warning, .success, .note {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 0.95rem;
}
.notice.warning, .warning {
  border-left-color: var(--warning);
  background: var(--warning-soft);
  color: #5f3d0c;
}
.notice.warning strong, .warning strong { color: var(--warning); }
.notice.success, .success, .card.success {
  border-left-color: var(--success);
  background: var(--success-soft);
}
.card.success { border-left-width: 4px; }
.card.success h3 { color: var(--success); }
.note { border-left-color: var(--green-400); background: var(--green-tint); }

/* maybe / yes / good states used in pros-cons */
.card.maybe { border-left: 4px solid var(--ochre); background: var(--ochre-tint); }
.card.maybe h3 { color: var(--ochre-700); }

/* =====================================================================
   LISTS — callout / checklist / step / timeline / definition
   ===================================================================== */
.callout-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.callout-list li {
  background: #FFFFFF;
  border-radius: var(--r-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  padding: 1rem 1.4rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.callout-list li strong {
  color: var(--ink);
  font-weight: 600;
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.checklist li {
  position: relative; margin: 0; padding: 0.1rem 0 0.1rem 2rem; color: var(--ink-2);
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.28em;
  width: 1.15rem; height: 1.15rem;
  border-radius: 0.4rem;
  background: var(--green-tint);
  border: 1px solid var(--green-soft);
}
.checklist li::after {
  content: "";
  position: absolute; left: 0.4rem; top: 0.42em;
  width: 0.32rem; height: 0.6rem;
  border: solid var(--green-600);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

.step-list { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--space-3); }
.step-list > li {
  position: relative;
  margin: 0;
  padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.step-list > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: var(--space-4); top: var(--space-4);
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  border-radius: 0.7rem;
  background: var(--green); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.step-list > li h3 { margin-bottom: 0.3rem; }
.step-list > li p:last-child { margin-bottom: 0; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline > li {
  position: relative;
  margin: 0;
  padding: 0 0 var(--space-4) var(--space-5);
  border-left: 2px solid var(--line-2);
}
.timeline > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute; left: -0.45rem; top: 0.25rem;
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: var(--ochre); box-shadow: 0 0 0 4px var(--paper);
}
.timeline time, .timeline-time {
  display: block; margin-bottom: 0.3rem;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600;
  color: var(--green-700); letter-spacing: 0.01em;
}

.definition-list { display: grid; gap: var(--space-3); }
.definition-list > div {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.definition-list dt { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); margin-bottom: 0.3rem; }
.definition-list dd { margin: 0; color: var(--ink-2); }

.feature-list { display: grid; gap: var(--space-3); }

.pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-4); }
.pros-cons .card ul { margin: 0; }


/* =====================================================================
   FAQ
   ===================================================================== */
.faq { display: grid; gap: 0; }
.faq h2 { margin-bottom: var(--space-3); }

.faq-accordion {
  background: #FFFFFF;
  border-radius: var(--r-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  padding: 0;
  overflow: hidden;
}

.faq-accordion details {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 0 1.8rem;
  margin: 0;
}

.faq-accordion details:last-child {
  border-bottom: none;
}

.faq-accordion details summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 2.5rem 1.2rem 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.faq-accordion details summary::-webkit-details-marker { display: none; }

.faq-accordion details summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-weight: 400; font-size: 1.4rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-accordion details[open] summary::after {
  content: "\2013";
  transform: translateY(-50%) rotate(180deg);
}

.faq-accordion details p {
  margin: 0;
  padding-bottom: 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------
   ACCORDION FALLBACK — details/summary without .faq-accordion wrapper
   ------------------------------------------------------------------ */

/* Case 1: details.card in grid (feature pages) → single-column white accordion */
.grid:has(> details.card) {
  grid-template-columns: 1fr;
  background: #FFFFFF;
  border-radius: var(--r-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  gap: 0;
  padding: 0;
}
.grid > details.card {
  border-radius: 0;
  box-shadow: none;
  background: #FFFFFF;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0 1.8rem;
  margin: 0;
}
.grid > details.card:last-of-type { border-bottom: none; }

details.card > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.2rem 2.5rem 1.2rem 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::marker { display: none; }
details.card > summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-weight: 400; font-size: 1.4rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}
details.card[open] > summary::after { content: "\2013"; }
details.card > p { margin-top: 0; padding-bottom: 1.4rem; }
details.card > p:last-child { margin-bottom: 0; }

/* Case 2: bare details directly inside an article section (blog/content pages) */
article section:has(> details) {
  background: #FFFFFF;
  border-radius: var(--r-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  padding-left: 1.8rem;
  padding-right: 1.8rem;
  padding-bottom: 0;
}
article section > details {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin: 0;
  padding: 0;
}
article section > details:last-of-type { border-bottom: none; }
article section > details > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.2rem 2.5rem 1.2rem 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
article section > details > summary::-webkit-details-marker { display: none; }
article section > details > summary::marker { display: none; }
article section > details > summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-weight: 400; font-size: 1.4rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}
article section > details[open] > summary::after { content: "\2013"; }
article section > details > p {
  margin: 0;
  padding-bottom: 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* =====================================================================
   TOC + SIDEBAR
   ===================================================================== */
.toc {
  margin: 0 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem;
}
.toc a {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover { color: var(--green-700); }

.sidebar, .sidebar-card {
  position: sticky; top: 90px;
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.sidebar h3, .sidebar-card h3 { margin-bottom: 0.6rem; }

/* =====================================================================
   RELATED LINKS / RESOURCE LIST / PATH SELECTOR
   ===================================================================== */
.related-links { margin-top: var(--space-6); }

/* Related-links used as a direct container of bare <a> links
   (template / workflow / solution pages). Render as a tidy card grid.
   :has(> a) scopes this to that usage so wrapper variants (e.g. blog,
   where .related-links wraps a .resource-list) stay untouched. */
.related-links:has(> a) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.related-links > a,
.trust-strip > a:not(.card) {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.05);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.related-links > a::before,
.trust-strip > a:not(.card)::before {
  content: "→";
  color: var(--green-400);
  font-weight: 700;
  flex-shrink: 0;
}
.related-links > a:hover,
.trust-strip > a:not(.card):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 41, 59, 0.08);
  border-color: var(--green-300);
  color: var(--ink);
  text-decoration: none;
}
@media (max-width: 720px) {
  .related-links:has(> a) { grid-template-columns: 1fr; }
}
.tag-pill + h2,
.section-kicker + h2,
article section:has(> details) > h2 {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.resource-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-3); }
.resource-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: var(--r-md);
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.resource-list a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); color: var(--ink); text-decoration: none; }
.resource-list a span:first-child { min-width: 0; }
.resource-list a span:last-child {
  flex: 0 1 auto;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: right;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.path-selector {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}
.path-selector a {
  display: block;
  width: calc(50% - 0.6rem);
  padding: 1.4rem 1.6rem;
  border: none;
  border-radius: var(--r-md);
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.path-selector a:nth-child(n+3) {
  width: calc(33.333% - 0.8rem);
}
.path-selector a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.path-selector a span {
  display: block; margin-top: 0.4rem;
  font-family: var(--font-sans); font-weight: 400; font-size: 0.85rem; color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 800px) {
  .path-selector a, .path-selector a:nth-child(n+3) {
    width: 100%;
  }
}

/* =====================================================================
   COPY BLOCK / TEMPLATE BOX / RECIPE ROW
   ===================================================================== */
.copy-block, .template-box {
  max-width: 100%;
  overflow: hidden;
  padding: var(--space-4);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.copy-block ul, .template-box ul { margin: 0; }
.copy-block > header, .template-box > header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.copy-block > header h3, .template-box > header h3 { margin: 0; }
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green-700);
  font: 700 0.82rem/1 var(--font-sans);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.copy-button:hover { border-color: var(--green-300); background: var(--green-tint); }
.copy-block pre, .template-box pre, .template-content {
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.recipe-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.recipe-row:last-child { border-bottom: none; }
.recipe-label, .recipe-row .recipe-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-700);
}
.recipe-body { color: var(--ink-2); }

/* =====================================================================
   CTA CARD
   ===================================================================== */
.cta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin: var(--space-6) 0;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: var(--r-xl);
  background: radial-gradient(circle at 0% 40%, #1A2C4D 0%, #060914 80%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card .tag-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
/* Kicker pill on the dark card: hug content + match the dark theme */
.cta-card .section-kicker {
  width: fit-content;
  justify-self: start;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}
.cta-card h2, .cta-card h3 { color: #fff; }
.cta-card h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.12; }
.cta-card p { color: rgba(255,255,255,0.7); max-width: 62ch; }
/* Compact context row inside the CTA: tight, inline, no extra top margin */
.cta-card .trust-strip {
  margin-top: var(--space-1);
  gap: var(--space-2) var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
}
.cta-card .trust-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}
.cta-card .trust-strip > span::before {
  content: "";
  flex-shrink: 0;
  width: 0.4rem; height: 0.4rem;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}
.cta-card .button-row { margin-top: var(--space-2); }
.cta-card .button {
  background: #38BDF8;
  color: #0F172A;
  border: none;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.4);
  font-weight: 600;
}
.cta-card .button:hover {
  background: #7DD3FC;
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}
.cta-card .button.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: none;
}
.cta-card .button.secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
}

/* =====================================================================
   MISC CHIPS / PILLS / TAGS
   ===================================================================== */
.pill, .chip, .tag, .label, .source-pill {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green-700);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.label { background: var(--ochre-tint); color: var(--ochre-700); }
.author-note { font-size: 0.9rem; color: var(--muted); font-style: italic; }
.tool-name { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }

/* =====================================================================
   SITE FOOTER (standardized across all pages)
   ===================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--space-7);
  margin-bottom: calc(-1 * var(--space-6));
  padding: 4rem 0 2rem;
  background: #0B1229;
  border: none;
  border-radius: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: var(--space-6);
  padding-bottom: 3rem;
  max-width: var(--site-page-width);
  margin: 0 auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}
.footer-brand .brand { margin-bottom: 1rem; color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { max-width: 38ch; color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--space-4); }
.footer-cols h4 {
  margin-bottom: 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.footer-cols li { margin: 0; }
.footer-cols a { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; font-weight: 400; text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding-top: 1.4rem;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: var(--site-page-width);
  margin: 0 auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}
.footer-bottom .footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.5); font-weight: 500; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-disclaimer { 
  margin: 1rem auto 0; 
  font-size: 0.78rem; 
  color: rgba(255, 255, 255, 0.3); 
  max-width: var(--site-page-width); 
  padding: 0 var(--site-gutter); 
}

/* =====================================================================
   AUTH FORMS
   ===================================================================== */
.auth-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
.auth-alert-error {
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}
.auth-alert-info {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1e40af;
}
.auth-field { margin-bottom: 1rem; }
.auth-field-large { margin-bottom: 1.5rem; }
.auth-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.auth-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.auth-check { accent-color: var(--green); }
.auth-link { font-size: 0.9rem; }
.auth-submit { width: 100%; }
.auth-switch {
  margin-top: 1rem;
  text-align: center;
}

/* legacy bare <footer> fallback (if any remains) */
main.page > footer:not(.site-footer) {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

/* =====================================================================
   404
   ===================================================================== */
main.wrap {
  position: relative; z-index: 1;
  width: min(calc(100% - 44px), 680px);
  margin: 12vh auto;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  text-align: center;
}
main.wrap > p:first-child {
  font-family: var(--font-display);
  font-size: 4rem; font-weight: 600; color: var(--green); margin: 0;
}
main.wrap .resource-list { grid-template-columns: 1fr; margin-top: var(--space-4); text-align: left; }

/* =====================================================================
   MOTION
   ===================================================================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero > .eyebrow { animation: rise 0.6s cubic-bezier(.2,.7,.3,1) both; }
.hero > h1       { animation: rise 0.6s cubic-bezier(.2,.7,.3,1) 0.07s both; }
.hero > .lead    { animation: rise 0.6s cubic-bezier(.2,.7,.3,1) 0.14s both; }
.hero > .review  { animation: rise 0.6s cubic-bezier(.2,.7,.3,1) 0.21s both; }
.hero > .hero-actions { animation: rise 0.6s cubic-bezier(.2,.7,.3,1) 0.28s both; }
.hero > .trust-strip  { animation: rise 0.6s cubic-bezier(.2,.7,.3,1) 0.35s both; }

/* Scroll-reveal: all pages (progressive enhancement, Chromium 115+ / Safari 18+) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    article > section {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 2% cover 16%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(34px); }
      to   { opacity: 1; transform: translateY(0); }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1000px) {
  :root { --site-gutter: 18px; }
  .grid.three, .three, .trust-grid, .trust-strip, .scenario-grid,
  .grid.four, .four, .with-sidebar, .footer-cols {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
  .with-sidebar { grid-template-columns: 1fr !important; }
  .sidebar, .sidebar-card { position: static; }
  .cta-card { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-5); }
  .nav-search { display: none; }
  .nav-right a.nav-install { display: none; }
}

@media (max-width: 720px) {
  :root { --site-gutter: 14px; }
  body { font-size: 16px; }
  .topbar-inner { padding: 0.55rem var(--site-gutter); }
  .nav-toggle { display: block; }
  .nav-right { display: none; }
  .nav {
    position: absolute; top: 100%; right: 0; left: 0;
    flex: unset;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    padding: 0.6rem var(--site-gutter);
    background: #0B1229;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
    transform: scale(0.99) translateY(-4px);
    opacity: 0; visibility: hidden;
    transition: 0.2s ease;
  }
  .nav-toggle-cb:checked ~ .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 0.65rem 0.85rem; color: rgba(255,255,255,0.8); }
  .nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
  .nav-toggle-cb:checked ~ .nav-toggle span { background: transparent; }
  .nav-toggle-cb:checked ~ .nav-toggle span::before { top: 0; transform: rotate(45deg); background: rgba(255,255,255,0.85); }
  .nav-toggle-cb:checked ~ .nav-toggle span::after { top: 0; transform: rotate(-45deg); background: rgba(255,255,255,0.85); }

  .grid.two, .two, .columns.two, .split, .demo-grid,
  .grid.three, .three, .trust-grid, .trust-strip, .scenario-grid,
  .grid.four, .four, .footer-grid, .form-grid, .checkbox-grid,
  .pros-cons, .definition-list, .resource-list, .feature-list,
  .footer-cols {
    grid-template-columns: 1fr !important;
  }
  .hero { padding: 1.6rem 1.3rem; }
  section { margin: var(--space-6) 0; }
  .quote-box { font-size: 1.15rem; }
  .recipe-row { grid-template-columns: 1fr; gap: 0.3rem; }
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
  }
  .table-wrap table, .comparison table, .fit-matrix table {
    min-width: 560px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  table.comparison, table.fit-matrix {
    min-width: 0;
    table-layout: fixed;
  }
  th, td { padding: 0.8rem 0.9rem; }
  .resource-list a {
    align-items: flex-start;
  }
  .resource-list a span:last-child {
    text-align: left;
  }
  .copy-block, .template-box { padding: var(--space-3); }
  .copy-block pre, .template-box pre, .template-content { padding: 0.85rem; }
}

/* active nav state (dark nav) */
.nav a.active { background: rgba(255,255,255,0.12); color: #fff; }

/* =====================================================================
   HOMEPAGE HERO UPDATE (V2 TEMPLATE)
   ===================================================================== */
.home-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-6);
  padding: 0;
}

.home-hero-inner {
  max-width: var(--site-page-width);
  margin: 0 auto;
  padding: 1.6rem 0 0;
}

.home-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-6);
  align-items: center;
  margin-bottom: 4rem;
}

.home-hero .hero-copy {
  padding-bottom: 2rem;
}

.home-hero .hero-visual {
  margin: 0;
}

@media (max-width: 900px) {
  .home-hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .home-hero .hero-actions {
    justify-content: center;
  }
}

/* Tag Pill (replaces eyebrow) */
.tag-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.32rem 0.72rem 0.32rem 0.58rem;
  border-radius: 999px;
  background: var(--teal-tint);
  border: 1px solid var(--teal-border);
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tag-dot {
  width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

/* Home hero buttons */
.button.btn-dark {
  background: #0F172A;
  color: #fff;
  border: 1px solid #0F172A;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2);
}
.button.btn-dark:hover {
  background: #1E293B;
  transform: translateY(-2px);
}

.button.btn-outline {
  background: #fff;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-xs);
}
.button.btn-outline:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
}

/* Trust Strip update for Home Hero */
.home-hero .trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}

.home-hero .trust-strip .card {
  background: #fff;
  border: 1px solid #F1F5F9;
  border-radius: var(--r-sm);
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  text-align: left;
}

.home-hero .trust-strip .card h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: #0F172A;
  margin-bottom: 0.5rem;
}

.home-hero .trust-strip .card p {
  color: #475569;
}

@media (max-width: 768px) {
  .home-hero .trust-strip {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   TRUST CARDS & PUBLISHING NOTE
   ===================================================================== */
.trust-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.trust-cards .card {
  background: #FFFFFF;
  border: none;
  border-radius: var(--r-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  padding: 1.6rem 2rem;
  width: calc(50% - 0.8rem);
}
.trust-cards .card:last-child {
  width: 100%;
}
.trust-cards .card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 0.6rem;
}
.trust-cards .card p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 800px) {
  .trust-cards .card { width: 100%; }
}

.notice.publishing-note {
  border-left-width: 1px;
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
  border-radius: var(--r-md);
  margin-top: var(--space-6);
}
.notice.publishing-note strong {
  color: #92400E;
}

/* =====================================================================
   FEATURE BENTO GRID
   ===================================================================== */
.feature-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.feature-bento .card {
  background: #FFFFFF;
  border: none;
  border-radius: var(--r-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}
.feature-bento .card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 0.6rem;
}
.feature-bento .card p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}
.feature-bento .card.bento-large {
  grid-column: span 2;
  grid-row: span 2;
  padding: 2.5rem;
}
.feature-bento .card.bento-large h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}
.feature-bento .card.bento-large p {
  font-size: 0.95rem;
}
.feature-bento .bento-icon {
  width: 2.8rem;
  height: 2.8rem;
  background: #E0F2FE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0369A1;
  margin-bottom: 1.2rem;
}
.feature-bento .card:nth-child(2),
.feature-bento .card:nth-child(3) {
  grid-column: span 1;
}
.feature-bento .card:nth-child(4) {
  grid-column: span 1;
}
.feature-bento .card:nth-child(5) {
  grid-column: span 2;
}
.feature-bento .card:nth-child(6) {
  grid-column: span 2;
}

@media (max-width: 800px) {
  .feature-bento {
    grid-template-columns: 1fr;
  }
  .feature-bento .card.bento-large,
  .feature-bento .card:nth-child(2),
  .feature-bento .card:nth-child(3),
  .feature-bento .card:nth-child(4),
  .feature-bento .card:nth-child(5),
  .feature-bento .card:nth-child(6) {
    grid-column: span 1;
    grid-row: auto;
  }
}

/* =====================================================================
   RECIPE TABLE (100% MATCH SCREENSHOT)
   ===================================================================== */
.recipe-table {
  background: #FFFFFF;
  border: none;
  border-radius: var(--r-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  padding: 0;
  overflow: hidden;
}
.recipe-table table {
  margin: 0;
  border-collapse: collapse;
}
.recipe-table thead th {
  background: #FFFFFF;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 1.2rem 1.6rem 1rem;
}
.recipe-table th, .recipe-table td {
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: middle;
}
.recipe-table tbody tr:hover td {
  background: transparent;
}
.recipe-table tbody tr:last-child td {
  border-bottom: none;
}
.recipe-table tbody td {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.recipe-table tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 22%;
}
.recipe-table tbody td:nth-child(2) {
  width: 43%;
}
.recipe-table tbody td:nth-child(3) {
  width: 35%;
}
