/* ============================================================
   Woven Reach — Marketing Landing
   Shopify-app / modern tech-company aesthetic.
   Inter throughout. Instrument Serif reserved for the wordmark
   and a single italic accent in the hero.
   ============================================================ */

/* ----- Palette overrides (replacing the warm parchment / amber default) -----

   Each palette overrides a small set of design-system tokens.
   --site-bg     : page background (was warm parchment)
   --site-bg-2   : secondary surface band
   --site-border : section borders
   --site-ink    : deepest ink (page/dark-section backgrounds + display type)
   --site-fg     : primary text
   --site-fg-2   : secondary text
   --site-accent : the saturated brand-accent (was amber)
   --site-accent-strong : pressed/hover state of accent
   --site-accent-soft   : tinted bg for accent badges
*/

/* DEFAULT — "Slate" : cool off-white + deep ink-black + coral accent */
body, body[data-palette="slate"] {
  --site-bg:        #EFEFEC;
  --site-bg-2:      #E6E6E1;
  --site-bg-3:      #FFFFFF;
  --site-border:    #DCDCD6;
  --site-border-2:  #C7C7C0;
  --site-ink:       #0B0D14;
  --site-ink-2:     #161922;
  --site-fg:        #0B0D14;
  --site-fg-2:      #555A66;
  --site-fg-3:      #7C828E;
  --site-accent:        #E84B3C;   /* punchy vermillion */
  --site-accent-strong: #C13325;
  --site-accent-soft:   rgba(232, 75, 60, 0.10);
  --site-accent-ring:   rgba(232, 75, 60, 0.22);
  --site-indigo:        #2A3FE8;   /* electric cobalt, replacing dusty loom indigo */
  --site-indigo-soft:   rgba(42, 63, 232, 0.08);
  --site-indigo-ring:   rgba(42, 63, 232, 0.22);
  --site-success:       #1F8A5B;
  --site-success-soft:  rgba(31, 138, 91, 0.14);
}

/* "Sage" — cool sage gray + deep forest ink + teal accent */
body[data-palette="sage"] {
  --site-bg:        #ECEEEA;
  --site-bg-2:      #DEE3DC;
  --site-bg-3:      #FFFFFF;
  --site-border:    #CFD5CB;
  --site-border-2:  #B5BCB0;
  --site-ink:       #0B1714;
  --site-ink-2:     #14211D;
  --site-fg:        #0B1714;
  --site-fg-2:      #4F5A55;
  --site-fg-3:      #7A847E;
  --site-accent:        #0F766E;
  --site-accent-strong: #0A5A53;
  --site-accent-soft:   rgba(15, 118, 110, 0.12);
  --site-accent-ring:   rgba(15, 118, 110, 0.26);
  --site-indigo:        #1F3D9A;
  --site-indigo-soft:   rgba(31, 61, 154, 0.08);
  --site-indigo-ring:   rgba(31, 61, 154, 0.22);
  --site-success:       #1F8A5B;
  --site-success-soft:  rgba(31, 138, 91, 0.14);
}

/* "Cobalt" — bright cool white + deep navy + electric blue accent (Linear-ish) */
body[data-palette="cobalt"] {
  --site-bg:        #F3F4F7;
  --site-bg-2:      #E7E9EE;
  --site-bg-3:      #FFFFFF;
  --site-border:    #D8DCE4;
  --site-border-2:  #BDC4D0;
  --site-ink:       #060818;
  --site-ink-2:     #0F1326;
  --site-fg:        #0A0D1E;
  --site-fg-2:      #5A6173;
  --site-fg-3:      #828A9C;
  --site-accent:        #4548F2;
  --site-accent-strong: #2F32CE;
  --site-accent-soft:   rgba(69, 72, 242, 0.10);
  --site-accent-ring:   rgba(69, 72, 242, 0.22);
  --site-indigo:        #4548F2;
  --site-indigo-soft:   rgba(69, 72, 242, 0.10);
  --site-indigo-ring:   rgba(69, 72, 242, 0.22);
  --site-success:       #1F8A5B;
  --site-success-soft:  rgba(31, 138, 91, 0.14);
}

/* "Parchment" — kept as the original warm Claude-default for comparison */
body[data-palette="parchment"] {
  --site-bg:        #FAF7F2;
  --site-bg-2:      #F2EDE3;
  --site-bg-3:      #FFFFFF;
  --site-border:    #E8E0D0;
  --site-border-2:  #D5C9B0;
  --site-ink:       #08081C;
  --site-ink-2:     #1F1B5A;
  --site-fg:        #08081C;
  --site-fg-2:      #555A66;
  --site-fg-3:      #7C828E;
  --site-accent:        #E58E26;
  --site-accent-strong: #C57420;
  --site-accent-soft:   rgba(229, 142, 38, 0.12);
  --site-accent-ring:   rgba(229, 142, 38, 0.22);
  --site-indigo:        #4338CA;
  --site-indigo-soft:   rgba(67, 56, 202, 0.08);
  --site-indigo-ring:   rgba(67, 56, 202, 0.22);
  --site-success:       #1A8D43;
  --site-success-soft:  rgba(26, 141, 67, 0.14);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--wr-font-sans);
  color: var(--site-fg);
  background: var(--site-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
::selection { background: var(--site-accent-ring); color: var(--site-ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
code, pre { font-family: var(--wr-font-mono); }

/* Page grid + section frame */
.page { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.page-wide { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section { padding: 112px 0; position: relative; }
.section.tight { padding: 72px 0; }

/* ----- Type system ----- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--site-indigo);
  font-weight: 600;
  margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--site-indigo);
}

h1, h2, h3, h4 { margin: 0; color: var(--site-ink); }

.display-hero {
  font-family: var(--wr-font-sans);
  font-size: clamp(48px, 6.8vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--site-ink);
}
.display-hero em {
  font-family: var(--wr-font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--site-accent-strong);
  letter-spacing: -0.02em;
}

.display-h2 {
  font-family: var(--wr-font-sans);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 700;
  color: var(--site-ink);
  max-width: 22ch;
}
.display-h2 em {
  font-family: var(--wr-font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--site-accent-strong);
  letter-spacing: -0.018em;
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--wr-ink-700);
  max-width: 56ch;
  margin: 20px 0 0;
  font-weight: 400;
}
.lede strong { color: var(--site-ink); font-weight: 600; }

.h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--site-ink);
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(239,239,236,0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--site-border); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--wr-font-sans);
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--site-ink);
}
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav-links {
  display: flex; gap: 4px;
  font-size: 14px;
  color: var(--wr-ink-700);
  margin-left: 8px;
  font-weight: 500;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 160ms ease, background 160ms ease;
}
.nav-links a:hover { color: var(--site-ink); background: rgba(11,13,20,0.04); }
.nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 14px;
  height: 36px; padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none; color: inherit;
  line-height: 1;
  letter-spacing: -0.005em;
  transition: background 160ms var(--wr-ease-out), color 160ms ease,
              border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  white-space: nowrap;
}
.btn.primary {
  background: var(--site-ink);
  color: var(--site-bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset,
              0 1px 2px rgba(11,13,20,0.18);
}
.btn.primary:hover { background: var(--site-ink-2); }
.btn.primary:active { background: #15123F; transform: translateY(0.5px); }
.btn.accent {
  background: var(--site-accent);
  color: var(--site-bg);
  box-shadow: 0 1px 2px var(--site-accent-ring);
}
.btn.accent:hover { background: var(--site-accent-strong); }
.btn.ghost {
  background: transparent;
  color: var(--site-ink);
  border-color: rgba(11,13,20,0.14);
}
.btn.ghost:hover { background: rgba(11,13,20,0.04); border-color: rgba(11,13,20,0.28); }
.btn.lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn .arrow { transition: transform 220ms var(--wr-ease-out); }
.btn:hover .arrow { transform: translateX(2px); }

/* App store style pill */
.app-store-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 10px 0 8px;
  background: var(--site-indigo-soft);
  border: 1px solid var(--site-indigo-ring);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--site-indigo);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.app-store-pill .sh {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  background: #95BF47;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 10px;
  font-family: var(--wr-font-sans);
}

/* ============ HERO ============ */
.hero { position: relative; padding: 88px 0 104px; overflow: hidden; }
.hero-frame { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.hero-badges {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-meta-bullets {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px;
  color: var(--wr-ink-500);
  font-weight: 500;
  white-space: nowrap;
}
.hero-meta-bullets .sep { color: var(--wr-ink-300); }

/* Hero headline variants -- only [data-active] visible */
.hero-headline { display: none; }
.hero-headline[data-active] { display: block; }

.hero-sub {
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--wr-ink-700);
  max-width: 56ch;
  margin: 24px 0 0;
}
.hero-sub strong { color: var(--site-ink); font-weight: 600; }

.hero-cta {
  margin-top: 32px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.hero-fine {
  margin-top: 18px;
  font-size: 13px; color: var(--wr-ink-500);
  display: flex; align-items: center; gap: 8px;
}
.hero-fine svg { color: var(--site-success); }

/* Hero layouts via data attribute */
.hero[data-layout="left"]   .display-hero { max-width: 14ch; }
.hero[data-layout="left"]   .hero-art-wrap { position: absolute; right: -24px; top: 56px; width: 44%; pointer-events: none; }
.hero[data-layout="left"]   .hero-art-wrap > * { pointer-events: auto; }

.hero[data-layout="center"] .hero-frame { text-align: center; }
.hero[data-layout="center"] .display-hero { max-width: 18ch; margin: 0 auto; }
.hero[data-layout="center"] .hero-sub { margin-left: auto; margin-right: auto; }
.hero[data-layout="center"] .hero-cta { justify-content: center; }
.hero[data-layout="center"] .hero-fine { justify-content: center; }
.hero[data-layout="center"] .hero-badges { justify-content: center; }
.hero[data-layout="center"] .hero-art-wrap { display: none; }

.hero[data-layout="split"] .hero-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero[data-layout="split"] .hero-art-wrap { position: relative; right: auto; top: auto; width: auto; pointer-events: auto; }
.hero[data-layout="split"] .display-hero { font-size: clamp(40px, 5vw, 64px); max-width: none; }

/* The hero email preview card */
.hero-card {
  position: relative;
  background: var(--site-bg-3);
  border-radius: 14px;
  border: 1px solid var(--site-border);
  box-shadow:
    0 0 0 1px rgba(11,13,20,0.02),
    0 24px 48px -16px rgba(11,13,20,0.20),
    0 4px 8px -2px rgba(11,13,20,0.06);
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
}

.hero-card .head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--wr-ink-100);
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--wr-ink-500);
  background: var(--wr-surface-subdued);
}
.hero-card .head .live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; color: var(--site-success);
}
.hero-card .head .live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--site-success);
  box-shadow: 0 0 0 3px rgba(26,141,67,0.18);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.hero-card .head .at { color: var(--wr-ink-400); margin-left: auto; font-size: 11px; }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(26,141,67,0.14); }
  50%      { box-shadow: 0 0 0 6px rgba(26,141,67,0.04); }
}
.hero-card .body { padding: 20px 22px 22px; }
.hero-card .subj {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--site-ink);
  margin: 0 0 8px;
}
.hero-card .pre { font-size: 13px; color: var(--wr-ink-500); margin-bottom: 18px; }
.hero-card .copy {
  font-size: 14px; line-height: 1.6;
  color: var(--wr-ink-700);
  margin: 0 0 16px;
}
.hero-card .product {
  display: flex; gap: 12px; align-items: center;
  padding: 10px;
  background: var(--wr-surface-subdued);
  border: 1px solid var(--wr-ink-100);
  border-radius: 10px;
  margin-bottom: 16px;
}
.hero-card .product .swatch {
  width: 48px; height: 48px; border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 8px),
    linear-gradient(135deg, #2d3142, #1a1d2b);
  flex: 0 0 48px;
}
.hero-card .product .info { display: flex; flex-direction: column; }
.hero-card .product .name { font-size: 13px; font-weight: 600; color: var(--site-ink); letter-spacing: -0.005em; }
.hero-card .product .sku { font-size: 11px; color: var(--wr-ink-500); margin-top: 3px; font-family: var(--wr-font-mono); }
.hero-card .send-btn {
  display: inline-flex; height: 34px; padding: 0 14px;
  align-items: center; border-radius: 8px;
  background: var(--site-ink); color: var(--site-bg);
  font-size: 13px; font-weight: 600;
}
.hero-card .signed {
  margin-top: 16px;
  font-size: 13px;
  color: var(--wr-ink-500);
}

/* Floating chips around the hero card */
.hero-art-wrap .chip {
  position: absolute;
  padding: 6px 11px 6px 9px;
  background: var(--site-ink);
  color: var(--site-bg);
  font-size: 11px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 6px 14px -3px rgba(11,13,20,0.32);
  white-space: nowrap;
}
.hero-art-wrap .chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--site-accent);
}
.hero-art-wrap .chip.indigo .dot { background: var(--wr-loom-300); }
.hero-art-wrap .chip.success .dot { background: #6BE89C; }
.hero-art-wrap .chip-1 { top: -14px; right: 38px; animation: chipFloat 7s ease-in-out infinite; }
.hero-art-wrap .chip-2 { top: 42%; right: -18px; animation: chipFloat 9s ease-in-out infinite -3s; }
.hero-art-wrap .chip-3 { bottom: -12px; left: 24px; animation: chipFloat 8s ease-in-out infinite -1.5s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ============ LOGO STRIP ============ */
.logo-strip {
  padding: 36px 0 24px;
  border-top: 1px solid var(--site-border);
  border-bottom: 1px solid var(--site-border);
}
.logo-strip-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
}
.logo-strip .label {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wr-ink-500);
  font-weight: 600;
  line-height: 1.5;
  max-width: 22ch;
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: center;
}
.logo-row .lr {
  height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--wr-ink-500);
  opacity: 0.85;
  transition: opacity 200ms ease, color 200ms ease;
}
.logo-row .lr:hover { opacity: 1; color: var(--site-ink); }
.logo-row .lr .mk {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--wr-ink-300);
  flex: 0 0 22px;
}
.logo-row .lr-1 .mk { background: linear-gradient(135deg, #1f3046, #6790b8); }
.logo-row .lr-2 .mk { background: linear-gradient(135deg, #2a1812, #c0823e); border-radius: 50%; }
.logo-row .lr-3 .mk { background: linear-gradient(135deg, #f4e5cb, #b27a3d); border-radius: 4px; }
.logo-row .lr-4 .mk { background: linear-gradient(135deg, #4338CA, #5C6AC4); }
.logo-row .lr-5 .mk { background: linear-gradient(135deg, #08081C, #303030); border-radius: 50%; }

/* ============ FEATURE GRID (replaces editorial essay) ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.feature {
  background: var(--site-bg-3);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--site-border);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 200ms var(--wr-ease-out), box-shadow 200ms ease, border-color 200ms ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(11,13,20,0.10);
  border-color: var(--wr-ink-200);
}
.feature .ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--site-indigo-soft);
  color: var(--site-indigo);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--site-ink);
  margin: 0;
}
.feature p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--wr-ink-500);
  margin: 0;
}
.feature .meta-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--wr-ink-100);
  font-family: var(--wr-font-mono);
  font-size: 11px;
  color: var(--wr-ink-500);
}

/* ============ ENGINE / WORKFLOW (dark band) ============ */
.engine-band {
  background: var(--site-ink);
  color: var(--site-bg);
  position: relative;
  overflow: hidden;
}
.engine-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(92,106,196,0.16), transparent 50%),
    radial-gradient(circle at 85% 80%, var(--site-accent-soft), transparent 55%);
  pointer-events: none;
}
.engine-band .eyebrow { color: var(--site-accent); }
.engine-band .eyebrow .dot { background: var(--site-accent); }
.engine-band .display-h2 { color: var(--site-bg); }
.engine-band .display-h2 em { color: var(--site-accent); }
.engine-band .lede { color: rgba(255,255,255,0.68); max-width: 60ch; }

.engine-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.engine-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
}
.engine-stats .stat .num {
  font-family: var(--wr-font-sans);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.028em;
  color: var(--site-bg);
}
.engine-stats .stat .num .unit { color: var(--site-accent); font-weight: 500; font-size: 0.6em; margin-left: 4px; letter-spacing: 0; }
.engine-stats .stat .label {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* The flow canvas */
.flow {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 36px;
  min-height: 480px;
  overflow: hidden;
}
.flow::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 70% at center, rgba(0,0,0,1), rgba(0,0,0,0));
  pointer-events: none;
}

.flow-toolbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
  position: relative; z-index: 2;
}
.flow-toolbar .pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  letter-spacing: -0.005em;
}
.flow-toolbar .pill .ld { width: 6px; height: 6px; border-radius: 50%; background: #6BE89C; box-shadow: 0 0 0 3px rgba(107,232,156,0.15); }
.flow-toolbar .pill code { font-size: 11px; color: var(--site-accent); }
.flow-toolbar .sp { flex: 1; }

.flow-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
  z-index: 2;
}
.node {
  background: var(--site-bg-3);
  border: 1.5px solid;
  border-radius: 10px;
  padding: 12px 12px 11px;
  font-family: var(--wr-font-sans);
  position: relative;
  transition: transform 240ms var(--wr-ease-out), box-shadow 240ms ease;
  box-shadow: 0 8px 18px -8px rgba(0,0,0,0.45);
}
.node:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -10px rgba(0,0,0,0.55); }
.node .glyph { font-size: 14px; line-height: 1; margin-bottom: 8px; }
.node .ntitle { font-size: 12.5px; font-weight: 600; color: var(--site-ink); letter-spacing: -0.005em; }
.node .nmeta { font-size: 10.5px; color: var(--wr-ink-500); margin-top: 4px; font-family: var(--wr-font-mono); }
.node.trigger { background: var(--wr-node-trigger-bg); border-color: var(--wr-node-trigger-border); }
.node.action  { background: var(--wr-node-action-bg);  border-color: var(--wr-node-action-border); }
.node.wait    { background: var(--wr-node-wait-bg);    border-color: var(--wr-node-wait-border); }
.node.check   { background: var(--wr-node-check-bg);   border-color: var(--wr-node-check-border); }
.node.end     { background: var(--wr-node-end-bg);     border-color: var(--wr-node-end-border); }

.flow-edges { position: absolute; left: 36px; right: 36px; top: 92px; bottom: 80px; z-index: 1; pointer-events: none; }
.flow-edges .edge {
  stroke: var(--wr-loom-500);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  fill: none;
  animation: dashMove 1.4s linear infinite;
  opacity: 0.7;
}
@keyframes dashMove { to { stroke-dashoffset: -22; } }

.cart-particle {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--site-accent);
  box-shadow: 0 0 14px color-mix(in oklab, var(--site-accent) 70%, transparent);
  z-index: 3;
  top: 188px; left: 96px;
  opacity: 0;
  animation: cartTravel 14s ease-in-out infinite;
}
@keyframes cartTravel {
  0%   { opacity: 0; transform: translate(0, 0); }
  6%   { opacity: 1; }
  17%  { transform: translate(220px, 0); }
  18%  { transform: translate(220px, 0) scale(1.8); }
  21%  { transform: translate(220px, 0) scale(1); }
  35%  { transform: translate(440px, 0); }
  52%  { transform: translate(660px, 0); }
  68%  { transform: translate(660px, 0); }
  72%  { transform: translate(660px, 0) scale(1.8); }
  85%  { transform: translate(880px, 0); opacity: 1; }
  94%  { transform: translate(880px, 0); opacity: 0; }
  100% { opacity: 0; }
}

.flow-legend {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 11.5px; color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  margin-top: 22px;
  padding: 0 4px;
  position: relative; z-index: 2;
  font-weight: 500;
}
.flow-legend .lk { display: inline-flex; align-items: center; gap: 8px; }
.flow-legend .sw {
  width: 10px; height: 10px;
  border-radius: 3px;
  border: 1.5px solid;
  background: transparent;
}
.sw.trigger { background: var(--wr-node-trigger-bg); border-color: var(--wr-node-trigger-border); }
.sw.action  { background: var(--wr-node-action-bg);  border-color: var(--wr-node-action-border); }
.sw.wait    { background: var(--wr-node-wait-bg);    border-color: var(--wr-node-wait-border); }
.sw.check   { background: var(--wr-node-check-bg);   border-color: var(--wr-node-check-border); }
.sw.end     { background: var(--wr-node-end-bg);     border-color: var(--wr-node-end-border); }

/* Contracts pull-out */
.engine-contracts {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  margin-top: 64px;
  align-items: stretch;
}
.engine-contracts pre {
  margin: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 22px 24px;
  font-family: var(--wr-font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #DDE3EE;
  overflow-x: auto;
  position: relative;
}
.engine-contracts pre::before {
  content: "campaign.ts";
  position: absolute; top: 0; right: 12px;
  transform: translateY(-50%);
  background: var(--site-ink);
  padding: 2px 8px;
  font-size: 10.5px;
  color: var(--site-accent);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  font-family: var(--wr-font-mono);
}
.engine-contracts pre .k { color: #C5A8FF; }
.engine-contracts pre .s { color: #7AE2A0; }
.engine-contracts pre .c { color: #6E7B91; }
.engine-contracts pre .n { color: var(--site-accent); }

.principle-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.principle-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
}
.principle-list li b {
  color: var(--site-bg);
  font-weight: 600;
}
.principle-list .pn {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--site-accent-soft);
  border: 1px solid var(--site-accent-ring);
  color: var(--site-accent);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--wr-font-mono);
}
.principle-list code {
  font-family: var(--wr-font-mono);
  font-size: 12px;
  color: var(--site-accent);
  background: var(--site-accent-soft);
  border: 1px solid var(--site-accent-ring);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ============ VOICE GALLERY ============ */
.voices-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.voice {
  background: var(--site-bg-3);
  border-radius: 12px;
  border: 1px solid var(--site-border);
  box-shadow: 0 8px 16px -10px rgba(11,13,20,0.08);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 240ms var(--wr-ease-out), box-shadow 240ms ease, border-color 240ms ease;
}
.voice:hover {
  transform: translateY(-3px);
  border-color: var(--wr-ink-200);
  box-shadow: 0 22px 36px -16px rgba(11,13,20,0.16);
}
.voice .crown {
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--wr-ink-100);
}
.voice .crown .swatch {
  width: 36px; height: 36px;
  border-radius: 8px;
  flex: 0 0 36px;
}
.voice .crown .shop-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--site-ink);
}
.voice .crown .shop-cat {
  font-size: 11px;
  color: var(--wr-ink-500);
  margin-top: 2px;
}
.voice .traits {
  padding: 12px 18px;
  display: flex; gap: 6px; flex-wrap: wrap;
  border-bottom: 1px solid var(--wr-ink-100);
  background: var(--wr-surface-subdued);
}
.voice .trait {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--site-bg-3);
  border: 1px solid var(--wr-ink-200);
  border-radius: 999px;
  color: var(--wr-ink-700);
  font-weight: 500;
}
.voice .email {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column;
  flex: 1;
}
.voice .email .sl {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wr-ink-400);
  font-weight: 600;
  margin-bottom: 6px;
}
.voice .email .subj {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--site-ink);
  margin: 0 0 10px;
}
.voice .email .preview {
  font-size: 14px;
  line-height: 1.6;
  color: var(--wr-ink-700);
  margin: 0;
  flex: 1;
}
.voice .email .preview em { font-style: italic; color: var(--site-ink); }
.voice .email .preview .hl {
  background: linear-gradient(120deg, var(--site-accent-ring), var(--site-accent-ring));
  padding: 0 3px;
  border-radius: 2px;
}
.voice .email footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--wr-ink-100);
  font-size: 11.5px;
  color: var(--wr-ink-500);
  font-family: var(--wr-font-mono);
}
.voice .email footer .cta {
  color: var(--site-indigo);
  font-weight: 600;
  font-family: var(--wr-font-sans);
}

.swatch.glacier { background: linear-gradient(135deg, #1f3046 0%, #2f4d6e 70%, #6790b8 100%); }
.swatch.forge   { background: linear-gradient(135deg, #2a1812 0%, #5b3826 70%, #c0823e 100%); }
.swatch.bakery  { background: linear-gradient(135deg, #f4e5cb 0%, #e2c08a 70%, #b27a3d 100%); }

/* ============ PROOF / QUOTE ============ */
.proof-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.proof-quote {
  background: var(--site-bg-3);
  border-radius: 16px;
  border: 1px solid var(--site-border);
  padding: 36px;
  display: flex; flex-direction: column;
  gap: 24px;
}
.proof-quote .q {
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--site-ink);
  font-weight: 500;
  margin: 0;
}
.proof-quote .q .accent {
  font-family: var(--wr-font-serif);
  font-style: italic;
  color: var(--site-accent-strong);
  font-weight: 400;
}
.proof-quote .who {
  display: flex; align-items: center; gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--wr-ink-100);
}
.proof-quote .who .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f3046, #6790b8);
  flex: 0 0 36px;
}
.proof-quote .who .who-name { font-size: 14px; font-weight: 600; color: var(--site-ink); letter-spacing: -0.005em; }
.proof-quote .who .who-role { font-size: 12.5px; color: var(--wr-ink-500); margin-top: 1px; }

.proof-stats {
  background: var(--site-ink);
  color: var(--site-bg);
  border-radius: 16px;
  padding: 32px;
  display: flex; flex-direction: column;
}
.proof-stats .eyebrow { color: var(--site-accent); }
.proof-stats .eyebrow .dot { background: var(--site-accent); }
.proof-stats .stats-row {
  margin-top: 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  flex: 1;
}
.proof-stats .stats-row .num {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--site-bg);
  line-height: 1;
}
.proof-stats .stats-row .num .unit { font-size: 0.55em; color: var(--site-accent); margin-left: 3px; letter-spacing: 0; font-weight: 500; }
.proof-stats .stats-row .label {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  line-height: 1.45;
}
.proof-stats footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 11.5px;
  color: rgba(255,255,255,0.50);
  font-family: var(--wr-font-mono);
}

/* ============ HOW (3 steps) ============ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.step {
  position: relative;
  background: var(--site-bg-3);
  border-radius: 12px;
  padding: 24px 24px 22px;
  border: 1px solid var(--site-border);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 200ms var(--wr-ease-out), box-shadow 200ms ease, border-color 200ms ease;
}
.step:hover { transform: translateY(-2px); border-color: var(--wr-ink-200); box-shadow: 0 12px 24px -10px rgba(11,13,20,0.10); }
.step .step-num {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--site-indigo-soft);
  color: var(--site-indigo);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--wr-font-mono);
  letter-spacing: -0.01em;
}
.step .step-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
  color: var(--site-ink);
  margin: 8px 0 0;
}
.step .step-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--wr-ink-500);
  margin: 0;
}
.step .step-time {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--site-indigo);
  font-weight: 700;
}

/* ============ FAQ-ish / pricing teaser strip ============ */
.teaser-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.teaser {
  background: var(--site-bg-3);
  border-radius: 12px;
  padding: 26px;
  border: 1px solid var(--site-border);
  display: flex; flex-direction: column; gap: 6px;
}
.teaser h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--site-ink);
}
.teaser p { font-size: 14px; line-height: 1.55; color: var(--wr-ink-500); margin: 4px 0 0; }
.teaser .link {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--site-indigo);
  font-size: 13px; font-weight: 600;
}
.teaser .link svg { transition: transform 200ms var(--wr-ease-out); }
.teaser:hover .link svg { transform: translateX(3px); }

/* ============ FINAL CTA ============ */
.final-cta {
  text-align: center;
  background: var(--site-ink);
  color: var(--site-bg);
  border-radius: 20px;
  margin: 32px 0;
  padding: 88px 40px;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("assets/weave.svg");
  background-repeat: repeat;
  background-size: 120px 120px;
  opacity: 0.05;
  mask-image: radial-gradient(ellipse 80% 60% at center, rgba(0,0,0,1), rgba(0,0,0,0));
}
.final-cta .display-h2 { color: var(--site-bg); margin: 0 auto; max-width: 20ch; position: relative; }
.final-cta .display-h2 em { color: var(--site-accent); }
.final-cta .lede { color: rgba(255,255,255,0.66); margin: 18px auto 0; max-width: 56ch; position: relative; }
.final-cta .ctas { margin-top: 32px; display: flex; gap: 10px; justify-content: center; position: relative; flex-wrap: wrap; }
.final-cta .ctas .btn.ghost { color: var(--site-bg); border-color: rgba(255,255,255,0.22); }
.final-cta .ctas .btn.ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.42); }

/* ============ FOOTER ============ */
.footer {
  padding: 64px 32px 40px;
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  border-top: 1px solid var(--site-border);
  font-size: 13px;
}
.footer .brand-block { display: flex; flex-direction: column; gap: 14px; }
.footer .brand-block .blurb { color: var(--wr-ink-500); line-height: 1.55; max-width: 32ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-cols h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wr-ink-700);
  font-weight: 700;
  margin: 0 0 12px;
}
.footer-cols a {
  display: block; padding: 4px 0;
  color: var(--wr-ink-500);
  transition: color 160ms ease;
}
.footer-cols a:hover { color: var(--site-indigo); }
.footer .meta-row {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--site-border);
  font-size: 12px; color: var(--wr-ink-500);
}

/* ============ REVEAL ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--wr-ease-out), transform 600ms var(--wr-ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: 1fr; }
  .engine-head { grid-template-columns: 1fr; }
  .engine-contracts { grid-template-columns: 1fr; }
  .voices-head { grid-template-columns: 1fr; }
  .voices-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; gap: 28px; }
  .how-grid { grid-template-columns: 1fr; }
  .teaser-strip { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .logo-strip-inner { grid-template-columns: 1fr; gap: 20px; }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-edges { display: none; }
  .cart-particle { display: none; }
  .hero[data-layout="split"] .hero-frame { grid-template-columns: 1fr; }
  .hero[data-layout="left"] .hero-art-wrap { position: relative; right: auto; top: auto; width: auto; margin-top: 48px; }
  .nav-links { display: none; }
}
