/* =========================================================================
   RedMark website — design system + components
   Aesthetic: peec.ai modernism + tryprofound dark contrast +
   adthena enterprise credibility. Engineering-flavoured, not marketing-SaaS.
   ========================================================================= */

:root {
  /* Palette */
  --ink: #0B0F14;          /* near-black primary text */
  --ink-2: #1A2230;        /* deep navy for surfaces / headers */
  --ink-3: #2A3441;        /* lighter dark surface */
  --paper: #FAF8F4;        /* warm off-white background */
  --paper-2: #F2EFE9;      /* warmer surface */
  --line: #E5DFD3;         /* warm rule colour */
  --line-2: #D6CFC0;
  --muted: #5E6573;
  --muted-2: #8A91A0;
  --accent: #C8322B;       /* RedMark red */
  --accent-2: #A1241E;
  --accent-soft: #FBE9E7;
  --warn: #C77D27;
  --good: #2B7A4B;
  --mono-bg: #0F1722;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --max: 1240px;
  --gutter: 32px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* Type scale ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.4em 0;
  line-height: 1.05;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.85rem); letter-spacing: -0.02em; }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1em 0; font-size: 1.0625rem; color: var(--ink); }

.lead { font-size: 1.25rem; color: var(--muted); line-height: 1.55; max-width: 60ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(200, 50, 43, 0.15);
  margin-bottom: 18px;
}
.eyebrow.on-dark {
  color: #FF6961;
  background: rgba(200, 50, 43, 0.12);
  border-color: rgba(200, 50, 43, 0.3);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: 0.9;
}

.mono { font-family: var(--font-mono); font-size: 0.92em; }

/* Layout ------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: 96px 0; }
section.tight { padding: 72px 0; }
section.dark { background: var(--ink); color: var(--paper); }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: var(--paper); }
section.dark p { color: rgba(250, 248, 244, 0.72); }
section.warm { background: var(--paper-2); }
section.ink-2 { background: var(--ink-2); color: var(--paper); }
section.ink-2 h1, section.ink-2 h2, section.ink-2 h3 { color: var(--paper); }
section.ink-2 p { color: rgba(250, 248, 244, 0.75); }

.section-head { max-width: 820px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ghost.on-dark { color: var(--paper); border-color: rgba(250, 248, 244, 0.3); }
.btn-ghost.on-dark:hover { background: var(--paper); color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.88rem; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1rem; }
.btn-link { background: transparent; color: var(--accent); padding: 0; height: auto; border: none; font-weight: 500; }
.btn-link:hover { color: var(--accent-2); }
.btn-link::after { content: " →"; transition: transform 160ms var(--ease); display: inline-block; }
.btn-link:hover::after { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(214, 207, 192, 0.5);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
}
.brand-mark::before { content: "R"; }
.nav-primary {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-primary a {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  transition: color 140ms, background 140ms;
}
.nav-primary a:hover, .nav-primary a.active { color: var(--ink); background: rgba(0,0,0,0.04); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

@media (max-width: 920px) {
  .nav-primary { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); gap: 4px; }
  .nav-primary.open { display: flex; }
  .nav-primary a { padding: 12px; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-ghost { display: none; }
}

/* Hero --------------------------------------------------------------- */

.hero {
  padding: 80px 0 64px 0;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 32px; font-size: 1.2rem; }
.hero .cta-row { margin-top: 8px; }
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 30px 80px -30px rgba(11, 15, 20, 0.35), 0 6px 18px -6px rgba(11, 15, 20, 0.18);
}
.hero-visual.bare { background: transparent; box-shadow: none; }

@media (max-width: 920px) {
  .hero { padding: 56px 0 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Highlight emphasis in body copy */
.hl { background: linear-gradient(transparent 60%, rgba(200, 50, 43, 0.18) 60%); padding: 0 2px; }

/* Logo strip --------------------------------------------------------- */

.logo-strip {
  padding: 44px 0 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logo-strip-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 22px;
}
.logo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.logo-row .logo {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--muted);
  opacity: 0.7;
  white-space: nowrap;
  filter: grayscale(1);
}

/* Stat band ---------------------------------------------------------- */

.stat-band {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 28px;
}
.stat {
  text-align: left;
  padding: 24px 0;
}
.stat .num {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
  font-feature-settings: "ss01", "tnum";
}
.stat .label {
  font-size: 1rem;
  color: var(--ink);
  max-width: 28ch;
  line-height: 1.5;
}
.stat-source {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
}
@media (max-width: 740px) {
  .stat-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Cards / steps ------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) {
  .card-grid.cols-3, .card-grid.cols-4, .card-grid.cols-6 { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .card-grid.cols-3, .card-grid.cols-4, .card-grid.cols-6 { grid-template-columns: 1fr; }
}

.card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -16px rgba(11, 15, 20, 0.12); border-color: var(--line-2); }
.card .step-num {
  display: inline-flex;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; margin: 0; }

.card.dark { background: var(--ink-2); color: var(--paper); border-color: rgba(255,255,255,0.08); }
.card.dark h3 { color: var(--paper); }
.card.dark p { color: rgba(250, 248, 244, 0.72); }
.card.dark .step-num { background: rgba(200, 50, 43, 0.18); color: #FF6961; }

/* Check tiles -------------------------------------------------------- */

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 920px) { .check-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }

.check {
  position: relative;
  padding: 22px 22px 22px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms;
}
.check:hover { border-color: var(--ink); }
.check::before {
  content: "";
  position: absolute;
  left: 0; top: 16px; bottom: 16px; width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--disc, var(--accent));
}
.check.disc-mech { --disc: #3B6BC4; }
.check.disc-elec { --disc: #C77D27; }
.check.disc-pid  { --disc: #2B7A4B; }
.check.disc-arch { --disc: #6E6770; }
.check h4 { font-size: 1rem; margin: 0 0 6px 0; }
.check .check-cat { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.check p { font-size: 0.9rem; color: var(--muted); margin: 10px 0 0 0; line-height: 1.5; }
.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}
.pill.warn { background: rgba(199, 125, 39, 0.12); color: var(--warn); }
.pill.good { background: rgba(43, 122, 75, 0.12); color: var(--good); }
.pill.live { background: rgba(43, 122, 75, 0.12); color: var(--good); }

/* Case-study cards --------------------------------------------------- */

.case-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.case-card .case-stat {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.05;
}
.case-card .case-firm {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.case-card .case-quote {
  font-size: 1rem;
  color: var(--ink);
  font-style: italic;
  line-height: 1.55;
}

/* Persona cards ------------------------------------------------------ */

.persona-card {
  padding: 32px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.persona-card .persona-icon { width: 36px; height: 36px; margin-bottom: 22px; color: var(--accent); }
.persona-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.persona-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.persona-card .btn-link { margin-top: 18px; }

/* Bluebeam pos line callout ----------------------------------------- */

.pos-line {
  text-align: center;
  padding: 96px 0;
  background: var(--ink);
  color: var(--paper);
}
.pos-line h2 {
  color: var(--paper);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  max-width: 22ch;
  margin: 0 auto 18px auto;
  letter-spacing: -0.025em;
}
.pos-line h2 .accent { color: var(--accent); }
.pos-line p { color: rgba(250, 248, 244, 0.7); max-width: 56ch; margin: 0 auto; }

/* Trust badges row --------------------------------------------------- */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(250, 248, 244, 0.06);
  border: 1px solid rgba(250, 248, 244, 0.12);
  font-size: 0.88rem;
  color: rgba(250, 248, 244, 0.85);
  font-family: var(--font-sans);
}
.trust-badge .badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.trust-badge.pending .badge-dot { background: var(--warn); }
.trust-badge.live .badge-dot { background: var(--good); }
.on-light .trust-badge { background: var(--paper-2); border-color: var(--line); color: var(--ink); }

/* Founders ----------------------------------------------------------- */

.founders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 740px) { .founders { grid-template-columns: 1fr; } }
.founder {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.founder .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ink-2);
  margin: 0 auto 16px auto;
  display: grid; place-items: center;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.4rem;
}
.founder h4 { font-size: 1.05rem; margin: 0 0 4px 0; }
.founder .role { font-size: 0.85rem; color: var(--muted-2); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.founder p { font-size: 0.95rem; color: var(--muted); }

/* Final CTA ---------------------------------------------------------- */

.final-cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 80px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(200, 50, 43, 0.16), transparent 70%);
  pointer-events: none;
}
.final-cta * { position: relative; }
.final-cta h2 { color: var(--paper); margin-bottom: 14px; max-width: 22ch; margin-left: auto; margin-right: auto; }
.final-cta p { color: rgba(250, 248, 244, 0.7); max-width: 55ch; margin: 0 auto 28px auto; }
.final-cta .cta-row { justify-content: center; }
@media (max-width: 640px) { .final-cta { padding: 60px 24px; } }

/* Forms -------------------------------------------------------------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 24px 60px -30px rgba(11, 15, 20, 0.25);
}
.form-card .field { margin-bottom: 18px; }
.form-card label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-card input[type="text"],
.form-card input[type="email"],
.form-card select,
.form-card textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 140ms, background 140ms;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.form-card .dropzone {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  transition: border-color 140ms, background 140ms;
}
.form-card .dropzone strong { color: var(--ink); }
.form-card .dropzone:hover { border-color: var(--accent); background: #fff; }
.form-card .consent { font-size: 0.82rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; }
.form-card .btn { width: 100%; }

/* FAQ accordion ----------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq details[open] summary { color: var(--accent); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color 140ms;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-weight: 300; font-size: 1.4rem; color: var(--muted-2);
  transition: transform 200ms;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); font-size: 1rem; margin: 14px 0 0 0; max-width: 70ch; }

/* Pricing tiers ----------------------------------------------------- */

.pricing-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 920px) { .pricing-tiles { grid-template-columns: 1fr; } }
.pricing-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
}
.pricing-tile.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 100%);
  transform: translateY(-4px);
  box-shadow: 0 18px 48px -20px rgba(200, 50, 43, 0.2);
}
.pricing-tile.featured::before {
  content: "ICP sweet spot";
  position: absolute; top: -12px; left: 24px;
  background: var(--accent); color: #fff;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
}
.pricing-tile .tier-name { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.pricing-tile .tier-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; min-height: 4.4em; }
.pricing-tile ul { list-style: none; margin: 0 0 28px 0; padding: 0; flex: 1; }
.pricing-tile li {
  padding: 8px 0 8px 22px;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
}
.pricing-tile li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.pricing-tile .btn { width: 100%; }

/* Comparison table -------------------------------------------------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}
.compare .cell {
  padding: 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.compare .cell:nth-child(-n+2) { border-top: none; }
.compare .cell.left { border-right: 1px solid rgba(255,255,255,0.08); color: rgba(250, 248, 244, 0.55); font-size: 0.96rem; }
.compare .cell.right { color: var(--paper); font-size: 0.96rem; }
.compare .cell.head {
  background: rgba(255,255,255,0.04);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.compare .cell.head.left { color: rgba(255, 105, 97, 0.85); }
.compare .cell.head.right { color: #6BE5A0; }
@media (max-width: 740px) { .compare { grid-template-columns: 1fr; } .compare .cell.left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); } }

/* Layered diagram --------------------------------------------------- */

.layer-stack { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 40px auto 0; }
.layer-card {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
}
.layer-card .layer-num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}
.layer-card h3 { color: var(--paper); margin-bottom: 6px; font-size: 1.2rem; }
.layer-card p { color: rgba(250, 248, 244, 0.72); margin: 0; font-size: 0.96rem; }
.layer-card::after {
  content: ""; position: absolute; left: 70px; bottom: -16px; height: 16px; width: 2px;
  background: rgba(200, 50, 43, 0.4);
}
.layer-card:last-child::after { display: none; }

/* Pillars ----------------------------------------------------------- */

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 740px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.pillar .pillar-n { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); margin-bottom: 14px; letter-spacing: 0.04em; }
.pillar h3 { font-size: 1.2rem; margin-bottom: 14px; }
.pillar ul { list-style: none; padding: 0; margin: 0; }
.pillar li { padding-left: 20px; position: relative; margin-bottom: 10px; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.pillar li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; background: var(--accent); }

/* Footer ------------------------------------------------------------ */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px 0;
}
.site-footer .container { display: block; height: auto; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
@media (max-width: 920px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-cols h5 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250, 248, 244, 0.55); margin: 0 0 16px 0; font-weight: 500; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a { color: rgba(250, 248, 244, 0.75); font-size: 0.95rem; transition: color 140ms; }
.footer-cols a:hover { color: var(--paper); }
.footer-brand p { color: rgba(250, 248, 244, 0.7); font-size: 0.95rem; max-width: 32ch; margin-top: 16px; }
.footer-trust { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 0; border-top: 1px solid rgba(250, 248, 244, 0.08); border-bottom: 1px solid rgba(250, 248, 244, 0.08); margin-bottom: 24px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: rgba(250, 248, 244, 0.5); font-size: 0.85rem; }
.footer-bottom a { color: rgba(250, 248, 244, 0.5); margin-right: 16px; }

/* Two-col layout helper --------------------------------------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col.flip > *:first-child { order: 2; }
@media (max-width: 920px) { .two-col { grid-template-columns: 1fr; gap: 40px; } .two-col.flip > *:first-child { order: 0; } }

/* Step row ---------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
@media (max-width: 920px) { .steps { grid-template-columns: 1fr; } }
.step-thumb {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  background: var(--ink-2);
  margin-bottom: 22px;
  overflow: hidden;
}

/* Workflow integration tiles ---------------------------------------- */

.integrations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 740px) { .integrations { grid-template-columns: 1fr; } }
.integration {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; gap: 16px; align-items: center;
}
.integration .int-logo { width: 44px; height: 44px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; font-weight: 600; color: var(--ink); font-size: 0.78rem; }
.integration h4 { font-size: 1rem; margin: 0 0 4px 0; }
.integration .pill { margin: 0; }

/* Utility ----------------------------------------------------------- */

.muted { color: var(--muted); }
.center { text-align: center; }
.space-y > * + * { margin-top: 24px; }
.divider { height: 1px; background: var(--line); margin: 32px 0; }

/* Animation --------------------------------------------------------- */

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 600ms var(--ease) both; }
.fade-up.d1 { animation-delay: 80ms; }
.fade-up.d2 { animation-delay: 160ms; }
.fade-up.d3 { animation-delay: 240ms; }
