/* Sales site — local layout. Imports tokens from colors_and_type.css */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Selection */
::selection { background: var(--brand-gold); color: var(--fg-1); }

/* ─── Layout ────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

section { padding: 120px 0; position: relative; }
section.tight { padding: 88px 0; }
section.dark { background: var(--brand-black); color: #fff; }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: rgba(255,255,255,0.72); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-gold-700);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 14px; height: 1px; background: var(--brand-gold);
}
section.dark .eyebrow { color: var(--brand-gold); }
section.dark .eyebrow::before { background: var(--brand-gold); }

h1, h2, h3, h4 { font-family: var(--font-sans); margin: 0; }
h1 { font-size: clamp(48px, 6vw, 92px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; }
h1 em { font-style: normal; color: var(--brand-gold-700); font-weight: 500; }
section.dark h1 em { color: var(--brand-gold); }
h2 { font-size: clamp(36px, 4vw, 56px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.08; }
h2 em { font-style: normal; color: var(--brand-gold-700); font-weight: 500; }
section.dark h2 em { color: var(--brand-gold); }
h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.lede { font-size: 20px; line-height: 1.55; color: var(--fg-2); max-width: 720px; }

/* ─── Top nav ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 244, 240, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, background 200ms;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(245, 244, 240, 0.94);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 64px;
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { height: 26px; width: auto; }
.nav-brand .rule { width: 1px; height: 18px; background: var(--brand-black); opacity: 0.85; }
.nav-brand .word { font-size: 14px; font-weight: 700; color: var(--brand-black); letter-spacing: 0.18em; }
.nav-links { display: flex; gap: 28px; margin-left: 24px; }
.nav-links a {
  text-decoration: none; color: var(--fg-2); font-size: 14px; font-weight: 500;
  transition: color 150ms;
}
.nav-links a:hover { color: var(--fg-1); }
.nav-cta { margin-left: auto; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 180ms ease;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.btn-primary { background: var(--brand-gold); color: var(--fg-1); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--brand-gold-500); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: #fff; color: var(--fg-1); border-color: var(--border); }
.btn-secondary:hover { background: var(--muted); border-color: var(--fg-4); }
.btn-ghost { background: transparent; color: var(--fg-1); }
.btn-ghost:hover { background: var(--muted); }
.btn-on-dark { background: var(--brand-gold); color: var(--brand-black); }
.btn-on-dark:hover { background: #e6c597; transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 12px; }
.btn .arrow { transition: transform 180ms; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-shader {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none; /* document-level listeners still receive moves */
}
/* Soft fade so the hero blends into the next section seamlessly */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(245,244,240,0), var(--background));
  pointer-events: none;
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { max-width: 14ch; margin-bottom: 24px; }
.hero .lede { margin-bottom: 36px; font-size: 22px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 64px; align-items: center; }
.hero-actions .meta { color: var(--fg-3); font-size: 13px; margin-left: 8px; }

/* Hero demo (before / processing / after) */
.demo-wrap {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
/* Force all three demo cards to the same height */
.demo-wrap .demo-card {
  min-height: 460px;
  height: 100%;
}
.demo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 30px 80px -40px rgba(29,29,27,0.18), 0 6px 18px -8px rgba(29,29,27,0.06);
  overflow: hidden;
  position: relative;
  min-height: 460px;
  display: flex;
  flex-direction: column;
}
.demo-card .label {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.demo-card .label .pill {
  background: var(--muted); color: var(--fg-2);
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.04em;
}
.demo-card .label .pill.gold { background: var(--primary-soft); color: var(--brand-gold-700); }
.demo-card .body { padding: 18px; flex: 1; overflow: hidden; }

.arrow-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
}
.arrow-cell svg { color: var(--brand-gold-700); }
.arrow-cell .small {
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--brand-gold-700); text-transform: uppercase;
}

/* "Before" — stack of PDFs */
.pdf-stack { display: flex; flex-direction: column; gap: 10px; }
.pdf-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: hsl(36 12% 99%);
  transition: opacity 500ms ease, transform 500ms ease, background 300ms ease;
  position: relative;
  overflow: hidden;
}
.pdf-row .icon {
  width: 28px; height: 36px; border-radius: 4px;
  background: linear-gradient(180deg, #fff, #F5F0E8);
  border: 1px solid var(--border);
  position: relative; flex-shrink: 0;
}
.pdf-row .icon::after {
  content: "PDF";
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  font-size: 7px; font-weight: 700; color: var(--brand-gold-700);
  font-family: var(--font-mono);
}
.pdf-row .name { flex: 1; font-size: 12px; font-weight: 500; color: var(--fg-1); }
.pdf-row .size { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); }

/* Scan sweep — the gold shimmer that crosses each row */
.pdf-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(205,169,115,0.18) 40%,
    rgba(205,169,115,0.38) 50%,
    rgba(205,169,115,0.18) 60%,
    transparent 100%
  );
  transform: translateX(-110%);
  transition: none;
  pointer-events: none;
}
.pdf-row.scanning::after {
  transform: translateX(110%);
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.pdf-row.scanned {
  background: hsl(36 30% 97%);
  border-color: var(--brand-gold-300);
}
.pdf-row.scanned .name { color: var(--brand-gold-700); }
.pdf-row.fading { opacity: 0; transform: translateX(18px); }

/* Status badge that appears on scanned rows */
.pdf-row .scan-badge {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-gold-700);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 250ms ease;
  white-space: nowrap;
}
.pdf-row.scanned .scan-badge { opacity: 1; }


.arrow-cell { transition: opacity 300ms; }
.arrow-cell.working svg {
  animation: arrowPulse 900ms ease-in-out infinite alternate;
}
@keyframes arrowPulse {
  from { opacity: 0.3; transform: translateX(-3px); }
  to   { opacity: 1;   transform: translateX(3px); }
}

/* Processing card — middle column with loading indicator + flying attributes */
#processing-card {
  overflow: hidden;
}
#processing-card .body {
  padding: 0 !important;
  overflow: hidden;
  position: relative;
  flex: 1;
}
.proc-loader {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 240px; height: 240px;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.proc-attrs {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.proc-attr {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--brand-gold-700);
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--brand-gold-300);
  padding: 4px 9px;
  border-radius: 99px;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  box-shadow: 0 4px 12px -6px rgba(122,98,47,0.18);
  will-change: transform, opacity;
}
.proc-attr.flying {
  animation: attrFly 2200ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes attrFly {
  0%   { opacity: 0; transform: translate3d(var(--fx0,0), var(--fy0,0), 0) scale(0.85); }
  15%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--fx1,0), var(--fy1,0), 0) scale(1); }
}
/* Pipeline panel — replaces the single-line proc-status pill with a vertical
   list of the 4 phases, lit up one at a time so visitors can see what
   Trillic is actually doing in the background. */
.proc-steps {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  z-index: 3;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 12px;
  transition: opacity 250ms ease;
}
.proc-step {
  display: flex; align-items: center; gap: 10px;
  color: var(--fg-3);
  transition: color 200ms ease, opacity 200ms ease;
  opacity: 0.55;
}
.proc-step-dot {
  width: 6px; height: 6px;
  border-radius: 99px;
  background-color: hsl(36 10% 80%);   /* default = pending tint */
  flex: 0 0 auto;
  transition: background-color 200ms ease, transform 200ms ease;
}
.proc-step.pending { opacity: 0.45; color: var(--fg-3); }
.proc-step.pending .proc-step-dot { background-color: hsl(36 10% 80%); }
.proc-step.active  { opacity: 1; color: var(--fg-1); }
.proc-step.active .proc-step-dot {
  background-color: #CDA973;   /* brand gold */
  animation: statusPulse 1.2s ease-in-out infinite;
}
.proc-step.done    { opacity: 0.85; color: var(--fg-2); }
.proc-step.done .proc-step-dot { background-color: #7A622F; }   /* brand gold 700 */
@keyframes statusPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

/* "After" — finished report — styled as a real document */
.report {
  background: #fff;
  border: 1px solid var(--border); border-radius: 10px;
  height: 100%;
  display: flex; flex-direction: column;
  font-family: 'Times New Roman', Times, serif;
  overflow: hidden;
  position: relative;
}

/* The document pages stack — gives a paper-out-of-printer feel */
.report-paper {
  flex: 1;
  padding: 18px 20px 14px;
  display: flex; flex-direction: column;
  position: relative;
}

/* Typing cursor blink */
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.cursor {
  display: inline-block;
  width: 2px; height: 12px;
  background: var(--fg-1);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 700ms steps(1) infinite;
  opacity: 0;
}
.cursor.active { opacity: 1; }

.report-head {
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--fg-1);
  margin-bottom: 14px;
}
.report-head .firm {
  font-size: 8px; letter-spacing: 0.2em; color: var(--fg-3);
  font-family: var(--font-mono); text-transform: uppercase;
}
.report-head h4 {
  font-size: 15px; font-weight: 700; margin-top: 6px; margin-bottom: 2px;
  font-family: 'Times New Roman', serif;
  letter-spacing: 0.03em;
}
.report-head .report-ref {
  font-size: 9px; color: var(--fg-3); font-family: var(--font-mono);
}

/* Animated text lines */
.report-line {
  height: 7px; background: var(--muted); border-radius: 3px;
  margin-bottom: 7px;
  width: 0%;
  transition: width 520ms cubic-bezier(0.16,1,0.3,1);
}
.report-section-title {
  font-family: var(--font-sans);
  font-size: 9px; font-weight: 800; letter-spacing: 0.1em;
  color: var(--brand-gold-700); text-transform: uppercase;
  margin: 12px 0 8px;
  display: flex; align-items: center; gap: 6px;
}
.report-section-title::after {
  content: ""; flex: 1; height: 1px; background: var(--brand-gold-300);
}

/* Confidence bar per section */
.conf-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.conf-label { font-family: var(--font-mono); font-size: 8px; color: var(--fg-3); width: 64px; flex-shrink: 0; }
.conf-bar {
  flex: 1; height: 5px; background: var(--muted); border-radius: 99px; overflow: hidden;
}
.conf-fill {
  height: 100%; background: var(--brand-gold); border-radius: 99px;
  width: 0%; transition: width 800ms cubic-bezier(0.16,1,0.3,1);
}
.conf-pct { font-family: var(--font-mono); font-size: 8px; color: var(--brand-gold-700); width: 28px; text-align: right; }

/* Stamp — slides up when done */
.report-stamp {
  padding: 10px 16px;
  border-top: 1px dashed var(--border);
  background: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.06em; color: var(--fg-3); text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 500ms cubic-bezier(0.16,1,0.3,1);
}
.report-stamp.visible { transform: translateY(0); }
.report-stamp .check {
  color: hsl(160 84% 24%); display: flex; align-items: center; gap: 5px; font-weight: 700;
}

/* Download pulse badge that appears in the label */
.dl-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600;
  color: hsl(160 84% 24%);
  opacity: 0;
  transition: opacity 350ms ease;
}
.dl-badge svg { flex-shrink: 0; }
.dl-badge.visible { opacity: 1; }

@keyframes fillLine {
  from { width: 0; }
}

/* Hero metric strip */
.hero-strip {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero-strip .item {
  padding: 28px 0;
  border-right: 1px solid var(--border);
}
.hero-strip .item:last-child { border-right: none; }
.hero-strip .num {
  font-size: 44px; font-weight: 300; letter-spacing: -0.03em;
  color: var(--fg-1); line-height: 1;
}
.hero-strip .lbl {
  font-size: 12px; color: var(--fg-3);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ─── Section: value prop ───────────────────────────────── */
.three-up { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 32px 28px;
  transition: transform 250ms, box-shadow 250ms;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -22px rgba(29,29,27,0.16); }
.feature-card .icon-box {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-soft); color: var(--brand-gold-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 15px; line-height: 1.6; color: var(--fg-3); margin: 0; }

/* ─── Section: Hoowla spotlight ─────────────────────────── */
.hoowla-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; margin-top: 64px;
}
.hoowla-diagram {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 32px;
  position: relative;
}
.hoowla-flow {
  display: grid; grid-template-columns: 1fr 60px 1fr 60px 1fr; gap: 12px; align-items: center;
}
.hoowla-node {
  background: var(--muted); border-radius: 12px; padding: 20px 16px;
  text-align: center;
}
.hoowla-node.gold { background: var(--primary-soft); border: 1px solid var(--brand-gold-300); }
.hoowla-node .glyph { font-size: 30px; line-height: 1; margin-bottom: 8px; color: var(--brand-gold-700); display: flex; justify-content: center; }
.hoowla-node .name { font-size: 13px; font-weight: 600; color: var(--fg-1); }
.hoowla-node .sub { font-size: 11px; color: var(--fg-3); margin-top: 2px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.hoowla-arrow {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 9px; color: var(--brand-gold-700); letter-spacing: 0.08em;
}
.hoowla-arrow .line { width: 100%; height: 2px; background: var(--brand-gold); position: relative; }
.hoowla-arrow .line::after {
  content: ""; position: absolute; right: -2px; top: 50%; transform: translateY(-50%);
  border-left: 8px solid var(--brand-gold);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.hoowla-checks { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.hoowla-check {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; line-height: 1.5;
}
.hoowla-check .tick {
  flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 8px;
  background: var(--primary-soft); color: var(--brand-gold-700);
  display: flex; align-items: center; justify-content: center;
}
.hoowla-check b { color: var(--fg-1); font-weight: 600; }
.hoowla-check span { color: var(--fg-2); }

/* ─── Section: security ─────────────────────────────────── */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.sec-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 24px;
  transition: background 200ms;
}
.sec-card:hover { background: rgba(205,169,115,0.06); border-color: rgba(205,169,115,0.3); }
.sec-card .badge {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(205,169,115,0.14); color: var(--brand-gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.sec-card h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.sec-card p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.55; margin: 0; }

.sec-stamps {
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; gap: 32px; flex-wrap: wrap; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.5);
  font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
}

/* ─── Section: testimonials placeholder ─────────────────── */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 64px; }
.quote-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 36px;
  position: relative;
}
.quote-card .mark {
  font-family: 'Times New Roman', serif;
  font-size: 80px;
  line-height: 0.5;
  color: var(--brand-gold);
  display: block;
  height: 30px;
}
.quote-card blockquote {
  font-size: 22px; line-height: 1.4; font-weight: 400;
  letter-spacing: -0.01em;
  margin: 16px 0 28px;
  color: var(--fg-1);
  font-family: var(--font-sans);
}
.quote-card cite {
  font-style: normal;
  display: flex; align-items: center; gap: 14px;
}
.quote-card .avatar {
  width: 40px; height: 40px; border-radius: 99px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-700));
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-1); font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.quote-card .who { display: flex; flex-direction: column; }
.quote-card .who b { font-size: 13px; font-weight: 600; }
.quote-card .who span { font-size: 12px; color: var(--fg-3); }

.preview-banner {
  margin-top: 32px;
  padding: 14px 22px;
  background: var(--primary-soft);
  border: 1px dashed var(--brand-gold-300);
  border-radius: 12px;
  font-size: 13px; color: var(--brand-gold-700);
  display: flex; align-items: center; gap: 10px;
}

/* ─── Section: founders ─────────────────────────────────── */
.founders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
/* Partner card variant — same template as a founder card, but the avatar
   uses a flat brand-gold (not the gold gradient) so it reads as
   "different kind of card" without breaking the row's visual rhythm. */
.founder.is-partner .face {
  background: var(--brand-gold);
  font-size: 18px;  /* fits the 3-letter monogram comfortably */
  letter-spacing: 0.04em;
}
.founder {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 32px 28px;
  text-align: left;
}
.founder .face {
  width: 72px; height: 72px; border-radius: 99px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand-gold-300), var(--brand-gold-700));
  color: #fff; font-size: 24px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.founder h4 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.founder .role { font-size: 12px; color: var(--brand-gold-700); font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.founder p { font-size: 14px; line-height: 1.6; color: var(--fg-3); margin: 0; }

/* ─── Section: resources ────────────────────────────────── */
.resources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.resource {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 200ms, box-shadow 200ms;
  display: flex; flex-direction: column;
}
.resource:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -22px rgba(29,29,27,0.16); }
.resource .thumb {
  height: 160px;
  background: var(--muted);
  position: relative; overflow: hidden;
}
.resource .thumb.t1 { background: linear-gradient(135deg, hsl(36 47% 88%), hsl(36 47% 73%)); }
.resource .thumb.t2 { background: var(--brand-black); }
.resource .thumb.t3 { background: linear-gradient(135deg, hsl(36 8% 92%), #fff); }
.resource .thumb-glyph {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 48px; color: var(--brand-gold-700); opacity: 0.6;
}
.resource .thumb.t2 .thumb-glyph { color: var(--brand-gold); opacity: 0.85; }
.resource .meta {
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.resource .tag {
  font-size: 10px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-gold-700); font-weight: 600;
}
.resource h4 { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.resource p { font-size: 13px; color: var(--fg-3); line-height: 1.55; margin: 0; }
.resource .read {
  font-size: 12px; font-weight: 600; color: var(--brand-gold-700);
  margin-top: auto;
  display: flex; align-items: center; gap: 6px;
}

/* ─── Section: FAQ ──────────────────────────────────────── */
.faq-list { margin-top: 48px; max-width: 880px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
  font-size: 18px; font-weight: 500; color: var(--fg-1);
  letter-spacing: -0.01em;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .toggle {
  width: 32px; height: 32px; border-radius: 99px;
  background: var(--muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 200ms, transform 250ms;
}
.faq-item[open] .toggle { background: var(--brand-gold); transform: rotate(45deg); }
.faq-item .toggle svg { transition: color 200ms; color: var(--fg-2); }
.faq-item[open] .toggle svg { color: var(--fg-1); }
.faq-item .answer {
  margin-top: 14px;
  font-size: 16px; line-height: 1.65; color: var(--fg-3);
  max-width: 720px;
}

/* ─── Section: final CTA ────────────────────────────────── */
.final-cta {
  background: var(--brand-black); color: #fff;
  padding: 120px 0; position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; right: -200px; bottom: -200px;
  width: 760px; height: 600px;
  background: url('../assets/trillic_brand_pattern.png') no-repeat center / contain;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}
.final-cta-inner { position: relative; z-index: 1; }
.final-cta h2 { color: #fff; font-size: clamp(40px, 5vw, 76px); max-width: 16ch; margin-bottom: 32px; }
.final-cta h2 em { color: var(--brand-gold); font-style: normal; font-weight: 500; }
.final-cta .lede { color: rgba(255,255,255,0.72); margin-bottom: 36px; }

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--brand-black);
  color: rgba(255,255,255,0.55);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 56px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand .rule { width: 1px; height: 18px; background: var(--brand-gold); }
.footer-brand .word { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.18em; }
.footer-tagline { margin-top: 16px; max-width: 280px; font-size: 13px; line-height: 1.6; }

.footer h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85); text-transform: uppercase;
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  text-decoration: none; color: rgba(255,255,255,0.55); font-size: 13px;
  transition: color 150ms;
}
.footer ul a:hover { color: var(--brand-gold); }

.footer-base {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ─── Responsive (graceful, since site is desktop-led) ──── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .demo-wrap { grid-template-columns: 1fr; gap: 16px; }
  #processing-card { min-height: 320px; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-strip .item { border-right: none; border-bottom: 1px solid var(--border); }
  .three-up, .sec-grid, .testimonials, .founders, .resources { grid-template-columns: 1fr; }
  .hoowla-grid { grid-template-columns: 1fr; gap: 32px; }
  .hoowla-flow { grid-template-columns: 1fr; gap: 12px; }
  .hoowla-arrow { transform: rotate(90deg); margin: 4px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  section { padding: 80px 0; }
}

/* ─── Subpage layout (legal, careers, guides) ───────────────
   Used by careers.html, privacy.html, terms.html, dpa.html,
   sub-processors.html and the three resource pages. They reuse
   the site nav + footer; this just gives them a consistent
   page header and an article-style content well. */
.page-hero {
  padding: 120px 0 56px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, hsl(36 12% 97%), var(--background));
}
.page-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  max-width: 22ch;
  margin-bottom: 20px;
}
.page-hero .lede { margin-top: 0; max-width: 64ch; font-size: 19px; }
.page-hero .meta {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  text-transform: uppercase;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-content { padding: 72px 0 120px; }
.page-content h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 56px 0 16px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 10px;
}
.page-content p,
.page-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 68ch;
}
.page-content p { margin: 0 0 18px; }
.page-content ul { padding-left: 22px; margin: 0 0 18px; }
.page-content li { margin-bottom: 8px; }
.page-content a {
  color: var(--brand-gold-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.page-content a:hover { color: var(--fg-1); }
.page-content table {
  width: 100%;
  max-width: 880px;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 14px;
}
.page-content th,
.page-content td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--fg-2);
}
.page-content th {
  font-weight: 600;
  color: var(--fg-1);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: hsl(36 12% 97%);
}

.placeholder-card {
  margin: 40px 0 16px;
  padding: 24px 28px;
  background: var(--primary-soft);
  border: 1px dashed var(--brand-gold-300);
  border-radius: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 720px;
}
.placeholder-card svg { flex-shrink: 0; color: var(--brand-gold-700); margin-top: 2px; }
.placeholder-card p { margin: 0; color: var(--brand-gold-700); font-size: 14px; line-height: 1.55; }
.placeholder-card b { color: var(--fg-1); font-weight: 600; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  text-decoration: none;
  transition: color 150ms;
}
.back-link:hover { color: var(--fg-1); }
.back-link::before { content: "←"; }

/* Careers — role list */
.role-list { margin: 32px 0 0; padding: 0; list-style: none; }
.role-list li {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 14px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 880px;
}
.role-list .role-meta { flex: 1; }
.role-list h3 { margin: 0 0 4px; font-size: 17px; }
.role-list .where {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--brand-gold-700);
  text-transform: uppercase;
}
.role-list .empty {
  background: hsl(36 12% 97%);
  border-style: dashed;
  text-align: center;
  display: block;
  color: var(--fg-3);
  font-size: 14px;
}
