/* ============================================================
   SignerNest · signernest.com
   Blue ink on bond paper. Bricolage Grotesque + Segoe UI.
   ============================================================ */

:root {
  --paper: #FAF9F5;
  --paper-deep: #F3F1EA;
  --manila: #F3EDDE;
  --ink: #16213A;
  --ink-soft: #4A5470;
  --pen: #2342D6;
  --pen-deep: #1A34AC;
  --pen-wash: rgba(35, 66, 214, 0.07);
  --verify: #0E8A5F;
  --verify-wash: rgba(14, 138, 95, 0.08);
  --line: rgba(22, 33, 58, 0.12);
  --line-strong: rgba(22, 33, 58, 0.28);
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: Consolas, "Cascadia Mono", ui-monospace, monospace;
  --radius: 14px;
  --radius-table: 6px;
  --wrap: 1320px;
  --shadow: 0 18px 50px -24px rgba(22, 33, 58, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name, .stat-num, .price-num {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); max-width: 21em; }
h3 { font-size: 1.35rem; font-weight: 650; }

p { max-width: 62ch; }

a { color: var(--pen); text-decoration: none; }
a:hover { color: var(--pen-deep); }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 3.4vw, 44px); }

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.99rem;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--pen);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(35, 66, 214, 0.55);
}
.btn-primary:hover {
  background: var(--pen-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(35, 66, 214, 0.6);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--pen);
  color: var(--pen);
  transform: translateY(-2px);
  background: var(--pen-wash);
}

.btn-lg { padding: 14px 28px; font-size: 1.06rem; border-radius: 12px; }
.btn-block { width: 100%; margin-top: 22px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 249, 245, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(22, 33, 58, 0.25);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px clamp(18px, 3.4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; color: var(--pen); }
.footer .brand-mark { color: #fff; }
.brand-name { font-size: 1.28rem; font-weight: 750; letter-spacing: -0.015em; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.btn) {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.99rem;
  position: relative;
}
.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -5px;
  height: 2px;
  background: var(--pen);
  transition: right 0.22s ease;
}
.nav-links > a:not(.btn):hover { color: var(--pen); }
.nav-links > a:not(.btn):hover::after { right: 0; }
.nav-links .btn { padding: 9px 18px; }
.nav-signin { border-color: transparent; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.42s; }

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

.hero {
  padding: 84px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 46% at 82% 12%, var(--pen-wash), transparent 70%),
    radial-gradient(40% 40% at 8% 88%, rgba(243, 237, 222, 0.75), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  color: var(--pen);
  font-weight: 650;
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  margin-top: 22px;
  max-width: 34em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-trust {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 150px; }
.stat-num { font-size: 1.9rem; font-weight: 750; color: var(--pen); }
.stat-label { font-size: 0.87rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------- The signing ceremony ---------- */

.hero-stage { position: relative; }

.ceremony { position: relative; max-width: 520px; margin-left: auto; }

.doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px 40px;
  position: relative;
}
.doc::before {
  content: "";
  position: absolute;
  inset: 10px -12px -12px 12px;
  background: var(--manila);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  z-index: -1;
}

.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.doc-title { font-family: var(--display); font-weight: 650; font-size: 1.06rem; }
.doc-id { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); margin-top: 3px; }
.doc-corner { width: 22px; height: 22px; flex: none; opacity: 0.7; }

.doc-lines { display: flex; flex-direction: column; gap: 9px; margin: 20px 0 22px; }
.doc-lines span { height: 8px; border-radius: 4px; background: var(--paper-deep); display: block; }

.sig-field {
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  padding: 12px 16px 10px;
  background: var(--pen-wash);
  transition: border-color 0.4s ease;
}
.play .sig-field { border-color: var(--pen); }

.sig-label { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }

.sig-svg { width: 100%; height: 62px; display: block; margin: 2px 0; }
.sig-path {
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
}
.play .sig-path { animation: sig-draw 2.2s ease-out 0.5s forwards; }
@keyframes sig-draw { to { stroke-dashoffset: 0; } }

.sig-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  opacity: 0;
  transform: translateY(6px);
}
.play .sig-meta { animation: rise 0.5s ease-out 2.6s forwards; }
.sig-name { font-weight: 650; font-size: 0.9rem; }
.sig-meaning { font-size: 0.8rem; color: var(--verify); font-weight: 600; }
.sig-time { font-size: 0.72rem; color: var(--ink-soft); }

@keyframes rise { to { opacity: 1; transform: none; } }

.ledger {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ledger-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(6px);
}
.ledger-row svg { width: 15px; height: 15px; color: var(--pen); }
.ledger-row .mono { font-size: 0.7rem; }
.ledger-row.verified { color: var(--verify); font-weight: 600; }
.ledger-row.verified svg { color: var(--verify); }

.play .lr1 { animation: rise 0.45s ease-out 0.9s forwards; }
.play .lr2 { animation: rise 0.45s ease-out 1.5s forwards; }
.play .lr3 { animation: rise 0.45s ease-out 2.9s forwards; }
.play .lr4 { animation: rise 0.45s ease-out 3.5s forwards; }

.seal {
  position: absolute;
  right: -18px;
  bottom: -34px;
  width: 106px;
  height: 106px;
  color: var(--verify);
  filter: drop-shadow(0 10px 18px rgba(14, 138, 95, 0.28));
  opacity: 0;
  transform: scale(1.5) rotate(-14deg);
}
.play .seal { animation: stamp 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 4s forwards; }
@keyframes stamp {
  to { opacity: 1; transform: scale(1) rotate(-8deg); }
}
.seal-text {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  fill: currentColor;
}

/* ---------- Industries ---------- */

.industries {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 34px 0;
}
.industries-title {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-weight: 600;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.chips li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 1 0 auto;
  white-space: nowrap;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.93rem;
  font-weight: 500;
  background: var(--paper);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.chips li:hover {
  border-color: var(--pen);
  color: var(--pen);
  transform: translateY(-2px);
}
.chips svg { width: 19px; height: 19px; color: var(--pen); flex: none; }

/* ---------- Sections shared ---------- */

.section-lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-top: 16px;
  max-width: 44em;
}

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

.pillars { padding: 96px 0 40px; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pillar:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.pillar-icon { width: 54px; height: 54px; margin-bottom: 20px; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--ink-soft); font-size: 0.97rem; }

.pillar-icon .draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
.reveal.in .pillar-icon .draw { animation: icon-draw 1.1s ease-out 0.3s forwards; }
.reveal.in .pillar-icon .draw.slow { animation-delay: 0.9s; animation-duration: 0.7s; }
@keyframes icon-draw { to { stroke-dashoffset: 0; } }

/* ---------- Product tour ---------- */

.tour { padding: 80px 0 30px; }
.tour > .wrap > h2 { margin-bottom: 20px; }

.tour-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}
.tour-row:last-child { border-bottom: none; }
.tour-row.flip .tour-copy { order: 2; }
.tour-row.flip .tour-art { order: 1; }

.tour-copy h3 { font-size: 1.6rem; margin-bottom: 14px; }
.tour-copy > p { color: var(--ink-soft); }

.ticks {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 0.97rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--verify-wash);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.5 2.5 5-6' fill='none' stroke='%230E8A5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

.tour-art svg {
  width: 100%;
  height: auto;
  display: block;
}
.tour-art {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.tour-art:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.route-node text {
  font-family: var(--display);
  font-weight: 650;
  font-size: 14px;
  fill: var(--ink);
}
.route-line {
  stroke-dashoffset: 0;
}
.reveal.in .route-line { animation: dash-flow 14s linear infinite; }
@keyframes dash-flow { to { stroke-dashoffset: -280; } }

.route-dot { opacity: 0; }
.reveal.in .route-dot {
  opacity: 1;
  offset-path: path("M60 120 C 120 40, 180 40, 210 120 S 320 200, 360 120");
  animation: route-travel 4.5s ease-in-out infinite;
}
@keyframes route-travel {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.route-check { opacity: 0; transform-origin: 360px 120px; }
.reveal.in .route-check { animation: check-pop 4.5s ease-in-out infinite; }
@keyframes check-pop {
  0%, 84% { opacity: 0; transform: scale(0.6); }
  92%, 96% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

.stack-doc { transition: transform 0.5s cubic-bezier(0.22, 0.9, 0.3, 1); }
.tour-art:hover .sd2 { transform: translate(9px, -7px) rotate(1.4deg); }
.tour-art:hover .sd3 { transform: translate(18px, -13px) rotate(2.8deg); }
.art-mono { font-family: var(--mono); font-size: 11px; }
.stack-badge { }

.id-pulse circle {
  transform-origin: 318px 170px;
  opacity: 0;
}
.reveal.in .id-pulse circle { animation: pulse-ring 2.6s ease-out infinite; }
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

.api-pulse {
  stroke-dasharray: 4 7;
}
.reveal.in .api-pulse { animation: dash-flow 9s linear infinite; }
.api-packet { opacity: 0; }
.reveal.in .api-packet {
  offset-path: path("M140 120 h140");
  animation: route-travel 2.4s ease-in-out infinite;
}

/* ---------- Compliance ---------- */

.compliance {
  background: var(--manila);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 96px 0;
}

.clause-table {
  margin-top: 46px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-table);
  overflow: hidden;
}
.clause-row {
  display: grid;
  grid-template-columns: 130px 1fr 1.25fr;
  gap: 22px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  transition: background 0.15s ease;
}
.clause-row:last-child { border-bottom: none; }
.clause-row:not(.clause-head):hover { background: var(--pen-wash); }
.clause-head {
  background: var(--ink);
  color: rgba(250, 249, 245, 0.92);
  font-weight: 600;
  font-size: 0.88rem;
}
.clause-ref {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--pen);
  font-size: 0.9rem;
}
.clause-row > span:nth-child(2) { color: var(--ink-soft); }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 18px 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.badge svg { width: 22px; height: 22px; color: var(--verify); }

/* ---------- Regulatory coverage (compliance) ---------- */

.reg-coverage {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 96px 0;
}
.reg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.reg-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.reg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--pen);
}
.reg-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.reg-frameworks {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--pen);
  margin-bottom: 12px;
}
.reg-card > p:last-child { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Audit trail ---------- */

.audit { padding: 100px 0; }

.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.audit-copy h2 { margin-bottom: 18px; }
.audit-copy > p { color: var(--ink-soft); }
.audit-copy .btn { margin-top: 28px; }

.audit-chain {
  display: flex;
  flex-direction: column;
  position: relative;
}
.chain-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "event hash" "who hash";
  gap: 2px 18px;
  align-items: center;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.chain-item:hover {
  border-color: var(--pen);
  transform: translateX(6px);
  box-shadow: var(--shadow);
}
.chain-item + .chain-item { margin-top: 26px; }
.chain-item + .chain-item::before {
  content: "";
  position: absolute;
  left: 34px;
  top: -27px;
  width: 2px;
  height: 26px;
  background: repeating-linear-gradient(to bottom, var(--pen) 0 4px, transparent 4px 8px);
}
.chain-event { grid-area: event; font-weight: 600; font-size: 0.95rem; }
.chain-who { grid-area: who; font-size: 0.82rem; color: var(--ink-soft); }
.chain-hash { grid-area: hash; color: var(--pen); font-size: 0.75rem; }
.chain-final { border-color: var(--verify); background: var(--verify-wash); }
.chain-final .chain-hash { color: var(--verify); }

/* ---------- Plans ---------- */

.plans {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 96px 0;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
  align-items: stretch;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  background: var(--paper);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.4rem; }
.plan-for { color: var(--ink-soft); font-size: 0.93rem; margin-top: 8px; }
.plan-price { margin: 18px 0 22px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan .ticks { margin-bottom: 26px; }
.plan .btn-block { margin-top: auto; }
.price-num { font-size: 2.6rem; font-weight: 750; color: var(--ink); }
.price-per { font-size: 0.85rem; color: var(--ink-soft); }
.plan .ticks li { font-size: 0.92rem; }

.plan-featured {
  background: #fff;
  border: 2px solid var(--pen);
  box-shadow: var(--shadow);
}
.plan-flag {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--pen);
  color: #fff;
  font-weight: 650;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 4px 14px;
}

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

.cta { padding: 110px 0; }
.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-flourish { width: 190px; color: var(--pen); }
.cta-stroke { stroke-dasharray: 460; stroke-dashoffset: 460; }
.reveal.in .cta-stroke { animation: sig-draw 1.8s ease-out 0.3s forwards; }
.cta-inner h2 { max-width: 15em; }
.cta-inner p { color: var(--ink-soft); max-width: 40em; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; }

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

.footer {
  background: var(--ink);
  color: rgba(250, 249, 245, 0.82);
  padding: 70px 0 34px;
}
.footer a { color: rgba(250, 249, 245, 0.82); }
.footer a:hover { color: #fff; }
.footer .brand-name { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 0.85fr 1.05fr auto;
  gap: 40px;
}

.footer-certs { gap: 10px; }
.cert-stamp {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1.3px dashed rgba(250, 249, 245, 0.32);
  border-radius: 9px;
  padding: 8px 16px 8px 11px;
  color: rgba(250, 249, 245, 0.88);
}
.cert-stamp svg { width: 27px; height: 27px; color: #7CD9B4; flex: none; }
.cert-stamp span {
  display: flex;
  flex-direction: column;
  font-weight: 650;
  font-size: 0.86rem;
  line-height: 1.3;
  white-space: nowrap;
}
.cert-stamp small { font-weight: 400; font-size: 0.74rem; color: rgba(250, 249, 245, 0.55); }
.footer-brand p { font-size: 0.93rem; margin-top: 16px; max-width: 30em; }
.footer-parent a { text-decoration: underline; text-underline-offset: 3px; }

.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.93rem; }
.footer-head { font-weight: 650; color: #fff; margin-bottom: 4px; }
.footer-regions {
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(250, 249, 245, 0.6);
  line-height: 1.7;
}

.footer-legal {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 249, 245, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 30px;
  font-size: 0.82rem;
  color: rgba(250, 249, 245, 0.55);
}
.footer-legal p { max-width: none; }
.footer-legal p:first-child { flex: none; }
.footer-legal p:last-child { text-align: right; }

/* ---------- Active nav link ---------- */

.nav-links > a.active { color: var(--pen); font-weight: 600; }
.nav-links > a.active::after { right: 0; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 80px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(48% 60% at 88% 0%, var(--pen-wash), transparent 70%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 16em; }
.page-hero .lede { max-width: 42em; }

/* ---------- Plans teaser (home) ---------- */

.plans-teaser {
  background: var(--manila);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 70px 0;
}
.plans-teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  flex-wrap: wrap;
}
.plans-teaser h2 { max-width: 16em; }
.plans-teaser .btn { flex: none; }

/* ---------- Integrations (product) ---------- */

.integrations {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 96px 0;
}
.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.integration-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 16px 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.integration-tile:hover {
  transform: translateY(-3px);
  border-color: var(--pen);
  box-shadow: var(--shadow);
}
.integration-tile svg { width: 36px; height: 36px; flex: none; }
.integration-tile .int-name { font-weight: 600; font-size: 0.94rem; }
.integration-tile .int-kind { display: block; font-size: 0.78rem; color: var(--ink-soft); font-weight: 400; }

.integration-custom {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  border: 2px solid var(--pen);
  border-radius: var(--radius);
  background: var(--pen-wash);
  padding: 36px 40px;
}
.integration-custom h3 { margin-bottom: 10px; }
.integration-custom p { color: var(--ink-soft); font-size: 0.98rem; }
.integration-custom .btn { margin-top: 20px; }
.code-card {
  background: var(--ink);
  border-radius: 10px;
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.75;
  color: rgba(250, 249, 245, 0.85);
  overflow-x: auto;
}
.code-card .c-key { color: #8FA6FF; }
.code-card .c-str { color: #7CD9B4; }
.code-card .c-dim { color: rgba(250, 249, 245, 0.45); }

/* ---------- Outcomes (product) ---------- */

.outcomes {
  background: var(--manila);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 90px 0;
}
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.outcome {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.outcome .stat-num { font-size: 2.3rem; color: var(--pen); display: block; margin-bottom: 12px; }
.outcome p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Switching band (product) ---------- */

.switching { padding: 90px 0 20px; }
.switching-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 48px;
  box-shadow: var(--shadow);
}
.switching-inner h2 { max-width: 14em; }
.switching-inner .btn { flex: none; }

/* ---------- Security (compliance) ---------- */

.security {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 96px 0;
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.security-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 30px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.security-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.security-card svg { width: 44px; height: 44px; margin-bottom: 16px; }
.security-card h3 { margin-bottom: 10px; }
.security-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Included strip (plans) ---------- */

.included {
  background: var(--manila);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 38px;
}
.included-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 18px;
  font-weight: 600;
  font-size: 0.94rem;
}
.included-item svg { width: 24px; height: 24px; color: var(--verify); flex: none; }

/* ---------- Try-first strip (plans) ---------- */

.try-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 64px;
}
.try-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--manila);
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
}
.try-card h3 { font-size: 1.3rem; }
.try-card .plan-price { margin: 12px 0 10px; }
.try-copy { color: var(--ink-soft); font-size: 0.96rem; }
.try-note {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  background: #fff;
  border: 1.5px dashed var(--line-strong);
  border-radius: 8px;
  padding: 10px 14px;
}
.try-card .btn { margin-top: auto; }
.try-card .btn-block { margin-top: 20px; }

/* ---------- Plan group headings ---------- */

.plan-group {
  margin-top: 26px;
  font-size: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.plan-group-sub {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.plan-group + .plan-grid { margin-top: 26px; margin-bottom: 56px; }

/* ---------- Custom solution banner ---------- */

.custom-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  border: 2px solid var(--pen);
  border-radius: var(--radius);
  background: var(--pen-wash);
  padding: 36px 40px;
  margin-top: 10px;
}
.custom-banner h3 { font-size: 1.45rem; margin-bottom: 8px; }
.custom-banner p { color: var(--ink-soft); max-width: 46em; }
.custom-banner .btn { flex: none; }

/* ---------- Plans page extras ---------- */

.plan-group + .plan-grid { margin-top: 30px; margin-bottom: 60px; }
.plan-note {
  margin-top: 34px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--pen-wash);
  padding: 18px 24px;
}
.plan-note p { color: var(--ink-soft); font-size: 0.95rem; max-width: none; }

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

.faq { padding: 96px 0 60px; }
.faq-list {
  margin-top: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-table);
  background: #fff;
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  padding: 20px 26px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.faq-q:hover { background: var(--pen-wash); }
.faq-q svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s ease; color: var(--pen); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-a > p {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.97rem;
  padding: 0 26px;
  max-width: none;
  transition: padding 0.3s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > p { padding: 0 26px 22px; }

/* ---------- Contact ---------- */

.contact { padding: 20px 0 100px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-weight: 600; font-size: 0.92rem; }
.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  padding: 11px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pen);
  box-shadow: 0 0 0 3px var(--pen-wash);
}
.contact-form .btn { align-self: flex-start; }
.form-note { color: var(--verify); font-size: 0.92rem; }

.contact-info { display: flex; flex-direction: column; gap: 22px; }
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-card h3 { font-size: 1.15rem; }
.info-card p { font-size: 0.95rem; color: var(--ink-soft); }
.info-hours { font-size: 0.88rem; }
.info-partner {
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
}
.info-demo { background: var(--manila); }
.info-demo .btn { align-self: flex-start; margin-top: 4px; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .ceremony { margin: 0 auto; }
  .pillar-grid { grid-template-columns: 1fr; }
  .tour-row { grid-template-columns: 1fr; gap: 34px; padding: 48px 0; }
  .tour-row.flip .tour-copy { order: 1; }
  .tour-row.flip .tour-art { order: 2; }
  .audit-grid { grid-template-columns: 1fr; gap: 48px; }
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .outcome-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .included-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: 1fr 1fr; }
  .integration-custom { grid-template-columns: 1fr; gap: 26px; }
  .reg-grid { grid-template-columns: 1fr 1fr; }
  .try-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .custom-banner { justify-content: center; text-align: center; }
  .custom-banner > div { display: flex; flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .clause-row { grid-template-columns: 92px 1fr; }
  .clause-row > span:nth-child(2) { display: none; }
  .clause-head span:nth-child(2) { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: block; }
  /* Drawer must be absolute (not fixed): backdrop-filter on .nav makes it the containing block */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(22, 33, 58, 0.3);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 28px 26px;
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { justify-content: center; }

  .hero { padding: 56px 0 70px; }
  .hero-stats { gap: 24px; }
  .seal { right: -8px; width: 96px; height: 96px; }
  .doc { padding: 22px 20px 18px; }
  .ledger-row .mono { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-legal { flex-direction: column; gap: 10px; }
  .footer-legal p:last-child { text-align: left; }
  .clause-row { padding: 16px 18px; gap: 14px; }
  .cta { padding: 80px 0; }
  .page-hero { padding: 52px 0 40px; }
  .included-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 22px; }
  .switching-inner { padding: 32px 26px; }
  .switching { padding: 60px 0 10px; }
  .outcomes, .included, .security, .faq, .compliance, .plans, .integrations, .reg-coverage { padding-top: 64px; padding-bottom: 64px; }
  .reg-grid { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: 1fr; }
  .integration-custom { padding: 26px 22px; }
  .custom-banner { padding: 28px 22px; }
  .try-card { padding: 24px 22px 22px; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; }
  .hero-stats { gap: 20px; }
  .stat { min-width: 124px; }
  .stat-num { font-size: 1.6rem; }
  .chips { margin: 0 calc(-1 * clamp(18px, 3.4vw, 44px)); padding: 0 clamp(18px, 3.4vw, 44px) 2px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sig-path, .cta-stroke { stroke-dashoffset: 0; animation: none !important; }
  .play .sig-meta, .play .ledger-row, .play .seal {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .play .seal { transform: rotate(-8deg); }
  .pillar-icon .draw { stroke-dashoffset: 0; animation: none !important; }
  .route-line, .route-dot, .route-check, .id-pulse circle, .api-pulse, .api-packet {
    animation: none !important;
  }
  .route-check { opacity: 1; transform: none; }
  .btn, .pillar, .plan, .chips li, .chain-item, .tour-art, .stack-doc { transition: none; }
}
