:root {
  --ink: #161514;
  --ink-2: #57534e;
  --ink-3: #8a8580;
  --line: #ecebea;
  --line-2: #e2e0de;
  --soft: #f6f6f6;
  --soft-2: #fafaf9;
  --bg: #ffffff;
  --accent: #2f6bff;
  --mark: #fff1a8;
  --mark-ink: #7a5d00;
  --ok: #2f8a3e;
  --radius: 6px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-glide: cubic-bezier(.25, .8, .25, 1);
  --bleed: 40px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* tile rows bleed past the column for their shadows; never let that scroll the page */
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--mark); }

/* ---------- Nav + chrome ---------- */
.topnav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: center; gap: 4px;
  padding: 28px 16px 14px;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.nav-group { position: relative; display: flex; gap: 4px; }
.nav-pill {
  --pill-x: 0px; --pill-w: 0px;
  position: absolute; top: 0; left: 0; height: 100%; width: var(--pill-w);
  border-radius: var(--radius); background: var(--soft);
  translate: var(--pill-x) 0; opacity: 0; pointer-events: none;
}
.nav-pill[data-show] { opacity: 1; }
.nav-pill { transition: translate .32s var(--ease-glide), width .32s var(--ease-glide), opacity .1s ease-out; }
.topnav a {
  position: relative;
  padding: 6px 9px;
  border-radius: var(--radius);
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.topnav a:hover { color: var(--ink); }
.topnav a.active { color: var(--ink); }
.topnav .dot {
  position: absolute; top: 2px; right: 0;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.byline {
  padding: 0 16px 20px;
  text-align: center; font-size: 12px; color: var(--ink-3);
  pointer-events: none;
}
body.wide .byline { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 44px; transform: translate(-50%, 12px);
  background: var(--ink); color: #fff; font-size: 13px;
  padding: 8px 14px; border-radius: var(--radius);
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.wrap { max-width: 412px; margin: 0 auto; padding: 0 16px 72px; }
.wrap.mid { max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border: 0; border-radius: var(--radius);
  background: var(--soft); color: var(--ink); cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.btn:hover { background: #eeeeed; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #2c2a28; }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--soft); color: var(--ink); }
.btn.sm { padding: 3px 8px; font-size: 13px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row.center { justify-content: center; }

/* ---------- Home ---------- */
.hero { min-height: calc(100vh - 160px); display: flex; flex-direction: column; justify-content: center; padding: 24px 0 72px; }
.hero h1 {
  font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15;
  text-align: center; margin: 40px 0 14px;
}
.hero p { text-align: center; margin: 0 0 22px; color: var(--ink-2); }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.01em; }
.caps { text-transform: uppercase; letter-spacing: 0.06em; }

/* the "terminal" card used on home and in funnel cards */
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-2);
  overflow: hidden;
}
.panel {
  background: #fff; border: 1px solid var(--line-2); border-radius: 2px;
}
.live { width: 100%; padding: 22px 22px 18px; }
.live .head { display: flex; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.live .head b { font-weight: 500; }
.live .bar { padding: 10px; border-bottom: 1px solid var(--line-2); }
.live .bar .lbl { display: flex; justify-content: space-between; color: var(--ink-2); margin-bottom: 6px; }
.meter { height: 8px; display: flex; gap: 1px; }
.meter i { flex: 1; background: var(--ink); }
.meter i.off { background: var(--line-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats div { padding: 8px 10px; border-right: 1px solid var(--line-2); }
.stats div:last-child { border-right: 0; }
.stats span { display: block; color: var(--ink-3); }

.tree { position: relative; margin: 14px 0 0 16px; padding-left: 14px; border-left: 1px dashed #c9c6c2; }
.tree .node { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; margin: 8px 0; }
.tree .node::before { content: ""; position: absolute; left: -15px; top: 50%; width: 12px; border-top: 1px dashed #c9c6c2; }
.tree .node .k { color: var(--ink); }
.tree .node .v { color: var(--ink-3); }
.tree .node.done .s { color: var(--ok); }
.tree .node.now { border-color: var(--ink); }
.tree .node.queued .s { color: var(--ink-3); }
.tag {
  position: absolute; top: -9px; left: -1px; font-size: 9px; padding: 1px 5px;
  background: var(--mark); color: var(--mark-ink); border: 1px solid #f0d873;
}

/* ---------- Funnel list ---------- */
h2.page-title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin: 32px 0 20px; }
.flist { display: grid; gap: 44px; }
.fcard { display: block; }
.fcard .card { padding: 22px 14px; transition: border-color .15s; }
.fcard:hover .card { border-color: #d6d3d0; }
.fcard .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 10px; }
.fcard .meta .n { white-space: nowrap; }
.fcard .meta .d { color: var(--ink-2); font-size: 13px; text-align: right; }

.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.flow .step { padding: 5px 5px; background: #fff; border: 1px solid var(--line-2); border-radius: 2px; }
.flow .step b { font-weight: 500; }
.flow .arrow { position: relative; width: 11px; height: 1px; background: #b9b5b0; margin: 0 3px 0 2px; }
.flow .arrow::after { /* thin open arrowhead, same 1px line as the arrow */
  content: ""; position: absolute; right: 0; top: 50%; width: 4px; height: 4px;
  border-top: 1px solid #b9b5b0; border-right: 1px solid #b9b5b0;
  translate: 0 -50%; rotate: 45deg; transform-origin: center;
}
.fcard .card .sub { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--ink-3); }

/* ---------- Funnel detail ---------- */
.crumbs { color: var(--ink-3); font-size: 13px; margin-top: 24px; }
.crumbs a:hover { color: var(--ink); }
.detail h1 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin: 6px 0 8px; line-height: 1.15; }
.detail .lede { color: var(--ink-2); margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0 24px; }
.facts div { background: #fff; padding: 10px 12px; font-size: 13px; }
.facts span { display: block; color: var(--ink-3); }

.steps-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 28px 0 14px; }
.steps-nav button { border: 0; background: transparent; padding: 5px 9px; border-radius: var(--radius); color: var(--ink-2); cursor: pointer; }
.steps-nav button:hover { color: var(--ink); }
.steps-nav button.on { background: var(--soft); color: var(--ink); }
.steps-nav button i { font-style: normal; color: var(--ink-3); margin-right: 4px; font-family: var(--mono); font-size: 11px; }

.stage { padding: 28px 20px; display: flex; justify-content: center; }
.move { margin: 14px 0 0; padding: 14px 16px; background: var(--soft); border-radius: var(--radius); }
.move .mono { color: var(--ink-3); display: block; margin-bottom: 4px; }

/* ---------- Mock previews ---------- */
.pv { width: 100%; max-width: 340px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; font-size: 12px; box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 8px 24px -12px rgba(0,0,0,.12); }
.pv.desktop { max-width: 100%; }
.pv .chrome { display: flex; align-items: center; gap: 4px; padding: 7px 10px; border-bottom: 1px solid var(--line); background: var(--soft-2); }
.pv .chrome i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.pv .chrome span { margin-left: 8px; color: var(--ink-3); font-family: var(--mono); font-size: 10px; }
.pv .body { padding: 22px 20px 24px; }
.pv.desktop .body { padding: 44px 48px 48px; text-align: center; }
.pv.desktop .body .pv-h { font-size: 26px; max-width: 520px; margin-left: auto; margin-right: auto; }
.pv.desktop .body .pv-s { max-width: 440px; margin-left: auto; margin-right: auto; }
.pv.desktop .pv-fields, .pv.desktop .pv-list, .pv.desktop .pv-cta { max-width: 320px; margin-left: auto; margin-right: auto; }
.pv.desktop .pv-list { text-align: left; }
.pv .logo { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; margin-bottom: 22px; }
.pv.desktop .logo { justify-content: center; }
.pv .logo i { width: 14px; height: 14px; border-radius: 4px; background: var(--ink); display: inline-block; }
.pv-e { font-family: var(--mono); font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.pv-h { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; }
.pv-s { color: var(--ink-2); margin: 0 0 16px; }
.pv-fields { display: grid; gap: 6px; margin-bottom: 8px; }
.pv-fields div { border: 1px solid var(--line-2); border-radius: 5px; padding: 7px 9px; color: var(--ink-3); text-align: left; }
.pv-cta { display: block; width: 100%; text-align: center; background: var(--ink); color: #fff; border-radius: 5px; padding: 8px 10px; font-weight: 500; }
.pv-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 5px; color: var(--ink-2); }
.pv-list li::before { content: "✓"; color: var(--ok); margin-right: 6px; }
.pv-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.pv-slots div { border: 1px solid var(--line-2); border-radius: 5px; padding: 7px; text-align: center; }
.pv-slots div:first-child { border-color: var(--ink); background: var(--soft); }
.pv-price { border: 1px solid var(--line-2); border-radius: 8px; padding: 14px; margin-bottom: 10px; text-align: left; }
.pv-price b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; display: block; }
.pv .video { aspect-ratio: 16/9; background: var(--ink); border-radius: 6px; margin-bottom: 12px; display: grid; place-items: center; color: #fff; }

/* ad */
.pv.ad .body { padding: 0; }
.ad-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.ad-top .av { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 11px; }
.ad-top small { display: block; color: var(--ink-3); font-size: 10px; }
.ad-copy { padding: 0 12px 10px; color: var(--ink-2); }
.ad-art { aspect-ratio: 1.3; background: repeating-linear-gradient(135deg, #f3f2f0 0 6px, #fafaf9 6px 12px); display: flex; align-items: flex-end; padding: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad-art .pv-h { font-size: 19px; margin: 0; background: #fff; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 4px; }
.ad-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; gap: 10px; }
.ad-foot span:first-child { color: var(--ink-3); font-size: 10px; font-family: var(--mono); text-transform: uppercase; }
.ad-foot .pv-cta { width: auto; padding: 6px 10px; }

/* emails */
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.inbox li:last-child { border-bottom: 0; }
.inbox .day { font-family: var(--mono); font-size: 10px; color: var(--ink-3); padding-top: 2px; }
.inbox b { font-weight: 500; display: block; }
.inbox span { color: var(--ink-3); }

/* ---------- Builder ---------- */
body.wide .topnav { padding-top: 16px; }
.builder { display: grid; grid-template-columns: 260px minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; height: calc(100vh - 58px); border-top: 1px solid var(--line); }
.col { overflow: auto; padding: 18px 18px 40px; }
.col + .col { border-left: 1px solid var(--line); }
.col.preview { background: var(--soft-2); }
.col h3 { font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 400; margin: 18px 0 8px; }
.col h3:first-child { margin-top: 0; }
.bar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.bar-top .title-input { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; border: 0; padding: 2px 4px; margin-left: -4px; border-radius: 4px; background: transparent; width: 100%; min-width: 0; }
.bar-top .title-input:hover, .bar-top .title-input:focus { background: var(--soft); outline: none; }

label.f { display: block; margin-bottom: 10px; }
label.f span { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 3px; }
.inp, textarea.inp, select.inp {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 6px 9px; background: #fff; font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.inp:focus { border-color: #b9b5b0; box-shadow: 0 0 0 3px #f1f0ee; }
textarea.inp { resize: vertical; min-height: 58px; line-height: 1.4; }
.hint { font-size: 12px; color: var(--ink-3); margin: -4px 0 10px; }

.slist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.slist li { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent; }
.slist li:hover { background: var(--soft); }
.slist li.on { background: #fff; border-color: var(--line-2); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.slist .num { font-family: var(--mono); font-size: 10px; color: var(--ink-3); width: 14px; }
.slist .kind { font-family: var(--mono); font-size: 9px; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line-2); padding: 0 4px; border-radius: 2px; }
.slist li.on .kind { background: var(--mark); border-color: #f0d873; color: var(--mark-ink); }
.slist .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slist .ctl { display: none; gap: 0; }
.slist li:hover .ctl, .slist li.on .ctl { display: flex; }
.icon-btn { border: 0; background: transparent; width: 22px; height: 22px; border-radius: 4px; cursor: pointer; color: var(--ink-3); display: grid; place-items: center; font-size: 12px; line-height: 1; }
.icon-btn:hover { background: var(--line); color: var(--ink); }

.add-row { display: flex; gap: 6px; margin-top: 8px; }
.add-row select { flex: 1; }

.email-row { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px; margin-bottom: 8px; background: #fff; }
.email-row .top { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.email-row .top .inp.day { width: 64px; }

.pv-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--soft); border-radius: var(--radius); padding: 2px; }
.seg button { border: 0; background: transparent; padding: 3px 9px; border-radius: 4px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.preview-stage { display: flex; justify-content: center; }

.pick-grid { display: grid; gap: 8px; }
.pick { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft-2); transition: border-color .15s; }
.pick:hover { border-color: #d6d3d0; }
.pick small { display: block; color: var(--ink-3); font-size: 12px; }
.pick .mono { color: var(--ink-3); white-space: nowrap; }

@media (max-width: 960px) {
  .builder { grid-template-columns: 1fr; height: auto; }
  .col + .col { border-left: 0; border-top: 1px solid var(--line); }
  body.wide .byline { display: none; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 27px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .fcard .meta { flex-direction: column; gap: 2px; }
  .fcard .meta .d { text-align: left; }
}

/* ---------- Link libraries (Design, Resources) ---------- */
.lib-intro { color: var(--ink-2); margin: -8px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.chips button { border: 0; background: transparent; padding: 4px 9px; border-radius: var(--radius); color: var(--ink-2); cursor: pointer; font-size: 13px; }
.chips button:hover { color: var(--ink); }
.chips button.on { background: var(--soft); color: var(--ink); }
.wrap.lib { max-width: 1120px; }
.lib-group { margin-top: 36px; }
.lib-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lib-head h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.lib-head h3 span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-left: 4px; vertical-align: middle; }
.arrow-btn { width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--soft); cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink-2); }
.arrow-btn:hover { background: #eeeeed; color: var(--ink); }

.tiles {
  /* room inside the scroll area so the hover shadow isn't clipped, pulled back out with negative margins */
  list-style: none; margin: -12px calc(var(--bleed) * -1) -28px; padding: 16px var(--bleed) 40px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 19.5%, 230px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.tiles::-webkit-scrollbar { display: none; }
.tiles {
  --fade-l: 0px; --fade-r: 0px;
  -webkit-mask: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
          mask: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}
.tiles.more-left { --fade-l: 72px; }
.tiles.more-right { --fade-r: 96px; }
.tiles li { scroll-snap-align: start; scroll-margin-left: var(--bleed); }
.tiles a { display: block; }

/* the tile: a coloured squircle with a soft light rim that bleeds inwards */
.tile {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1; border-radius: 22%; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--fg);
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 24px -14px rgba(0,0,0,.4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile::before { /* blurred edges, like frosted glass round the rim */
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  -webkit-mask: radial-gradient(farthest-side, transparent 72%, #000 100%);
          mask: radial-gradient(farthest-side, transparent 72%, #000 100%);
}
.tile::after { /* the light on the edges, fading inwards */
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.22),
    inset 0 0 14px 3px rgba(255,255,255,.30),
    inset 0 0 44px 8px rgba(255,255,255,.12),
    inset 0 -30px 50px -20px rgba(0,0,0,.35);
}
.tiles a:hover .tile { transform: translateY(-3px) scale(1.015); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 20px 32px -16px rgba(0,0,0,.45); }

.t-type {
  font-weight: 700; text-transform: uppercase; text-align: center;
  font-size: clamp(30px, 3.4vw, 46px); line-height: .86; letter-spacing: -0.05em;
  padding: 0 10px; word-break: break-word;
}
.t-type.small { position: relative; z-index: 1; font-size: clamp(20px, 2.1vw, 28px); line-height: .95; letter-spacing: -0.03em; text-transform: none; }
.halftone {
  -webkit-mask: radial-gradient(circle, #000 58%, transparent 62%) 0 0 / 5px 5px;
          mask: radial-gradient(circle, #000 58%, transparent 62%) 0 0 / 5px 5px;
}
.t-stack {
  font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: .9; letter-spacing: -0.04em; text-align: center;
  padding: 10px 12px; border-radius: 4px; background: var(--fg); color: var(--bg);
  transform: rotate(-6deg); box-shadow: 0 10px 24px -8px rgba(0,0,0,.6);
}
.t-glyph {
  font-weight: 700; font-size: clamp(90px, 9vw, 130px); line-height: 1;
  text-shadow: 0 0 18px var(--fg), 0 0 2px var(--fg);
  -webkit-mask: radial-gradient(circle, #000 50%, transparent 72%) 0 0 / 4px 4px;
          mask: radial-gradient(circle, #000 50%, transparent 72%) 0 0 / 4px 4px;
}
.t-label { position: absolute; left: 0; right: 0; text-align: center; font-size: 8px; letter-spacing: .4em; text-transform: uppercase; opacity: .75; }
.t-label.top { top: 14%; }
.t-label.bottom { bottom: 14%; }
.t-orb {
  position: absolute; width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--fg), transparent 70%);
  filter: blur(18px); opacity: .55;
}

.tile-name { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 10px; font-weight: 500; }
.tile-name .mono { color: var(--ink-3); font-weight: 400; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-note { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.4; margin-top: 2px; }

@media (max-width: 520px) {
  :root { --bleed: 16px; }
  .topnav { gap: 0; }
  .nav-group { gap: 0; }
  .topnav a { padding: 6px 7px; font-size: 14px; }
  .tiles { grid-auto-columns: 62%; }
  .tile-name .mono { display: none; }
}

/* ---------- Page transitions (timing from design.how) ---------- */
@keyframes viewInStart { 0% { opacity: 0; transform: translateX(-16px); } }
@keyframes viewInEnd { 0% { opacity: 0; transform: translateX(16px); } }
#app.slide-from-start { animation: viewInStart .22s var(--ease-glide) both; }
#app.slide-from-end { animation: viewInEnd .22s var(--ease-glide) both; }
@media (prefers-reduced-motion: reduce) {
  #app.slide-from-start, #app.slide-from-end { animation: none; }
  .nav-pill { transition: none; }
}

/* ---------- Home: live campaign card ---------- */
.hero-stage { position: relative; }
/* no frame: the card sits straight on the page */
.card.live { overflow: visible; padding: 34px 0 0; border: 0; border-radius: 0; background: none; font-size: 13px; }
.scene { display: grid; gap: 14px; animation: sceneIn .45s ease both; transition: opacity .22s ease; }
.scene.out { opacity: 0; }
@keyframes sceneIn { from { opacity: 0; } }
.dim { color: var(--ink-3); }

.mini-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; }
.mini-head .icons { display: flex; gap: 5px; }
.mini-metric { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.mini-metric #h-count { font-size: 14px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.track { height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; margin-top: -6px; }
.track i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 2px; }

.mini-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.mini-steps li {
  display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px;
  background: var(--soft); border-radius: 6px;
  color: var(--ink-3); transition: color .5s ease;
}
.mini-steps li.done { color: var(--ink); }
.mini-steps .k { display: inline-block; width: 56px; color: var(--ink-3); font-size: 11px; letter-spacing: .04em; }
.mini-head > span:first-child { font-weight: 500; font-size: 14px; }
.mini-metric .dim { font-size: 11px; letter-spacing: .04em; }
.mini-steps .v { color: var(--ink-3); white-space: nowrap; }

.app-ico {
  position: relative; display: inline-block; flex: none;
  width: 20px; height: 20px; border-radius: 6px; background: var(--c);
}
.app-ico::after {
  content: ""; position: absolute; inset: 24%; background: #fff;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.app-ico.sm { width: 16px; height: 16px; border-radius: 5px; }

/* one small note per campaign */
.pop {
  position: absolute; top: -8px; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 7px; padding: 6px 10px 6px 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 8px 20px -12px rgba(0,0,0,.25);
  font-size: 12px; white-space: nowrap;
  opacity: 0; translate: 0 4px; transition: opacity .5s ease, translate .5s var(--ease-glide);
  pointer-events: none;
}
.pop.in { opacity: 1; translate: 0 0; }
.pop b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pop span { color: var(--ink-2); }


@media (max-width: 480px) {
  .mini-steps .v { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scene { animation: none; transition: none; }
  .pop, .mini-steps li { transition: none; }
}

/* ---------- Guides ---------- */
.guide-list { display: grid; border-top: 1px solid var(--line); }
.guide-row { display: flex; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.guide-row .g-text { display: grid; gap: 3px; min-width: 0; }
.guide-row .g-title { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; transition: color .15s; }
.guide-row:hover .g-title { color: var(--ink-2); }
.guide-row .g-sum { color: var(--ink-2); font-size: 14px; }
.g-meta { color: var(--ink-3); font-size: 13px; }

.guide h1 { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 8px 0 8px; }
.guide .g-meta { margin: 0 0 28px; }
.prose { font-size: 16px; line-height: 1.65; color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose h2 { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; margin: 36px 0 10px; }
.prose h3 { font-size: 17px; font-weight: 500; margin: 28px 0 8px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { text-decoration: underline; text-decoration-color: #c9c6c2; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose blockquote { margin: 24px 0; padding: 14px 18px; background: var(--soft); border-radius: var(--radius); font-size: 17px; letter-spacing: -0.01em; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.prose strong { font-weight: 600; }
.g-back { display: inline-block; margin-top: 24px; color: var(--ink-2); font-size: 14px; }
.g-back:hover { color: var(--ink); }

/* guide banners: the Resources tile, as a square thumbnail or a wide banner */
.tile.thumb { flex: none; width: 92px; border-radius: 24%; }
.tile.thumb .t-type { font-size: 15px; padding: 0 6px; }
.tile.thumb .t-type.small { font-size: 12px; }
.tile.thumb .t-glyph { font-size: 42px; }
.tile.thumb .t-stack { font-size: 10px; padding: 4px 6px; }
.tile.thumb .t-label { display: none; }
.tiles a:hover .tile, .guide-row:hover .tile.thumb { transform: translateY(-2px); }

.tile.banner { width: 100%; aspect-ratio: 2.3; border-radius: 28px; margin: 18px 0 26px; }
.tile.banner .t-type { font-size: clamp(42px, 9vw, 86px); }
.tile.banner .t-type.small { font-size: clamp(30px, 6vw, 54px); }
.tile.banner .t-glyph { font-size: clamp(120px, 22vw, 210px); }
.tile.banner .t-stack { font-size: clamp(26px, 5.4vw, 48px); }
.tile.banner .t-label { font-size: 10px; }
.tile.banner .t-orb { width: 45%; height: 90%; }
.guide .g-meta a { text-decoration: underline; text-decoration-color: #c9c6c2; text-underline-offset: 3px; }
.guide .g-meta a:hover { color: var(--ink); }

@media (max-width: 480px) {
  .tile.thumb { width: 72px; }
  .tile.banner { border-radius: 20px; }
}

/* author card + subscribe at the end of each guide */
.author-box { margin-top: 36px; padding: 6px; background: var(--soft); border-radius: 12px; display: grid; gap: 6px; }
.author-link { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 8px; transition: background .15s; }
.author-link:hover { background: #efefee; }
.author-av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.author-txt { display: grid; gap: 2px; min-width: 0; }
.author-txt b { font-weight: 500; }
.author-txt b span { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.author-txt small { color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.author-follow { margin-left: auto; flex: none; font-size: 13px; padding: 5px 10px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-2); }
.author-box .subscribe { background: #fff; border-radius: 8px; padding: 12px; }

.subscribe { display: grid; gap: 8px; }
.sub-note { font-size: 13px; color: var(--ink-2); }
.sub-row { display: flex; gap: 6px; }
.sub-row .inp { flex: 1; min-width: 0; }
.sub-card { margin: 0 0 8px; padding: 14px; background: var(--soft); border-radius: 10px; }
.sub-card + .guide-list { margin-top: 18px; }

@media (max-width: 480px) {
  .author-link { flex-wrap: wrap; }
  .author-follow { margin-left: 54px; }
}
.subscribe .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sub-msg { margin: 0; font-size: 13px; }
.sub-msg:empty { display: none; }
.sub-msg[data-state="ok"] { color: var(--ok); }
.sub-msg[data-state="error"] { color: #b42318; }
.subscribe button:disabled { opacity: .6; cursor: default; }
img.author-av { object-fit: cover; background: var(--soft); }
.guide .g-meta a.by { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.guide .g-meta a.by img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }

/* ---------- Copy: the margaritas in bahamas ---------- */
.eyebrow-sm { margin: 32px 0 6px; font-size: 13px; color: var(--ink-3); }
/* the 🍹 tile: same glowing squircle as the Resources icons, black with a faint lift behind the drink */
.tile.copy-icon { width: 88px; margin: 32px 0 0; border-radius: 24%; background: radial-gradient(circle at 50% 55%, #2a2a2a 0%, transparent 60%), var(--bg); }
.tile.copy-icon .emoji { position: relative; z-index: 4; font-size: 48px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.tile.copy-icon + .eyebrow-sm { margin-top: 18px; }
.copy-h1 { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 14px; }
.copy-page .lib-intro { margin: 0 0 22px; }

.plane-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 26px; }
.plane-vs div { padding: 14px; border-radius: 10px; background: var(--soft); color: var(--ink-3); font-size: 14px; line-height: 1.45; }
.plane-vs div.good { background: #fff7d1; color: var(--ink); }
.pv-tag { display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; color: var(--ink-3); }
.plane-vs div.good .pv-tag { color: var(--mark-ink); }

.formula { padding: 20px; border-radius: 12px; background: var(--soft); margin-bottom: 18px; }
.formula-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; font-size: 22px; letter-spacing: -0.02em; line-height: 1.5; }
.formula-line span { color: var(--ink-3); }
.fx {
  font: inherit; letter-spacing: inherit; color: var(--ink); min-width: 4ch; max-width: 100%;
  padding: 0 4px 1px; border: 0; border-bottom: 2px solid var(--ink); background: transparent; border-radius: 0; outline: none;
}
.fx::placeholder { color: #c4c0bb; }
.fx:focus { border-bottom-color: var(--accent); }
.formula-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.formula-extra .f { margin: 0; }
.formula .chips { margin: 14px 0 0; align-items: center; }
.chips-label { font-size: 13px; color: var(--ink-3); margin-right: 2px; }
.formula .chips button.on, .formula .chips button:hover { background: #fff; }

.copy-out { display: grid; gap: 10px; margin-bottom: 14px; }
.copy-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.cc-head b { font-weight: 500; display: block; }
.cc-head small { color: var(--ink-3); font-size: 12px; }
.cc-text { margin: 0; font-size: 15px; line-height: 1.5; }

@media (max-width: 520px) {
  .copy-h1 { font-size: 28px; }
  .plane-vs, .formula-extra { grid-template-columns: 1fr; }
  .formula-line { font-size: 19px; }
  .topnav a { padding: 6px 5px; font-size: 13.5px; }
}

/* "Start from your website" box on the Copy page */
.site-read { display: grid; gap: 8px; margin-bottom: 12px; }
.site-read button:disabled { opacity: .6; cursor: default; }
.site-found:empty { display: none; }
.site-found { display: grid; gap: 6px; margin-top: 4px; }
.found-title { margin: 4px 0 2px; font-size: 13px; color: var(--ink-3); }
.found-line {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.found-line small { flex: none; font-size: 12px; color: var(--ink-3); }
.found-line:hover { border-color: #d6d3d0; }
.found-line.on { border-color: var(--ink); background: var(--soft-2); }
.found-line.on small { color: var(--ink); }

/* home card: scenes for Copy, Guides and Resources */
.card.live { cursor: pointer; }
.mini-emoji { font-size: 18px; line-height: 20px; }
.pop-emoji { font-size: 14px; line-height: 16px; }
.mini-metric.typed { flex-direction: column; align-items: flex-start; gap: 4px; }
.mini-metric.typed #h-count { min-height: 1.4em; font-size: 15px; letter-spacing: -0.01em; }
.mini-metric.typed #h-count::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* home card: picture scenes for Copy, Guides and Resources */
#scene { min-height: 286px; display: grid; }
.scene.visual { align-content: center; gap: 18px; }
.v-title { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.v-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.v-cell { display: block; animation: vIn .55s var(--ease-glide) both; animation-delay: calc(var(--i) * 80ms); }
.v-grid .tile.thumb { width: 100%; }
@keyframes vIn { from { opacity: 0; translate: 0 8px; filter: blur(2px); } }
.v-copy { display: flex; align-items: center; gap: 18px; }
.tile.copy-icon.v-icon { margin: 0; width: 96px; flex: none; animation: vIn .55s var(--ease-glide) both; }
.tile.copy-icon.v-icon .emoji { font-size: 52px; }
.v-copy p { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; animation: vIn .55s var(--ease-glide) .12s both; }
@media (prefers-reduced-motion: reduce) { .v-cell, .v-copy p, .tile.copy-icon.v-icon { animation: none; } }
/* resources scene: tiles scattered at random angles */
.v-scatter { display: grid; grid-template-columns: repeat(2, 104px); gap: 22px 30px; justify-content: center; padding: 6px 0 14px; }
.v-scatter .tile.thumb { width: 104px; }
.v-scatter .tile.thumb .t-type { font-size: 17px; }
.v-scatter .tile.thumb .t-glyph { font-size: 50px; }
.v-scatter .tile.thumb .t-stack { font-size: 12px; }
.v-scatter .tile::before { display: none; } /* the frosted rim blurs the whole tile once it's rotated; keep only the light rim */
/* funnel scenes: big tool icons tossed around, bobbing gently */
.app-ico.big { width: 78px; height: 78px; border-radius: 22%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 0 14px 3px rgba(255,255,255,.22), 0 14px 26px -14px rgba(0,0,0,.45); }
.app-ico.big::after { inset: 27%; }
.v-scatter.icons { grid-template-columns: repeat(4, 78px); gap: 10px 18px; padding: 10px 0 18px; }
.v-scatter.icons .app-ico.big { animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.8s); }
@keyframes bob { 50% { translate: 0 -5px; } }
.v-title .dim { font-size: 15px; letter-spacing: -0.01em; font-weight: 400; }
@media (max-width: 480px) {
  .v-scatter.icons { grid-template-columns: repeat(4, 62px); gap: 8px 12px; }
  .app-ico.big { width: 62px; height: 62px; }
}
@media (prefers-reduced-motion: reduce) { .v-scatter.icons .app-ico.big { animation: none; } }
/* funnel stages as loose chips: random tilts and corner shapes */
.step-pile { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 6px; margin: 0 -14px; padding: 2px 0 12px; }
.step-chip {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 11px;
  background: var(--soft); color: var(--ink-3); font-size: 12.5px; white-space: nowrap;
  animation: vIn .55s var(--ease-glide) both; animation-delay: calc(200ms + var(--i) * 90ms);
  transition: color .5s ease, background .5s ease;
}
/* every chip, on every page and in every home scene, has the same rounding */
.step-chip, .step-chip.pill, .step-chip.soft, .step-chip.square { border-radius: 999px; }
.step-chip .k { font-size: 10px; letter-spacing: .05em; color: var(--ink-3); }
.step-chip .v { font-size: 11px; color: var(--ink-3); }
.step-chip.done { color: var(--ink); background: #e9e8e6; } /* completed: just a slightly darker grey */
@media (max-width: 480px) { .step-chip .v { display: none; } .step-chip { padding: 7px 10px; } .step-pile { margin: 0; } }
@media (prefers-reduced-motion: reduce) { .step-chip { animation: none; transition: none; } }

/* builder previews: content creator video post and X-style social post */
.pv.creator .creator-av { background: linear-gradient(135deg, #ff7a59, #a24bff); }
.creator-video { position: relative; aspect-ratio: 4/5; margin: 0 12px; border-radius: 10px; overflow: hidden; display: flex; align-items: flex-end; padding: 14px;
  background: radial-gradient(circle at 30% 20%, #3a3a3a, #111 70%); }
.creator-video .pv-h { margin: 0; color: #fff; font-size: 18px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.creator-video .play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; font-size: 16px; backdrop-filter: blur(4px); }
.creator-video .dur { position: absolute; top: 10px; right: 10px; font-size: 10px; color: #fff; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 4px; }
.creator-cap { padding-top: 10px; }
.ad-foot span:first-child { white-space: nowrap; }

.pv.social .ad-top { position: relative; }
.pv.social .handle { font-weight: 400; color: var(--ink-3); }
.pv.social .x-mark { margin-left: auto; }
.social-text { padding: 0 12px 4px 46px; font-size: 13px; line-height: 1.45; }
.social-text p { margin: 0 0 8px; }
.social-card { margin: 4px 12px 0 46px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.social-card span { font-size: 10px; color: var(--ink-3); }
.social-card b { font-weight: 500; font-size: 12px; }
.social-stats { display: flex; justify-content: space-between; padding: 10px 14px 12px 46px; font-size: 11px; color: var(--ink-3); }
/* copy scene: 🍹 tile beats a faded ✈️ tile, tossed */
.v-scatter.copy-toss { grid-template-columns: 112px 84px; align-items: center; gap: 0 26px; padding-bottom: 6px; }
.v-scatter.copy-toss .tile.copy-icon.v-icon { width: 112px; }
.tile.plane-icon { width: 84px; border-radius: 24%; opacity: .7; }
.tile.plane-icon .emoji { position: relative; z-index: 4; font-size: 38px; filter: grayscale(1); }
.copy-toss + .step-pile .step-chip { font-size: 15px; padding: 9px 14px; }

/* builder preview: X profile as a landing page */
.pv.profile { font-size: 12px; background: #fff; overflow: hidden; }
.xp-banner { position: relative; height: 112px; overflow: hidden; background: #0b0b0b; color: #fff; display: flex; align-items: center; padding: 0 18px; }
.xp-ascii { position: absolute; inset: 0; margin: 0; font: 9px/9px "Geist Mono", ui-monospace, monospace; color: #3b3b3b; white-space: pre; overflow: hidden; pointer-events: none; }
.xp-hl { position: relative; font-size: 22px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; max-width: 70%; }
.xp-logos { position: absolute; right: 14px; bottom: 11px; display: flex; gap: 10px; }
.xp-logos i { width: 13px; height: 13px; background: #fff; opacity: .75; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.xp-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 14px; margin-top: -30px; position: relative; }
.xp-av { width: 64px; height: 64px; border-radius: 14px; border: 3px solid #fff; background: radial-gradient(circle at 30% 20%, #4a4a4a, #0e0e0e 70%); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }
.xp-av.sm { width: 34px; height: 34px; border-radius: 9px; border: 0; font-size: 14px; flex: none; }
.xp-actions { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.xp-round { width: 28px; height: 28px; border-radius: 999px; background: #f1f0ee; display: grid; place-items: center; font-size: 12px; color: var(--ink); }
.xp-follow { background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 16px; font-weight: 600; }
.xp-body { padding: 8px 14px 2px; }
.xp-name { display: flex; align-items: center; gap: 3px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.xp-check { width: 17px; height: 17px; flex: none; }
.xp-check.sm { width: 14px; height: 14px; }
.xp-handle { color: var(--ink-3); }
.xp-bio { margin: 8px 0; line-height: 1.45; font-size: 12.5px; }
.xp-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; color: var(--ink-3); }
.xp-meta a { color: #1d9bf0; }
.xp-meta b { color: var(--ink); font-weight: 700; }
.xp-tabs { display: flex; justify-content: space-around; margin-top: 6px; box-shadow: inset 0 -1px 0 #eeedeb; }
.xp-tabs span { padding: 10px 2px; color: var(--ink-3); font-weight: 500; }
.xp-tabs span.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 #1d9bf0; }
.xp-post { padding: 10px 14px 12px; }
.xp-pin { color: var(--ink-3); font-size: 11px; font-weight: 600; margin: 0 0 6px 42px; }
.xp-row { display: flex; gap: 8px; }
.xp-main { flex: 1; min-width: 0; }
.xp-who { display: flex; align-items: center; gap: 3px; white-space: nowrap; overflow: hidden; }
.xp-who b { font-weight: 700; }
.xp-who .xp-handle { margin-left: 2px; overflow: hidden; text-overflow: ellipsis; }
.xp-main p { margin: 3px 0 8px; line-height: 1.45; }
.xp-card { border-radius: 14px; overflow: hidden; background: #f4f3f1; }
.xp-card-img { position: relative; height: 92px; background: #0b0b0b; display: grid; place-items: center; overflow: hidden; }
.xp-card-img pre { position: absolute; inset: 0; margin: 0; font: 8px/8px "Geist Mono", ui-monospace, monospace; color: #383838; white-space: pre; overflow: hidden; }
.xp-card-img b { position: relative; color: #fff; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.xp-card-foot { display: grid; gap: 1px; padding: 8px 12px 10px; }
.xp-card-foot small { color: var(--ink-3); font-size: 10.5px; }
.xp-card-foot span { font-weight: 600; }
.xp-acts { display: flex; justify-content: space-between; margin-top: 8px; color: var(--ink-3); font-size: 11px; padding-right: 8px; }

/* Copy page: the "prompt for your AI" skill */
.skill-card { margin: 26px 0 0; padding: 16px; border-radius: 12px; background: var(--soft); }
.skill-text {
  margin: 4px 0 0; max-height: 300px; overflow: auto; padding: 14px; border-radius: 8px; background: #fff;
  font: 12px/1.55 var(--mono); white-space: pre-wrap; color: var(--ink);
}
.skill-card code { font-family: var(--mono); font-size: .9em; background: #fff; padding: 1px 5px; border-radius: 4px; }
@media (max-width: 520px) { .skill-card .cc-head { flex-direction: column; } }

/* page headers (Funnels, Builder, Copy): the home card's tossed look */
.page-hero { display: grid; justify-items: center; gap: 4px; margin: 34px 0 6px; }
.page-hero .step-pile { margin: 0; }
.v-scatter.funnels-toss { grid-template-columns: repeat(4, 78px); gap: 10px 18px; padding: 6px 0 16px; }
.v-scatter.picker-toss { grid-template-columns: repeat(5, 64px); gap: 10px 14px; padding: 6px 0 16px; }
.tile.mini-tile { width: 64px; border-radius: 24%; }
.tile.mini-tile .emoji { position: relative; z-index: 4; font-size: 30px; line-height: 1; }
.page-hero.copy { margin-top: 28px; }
.page-hero + .page-title, .page-hero + .eyebrow-sm { margin-top: 18px; }
@media (max-width: 480px) {
  .v-scatter.funnels-toss { grid-template-columns: repeat(4, 62px); gap: 8px 12px; }
  .v-scatter.picker-toss { grid-template-columns: repeat(5, 52px); gap: 8px 10px; }
  .tile.mini-tile { width: 52px; } .tile.mini-tile .emoji { font-size: 24px; }
}

/* the glossy star logo, left of the menu */
.topnav { align-items: center; }
.nav-logo { display: grid; place-items: center; width: 40px; height: 40px; margin-right: 6px; border-radius: var(--radius); }
.nav-logo img { width: 34px; height: 34px; display: block; }
.nav-logo:hover img, .nav-logo:focus-visible img { animation: star-spin .45s linear infinite; } /* spins fast while hovered */
@keyframes star-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .nav-logo:hover img, .nav-logo:focus-visible img { animation: none; } }
@media (max-width: 520px) { .nav-logo { width: 30px; margin-right: 0; } .nav-logo img { width: 26px; height: 26px; } }

/* reward code box in page previews */
.pv-code { display: grid; gap: 3px; justify-items: center; text-align: center; margin: 2px 0 14px; padding: 12px; border: 1px dashed #c9c6c2; border-radius: 8px; background: var(--soft-2); }
.pv-code small { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.pv-code b { font: 600 16px var(--mono); letter-spacing: .06em; }
.pv-code span { font-size: 11px; color: var(--ink-2); }
.pv-code em { font-style: normal; font-size: 11px; margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); }
.pv.desktop .pv-code { max-width: 320px; margin-left: auto; margin-right: auto; }

/* ---------- page previews: ASCII hero + conversion proof ---------- */
.pv-hero { position: relative; isolation: isolate; overflow: hidden; margin: -22px -20px 0; padding: 22px 20px 16px; }
.pv.desktop .pv-hero { margin: -44px -48px 0; padding: 44px 48px 22px; }
.pv-ascii {
  position: absolute; inset: 0; z-index: -1; margin: 0; overflow: hidden; pointer-events: none;
  font: 9px/1.05 var(--mono); color: var(--ink); opacity: .16; white-space: pre; letter-spacing: .05em;
  -webkit-mask: linear-gradient(to bottom, #000 35%, transparent 100%); mask: linear-gradient(to bottom, #000 35%, transparent 100%);
}
.pv.desktop .pv-ascii { font-size: 12px; }

.pv-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; }
.pv.desktop .pv-badges { justify-content: center; }
.pv-badges span { font-size: 10px; color: var(--ink-2); background: var(--soft); border-radius: 999px; padding: 3px 8px; }

.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); text-align: left; }
.pv-stats b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.pv-stats span { display: block; font-size: 10px; color: var(--ink-3); margin-top: 3px; line-height: 1.3; }
.pv.desktop .pv-stats { max-width: 460px; margin-left: auto; margin-right: auto; text-align: center; }
.pv.desktop .pv-stats b { font-size: 28px; }

.pv-logos { margin: 16px 0 0; }
.pv-logos small { display: block; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.pv-logos > div { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.pv.desktop .pv-logos > div { justify-content: center; }
.pv-logos .lg { color: #8f8a85; font-size: 12px; white-space: nowrap; }
.pv-logos .lg0 { font-weight: 700; letter-spacing: -0.03em; }
.pv-logos .lg1 { font-family: Georgia, serif; font-style: italic; }
.pv-logos .lg2 { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.pv-logos .lg3 { font-weight: 500; letter-spacing: .02em; }
/* real brand logos in the Trusted by strip: greyscale icon + name */
.pv-logos .lg-brand { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; letter-spacing: -0.01em; color: #8f8a85; }
.pv-logos .lg-brand i { width: 13px; height: 13px; flex: none; background: #8f8a85; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.pv.desktop .pv-logos .lg-brand { font-size: 13px; }
.pv.desktop .pv-logos .lg-brand i { width: 15px; height: 15px; }

/* builder: margaritas in bahamas hooks on post-type steps */
.marg { margin: 0 0 14px; padding: 12px; border-radius: 10px; background: var(--soft); display: grid; gap: 6px; }
.marg-head { display: flex; gap: 10px; align-items: center; margin-bottom: 2px; }
.marg-ico { flex: none; width: 30px; height: 30px; border-radius: 8px; background: #0e0e0e; display: grid; place-items: center; font-size: 16px; }
.marg-head b { display: block; font-weight: 500; font-size: 13px; }
.marg-head small { display: block; color: var(--ink-3); font-size: 12px; }
.marg-hook { text-align: left; border: 0; background: #fff; border-radius: 7px; padding: 8px 10px; font-size: 13px; cursor: pointer; transition: background .15s; }
.marg-hook:hover { background: #fbfbfa; }
.marg-hook.on { background: var(--ink); color: #fff; }

/* ---------- Design tab: social media designs (16:9, scale with the card) ---------- */
.sd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; margin-top: 8px; }
.sd-card { display: grid; gap: 10px; }
.sd {
  position: relative; isolation: isolate; overflow: hidden; container-type: inline-size;
  aspect-ratio: 16 / 9; border-radius: 12px; background: var(--bg); color: var(--fg);
  padding: 6.5cqw 7cqw; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.6cqw;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 36px -24px rgba(0,0,0,.45);
}
.sd-ascii {
  position: absolute; inset: 0; z-index: -1; margin: 0; padding: 1cqw; overflow: hidden; pointer-events: none;
  font: 1.45cqw/1.05 var(--mono); color: var(--ac); opacity: .26; white-space: pre; letter-spacing: .08em;
}
.sd-h { margin: 0; font-size: 10.5cqw; font-weight: 700; letter-spacing: -0.045em; line-height: .95; max-width: 88%; }
.sd-xl { font-size: 23cqw; letter-spacing: -0.06em; line-height: .85; }
.sd-q { font-size: 6.4cqw; line-height: 1.05; font-weight: 600; max-width: 92%; }
.sd-mid { text-align: center; max-width: none; font-size: 7cqw; }
.sd-label { font-size: 2.2cqw; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ac); }
.sd-under { margin-top: 1cqw; }
.sd-corner { position: absolute; top: 6cqw; right: 6.5cqw; }
.sd-mark { display: grid; place-items: center; width: 9cqw; height: 9cqw; border-radius: 2.4cqw; background: var(--ac); color: var(--bg); font-weight: 700; font-size: 4.4cqw; }
.sd-who { display: inline-flex; align-items: center; gap: 1.4cqw; margin-top: 1.4cqw; }
.sd-who i { width: 4.2cqw; height: 4.2cqw; border-radius: 50%; background: var(--fg); opacity: .85; }
.sd-collab { justify-content: center; align-items: center; text-align: center; }
.sd-pair { display: flex; align-items: center; gap: 3cqw; margin: 1cqw 0 2cqw; }
.sd-pair b { font-size: 6cqw; font-weight: 300; color: var(--fg); opacity: .7; }
.sd-pair .sd-mark { width: 14cqw; height: 14cqw; border-radius: 3.6cqw; font-size: 7cqw; }
.sd-tag { position: absolute; top: 6cqw; left: 7cqw; font-size: 2cqw; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .9cqw 2cqw; border-radius: 99px; background: var(--fg); color: var(--bg); }
.sd-one { position: absolute; right: 6cqw; bottom: 4cqw; font-size: 12cqw; font-weight: 700; letter-spacing: -0.05em; color: var(--ac); }
.sd-thread .sd-label { position: absolute; top: 6cqw; left: 7cqw; }
.sd-thread .sd-h { max-width: 74%; }
.sd-split { flex-direction: row; padding: 0; gap: 0; }
.sd-half { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.4cqw; padding: 6.5cqw 5cqw; opacity: .5; }
.sd-half.sd-on { opacity: 1; background: color-mix(in srgb, var(--ac) 12%, transparent); }
.sd-half .sd-h { font-size: 8.6cqw; max-width: none; }
.sd-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sd-meta b { display: block; font-weight: 500; }
.sd-meta small { display: block; color: var(--ink-3); font-size: 13px; }
@media (max-width: 760px) { .sd-grid { grid-template-columns: 1fr; } }

/* seven menu items: on phones the menu scrolls sideways instead of overflowing */
@media (max-width: 520px) {
  .topnav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .nav-group { flex: none; }
}

/* Copy page: the downloadable writing skill pack */
.pack-card { display: flex; gap: 18px; align-items: flex-start; margin: 22px 0 0; padding: 20px; border-radius: 12px; background: #0e0e0e; color: #fff; }
.pack-av { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.pack-txt { display: grid; gap: 8px; }
.pack-txt .eyebrow-sm { color: #9a9590; }
.pack-txt b { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.pack-txt p { margin: 0; color: #c9c6c2; font-size: 14px; line-height: 1.5; }
.pack-list { list-style: none; margin: 2px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pack-list li { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: #222; color: #e9e8e6; }
.pack-card .btn.dark { background: #fff; color: #111; }
.pack-card .btn.dark:hover { background: #eee; }
.pack-card .btn:not(.dark) { background: #222; color: #fff; }
@media (max-width: 520px) { .pack-card { flex-direction: column; } }
.sd-grid.sd-top { margin-top: 32px; }

/* Design tab placeholders: full-bleed ASCII art */
.sd.sd-art { padding: 0; display: grid; place-items: center; }
.sd.sd-art pre { margin: 0; font: 600 2.12cqw/1.02 var(--mono); color: var(--ac); white-space: pre; letter-spacing: 0; }
.sd-meta { align-items: center; }

/* ---------- Copy page: content pillars planner ---------- */
.planner { margin: 44px 0 0; padding-top: 34px; border-top: 1px solid var(--line); }
.sec-h { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 8px; }
.planner .lib-intro { margin: 0 0 16px; }
.pl-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.pl-controls .chips { margin: 0; }
.pl-range { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); min-width: 200px; }
.pl-range b { color: var(--ink); font-weight: 600; }
.pl-range input { accent-color: var(--ink); }
.pl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pl-card { text-align: left; border: 0; background: var(--soft); border-radius: 10px; padding: 12px 14px; cursor: pointer; display: grid; gap: 5px; transition: opacity .2s, background .15s; font: inherit; color: inherit; }
.pl-card:hover { background: #efefee; }
.pl-card.off { opacity: .4; }
.pl-card.off .pl-top b { text-decoration: line-through; }
.pl-top { display: flex; align-items: center; gap: 8px; }
.pl-emoji { font-size: 16px; }
.pl-top b { font-weight: 500; font-size: 14px; }
.pl-top em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pl-what { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.pl-fmt { font-size: 11px; color: var(--ink-3); }
.pl-h { font-size: 15px; font-weight: 500; margin: 22px 0 10px; }
.pl-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pl-day { display: grid; align-content: start; gap: 6px; }
.pl-day small { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.pl-post { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 11.5px; line-height: 1.35; color: var(--ink-2); }
.pl-post span { display: block; font-size: 11px; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.pl-rest { font-size: 11px; color: var(--ink-3); padding: 8px 0; }
@media (max-width: 700px) {
  .pl-week { grid-template-columns: 1fr; }
  .pl-day { grid-template-columns: 44px 1fr; align-items: start; }
  .pl-day small { padding-top: 9px; }
  .pl-day .pl-post + .pl-post { grid-column: 2; }
  .pl-grid { grid-template-columns: 1fr; }
}
@media (min-width: 701px) {
  .pl-post { font-size: 12.5px; padding: 10px; }
}

/* planner: editable, draggable posts */
.pl-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 10px; }
.pl-head .pl-h { margin: 0; }
.pl-day { min-height: 60px; border-radius: 10px; padding: 4px; transition: background .15s; }
.pl-day.drop { background: var(--soft); }
.pl-post { cursor: grab; position: relative; min-width: 0; overflow-wrap: anywhere; }
.pl-post.dragging { opacity: .4; }
.pl-post-top { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.pl-pick, .pl-move { font: 500 11px var(--sans); color: var(--ink); border: 0; background: transparent; padding: 0; max-width: 100%; cursor: pointer; appearance: none; -webkit-appearance: none; }
.pl-pick { flex: 1; min-width: 0; text-overflow: ellipsis; }
.pl-pick:hover, .pl-move:hover { text-decoration: underline; }
.pl-tools { display: inline-flex; align-items: center; gap: 2px; opacity: 0; transition: opacity .15s; }
.pl-post:hover .pl-tools, .pl-post:focus-within .pl-tools { opacity: 1; }
.pl-move { color: var(--ink-3); font-weight: 400; }
.pl-del { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
.pl-del:hover { color: var(--ink); }
.pl-emo { flex: none; font-size: 11px; }
.pl-text { outline: none; cursor: text; min-height: 1.35em; border-radius: 4px; }
.pl-text:empty::before { content: "Write the post idea…"; color: var(--ink-3); }
.pl-text:focus { background: var(--soft-2); box-shadow: 0 0 0 3px var(--soft-2); }
.pl-add { border: 1px dashed var(--line-2); background: transparent; border-radius: 8px; padding: 6px; font-size: 11px; color: var(--ink-3); cursor: pointer; }
.pl-add:hover { color: var(--ink); border-color: #c9c6c2; }
@media (max-width: 700px) {
  .pl-tools { opacity: 1; }
  .pl-day { grid-template-columns: 44px 1fr; }
  .pl-day > .pl-post, .pl-day > .pl-add { grid-column: 2; }
}

/* Copy sub-tabs */
.sub-tabs { display: flex; gap: 4px; margin: 26px auto 0; padding: 3px; background: var(--soft); border-radius: 10px; width: fit-content; max-width: 100%; overflow-x: auto; }
.sub-tabs a { padding: 6px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.sub-tabs a:hover { color: var(--ink); }
.sub-tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
[data-sub="content"] .planner { margin-top: 26px; padding-top: 0; border-top: 0; }
[data-sub="skill"] .pack-card { margin-top: 26px; }

/* The week reads as one row per day: day label on the left, posts in a 3-column grid. */
@media (min-width: 701px) {
  .pl-week { grid-template-columns: 1fr; gap: 0; }
  .pl-day { position: relative; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 0 8px 52px; border-top: 1px solid var(--line); border-radius: 0; min-height: 0; }
  .pl-day small { position: absolute; left: 4px; top: 18px; }
  .pl-day.drop { border-radius: 10px; }
}
.pl-title { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 500; color: var(--ink); outline: none; cursor: text; border-radius: 4px; overflow-wrap: anywhere; }
.pl-title:empty::before { content: "Headline"; color: var(--ink-3); }
.pl-title:focus { background: var(--soft-2); box-shadow: 0 0 0 3px var(--soft-2); }
@media (min-width: 701px) { .pl-title { font-size: 12.5px; } }
.wrap.lib.design-page { max-width: 820px; }

/* Home card: scenes crossfade in place instead of blinking out and in */
#scene > .scene-slot { grid-area: 1 / 1; min-width: 0; transition: opacity .7s var(--ease-glide), filter .7s var(--ease-glide), transform .7s var(--ease-glide); }
#scene > .scene-slot.leave { opacity: 0; filter: blur(6px); transform: scale(.97); pointer-events: none; }
#scene .scene { animation: sceneIn .8s var(--ease-glide) both; animation-delay: .12s; }
#scene .v-cell, #scene .step-chip { animation-duration: .8s; }
@media (prefers-reduced-motion: reduce) { #scene > .scene-slot { transition: opacity .3s; } #scene > .scene-slot.leave { filter: none; transform: none; } }

/* Every content page shares the Builder picker's narrow column */
.wrap.lib, .wrap.lib.design-page { max-width: 640px; }

/* ---------- Calendar: FigJam-style 90-day board ---------- */
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; }
.cal-start { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.cal-start input { font: inherit; font-size: 13px; color: var(--ink); background: var(--soft); border: 0; border-radius: 999px; padding: 6px 12px; }
.cal-page { padding-bottom: 18px; }
/* the board breaks out of the narrow column: it's a canvas */
.board-wrap { width: calc(100vw - 32px); max-width: 1400px; margin: 0 auto 120px; overflow-x: auto; overflow-y: hidden; border-radius: 22px; background: #f6f5f3; overscroll-behavior-x: contain; scrollbar-width: thin; }
.board { position: relative; cursor: default; user-select: none; -webkit-user-select: none; }
.board.panning { cursor: grabbing; }
.b-ruler { position: absolute; inset: 0 0 auto 0; height: 58px; pointer-events: none; }
.br-week { position: absolute; top: 0; height: 100%; padding: 9px 10px 0; font-size: 12px; display: flex; gap: 6px; align-items: baseline; box-shadow: inset 1px 0 0 #e6e3de; }
.br-week b { font-weight: 500; color: var(--ink); }
.br-week span { color: var(--ink-3); }
.br-day { position: absolute; top: 34px; width: 34px; text-align: center; font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.br-day.wkend { color: #c4c0ba; }
.br-day.today { color: #fff; background: #111; border-radius: 999px; width: 24px; margin-left: 5px; line-height: 18px; top: 32px; }
.br-today { position: absolute; top: 56px; bottom: 0; width: 0; border-left: 1.5px solid #111; opacity: .25; }

.b-item { position: absolute; touch-action: none; cursor: grab; }
.b-item.lift { cursor: grabbing; z-index: 30; }
.b-text { outline: none; overflow-wrap: anywhere; }
.b-text[contenteditable="plaintext-only"], .b-text[contenteditable="true"] { cursor: text; user-select: text; -webkit-user-select: text; }
.b-item.sel { outline: 2px solid #111; outline-offset: 3px; }

.b-sticky { width: 148px; height: 148px; padding: var(--pad, 14px); border-radius: 6px; font-size: var(--fs, 14px); line-height: 1.35; color: #1a1a1a; transition: transform .15s; z-index: 2; }
.b-sticky .b-text { height: 100%; overflow: hidden; }
.b-sticky .b-text:empty::before { content: "Type something…"; color: rgba(0,0,0,.35); }
.b-sticky.lift { transform: rotate(0deg) scale(1.03) !important; }

.b-box { height: 42px; border-radius: 999px; display: flex; align-items: center; padding: 0 16px; font-size: 13px; font-weight: 500; z-index: 1; }
.b-box .b-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-box .h-l, .b-box .h-r { position: absolute; top: 0; bottom: 0; width: 12px; cursor: ew-resize; }
.b-box .h-l { left: 0; } .b-box .h-r { right: 0; }
.b-box.sel .h-l::after, .b-box.sel .h-r::after { content: ""; position: absolute; top: 50%; left: 50%; width: 4px; height: 16px; translate: -50% -50%; border-radius: 999px; background: currentColor; opacity: .5; }

.b-date { top: 56px; bottom: 0; width: 0; z-index: 3; }
.b-date::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; border-left: 2px solid var(--bg); }
.b-pin { position: absolute; top: 8px; left: 0; translate: -50% 0; background: var(--bg); color: var(--fg); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.b-pin::before { content: "★ "; }
.b-date.sel { outline: 0; }
.b-date.sel .b-pin { outline: 2px solid #111; outline-offset: 3px; }

.b-mini { position: absolute; z-index: 40; display: flex; align-items: center; gap: 6px; background: #111; border-radius: 999px; padding: 6px 8px; }
.b-mini button { border: 0; cursor: pointer; }
.b-mini [data-color] { width: 18px; height: 18px; border-radius: 999px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.b-mini [data-color].on { box-shadow: 0 0 0 2px #111, 0 0 0 3.5px #fff; }
.b-mini .b-sep { width: 1px; height: 16px; background: #444; margin: 0 2px; }
.b-mini .b-act { background: transparent; color: #fff; font-size: 15px; line-height: 1; padding: 0 4px; opacity: .8; }
.b-mini .b-act:hover { opacity: 1; }

/* floating toolbar, bottom centre, like FigJam */
.board-tools { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; z-index: 60; display: flex; gap: 4px; background: #111; border-radius: 999px; padding: 6px; }
.board-tools button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #fff; font: 500 13px var(--sans); padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background .15s; }
.board-tools button:hover { background: #2a2a2a; }
.bt-sticky { width: 16px; height: 16px; border-radius: 3px; background: #ffe873; rotate: -6deg; }
.bt-box { width: 22px; height: 10px; border-radius: 999px; background: #1f3cff; }
.bt-star { color: #ffe234; font-size: 15px; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .b-sticky { transition: none; } }

/* Copy sub-tabs: a sliding pill like the top menu */
.sub-tabs { position: relative; }
.sub-tabs a { position: relative; z-index: 1; }
.sub-tabs a.on { background: transparent; box-shadow: none; }
.sub-pill { --pill-x: 0px; --pill-w: 0px; position: absolute; top: 3px; bottom: 3px; left: 0; width: var(--pill-w); translate: var(--pill-x) 0; background: #fff; border-radius: 8px; pointer-events: none;
  transition: translate .32s var(--ease-glide), width .32s var(--ease-glide); }
[data-sub]:not([hidden]) { animation: subIn .32s var(--ease-glide) both; }
@keyframes subIn { from { opacity: 0; translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .sub-pill { transition: none; } [data-sub]:not([hidden]) { animation: none; } }
.tile.t-brand { display: grid; place-items: center; }
.tile.t-brand .t-logo { width: 34%; height: auto; }
.cal-tag-row { display: flex; justify-content: center; margin-top: 18px; }
.cal-tag { background: var(--soft); color: var(--ink); font-size: 14px; padding: 7px 14px; border-radius: 999px; }

/* sticky resize handle: drag the bottom-right corner */
.b-sticky .h-size { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; }
.b-sticky.sel .h-size::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px; border-right: 2px solid rgba(0,0,0,.35); border-bottom: 2px solid rgba(0,0,0,.35); border-bottom-right-radius: 3px; }

/* Funnel cards and their step boxes: no borders, just shades of grey */
.fcard .card { border: 0; background: #f5f4f2; transition: background .15s; }
.fcard:hover .card { background: #efeeeb; }
.flow .step { border: 0; background: #e6e4e1; border-radius: 6px; padding: 5px 8px; }
.pick { border: 0; background: #f5f4f2; transition: background .15s; }
.pick:hover { background: #efeeeb; }

/* Narrow screens: the 8 tabs scroll sideways instead of spilling off the screen */
@media (max-width: 600px) {
  .topnav { justify-content: flex-start; }
  .nav-group { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav-group::-webkit-scrollbar { display: none; }
  .topnav a { flex: none; }
}

/* the X logo at the end of a post's header row; the post step uses the same X post card */
.xp-who .xp-x { margin-left: auto; padding-left: 6px; display: inline-flex; }
.xp-who .xp-x .app-ico { width: 16px; height: 16px; }
.social-x { padding: 2px 0; }

/* Design tab: animated designs play live in a 16:9 frame */
.sd-live { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #f4f3f1; }
.sd-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.sd-meta .row { display: flex; gap: 6px; }
.design-title { margin: 34px 0 0; }
.design-title + .sd-grid.sd-top { margin-top: 22px; }

/* content planner header: the 4 mini tiles sit close together */
.v-scatter.plan-toss { grid-template-columns: repeat(2, 64px); gap: 4px 8px; padding-bottom: 6px; }
@media (max-width: 560px) { .v-scatter.plan-toss { grid-template-columns: repeat(2, 52px); } }

/* calendar header: same tight cluster as the planner, but staggered (right column dropped) so the two differ */
.v-scatter.cal-toss { grid-template-columns: repeat(2, 64px); gap: 2px 6px; padding: 0 0 14px; }
@media (max-width: 560px) { .v-scatter.cal-toss { grid-template-columns: repeat(2, 52px); } }

/* ---------- free vs full access: locked items + email gate ---------- */
.is-locked { position: relative; cursor: pointer; }
.is-locked > :not(.lock-pill) { filter: blur(5px); opacity: .45; pointer-events: none; user-select: none; }
.lock-pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s; }
.is-locked:hover .lock-pill { background: #000; }
.pack-card.is-locked .lock-pill { background: #fff; color: var(--ink); }

.gate-ov { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: gate-in .25s var(--ease-glide); }
@keyframes gate-in { from { opacity: 0; } }
.gate-card { position: relative; width: min(420px, 100%); padding: 32px 26px 24px; border-radius: 20px; background: #f5f4f2; text-align: center; }
.gate-card.inline { margin: 40px auto 0; }
.gate-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font-size: 22px; line-height: 1; cursor: pointer; }
.gate-x:hover { background: #ebe9e6; color: var(--ink); }
.gate-form { display: grid; gap: 10px; }
.gate-emoji { font-size: 40px; line-height: 1; }
.gate-h { margin: 4px 0 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.gate-p { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.gate-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gate-form .sub-row .inp { background: #fff; }
.gate-form button:disabled { opacity: .6; cursor: default; }

/* "by Jack Haldorsson" under the home hero buttons */
.hero-by { display: inline-flex; align-self: center; align-items: center; gap: 8px; margin: 26px auto 0; font-size: 14px; color: var(--ink-3); transition: color .15s; }
.hero-by img { width: 22px; height: 22px; border-radius: 999px; }
.hero-by:hover { color: var(--ink); }

/* footer byline: same photo + name link as the home hero */
.byline { pointer-events: auto; padding: 8px 16px 28px; }
.byline .hero-by { margin: 0; }
/* two authors on one line: "by [photo] Jack & [photo] Shann"; wraps on narrow phones */
.by-pair { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--ink-3); }

/* locked prompt card: keep the headline + buttons sharp so people see what they unlock */
.skill-card.is-locked > .cc-head { filter: none; opacity: 1; }

/* Calendar → whiteboard tab: the same canvas with no dates, just a faint dot grid */
.cal-bar.wb { justify-content: flex-end; }
.board.wb { background-image: radial-gradient(circle, #dcd9d4 1.2px, transparent 1.3px); background-size: 24px 24px; background-position: 12px 12px; }

/* Funnel previews on a computer: X steps sit in the X desktop layout (left rail, timeline, right column) */
.pv.xd { container-type: inline-size; }
.xd-shell { display: grid; grid-template-columns: 52px minmax(0, 1fr) 150px; min-height: 360px; }
.xd-nav { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; }
.xd-logo { display: inline-flex; margin-bottom: 4px; }
.xd-logo .app-ico { width: 20px; height: 20px; }
.xd-nav i { width: 18px; height: 18px; border-radius: 999px; background: #ecebe8; }
.xd-nav b { margin-top: 6px; width: 34px; height: 34px; border-radius: 999px; background: var(--ink); color: transparent; overflow: hidden; font-size: 0; }
.xd-feed { box-shadow: inset 1px 0 0 #eeedeb, inset -1px 0 0 #eeedeb; min-width: 0; }
.xd-feed .profile { font-size: 12px; background: #fff; overflow: hidden; }
.xd-side { padding: 12px 12px; display: grid; align-content: start; gap: 10px; }
.xd-search { display: block; background: #f1f0ee; border-radius: 999px; padding: 7px 12px; color: var(--ink-3); font-size: 11px; }
.xd-box { background: #f6f5f3; border-radius: 12px; padding: 10px 12px 12px; display: grid; gap: 8px; }
.xd-box b { font-size: 12px; font-weight: 700; }
.xd-box i { height: 7px; border-radius: 999px; background: #e6e4e0; }
.xd-box i.s { width: 60%; }
@container (max-width: 520px) { .xd-shell { grid-template-columns: 44px minmax(0, 1fr); } .xd-side { display: none; } }

/* promoted post + creator video inside an X post */
.xp-ad { margin-left: auto; padding-left: 6px; color: var(--ink-3); font-size: 11px; }
.xp-card-img.big { height: auto; aspect-ratio: 16 / 9; padding: 0 22px; }
.xp-card-img.big b { font-size: 22px; line-height: 1.12; text-align: center; max-width: 90%; }
.xp-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; display: flex; align-items: flex-end; padding: 14px; background: #161616; margin: 2px 0 6px; }
.xp-video .pv-h { position: relative; margin: 0; color: #fff; font-size: 20px; max-width: 80%; }
.xp-video .play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; font-size: 16px; }
.xp-video .dur { position: absolute; left: 10px; top: 10px; font-size: 10px; color: #fff; background: rgba(0,0,0,.5); padding: 1px 6px; border-radius: 4px; }
.xp-note { color: var(--ink-3); font-size: 11px; margin: 0 0 6px; }

/* optional funnel steps (the teaser): lighter in the flow strip, a small tag next to the title */
.flow .step.opt { opacity: .5; }
.opt-tag { font-style: normal; font-size: 11px; font-weight: 500; color: var(--ink-3); background: var(--soft); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }

.xp-card-vid { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #f7f7f7; }

/* hook library */
.hook-jump { margin: 4px 0 22px; }
.hook-lib { display: grid; gap: 34px; margin-bottom: 40px; }
.hook-cat { scroll-margin-top: 90px; }
.hook-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.hook-emoji { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-size: 22px; }
.hook-head h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.hook-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; }
.hook-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hook-list li { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; border-radius: 12px; background: var(--soft); }
.hook-list .n { flex: none; width: 22px; color: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.hook-list p { flex: 1; margin: 0; font-size: 16px; line-height: 1.4; }
.hook-list li .btn { flex: none; opacity: 0; transition: opacity .15s; }
.hook-list li:hover .btn, .hook-list li:focus-within .btn { opacity: 1; }
@media (hover: none) { .hook-list li .btn { opacity: 1; } }
em.blank { font-style: normal; color: var(--accent); background: rgba(47,107,255,.08); border-radius: 6px; padding: 0 4px; }

/* design page: click a design and it grows to a full row on the page, wider than the column */
.sd-card { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.sd-live[data-zoom] { cursor: zoom-in; }
.sd-card.is-big { grid-column: 1 / -1; width: min(1200px, calc(100vw - 32px)); margin-left: calc(50% - min(600px, 50vw - 16px)); }
.sd-card.is-big .sd-live[data-zoom] { cursor: zoom-out; }
@media (prefers-reduced-motion: reduce) { .sd-card { transition: none; } }

/* launch lock: tabs that open later */
.topnav [data-nav].is-soon { opacity: .4; }
.soon-page { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 16px; }
.soon-h { margin: 0; font-size: clamp(48px, 9vw, 104px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.soon-h span { color: #b9b7b3; }
.soon-p { margin: 22px 0 0; font-size: 19px; color: #6f6d68; }
.soon-row { margin-top: 28px; justify-content: center; gap: 10px; }

/* ---------- Home hero: big headline, smaller live card on top ---------- */
.home-wrap { max-width: 1040px; }
.hero h1 { font-size: clamp(36px, 6.2vw, 72px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; margin: 28px 0 16px; }
.hero p { font-size: 18px; margin: 0 0 26px; }
.hero-stage { width: 412px; max-width: 100%; margin: 0 auto; zoom: .74; }
@media (max-width: 480px) {
  .hero h1 { font-size: 38px; }
  .hero-stage { zoom: .82; }
}

/* guide images: a picture banner instead of the tile, and infographics inside the text */
.guide-img { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 0 0 22px; }
.prose figure { margin: 26px 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

/* ---------- Models: classic models drawn from the site's own parts ---------- */
.models-page .mods { display: grid; gap: 40px; margin-top: 26px; }
.mod { display: block; }
.mod[hidden] { display: none; }
.mod-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mod-head h3 { font-size: 15px; font-weight: 500; margin: 0; }
.mod-head .open { font-size: 13px; color: var(--ink-3); white-space: nowrap; transition: color .15s; }
.mod:hover .open { color: var(--ink); }
.mod > p { margin: 2px 0 10px; color: var(--ink-2); font-size: 14px; }
.mod .m-panel { margin: 0; transition: background .15s; }
.mod:hover .m-panel { background: #efeeeb; }

/* header: the three tiles sit in one row */
.v-scatter.models-toss { grid-template-columns: repeat(3, 64px); gap: 4px 8px; padding-bottom: 6px; }
@media (max-width: 560px) { .v-scatter.models-toss { grid-template-columns: repeat(3, 52px); } }

/* the grey panel every diagram sits in */
.m-panel { background: #f5f4f2; border-radius: 12px; padding: 18px; margin: 0 0 28px; font-size: 14px; }
.m-cap { display: flex; justify-content: space-between; margin: 0 0 12px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
/* one part: a title and a small grey hint. White by default, yellow when it is the key part. */
.m-part { background: #fff; border-radius: 10px; padding: 12px; min-width: 0; }
.m-part b { display: block; font-weight: 500; }
.m-part span { display: block; color: var(--ink-3); font-size: 13px; }
.m-part.key, .m-row.key, .m-nest.key { background: #fff7d1; }
.m-part.key span, .m-row.key .n, .m-row.key .h, .m-nest.key > .lbl span { color: var(--mark-ink); }
.m-part.risk { background: #e6e4e1; }

/* rows: numbered steps, one after another */
.m-row { display: flex; align-items: baseline; gap: 14px; background: #fff; border-radius: 10px; padding: 12px 14px; }
.m-row .n { flex: none; width: 20px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.m-row b { font-weight: 500; }
.m-row .h { margin-left: auto; color: var(--ink-3); font-size: 13px; text-align: right; }
.m-join { display: block; width: 1px; height: 12px; background: #b9b5b0; margin-left: 24px; }

/* nest: boxes inside each other */
.m-nest { border-radius: 12px; padding: 12px; }
.m-nest.l0 { background: #fff; }
.m-nest.l1 { background: #efeeeb; }
.m-nest.key { padding-bottom: 2px; }
.m-nest > .lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 4px 10px; }
.m-nest > .lbl b { font-weight: 500; }
.m-nest > .lbl span { color: var(--ink-3); font-size: 13px; text-align: right; }

/* grid: 2x2 with axis labels */
.m-grid { display: grid; grid-template-columns: 74px 1fr 1fr; gap: 6px; }
.m-grid .ax { align-self: center; color: var(--ink-3); font-size: 12px; }
.m-grid .ax.top { text-align: center; }
.m-grid .m-part { min-height: 84px; }

/* loop: four steps in a circle */
.m-loop4 { display: grid; grid-template-columns: 1fr 28px 1fr; grid-template-rows: auto 26px auto; align-items: center; }
.m-loop4 .m-part { text-align: center; }
.m-loop4 .arr, .m-loop4 .mid { text-align: center; color: #b9b5b0; line-height: 1; }
.m-loop4 .mid { color: var(--ink-3); }

/* funnel: each stage narrower than the one above */
.m-funnel { display: grid; gap: 6px; justify-items: center; }
.m-funnel .m-part { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: var(--w); padding: 11px 14px; }
.m-funnel .m-part span { white-space: nowrap; }
.m-note.c { text-align: center; }

/* sentences: the model as short lines, key words in boxes */
.m-tale { display: grid; gap: 8px; }
.m-tale .line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 15px; color: var(--ink-2); }
.m-tag { background: #f5f4f2; border-radius: 6px; padding: 3px 9px; font-weight: 500; color: var(--ink); }
.m-tag.key { background: #fff7d1; color: var(--mark-ink); }
.m-tag.risk { background: #e6e4e1; color: var(--ink-2); }

/* curve: the adoption curve, broken at the chasm */
.m-curve { position: relative; height: 150px; }
.m-curve svg { display: block; width: 100%; height: 100%; overflow: visible; }
.m-gap { position: absolute; top: 18px; translate: -50% 0; padding: 0 6px; background: #f5f4f2; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; transition: background .15s; }
.mod:hover .m-gap { background: #efeeeb; }
.m-clbl { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 2fr; margin-top: 8px; font-size: 12px; text-align: center; color: var(--ink-2); }
.m-sides { display: grid; gap: 14px; margin-top: 12px; }
.m-sides .m-part { text-align: center; }

/* inputs: inputs → the star → the result */
.m-ns { display: grid; grid-template-columns: 1fr auto 1.3fr auto 1fr; gap: 8px; align-items: center; }
.m-ns .arr { color: #b9b5b0; }
.m-ins { display: grid; gap: 4px; }
.m-ins .m-part { padding: 7px 10px; }
.m-ins .m-part b { font-size: 13px; }
.m-ins .m-part span { font-size: 12px; }
.m-h { margin: 0 2px 2px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.m-star em { display: inline-block; margin-top: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,.6); font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--mark-ink); }

/* hub: a centre box with four boxes pressing in */
.m-hub { display: grid; grid-template-columns: 1fr 22px 1.2fr 22px 1fr; grid-template-rows: auto 22px auto 22px auto; align-items: center; text-align: center; }
.m-hub .arr { color: #b9b5b0; line-height: 1; }
.m-hub .h-t { grid-area: 1 / 3; } .m-hub .h-a1 { grid-area: 2 / 3; }
.m-hub .h-l { grid-area: 3 / 1; } .m-hub .h-a2 { grid-area: 3 / 2; }
.m-hub .h-c { grid-area: 3 / 3; } .m-hub .h-a3 { grid-area: 3 / 4; }
.m-hub .h-r { grid-area: 3 / 5; } .m-hub .h-a4 { grid-area: 4 / 3; }
.m-hub .h-b { grid-area: 5 / 3; }

/* match: two sides that fit row by row */
.m-match { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 6px 0; align-items: stretch; }
.m-match .arr { align-self: center; text-align: center; color: #b9b5b0; }

/* threshold: one question, a bar split at the mark */
.m-q { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 22px; font-size: 15px; color: var(--ink-2); }
.m-bar { position: relative; display: grid; grid-template-columns: var(--mark) 1fr; gap: 4px; }
.m-bar .m-part { border-radius: 8px; }
.m-mark { position: absolute; left: var(--mark); top: -18px; translate: -50% 0; font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.m-mark::after { content: ""; position: absolute; left: 50%; top: 15px; width: 1px; height: 6px; background: var(--ink-3); }

/* flow ends: a word under the first and the last box */
.m-ends { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }

/* bridge: before, the product, after */
.m-bab { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; }
.m-bab .before { background: #e6e4e1; }
.m-bab .bridge { display: grid; place-content: center; text-align: center; }
.m-bab .after { background: #fff7d1; }
.m-bab .before b, .m-bab .after b { font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin-bottom: 6px; }
.m-bab .after b { color: var(--mark-ink); }
.m-bab .before span, .m-bab .after span { color: var(--ink); font-size: 14px; }

/* tiles: side by side */
.m-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }

/* flow: boxes in a row with + or → between them */
.m-flow { display: flex; align-items: stretch; gap: 6px; }
.m-flow .m-part { flex: 1; }
.m-flow .j { align-self: center; color: #b9b5b0; font-size: 15px; }
.m-note { margin: 12px 2px 0; color: var(--ink-3); font-size: 13px; }

@media (max-width: 520px) {
  .m-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-grid { grid-template-columns: 56px 1fr 1fr; }
  .m-row .h { font-size: 12px; }
  /* flow rows stack on phones, so each box keeps the full width; → points down */
  .m-flow { flex-direction: column; gap: 4px; }
  .m-flow .j { line-height: 1; }
  .m-flow .j.down { rotate: 90deg; }
  .m-ends { display: none; }
  .m-ns { grid-template-columns: 1fr; }
  .m-ns .arr { rotate: 90deg; text-align: center; }
  .m-ins { grid-template-columns: 1fr 1fr; }
  .m-h { grid-column: 1 / -1; }
  .m-funnel .m-part { flex-direction: column; gap: 0; }
  .m-clbl { font-size: 11px; }
  .m-hub { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 6px; }
  .m-hub .arr { display: none; }
  .m-hub .m-part { grid-area: auto; }
  .m-hub .h-c { grid-column: 1 / -1; order: -1; }
  .m-match { grid-template-columns: 1fr 20px 1fr; }
  .m-match .m-part span { font-size: 12px; }
}

/* Model page */
.model-page .copy-h1 { margin-top: 10px; }
.model-page .lib-intro { margin: 0 0 18px; }
.model-page .eyebrow-sm { margin-top: 0; }
.how { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.how li { display: flex; align-items: baseline; gap: 14px; padding: 12px 12px 12px 16px; border-radius: 12px; background: var(--soft); }
.how .n { flex: none; width: 22px; color: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.how p { margin: 0; font-size: 15px; line-height: 1.45; }
