/* Marketing site styles — depends on tokens.css */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* ---------- layout ---------- */
.wf-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wf-section { padding: 96px 0; }
.wf-section.tight { padding: 64px 0; }
.wf-section.dark { background: var(--ink-0); color: var(--fg-inv); }
.wf-section.dark .muted { color: #A8A59A; }
.wf-section.dark a { color: var(--fg-inv); }
.wf-section.paper-1 { background: var(--paper-1); }

/* ---------- eyebrow ---------- */
.wf-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wf-eyebrow::before {
  content: ""; display: inline-block; width: 20px; height: 1px; background: currentColor;
}

/* ---------- typography ---------- */
.wf-h-display {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(42px, 9vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--fg-1);
  text-wrap: balance;
  margin: 0;
  overflow-wrap: break-word;
}
.wf-h-display .molten {
  color: var(--molten);
  position: relative;
  white-space: nowrap;
}
/* hand-struck molten marker under the focal word — drawn in on load */
.wf-h-display .molten::after {
  content: "";
  position: absolute;
  left: -1.5%; right: -1.5%;
  bottom: 0.02em;
  height: 0.1em;
  background: var(--molten);
  border-radius: 2px 3px 2px 3px;
  transform: scaleX(1) rotate(-0.6deg);
  transform-origin: left center;
}

.wf-h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.wf-h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
}

.wf-lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 560px;
  text-wrap: pretty;
  margin: 0;
}

.wf-p { font-size: 15px; line-height: 1.55; color: var(--fg-2); margin: 0; text-wrap: pretty; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--fg-3); }

/* ---------- buttons ---------- */
.wf-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out),
              color 180ms var(--ease-out), box-shadow 220ms var(--ease-out-quint),
              transform 120ms var(--ease-out-quint);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.wf-btn .arr { transition: transform 220ms var(--ease-out-expo); }
.wf-btn.primary { background: var(--molten); color: var(--fg-inv); }
.wf-btn.primary:hover { background: var(--molten-ink); box-shadow: 0 6px 22px -6px rgba(255,90,31,0.55); }
.wf-btn.primary:hover .arr { transform: translateX(3px); }
.wf-btn.primary:active { box-shadow: var(--shadow-press); transform: translateY(1px) scale(0.985); }
.wf-btn.secondary:hover .arr { transform: translateX(3px); }
.wf-btn.secondary { background: transparent; color: var(--fg-1); border-color: var(--fg-1); }
.wf-btn.secondary:hover { background: var(--paper-1); }
.wf-btn.secondary:active { box-shadow: var(--shadow-press); transform: translateY(1px); }
.wf-btn.secondary.on-dark { color: var(--fg-inv); border-color: var(--fg-inv); }
.wf-btn.secondary.on-dark:hover { background: rgba(250,250,247,0.1); }
.wf-btn.ghost { background: transparent; color: var(--fg-1); padding: 13px 0; }
.wf-btn.ghost:hover { color: var(--molten-ink); }
.wf-btn .arr { font-family: var(--font-mono); font-weight: 500; }

/* ---------- pill filter buttons ---------- */
.wf-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--fg-1);
  cursor: pointer;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.wf-pill.active {
  border-color: var(--ink-0);
  background: var(--ink-0);
  color: var(--fg-inv);
}

/* ---------- rule helpers ---------- */
.wf-tick-rule {
  height: 8px;
  background-image: linear-gradient(to right, currentColor 1px, transparent 1px);
  background-size: 8px 8px;
  background-repeat: repeat-x;
  background-position: left bottom;
  border-bottom: 1px solid currentColor;
  opacity: 0.9;
}
.wf-rule-strong { border: 0; border-top: 1px solid currentColor; margin: 0; }
.wf-rule-hair   { border: 0; border-top: 1px solid var(--border-1); margin: 0; }

/* ---------- nav ---------- */
.wf-nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(250,250,247,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-1);
}
.wf-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wf-nav-links { display: flex; gap: 32px; font-size: 14px; }
.wf-nav-links a { color: var(--fg-1); transition: color 180ms var(--ease-out); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.wf-nav-links a:hover { color: var(--molten-ink); }
.wf-nav-links a.active { color: var(--molten-ink); border-bottom-color: var(--molten-ink); }
.wf-nav-right { display: flex; gap: 10px; align-items: center; }
.wf-nav-right .sign-in { font-size: 14px; }
.wf-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 500; font-size: 16px; letter-spacing: -0.02em; text-decoration: none; }
.wf-logo .bracket { color: var(--fg-3); }
.wf-logo .slash { color: var(--fg-3); }
.wf-logo .dot { width: 8px; height: 8px; background: var(--molten); display: inline-block; }

/* mobile nav toggle + menu (only shown under breakpoint) */
.wf-nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  border: 1px solid var(--border-2); border-radius: 4px;
  background: transparent; cursor: pointer;
}
.wf-nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--fg-1);
  transition: transform 200ms var(--ease-out), opacity 150ms var(--ease-out);
}
.wf-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.wf-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.wf-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.wf-mobile-menu {
  display: none;
  position: fixed; inset: 64px 0 0 0; z-index: var(--z-menu);
  background: var(--paper-0);
  padding: 24px 32px max(24px, env(safe-area-inset-bottom));
  flex-direction: column; gap: 4px;
  overflow-y: auto;
  border-top: 1px solid var(--border-1);
}
.wf-mobile-menu a {
  font-family: var(--font-mono); font-size: 20px; font-weight: 500;
  letter-spacing: -0.01em; padding: 14px 0;
  border-bottom: 1px solid var(--border-1); color: var(--fg-1);
}
.wf-mobile-menu .wf-btn { margin-top: 20px; justify-content: center; font-size: 15px; padding: 15px 20px; }
.wf-mobile-menu .wf-mm-sign { border-bottom: 0; color: var(--fg-2); }
body.wf-menu-open { overflow: hidden; }

/* ---------- marquee rail ---------- */
.wf-rail {
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  padding: 18px 0;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.wf-rail-track {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  flex-shrink: 0;
  min-width: 100%;
  justify-content: space-around;
  white-space: nowrap;
}
.wf-rail .sep { color: var(--paper-3); }
@media (prefers-reduced-motion: no-preference) {
  .wf-rail-track { animation: wf-marquee 38s linear infinite; }
  .wf-rail:hover .wf-rail-track { animation-play-state: paused; }
}
@keyframes wf-marquee { to { transform: translateX(-100%); } }

/* ---------- grids ---------- */
.wf-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.wf-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.wf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* ---------- responsive section layouts ---------- */
.wf-hero { padding: 80px 32px 48px; overflow: clip; }
.wf-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.wf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.wf-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wf-faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: flex-start; }
.wf-section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 40px;
}
.wf-section-head.tight { margin-bottom: 32px; }

/* ---------- step cards ---------- */
.wf-step {
  border: 1px solid var(--border-1);
  border-radius: 4px;
  padding: 28px;
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 180ms var(--ease-out);
}
.wf-step:hover { border-color: var(--fg-1); }
.wf-step .num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
  display: flex; justify-content: space-between;
}
.wf-step .num b { color: var(--fg-1); font-weight: 500; }

/* ---------- example cards ---------- */
.wf-ex { display: flex; flex-direction: column; gap: 12px; cursor: pointer; }
.wf-ex .frame {
  aspect-ratio: 4/3;
  background: var(--ink-0);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 220ms var(--ease-out);
}
.wf-ex .frame { transition: transform 280ms var(--ease-out-quint), box-shadow 280ms var(--ease-out-quint); }
.wf-ex:hover .frame { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(10,10,10,0.45); }
/* Real screenshot layers over the schematic fallback; onerror hides it until assets exist */
.wf-ex-shot {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block; background: var(--ink-0);
}
.wf-ex .site-preview-inner,
.wf-ex-shot { transition: transform 420ms var(--ease-out-quint); }
.wf-ex:hover .site-preview-inner,
.wf-ex:hover .wf-ex-shot { transform: scale(1.04); }
.wf-ex .meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3);
}
.wf-ex .name { font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--fg-1); }
.wf-ex .name-row { display: flex; justify-content: space-between; align-items: center; }
.wf-ex .name-row .arr { font-family: var(--font-mono); font-size: 14px; }

/* site preview (inside example card frames) */
.site-preview-inner {
  position: absolute; inset: 0;
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.site-preview-inner .sp-url {
  display: flex; justify-content: space-between;
  font-size: 9px; font-family: var(--font-mono);
  letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8;
}
.site-preview-inner .sp-name {
  font-size: 22px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; margin-top: auto;
}
.site-preview-inner .sp-desc {
  font-size: 10px; opacity: 0.85; font-family: var(--font-sans); line-height: 1.4; max-width: 80%;
}
.site-preview-inner .sp-btn {
  font-size: 9px; padding: 4px 8px; border-radius: 2px; font-family: var(--font-sans); display: inline-block;
}

/* hero site preview frame */
.site-preview {
  position: absolute; inset: 24px;
  background: var(--paper-0);
  border-radius: 2px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.site-preview .sp-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-1);
}
.site-preview .sp-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-3); display: inline-block; }

/* ---------- pricing ---------- */
.wf-price-card {
  border: 1px solid var(--border-1);
  border-radius: 4px;
  padding: 40px;
  background: var(--bg-1);
  display: flex; flex-direction: column; gap: 24px;
}
.wf-price-card.feature { border-color: var(--molten); background: var(--ink-0); color: var(--fg-inv); position: relative; }
.wf-price-card.feature .wf-p { color: #D5D2C6; }
.wf-price-card .amt { font-family: var(--font-mono); font-weight: 500; font-size: 56px; letter-spacing: -0.03em; line-height: 1; }
.wf-price-card .per { font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); margin-left: 6px; }
.wf-price-card.feature .per { color: #A8A59A; }
.wf-price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.wf-price-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.wf-price-card li .check { flex-shrink: 0; margin-top: 3px; color: var(--molten); }
.wf-price-card .badge {
  position: absolute; top: -12px; left: 32px;
  background: var(--molten); color: var(--fg-inv);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px;
}

/* ---------- FAQ ---------- */
.wf-faq { border-top: 1px solid var(--border-1); }
.wf-faq-item { border-bottom: 1px solid var(--border-1); }
.wf-faq-q {
  width: 100%; text-align: left; font: inherit; color: inherit;
  background: none; border: 0; cursor: pointer;
  padding: 24px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
}
.wf-faq-q .q { font-size: 17px; font-weight: 500; color: var(--fg-1); }
.wf-faq-q .sign { font-family: var(--font-mono); font-size: 18px; color: var(--fg-2); line-height: 1; flex-shrink: 0; }
.wf-faq-a { display: none; padding: 0 0 24px; color: var(--fg-2); font-size: 15px; line-height: 1.5; max-width: 560px; }
.wf-faq-item.open .wf-faq-a { display: block; }

/* ---------- footer ---------- */
.wf-footer { background: var(--ink-0); color: var(--fg-inv); padding: 80px 0 32px; }
.wf-footer a { color: #A8A59A; transition: color 180ms var(--ease-out); }
.wf-footer a:hover { color: var(--fg-inv); }
.wf-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.wf-footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #A8A59A; margin: 0 0 16px; font-weight: 500; }
.wf-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.wf-footer .bot { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid #2A2A2A; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #A8A59A; }

/* ---------- page header ---------- */
.wf-page-header { padding: 80px 0 48px; border-bottom: 1px solid var(--border-1); }
.wf-page-header .wf-h-display { font-size: 72px; margin-bottom: 24px; }
.wf-page-header .wf-lead { max-width: 680px; font-size: 20px; }
.wf-page-header .kicker {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3); margin-top: 32px;
  display: flex; gap: 24px; flex-wrap: wrap;
}

/* ---------- comparison table ---------- */
.wf-compare { border: 1px solid var(--border-ink); border-radius: 4px; overflow: hidden; background: var(--bg-1); }
.wf-compare-head {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  background: var(--ink-0); color: var(--fg-inv);
  padding: 16px 24px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.wf-compare-row {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  padding: 18px 24px; border-top: 1px solid var(--border-1);
  font-size: 14px; align-items: center;
}
.wf-compare-row .label { font-weight: 500; }
.wf-compare-row .dash { color: var(--fg-3); font-family: var(--font-mono); }

/* ---------- contact form ---------- */
.wf-input {
  width: 100%; box-sizing: border-box;
  font-family: var(--font-sans); font-size: 15px;
  padding: 12px 14px; border-radius: 4px;
  border: 1px solid var(--border-2); background: var(--bg-1);
  color: var(--fg-1); outline: none;
  transition: border-color 180ms var(--ease-out);
}
.wf-input:focus { border-color: var(--border-ink); }
.wf-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3); display: block; margin-bottom: 8px;
}

/* ---------- journal ---------- */
.wf-post-row {
  display: grid; grid-template-columns: 80px 120px 1fr 160px 40px;
  gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--border-1);
  transition: background 180ms var(--ease-out);
  text-decoration: none; color: inherit;
}
.wf-post-row:hover { background: var(--bg-2); }

/* ---------- journal post ---------- */
.post { max-width: 720px; margin: 0 auto; padding: 0 32px; }
.post h2 { font-family: var(--font-mono); font-weight:500; font-size:30px; letter-spacing:-0.02em; line-height:1.1; margin: 48px 0 16px; text-wrap: balance; }
.post p  { font-size: 18px; line-height: 1.65; color: var(--fg-1); margin: 0 0 20px; text-wrap: pretty; }
.post p.lead { font-size: 22px; color: var(--fg-2); margin-bottom: 32px; }
.post blockquote { border-left: 2px solid var(--molten); margin: 32px 0; padding: 4px 0 4px 24px; font-family: var(--font-mono); font-size: 22px; line-height: 1.3; letter-spacing:-0.01em; color: var(--fg-1); }
.post ul { padding-left: 20px; margin: 0 0 24px; }
.post li { font-size: 18px; line-height: 1.6; margin-bottom: 8px; }
.post strong { font-weight: 600; }
.post .drop { float: left; font-family: var(--font-mono); font-weight: 500; font-size: 72px; line-height: 0.9; padding: 4px 12px 0 0; color: var(--molten); letter-spacing: -0.04em; }
.post figure { margin: 40px -40px; }
.post figure .frame { aspect-ratio: 16/10; background: var(--ink-0); border-radius: 4px; position: relative; overflow: hidden; }
.post figcaption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-top: 12px; text-align: center; }
.post hr.marker { border: 0; text-align: center; margin: 40px 0; color: var(--paper-3); font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.4em; }
.post hr.marker::before { content: "\25C9 \25C9 \25C9"; }

/* ============================================================
   ACCESSIBILITY — focus, skip link
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--molten-ink);
  outline-offset: 2px;
  border-radius: 2px;
}
.wf-section.dark :focus-visible,
.wf-footer :focus-visible { outline-color: var(--molten); }

.wf-skip {
  position: absolute; left: 8px; top: -48px;
  z-index: var(--z-toast);
  background: var(--ink-0); color: var(--fg-inv);
  font-family: var(--font-mono); font-size: 13px;
  padding: 10px 16px; border-radius: 4px;
  transition: top 160ms var(--ease-out);
}
.wf-skip:focus { top: 8px; }

/* ============================================================
   RESPONSIVE — content-driven breakpoints
   ============================================================ */
@media (max-width: 1023px) {
  .wf-footer .cols { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .wf-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .wf-split { grid-template-columns: 1fr; gap: 40px; }
  .wf-faq-layout { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 767px) {
  .wf-container { padding: 0 20px; }
  .wf-hero { padding: 48px 20px 40px; }
  .wf-section { padding: 64px 0; }
  .wf-section.tight { padding: 48px 0; }

  /* swap desktop nav for the disclosure menu (scoped: only navs that ship a toggle) */
  .wf-nav:has(.wf-nav-toggle) .wf-nav-links,
  .wf-nav:has(.wf-nav-toggle) .wf-nav-right { display: none; }
  .wf-nav:has(.wf-nav-toggle) .wf-nav-toggle { display: flex; }
  .wf-mobile-menu.open { display: flex; }

  /* section headers stack above their trailing control */
  .wf-section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .wf-section-head .wf-btn { align-self: flex-start; }

  .wf-footer .cols { grid-template-columns: 1fr; gap: 32px; }
  .wf-footer .bot { flex-direction: column; gap: 12px; }

  .wf-duo { grid-template-columns: 1fr; }
  .post figure { margin: 32px 0; }
}

/* Touch devices: neutralise hover-only lifts, keep tap targets comfortable */
@media (hover: none) {
  .wf-ex:hover .frame { transform: none; }
  .wf-step:hover { border-color: var(--border-1); }
}

/* ============================================================
   MOTION — forge glow, hero entrance, ember, scroll reveal
   Every animated element is fully visible at rest. The hidden
   start states live ONLY inside (prefers-reduced-motion: no-preference),
   so reduced-motion users and no-JS/headless renders never blank out.
   ============================================================ */

/* Forge glow behind the hero mockup */
.wf-hero-figure { position: relative; }
.wf-hero-figure::before {
  content: "";
  position: absolute;
  inset: -12% -8% -18% -8%;
  z-index: 0;
  background: radial-gradient(60% 55% at 60% 45%, rgba(255,90,31,0.40), rgba(255,90,31,0.10) 45%, transparent 72%);
  filter: blur(36px);
  opacity: 0.9;
  pointer-events: none;
}
.wf-hero-figure > * { position: relative; z-index: 1; }

/* Ember pulse on the molten dots */
@media (prefers-reduced-motion: no-preference) {
  .wf-logo .dot { animation: wf-ember 3.4s ease-in-out infinite; }
  .wf-hero-figure::before { animation: wf-forge 5s ease-in-out infinite; }
}
@keyframes wf-ember {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); }
  50%      { box-shadow: 0 0 9px 1px rgba(255,90,31,0.65); }
}
@keyframes wf-forge {
  0%, 100% { opacity: 0.72; }
  50%      { opacity: 1; }
}

/* Hero load choreography (staggered rise) */
@media (prefers-reduced-motion: no-preference) {
  .wf-rise { opacity: 0; animation: wf-rise var(--dur-5) var(--ease-out-expo) both; animation-delay: calc(var(--i, 0) * 90ms); }
  .wf-hero-figure { opacity: 0; animation: wf-figure 900ms var(--ease-out-expo) 240ms both; }
  .wf-h-display .molten::after { transform: scaleX(0) rotate(-0.6deg); animation: wf-underline var(--dur-4) var(--ease-out-expo) 560ms both; }
}
@keyframes wf-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes wf-figure {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes wf-underline {
  from { transform: scaleX(0) rotate(-0.6deg); }
  to   { transform: scaleX(1) rotate(-0.6deg); }
}

/* Scroll-reveal sibling stagger — applied by JS only to the two real lists
   (process steps, example cards). Default is visible; .reveal is added at
   observe time and a safety timeout force-reveals so nothing ships blank. */
@media (prefers-reduced-motion: no-preference) {
  .wf-reveal > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--dur-4) var(--ease-out-expo),
                transform var(--dur-4) var(--ease-out-expo),
                border-color 180ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0ms;
  }
  .wf-reveal.in > * { opacity: 1; transform: none; }
}

/* ============================================================
   HOME — ENHANCEMENT LAYER ("more pop")
   Depth, blueprint texture and accent, built on existing tokens.
   Every element is fully legible at rest; hidden/keyframed start
   states stay gated behind (prefers-reduced-motion: no-preference).
   ============================================================ */

/* --- Tinted section bands (warm bone + cool iron) --- */
.wf-section.warm { background: #FBF1EA; }
.wf-section.cool { background: #ECEFF1; }
.wf-section.warm + .wf-section.warm,
.wf-section.cool + .wf-section.cool { border-top: 1px solid var(--border-1); }

/* --- Hero: blueprint backdrop + molten bloom --- */
.wf-hero-wrap { position: relative; overflow: clip; }
.wf-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.wf-hero-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(130% 95% at 72% -10%, #000 0%, transparent 68%);
          mask-image: radial-gradient(130% 95% at 72% -10%, #000 0%, transparent 68%);
}
.wf-hero-bg .bloom {
  position: absolute; top: -12%; right: -6%; width: 62%; height: 100%;
  background: radial-gradient(48% 48% at 62% 38%, rgba(255,90,31,0.16), transparent 70%);
  filter: blur(44px);
}
.wf-hero-wrap .wf-hero,
.wf-hero-wrap .wf-rail-mount { position: relative; z-index: 1; }

/* --- Pulsing live dot (hero eyebrow) --- */
.wf-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--molten); display: inline-block; position: relative; flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .wf-pulse::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255,90,31,0.55);
    animation: wf-ping 2.6s var(--ease-out) infinite;
  }
}
@keyframes wf-ping {
  0%   { box-shadow: 0 0 0 0 rgba(255,90,31,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(255,90,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); }
}

/* --- Hero stat chips --- */
.wf-chips { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; }
.wf-chip {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-1); border-radius: 999px;
  padding: 7px 13px; background: rgba(250,250,247,0.55);
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out),
              transform 200ms var(--ease-out-quint);
}
.wf-chip:hover { border-color: var(--fg-1); color: var(--fg-1); transform: translateY(-2px); }
.wf-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--molten); display: inline-block; }

/* --- Hero figure: depth, registration marks, floating badge --- */
.wf-fig-shell {
  position: relative; aspect-ratio: 4/3.1; background: var(--ink-0);
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 32px 64px -28px rgba(10,10,10,0.55), 0 2px 0 rgba(10,10,10,0.04);
}
.wf-hero-figure .mark {
  position: absolute; z-index: 4; width: 14px; height: 14px; opacity: 0.5;
  background:
    linear-gradient(var(--fg-3), var(--fg-3)) center/100% 1.5px no-repeat,
    linear-gradient(var(--fg-3), var(--fg-3)) center/1.5px 100% no-repeat;
}
.wf-hero-figure .mark.tl { top: -7px; left: -7px; }
.wf-hero-figure .mark.tr { top: -7px; right: -7px; }
.wf-hero-figure .mark.bl { bottom: -7px; left: -7px; }
.wf-hero-figure .mark.br { bottom: -7px; right: -7px; }
.wf-fig-badge {
  position: absolute; z-index: 5; right: -12px; top: 22px;
  background: var(--molten); color: var(--fg-inv);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 13px; border-radius: 3px; transform: rotate(2.5deg);
  box-shadow: 0 12px 26px -8px rgba(255,90,31,0.7);
  display: inline-flex; align-items: center; gap: 8px;
}
.wf-fig-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-inv); display: inline-block; }

/* --- Process steps: accent bar + ghost numeral --- */
.wf-step { position: relative; overflow: hidden; }
.wf-step::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: var(--molten); transition: width 420ms var(--ease-out-quint);
}
.wf-step:hover::before { width: 100%; }
.wf-step .ghost {
  position: absolute; right: 16px; bottom: -16px; pointer-events: none;
  font-family: var(--font-mono); font-weight: 700; font-size: 92px; line-height: 1;
  color: var(--ink-0); opacity: 0.045;
  transition: opacity 300ms var(--ease-out), color 300ms var(--ease-out);
}
.wf-step:hover .ghost { opacity: 0.1; color: var(--molten); }
.wf-step > *:not(.ghost) { position: relative; z-index: 1; }

/* --- Pricing teaser: ambient glow + hover lift --- */
.wf-pricing { position: relative; overflow: hidden; }
.wf-pricing .glow {
  position: absolute; left: -8%; bottom: -30%; width: 55%; height: 90%; z-index: 0;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,90,31,0.22), transparent 70%);
  filter: blur(50px);
}
.wf-pricing .wf-container { position: relative; z-index: 1; }
.wf-mini-price {
  border: 1px solid var(--ink-3); border-radius: 6px; padding: 24px; background: var(--ink-1);
  transition: transform 250ms var(--ease-out-quint), box-shadow 250ms var(--ease-out-quint),
              border-color 250ms var(--ease-out);
}
.wf-mini-price:hover { transform: translateY(-5px); border-color: var(--ink-4); }
.wf-mini-price.feature { border-color: var(--molten); }
.wf-mini-price.feature:hover { box-shadow: 0 22px 44px -18px rgba(255,90,31,0.5); }
.wf-mini-price .label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #A8A59A; }
.wf-mini-price.feature .label { color: var(--molten); }
.wf-mini-price .amt { font-family: var(--font-mono); font-weight: 500; font-size: 40px; letter-spacing: -0.03em; color: var(--fg-inv); margin-top: 8px; line-height: 1; }
.wf-mini-price.feature .amt { color: var(--molten); }
.wf-mini-price .per { font-family: var(--font-mono); font-size: 11px; color: #A8A59A; margin-top: 4px; }

/* --- Molten CTA panel --- */
.wf-cta-pop {
  position: relative; overflow: hidden; border-radius: 8px;
  background: linear-gradient(135deg, var(--molten) 0%, var(--molten-ink) 100%);
  color: var(--fg-inv);
  padding: 64px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; flex-wrap: wrap;
  box-shadow: 0 30px 60px -24px rgba(217,67,14,0.5);
}
.wf-cta-pop .grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 120% at 100% 0%, #000, transparent 70%);
          mask-image: radial-gradient(120% 120% at 100% 0%, #000, transparent 70%);
}
.wf-cta-pop > * { position: relative; z-index: 1; }
.wf-cta-pop .wf-h2 { color: var(--fg-inv); }
.wf-cta-pop .wf-p { color: rgba(255,255,255,0.88); }
.wf-btn.invert { background: var(--fg-inv); color: var(--ink-0); }
.wf-btn.invert:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(10,10,10,0.4); }
.wf-btn.invert:hover .arr { transform: translateX(3px); }
.wf-btn.outline-light { background: transparent; color: var(--fg-inv); border-color: rgba(255,255,255,0.55); }
.wf-btn.outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--fg-inv); }

@media (max-width: 767px) {
  .wf-cta-pop { padding: 40px 28px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}