/* ==========================================================================
   Zamforge.ai — Apple-minimalist, monochrome
   Design system + layout. Single accent = pure ink over white/grey.
   The swoosh (from the logo) is the recurring motif.
   ========================================================================== */

/* ----- Design tokens ---------------------------------------------------- */
:root {
  /* Monochrome scale */
  --ink:        #1d1d1f;   /* Apple near-black — primary text            */
  --ink-2:      #2a2a2e;
  --muted:      #6e6e73;   /* Apple secondary grey                       */
  --muted-2:    #86868b;
  --line:       #d2d2d7;   /* hairline borders                           */
  --line-soft:  #e8e8ed;
  --bg:         #ffffff;
  --bg-soft:    #f5f5f7;   /* Apple section grey                         */
  --bg-dark:    #0a0a0a;   /* hero / editor charcoal                     */
  --bg-dark-2:  #161617;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ----- Typography scale ------------------------------------------------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.display {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.04; letter-spacing: -0.03em; font-weight: 600;
}
.h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.07; letter-spacing: -0.025em; font-weight: 600;
}
.h3 {
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.2; letter-spacing: -0.015em; font-weight: 600;
}
.lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45; color: var(--muted); font-weight: 400;
}
.muted { color: var(--muted); }

/* ----- Layout helpers --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 140px); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #f5f5f7; }
.section-head { max-width: 720px; }
.section-head .lead { margin-top: 18px; }
.center { text-align: center; margin-inline: auto; }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 980px;
  font-size: 16px; font-weight: 500; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), opacity .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
/* On dark backgrounds */
.on-dark .btn--primary, .btn--primary.is-inverse { background: #fff; color: var(--ink); }
.on-dark .btn--primary:hover, .btn--primary.is-inverse:hover { background: #f0f0f2; }
.on-dark .btn--ghost, .btn--ghost.is-inverse { color: #fff; border-color: rgba(255,255,255,.35); }
.on-dark .btn--ghost:hover, .btn--ghost.is-inverse:hover { border-color: #fff; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   NAVBAR — sticky, transparent over hero, frosts on scroll
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav__inner {
  max-width: 1280px; margin-inline: auto;
  /* tighter horizontal inset pulls the logo + pill nearer the true corners */
  padding: 12px clamp(16px, 2.6vw, 26px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark { width: 28px; height: 28px; object-fit: contain; transition: filter .35s var(--ease); }
.brand__name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; transition: color .35s var(--ease); }

/* Pill nav cluster, top-right */
.nav__cluster { display: flex; align-items: center; gap: 10px; }

/* The links pill and the CTA are fused into one shape (shared flat seam) */
.nav__pill { display: flex; align-items: stretch; }
.nav__links {
  position: relative;
  display: flex; align-items: center; gap: 2px;
  padding: 5px; border-radius: 980px 0 0 980px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14); border-right: none;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
/* the single pill that glides between tabs */
.nav__ind {
  position: absolute; top: 5px; left: 0; height: calc(100% - 10px);
  width: 0; border-radius: 980px; z-index: 0; opacity: 0;
  background: rgba(255,255,255,.18);
  transition: transform .38s var(--ease), width .38s var(--ease),
              opacity .3s var(--ease), background .35s var(--ease);
  pointer-events: none;
}
.nav__links a {
  position: relative; z-index: 1;
  padding: 8px 15px; border-radius: 980px; font-size: 15px; font-weight: 450;
  color: rgba(255,255,255,.82);
  transition: color .25s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: #fff; }

/* CTA: glued to the pill's right edge — black with white text, its own segment */
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 19px; font-size: 15px; font-weight: 500; white-space: nowrap;
  background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,.14); border-left: none;
  border-radius: 0 980px 980px 0;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.nav__cta:hover { background: #1a1a1a; }
.nav__cta:active { transform: scale(0.98); }

/* Scrolled state — light frosted bar */
.nav.is-scrolled {
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line-soft);
}
.nav.is-scrolled .brand__name { color: var(--ink); }
.nav.is-scrolled .brand__mark { filter: none; }
.nav.is-scrolled .nav__links {
  background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.08); backdrop-filter: none;
}
.nav.is-scrolled .nav__ind { background: rgba(0,0,0,.08); }
.nav.is-scrolled .nav__links a { color: var(--muted); }
.nav.is-scrolled .nav__links a:hover,
.nav.is-scrolled .nav__links a.is-active { color: var(--ink); }
.nav.is-scrolled .nav__cta { background: var(--ink); border-color: var(--ink); }
.nav.is-scrolled .nav__cta:hover { background: #000; }

/* Over the dark hero: white logo + wordmark. CTA stays black with white text. */
.nav .brand__mark { filter: invert(1) brightness(2); }
.nav .brand__name { color: #fff; }

.nav__burger { display: none; }

/* ==========================================================================
   HERO — reference design, monochrome
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  background: radial-gradient(120% 120% at 78% 42%, #262629 0%, #131315 46%, var(--bg-dark) 100%);
  color: #f5f5f7; overflow: hidden;
  display: flex; align-items: center;
}
/* The ribbed sphere lives on the right */
.hero__sphere {
  position: absolute; top: 50%; right: -6%; translate: 0 -50%;
  width: min(66vw, 760px); aspect-ratio: 1; pointer-events: none;
  z-index: 1; opacity: .96;
  /* JS drives a subtle tilt + scale on hover; this eases the settle. `translate`
     (above) keeps the sphere vertically centred independent of `transform`. */
  transform-origin: center center;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.hero__sphere svg { width: 100%; height: 100%; display: block; }
/* Desktop only: JS gives the sphere a subtle lean toward the cursor + gentle
   scale (see app.js). No auto-spin — this is the original, approved look. */
/* Artsy "break-up": vertical stripe veil sweeping over the lower/left frame */
.hero__stripes {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 46px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 62%),
                      linear-gradient(0deg, #000 0%, transparent 40%);
          mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 62%),
                      linear-gradient(0deg, #000 0%, transparent 40%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* Giant faint swoosh watermark behind the copy */
.hero__swoosh {
  position: absolute; left: -8%; bottom: -12%; z-index: 1;
  width: min(60vw, 640px); opacity: .05; pointer-events: none;
}
.hero__swoosh svg { width: 100%; height: auto; }

.hero__inner {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: 128px var(--gutter) 40px;
}
.hero__copy { max-width: 620px; }
.hero__kicker {
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  color: rgba(255,255,255,.62); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(42px, 7.4vw, 84px); line-height: 1.03;
  letter-spacing: -0.035em; font-weight: 600;
}
.hero h1 .dim { color: rgba(255,255,255,.5); }
.hero__sub {
  margin-top: 24px; font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5; color: rgba(255,255,255,.72); max-width: 520px;
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Contact list, bottom-right (the "cool contact list") */
.hero__contact {
  position: absolute; right: var(--gutter); bottom: 40px; z-index: 3;
  text-align: right; font-size: 14px; line-height: 1.9;
}
.hero__contact .lbl {
  display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 6px;
}
.hero__contact a { color: rgba(255,255,255,.78); transition: color .2s; }
.hero__contact a:hover { color: #fff; }
/* "Also find us on," — hover reveals a secret line of extra socials that
   collapses again the moment the cursor leaves. */
.hero__more { margin-top: 2px; }
.hero__more-trigger {
  display: inline-block; color: rgba(255,255,255,.6);
  cursor: default; transition: color .2s;
}
.hero__more:hover .hero__more-trigger,
.hero__more:focus-within .hero__more-trigger { color: rgba(255,255,255,.85); }
.hero__more-extra {
  display: flex; flex-direction: column; align-items: flex-end;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .35s var(--ease), opacity .3s var(--ease);
}
.hero__more:hover .hero__more-extra,
.hero__more:focus-within .hero__more-extra { max-height: 140px; opacity: 1; }
.hero__more-extra a { color: rgba(255,255,255,.32); transition: color .2s; }
.hero__more-extra a:hover { color: #fff; }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 40px; z-index: 3;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
  display: flex; align-items: center; gap: 8px;
}
.hero__scroll .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5);
  animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%,100%{ transform: translateY(0); opacity:.5 } 50%{ transform: translateY(4px); opacity:1 } }

/* ==========================================================================
   SECTION DIVIDER — swoosh hairline
   ========================================================================== */
.swoosh-divider { display: block; width: 100%; height: 60px; color: var(--line); }
.swoosh-divider svg { width: 100%; height: 100%; }

/* ==========================================================================
   PROBLEM + HOW IT WORKS (merged)
   ========================================================================== */
.beforeafter {
  margin-top: 56px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px;
  align-items: center;
}
.ba-card {
  border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line-soft);
  background: #fff; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between;
}
.ba-card.is-old { background: var(--bg-soft); }
.ba-card .tag {
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.ba-card.is-new .tag { color: var(--ink); }
/* ---- Mini browser mockups (before / after) — monochrome ---- */
.mock {
  flex: 1; margin: 18px 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-soft); background: #fff;
  display: flex; flex-direction: column; min-height: 200px;
  box-shadow: 0 12px 30px -22px rgba(0,0,0,.28);
}
.mock__chrome {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: #ededf0; border-bottom: 1px solid var(--line-soft);
}
.mock__chrome--dark { background: #161619; border-bottom-color: rgba(255,255,255,.08); }
.mock__dots { display: inline-flex; gap: 5px; flex: none; }
.mock__dots i { width: 8px; height: 8px; border-radius: 50%; background: #c4c4cc; }
.mock__chrome--dark .mock__dots i { background: rgba(255,255,255,.22); }
.mock__addr {
  font-size: 10.5px; color: var(--muted-2); background: #fff;
  border-radius: 6px; padding: 3px 10px; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mock__chrome--dark .mock__addr { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }

/* OLD — dated, cramped, serif */
.mo {
  flex: 1; padding: 10px 12px 0; background: #f3f3f0;
  font-family: "Times New Roman", Georgia, serif; color: #33332f;
  display: flex; flex-direction: column;
}
.mo__masthead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  border-bottom: 2px solid #b7b7b1; padding-bottom: 5px;
}
.mo__brand { font-size: 15px; font-weight: 700; }
.mo__menu { font-size: 8.5px; color: #55554e; }
.mo__banner {
  margin: 7px 0; text-align: center; font-size: 10.5px; font-weight: 700;
  letter-spacing: .05em; color: #2b2b27;
  border: 1px solid #b7b7b1; padding: 5px;
  background: repeating-linear-gradient(45deg,#e8e8e2 0 6px,#e0e0d9 6px 12px);
}
.mo__cols { display: grid; grid-template-columns: 34% 1fr; gap: 10px; flex: 1; }
.mo__side { display: flex; flex-direction: column; gap: 3px; }
.mo__sh { font-size: 9px; font-weight: 700; text-decoration: underline; margin-bottom: 2px; }
.mo__side u { font-size: 9.5px; color: #43433f; }
.mo__main { display: flex; flex-direction: column; gap: 5px; }
.mo__line { height: 5px; background: #d7d7d0; border-radius: 1px; }
.mo__line.w95 { width: 95%; } .mo__line.w92 { width: 92%; }
.mo__line.w88 { width: 88%; } .mo__line.w70 { width: 70%; }
.mo__btn {
  align-self: flex-start; margin-top: 4px; font-size: 9px; font-weight: 700;
  color: #2b2b27; padding: 3px 9px;
  border: 2px outset #cfcfc8; background: #e2e2db;
}
.mo__foot {
  margin: 6px -12px 0; padding: 4px 10px; font-size: 7.5px; color: #6a6a62;
  text-align: center; border-top: 1px solid #cfcfc8; background: #eaeae4;
}

/* NEW — clean, modern */
.mn {
  flex: 1; padding: 12px 14px; background: #fff; color: var(--ink);
  display: flex; flex-direction: column; gap: 9px;
}
.mn__nav { display: flex; align-items: center; justify-content: space-between; }
.mn__logo { width: 34px; height: 8px; background: var(--ink); border-radius: 4px; }
.mn__links { display: flex; gap: 8px; }
.mn__links i { width: 20px; height: 5px; background: #d5d5db; border-radius: 3px; }
.mn__pill { width: 42px; height: 15px; background: var(--ink); border-radius: 980px; }
.mn__hero { display: flex; flex-direction: column; gap: 6px; margin-top: 5px; }
.mn__eyebrow { width: 58px; height: 5px; background: #cfcfd6; border-radius: 3px; }
.mn__h1 { width: 82%; height: 12px; background: var(--ink); border-radius: 4px; }
.mn__h1.short { width: 54%; }
.mn__sub { width: 72%; height: 6px; background: #d5d5db; border-radius: 3px; margin-top: 2px; }
.mn__cta { width: 66px; height: 17px; background: var(--ink); border-radius: 980px; margin-top: 5px; }
.mn__cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: auto; }
.mn__cards span { height: 28px; background: #f2f2f5; border: 1px solid var(--line-soft); border-radius: 7px; }

.ba-arrow { color: var(--muted); font-size: 26px; }
.ba-card p { font-size: 15px; color: var(--muted); }

.steps {
  position: relative; margin-top: 72px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
/* the single swoosh threading all three nodes — one continuous timeline */
.steps__swoosh {
  position: absolute; top: 0; left: 0; width: 100%; height: 80px;
  color: var(--line); pointer-events: none; overflow: visible;
  /* fade the ends so the ribbon reads as centred on the nodes */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%);
}
.steps__swoosh-path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.steps.is-drawn .steps__swoosh-path { stroke-dashoffset: 0; }

.step { position: relative; padding-top: 92px; }
/* circular node sits on the swoosh line, centred over each column */
.step__node {
  position: absolute; top: 14px; left: 50%; translate: -50% 0;
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 10px 24px -16px rgba(0,0,0,.28);
  transition: transform .35s var(--ease), background .35s var(--ease),
              color .35s var(--ease), box-shadow .35s var(--ease);
}
.step__node svg { width: 23px; height: 23px; }
.step:hover .step__node {
  transform: translateY(-3px);
  background: var(--ink); color: #fff;
  box-shadow: 0 16px 30px -14px rgba(0,0,0,.4);
}
.step__n {
  font-size: 14px; font-weight: 600; color: var(--muted-2); margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 16px; color: var(--muted); }

/* ==========================================================================
   AI EDITOR showcase (dark)
   ========================================================================== */
.editor { position: relative; overflow: hidden; }
.editor__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.editor h2 { color: #f5f5f7; }
.editor .lead { color: rgba(255,255,255,.62); }
.editor__list { margin-top: 32px; display: grid; gap: 18px; }
.editor__list li { list-style: none; display: flex; gap: 14px; align-items: flex-start;
  font-size: 17px; color: rgba(255,255,255,.8); }
.editor__list .tick { color: #fff; flex: none; margin-top: 3px; }

/* Fake editor window */
.win {
  border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.12);
  background: #161617; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
  /* Isolate the demo's internal animation so its loop can never reflow /
     "shake" the rest of the page when the typed prompt resets. */
  contain: layout;
}
.win__bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08); }
.win__bar .d { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.16); }
.win__bar .url { margin-left: 12px; font-size: 12px; color: rgba(255,255,255,.4);
  font-variant-numeric: tabular-nums; }
/* pulsing LIVE badge */
.win__live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.55);
}
.win__live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: livedot 1.8s var(--ease) infinite; }
@keyframes livedot { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }

/* ---- Self-playing editor demo ---- */
.win__preview {
  background: #fff; padding: 22px 24px 26px; min-height: 218px; overflow: hidden;
}
.pv { color: var(--ink); }
.pv__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.pv__logo { width: 46px; height: 10px; background: var(--ink); border-radius: 4px; }
.pv__dots { display: inline-flex; gap: 7px; }
.pv__dots i { width: 22px; height: 6px; background: #dcdce1; border-radius: 3px; }
.pv__hero { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pv__eyebrow { width: 84px; height: 7px; background: #d3d3d9; border-radius: 3px; }
.pv__title {
  font-size: 25px; line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; margin: 2px 0;
  transform-origin: left top; animation: pvTitle var(--demo, 9s) var(--ease) infinite;
}
.pv__sub { width: 62%; height: 8px; background: #dcdce1; border-radius: 3px; }
.pv__cta {
  margin-top: 8px; font-size: 13px; font-weight: 500; color: #fff; background: var(--ink);
  padding: 9px 16px; border-radius: 980px;
  animation: pvCta var(--demo, 9s) var(--ease) infinite;
}
@keyframes pvTitle {
  0%, 45% { transform: scale(1); }
  55%, 86% { transform: scale(1.16); }
  93%, 100% { transform: scale(1); }
}
@keyframes pvCta {
  0%, 47% { opacity: 0; transform: translateY(7px) scale(.96); }
  57%, 86% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: translateY(7px) scale(.96); }
}

/* prompt bar that types the instruction on a loop */
.win__prompt {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.08); background: #161617;
  font-size: 13.5px; color: rgba(255,255,255,.9);
}
.win__spark { width: 15px; height: 15px; color: #fff; flex: none; }
.win__typed { display: inline-flex; align-items: center; min-width: 0; flex: 1; }
.win__text {
  display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom;
  animation: type var(--demo, 9s) infinite;
}
.win__caret {
  width: 2px; height: 15px; background: #fff; margin-left: 1px; flex: none;
  animation: blink .9s steps(2, start) infinite, caretgate var(--demo, 9s) linear infinite;
}
.win__status {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; color: #fff; opacity: 0;
  animation: statusShow var(--demo, 9s) var(--ease) infinite;
}
.win__status::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes type {
  0%   { width: 0; animation-timing-function: steps(1); }
  4%   { width: 0; animation-timing-function: steps(46, end); }
  38%  { width: 100%; animation-timing-function: linear; }
  /* Hold the fully-typed prompt, then snap back to empty at the loop wrap
     (instant, so it never visibly "shrinks" mid-animation). */
  100% { width: 100%; }
}
@keyframes blink { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes caretgate { 0%, 39% { visibility: visible; } 39.01%, 100% { visibility: hidden; } }
@keyframes statusShow {
  0%, 39% { opacity: 0; transform: translateY(2px); }
  43%, 54% { opacity: 1; transform: none; }
  60%, 100% { opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Hold the demo still until it scrolls into view (JS adds .is-playing after a
   short beat) so the sequence is easy to follow from the start. */
.editor-demo .pv__title,
.editor-demo .pv__cta,
.editor-demo .win__text,
.editor-demo .win__caret,
.editor-demo .win__status,
.editor-demo .win__status::before { animation-play-state: paused; }
.editor-demo.is-playing .pv__title,
.editor-demo.is-playing .pv__cta,
.editor-demo.is-playing .win__text,
.editor-demo.is-playing .win__caret,
.editor-demo.is-playing .win__status,
.editor-demo.is-playing .win__status::before { animation-play-state: running; }

/* ==========================================================================
   WHAT'S INCLUDED — bundle grid
   ========================================================================== */
.bundle { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bundle .card {
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px 24px;
  background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.bundle .card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -24px rgba(0,0,0,.18); }
.bundle .card .ico { width: 34px; height: 34px; color: var(--ink); margin-bottom: 20px; }
.bundle .card h3 { font-size: 19px; margin-bottom: 8px; }
.bundle .card p { font-size: 14.5px; color: var(--muted); }

/* ==========================================================================
   ALSO FROM ZAMFORGE — services strip (Listenbrief placeholder)
   ========================================================================== */
.also { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.svc-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); padding: 40px; min-height: 300px;
  background: var(--bg-dark); color: #f5f5f7;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(255,255,255,.08);
}
.svc-card.is-ghost {
  background: var(--bg-soft); color: var(--ink); border-color: var(--line-soft);
}
.svc-card .badge {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 980px; border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
}
.svc-card.is-ghost .badge { border-color: var(--line); color: var(--muted); }
.svc-card h3 { font-size: 28px; letter-spacing: -0.02em; margin: 22px 0 10px; }
.svc-card p { font-size: 16px; color: rgba(255,255,255,.68); max-width: 42ch; }
.svc-card.is-ghost p { color: var(--muted); }
.svc-card .go { margin-top: 24px; font-size: 15px; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.svc-card .swoosh-bg { position: absolute; right: -40px; top: -30px; width: 320px; opacity: .10; color: #fff; }
.svc-card.is-ghost .swoosh-bg { opacity: .5; color: var(--line); }

/* ── ListenBrief cross-brand card — rendered in ListenBrief's own
   "newsprint / blocky" style: sharp corners, ink border, purple accent,
   with a purple character leaning out over the top edge. ─────────────── */
.svc-card--lb {
  overflow: visible;            /* let the character stick out */
  background: #fbfaf7;          /* newsprint */
  color: #1d1d1f;
  border: 2px solid #0a0a0a;    /* blocky ink frame */
  border-radius: 0;             /* no round edges */
  box-shadow: 8px 8px 0 #cdb8f2;/* purple hard shadow — LB signature */
  text-decoration: none;
}
/* extra headroom on the row so the peeking character never overlaps copy */
.also:has(.svc-card--lb) { margin-top: 80px; }
.svc-card--lb:hover { transform: translateY(-4px); box-shadow: 12px 12px 0 #b79ae8; }
.svc-card--lb .badge {
  border: 1px solid #6b4bb5; color: #6b4bb5; border-radius: 0;
  font-family: "SFMono-Regular", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: .08em;
}
.svc-card--lb h3 {
  font-family: Georgia, "Times New Roman", serif; /* editorial, like LB */
  font-weight: 700; color: #0a0a0a;
}
.svc-card--lb p { color: #57544e; }
.svc-card--lb .go { color: #6b4bb5; font-weight: 600; }
.svc-card--lb .swoosh-bg { display: none; }
.svc-card__peek {
  position: absolute; top: -78px; right: 30px; height: 108px; z-index: 3;
  filter: drop-shadow(0 10px 10px rgba(61,42,107,.22));
}
@media (max-width: 720px) {
  .svc-card--lb .svc-card__peek { right: 20px; height: 92px; top: -66px; }
}
.placeholder-note {
  display: inline-block; margin-top: 14px; font-size: 12px; color: var(--muted-2);
  border: 1px dashed var(--line); border-radius: 8px; padding: 4px 9px;
}

/* ==========================================================================
   WHO WE ARE — family / Amsterdam
   ========================================================================== */
.family { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.family__photos { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 14px; }
.family__photos .ph {
  aspect-ratio: 4/5; border-radius: var(--radius); background: var(--bg-soft);
  border: 1px solid var(--line-soft); overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 13px;
}
.family__photos .ph.wide { grid-column: span 2; aspect-ratio: 16/9; }
/* Always full colour (Darran's call); a gentle zoom on hover for life. */
.family__photos .ph img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.family__photos .ph:hover img { transform: scale(1.03); }
.family .eyebrow { margin-bottom: 18px; }
.family h2 { margin-bottom: 20px; }
.family p + p { margin-top: 16px; }
.family .pin { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font-size: 15px; color: var(--muted); }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta .swoosh-bg { position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(90vw, 900px); opacity: .04; color: #000; pointer-events: none; }
.cta h2 { position: relative; max-width: 16ch; margin-inline: auto; }
.cta .lead { position: relative; margin: 20px auto 0; max-width: 56ch; }
.cta__actions { position: relative; margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding-block: 64px 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand__mark { filter: invert(1) brightness(2); }
.footer .brand__name { color: #fff; }
.footer__tag { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.55); max-width: 34ch; }
.footer__contact { text-align: right; }
.footer__contact .lbl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 10px; }
.footer__contact a { display: block; color: rgba(255,255,255,.78); font-size: 15px; line-height: 2; transition: color .2s; }
.footer__contact a:hover { color: #fff; }
/* Socials on a single horizontal row under "Contact us" (keeps the footer short) */
.footer__socials { display: flex; gap: 16px; margin-top: 14px; justify-content: flex-end; }
.footer__socials a { display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); }
.footer__socials a:hover { color: #fff; }
.footer__socials svg { width: 20px; height: 20px; }
.footer__bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.45);
}

/* ==========================================================================
   Hover / motion polish
   ========================================================================== */
.svc-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc-card:not(.is-ghost):hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(0,0,0,.55); }
.svc-card.is-ghost:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(0,0,0,.16); }
.svc-card .go { transition: gap .25s var(--ease); }
.svc-card:hover .go { gap: 12px; }
.mock { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ba-card:hover .mock { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(0,0,0,.32); }
.footer__contact a, .hero__contact a { transition: color .2s var(--ease), opacity .2s var(--ease); }

/* ==========================================================================
   Scroll-reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }

/* ==========================================================================
   PRICING TIERS — shared by the pricing page and the homepage pricing block
   ========================================================================== */
.tiers { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 34px 30px; background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tier:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -26px rgba(0,0,0,.2); }
.tier--featured { border-color: var(--ink); box-shadow: 0 22px 46px -26px rgba(0,0,0,.28); }
.tier--featured:hover { transform: translateY(-4px) scale(1.015); }
.tier__badge {
  position: absolute; top: -13px; left: 50%; translate: -50% 0;
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 6px 14px; border-radius: 980px;
}
.tier__name { font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tier__price { margin-top: 14px; font-size: clamp(38px, 5vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.tier__price span { font-size: 20px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.tier__pitch { margin-top: 14px; font-size: 15.5px; color: var(--muted); min-height: 44px; }
/* The list grows to fill the card so every CTA lands on the same bottom line. */
.tier__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; align-content: start; flex: 1 1 auto; }
.tier__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.tier__list .tick { color: var(--ink); flex: none; margin-top: 2px; }
.tier__cta { margin-top: 28px; }
.tier .btn.tier__cta { width: 100%; justify-content: center; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } .tier--featured:hover { transform: translateY(-4px); } }

/* ==========================================================================
   MOBILE MENU — slide-down panel (shown under 720px)
   ========================================================================== */
/* When open, the whole bar (logo + burger row) fills solid so the panel reads
   as one attached sheet instead of floating over the hero. */
.nav.nav--menu-open {
  background: rgba(12,12,14,.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: transparent;
}
.nav.is-scrolled.nav--menu-open { background: rgba(255,255,255,.94); }

.nav__mobile {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px clamp(16px, 4vw, 26px) 18px;
  background: rgba(12,12,14,.96);
  border-top: 1px solid rgba(255,255,255,.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .38s var(--ease), opacity .3s var(--ease);
}
.nav.is-scrolled .nav__mobile { background: rgba(255,255,255,.9); border-top-color: var(--line-soft); }
.nav__mobile.is-open { max-height: 60vh; opacity: 1; }
.nav__mobile a {
  padding: 13px 6px; font-size: 17px; font-weight: 500; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav.is-scrolled .nav__mobile a { color: var(--ink); border-bottom-color: var(--line-soft); }
.nav__mobile-cta {
  margin-top: 14px; border-bottom: none !important;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--ink); color: #fff !important; border-radius: 980px;
  padding: 14px 20px !important;
}
.nav.is-scrolled .nav__mobile-cta { background: var(--ink); color: #fff !important; }
.nav__burger svg { transition: transform .3s var(--ease); }
.nav__burger.is-open svg { transform: rotate(90deg); }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* belt-and-braces against sideways scroll on phones */
html, body { overflow-x: hidden; }
@media (max-width: 900px) {
  .editor__grid { grid-template-columns: 1fr; }
  .editor__visual { order: -1; }
  .also, .family { grid-template-columns: 1fr; }
  .bundle { grid-template-columns: 1fr 1fr; }
  .beforeafter { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); justify-self: center; }
  /* stacked steps — timeline swoosh collapses to left-aligned nodes */
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps__swoosh { display: none; }
  .step { padding-top: 0; padding-left: 70px; min-height: 52px; }
  .step__node { top: 0; left: 0; translate: 0 0; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  /* CTA + burger fuse into one glued unit (a shared hairline seam), matching
     the desktop navbar. Both stay black; each reads as its own segment. */
  .nav__cluster { gap: 0; }
  .nav__cta {
    height: 42px; padding: 0 16px; font-size: 14px;
    background: #000; color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    border-right: 1px solid rgba(255,255,255,.16);  /* the seam */
    border-radius: 980px 0 0 980px;
  }
  .nav.is-scrolled .nav__cta { background: var(--ink); border-color: rgba(255,255,255,.16); }
  /* gray, translucent burger (glued to the CTA) — the look Darran preferred */
  .nav__burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 42px; color: #fff; background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2); border-left: none;
    border-radius: 0 980px 980px 0;
  }
  .nav.is-scrolled .nav__burger { color: var(--ink); background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.12); border-left: none; }

  /* --- menu open: fill the bar, hide the redundant top CTA, free the burger --- */
  .nav--menu-open .nav__cta { display: none; }
  .nav--menu-open .nav__burger {
    border-left: 1px solid rgba(255,255,255,.2); border-radius: 12px;
  }
  .nav.is-scrolled.nav--menu-open .nav__burger { border-left-color: rgba(0,0,0,.12); }
  .hero__scroll { display: none; }
  /* the hero contact list is a desktop flourish — hidden on phones to keep the
     hero uncluttered (matches the original). */
  .hero__contact { display: none; }
  .hero__sphere { right: -22%; top: 28%; width: 94vw; opacity: .72; }
  /* keep the big hero type comfortably inside narrow phone widths */
  .hero__inner { padding-top: 116px; }
  .hero h1 { font-size: clamp(30px, 8vw, 46px); line-height: 1.06; }
  .hero__sub { font-size: 16px; }
  .hero h1, .hero__sub, .hero__kicker { overflow-wrap: break-word; }
  .bundle { grid-template-columns: 1fr; }
  .family__photos .ph.wide { grid-column: span 2; }
  .footer__contact { text-align: left; }
  .footer__socials { justify-content: flex-start; }
  .footer__top { flex-direction: column; }
}
