/* MyBuilder
   Plaster, charcoal, one green. One idea per screen. More space than words. */

:root {
  --plaster: #F3EFE8;
  --plaster-2: #E9E3D8;
  --ink: #16181A;
  --ink-2: #4A4B4D;
  --stone: #8A8781;
  --vial: #CFF531;
  --vial-deep: #9FC90A;
  --line: rgba(22, 24, 26, 0.12);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1120px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--vial); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top ---------- */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark { font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; line-height: 1; }
.top-nav { display: flex; gap: 24px; align-items: center; font-size: 15px; }
.top-nav a:not(.btn) { color: var(--ink-2); }
.top-nav a:not(.btn):hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--plaster);
  padding: 18px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--vial);
  transition: transform .25s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -14px rgba(22,24,26,.6); }
.btn:hover::before { transform: scale(1.25); }
.btn-sm { padding: 11px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { box-shadow: none; background: rgba(22,24,26,.04); }
.link { color: var(--ink-2); font-size: 16px; border-bottom: 1px solid transparent; }
.link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- type ---------- */
.eyebrow, .label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 28px;
}
.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  max-width: 14ch;
  text-wrap: balance;
}
.h1 em, .h2 em { font-style: italic; color: var(--ink-2); }
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  max-width: 18ch;
  text-wrap: balance;
}
.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 36px;
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter) 72px;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.js .hero > * { opacity: 0; transform: translateY(12px); animation: rise .9s ease forwards; }
.js .hero > *:nth-child(2) { animation-delay: .08s; }
.js .hero > *:nth-child(3) { animation-delay: .16s; }
.js .hero > *:nth-child(4) { animation-delay: .24s; }
.js .hero > *:nth-child(5) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-cta { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }

.vsl {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(22,24,26,.5);
}
.vsl iframe, .vsl video { width: 100%; height: 100%; display: block; border: 0; }
.vsl-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background-image:
    radial-gradient(60% 80% at 70% 110%, rgba(207,245,49,.22), transparent 70%),
    linear-gradient(rgba(243,239,232,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,239,232,.05) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}
.play {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--vial); color: var(--ink);
  display: grid; place-items: center;
  padding-left: 4px;
}

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 140px var(--gutter); }

/* system */
.journey {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  position: relative;
}
.journey::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 13px;
  height: 1px; background: var(--line);
}
.journey::after {
  content: ""; position: absolute; left: 12px; top: 13px; height: 1px; width: 0;
  background: var(--vial-deep);
  transition: width 1.6s cubic-bezier(.2,.8,.2,1);
}
.journey.on::after { width: calc(100% - 24px); }
.journey li { position: relative; padding: 0 28px 0 0; }
.j-n {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--plaster); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--stone);
  position: relative; z-index: 1;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.journey.on .j-n { background: var(--vial); border-color: var(--vial); color: var(--ink); }
.journey.on li:nth-child(1) .j-n { transition-delay: .05s; }
.journey.on li:nth-child(2) .j-n { transition-delay: .35s; }
.journey.on li:nth-child(3) .j-n { transition-delay: .65s; }
.journey.on li:nth-child(4) .j-n { transition-delay: .95s; }
.journey.on li:nth-child(5) .j-n { transition-delay: 1.25s; }
.j-t { display: block; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -0.01em; margin: 22px 0 8px; }
.j-s { display: block; color: var(--ink-2); font-size: 15px; line-height: 1.4; }

.system-foot { margin: 56px 0 0; color: var(--ink-2); max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); }

/* picker — pick a lane per system */
.picker { border-top: 1px solid var(--line); margin-top: 8px; }
.picker-head, .pick {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.picker-head {
  padding: 14px 0 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1.4fr .5fr .5fr;
}
.picker-head span:nth-child(2), .picker-head span:nth-child(3) { text-align: center; }
.pick { padding: 22px 0; border-bottom: 1px solid var(--line); }
.pick-what strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 6px; }
.pick-what span { color: var(--ink-2); font-size: 16px; }
.seg {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--plaster-2);
  border-radius: 999px; padding: 4px;
  position: relative;
}
.seg::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px); border-radius: 999px;
  background: var(--ink);
  opacity: 0; transform: translateX(0);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}
.seg[data-on="direct"]::before { opacity: 1; transform: translateX(0); }
.seg[data-on="run"]::before { opacity: 1; transform: translateX(100%); }
.seg button {
  position: relative; z-index: 1;
  appearance: none; border: 0; background: transparent;
  font: inherit; font-size: 15px; font-weight: 500;
  color: var(--ink-2);
  padding: 12px 10px; border-radius: 999px; cursor: pointer;
  transition: color .2s ease;
}
.seg button[aria-checked="true"] { color: var(--plaster); }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"]:hover { color: var(--plaster); }
.pick.custom .pick-what strong { color: var(--ink-2); }
.picker-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 28px 0 0;
}
.picker-sum { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); color: var(--ink-2); }
.picker-sum b { color: var(--ink); font-weight: 400; }
.picker-note { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; max-width: 52ch; }
.picker-actions { display: flex; align-items: center; gap: 24px; }
.picker-actions .link { appearance: none; background: none; border: 0; border-bottom: 1px solid transparent; padding: 0; cursor: pointer; font: inherit; font-size: 16px; color: var(--ink-2); }
.picker-actions .link:hover { color: var(--ink); border-color: var(--ink); }

/* week one */
.journey.days { grid-template-columns: repeat(7, 1fr); }
.journey.days .j-t { font-size: clamp(19px, 1.7vw, 24px); }
.journey.days .j-s { font-size: 14px; }
.journey.days li { padding-right: 18px; }
.journey.on.days li:nth-child(6) .j-n { transition-delay: 1.55s; }
.journey.on.days li:nth-child(7) .j-n { transition-delay: 1.85s; }

/* burned */
.contrast { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contrast li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
  align-items: baseline;
}
.contrast .x {
  color: var(--stone);
  text-decoration: line-through;
  text-decoration-color: rgba(138,135,129,.55);
  text-decoration-thickness: 1px;
}
.contrast .y { font-family: var(--serif); font-size: 1.24em; letter-spacing: -0.01em; }

/* slab — Level */
.slab-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 140px; }
.slab {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--plaster);
  border-radius: 28px;
  padding: 44px;
  background-image:
    linear-gradient(rgba(243,239,232,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,239,232,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: 22px 22px;
}
.slab::after {
  content: "";
  position: absolute;
  right: -18%; bottom: -46%;
  width: 62%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(207,245,49,.18), transparent 72%);
  pointer-events: none;
}
.slab > * { position: relative; z-index: 1; }
.slab-head { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; }
.slab-book { margin-left: auto; font-size: 15px; color: var(--vial); border-bottom: 1px solid transparent; white-space: nowrap; }
.slab-book:hover { border-color: var(--vial); }
.avatar {
  width: 56px; height: 56px; flex: none;
  border-radius: 14px;
  background: rgba(243,239,232,.06);
  border: 1px solid rgba(243,239,232,.12);
  display: grid; place-items: center;
}
.name { font-family: var(--serif); font-size: 30px; margin: 0; line-height: 1; }
.role { margin: 6px 0 0; color: rgba(243,239,232,.6); font-size: 14px; }

.chat {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 120px; max-height: 460px; overflow-y: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(243,239,232,.2) transparent;
}
.msg {
  max-width: min(72%, 560px);
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.from-level {
  align-self: flex-start;
  background: rgba(243,239,232,.07);
  border: 1px solid rgba(243,239,232,.09);
  border-bottom-left-radius: 6px;
}
.from-you {
  align-self: flex-end;
  background: var(--vial);
  color: var(--ink);
  border-bottom-right-radius: 6px;
}
.msg.err { color: rgba(243,239,232,.7); font-style: italic; }
.typing { display: inline-flex; gap: 5px; align-items: center; padding: 18px 20px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(243,239,232,.6); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 18px; }
.chips:empty { display: none; }
.chip {
  background: transparent;
  color: var(--plaster);
  border: 1px solid rgba(243,239,232,.22);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit; font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.chip:hover { border-color: var(--vial); background: rgba(207,245,49,.08); }

.composer {
  display: flex; gap: 8px; align-items: center;
  background: rgba(243,239,232,.06);
  border: 1px solid rgba(243,239,232,.14);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  transition: border-color .2s;
}
.composer:focus-within { border-color: rgba(207,245,49,.6); }
.composer input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--plaster);
  font: inherit; font-size: 16px;
}
.composer input::placeholder { color: rgba(243,239,232,.42); }
.send {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 0;
  background: var(--vial); color: var(--ink);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  transition: transform .15s ease;
}
.send:hover { transform: translateX(2px); }
.send:disabled { opacity: .5; cursor: default; transform: none; }

/* promise */
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promise-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 56px 40px 44px;
  background: #fff;
}
.promise-card .big {
  display: block;
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 104px);
  line-height: .95;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.promise-card p { margin: 0; font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); }

/* free */
.free .lede { margin-bottom: 40px; }

/* book */
.book .h2 { margin-bottom: 24px; }
.book .lede { margin-bottom: 40px; }
.ghl {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  min-height: 700px;
}
.ghl iframe { width: 100%; min-height: 700px; border: 0; display: block; }

/* foot */
.foot {
  max-width: var(--max); margin: 0 auto;
  padding: 36px var(--gutter) 48px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: var(--stone);
  border-top: 1px solid var(--line);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .promise-grid { grid-template-columns: 1fr; }
  .picker-head { display: none; }
  .pick { grid-template-columns: 1fr; gap: 14px; }
  .picker-foot { flex-direction: column; align-items: flex-start; }
  .journey { grid-template-columns: 1fr; row-gap: 28px; padding-left: 40px; }
  .journey::before, .journey::after { left: 12px; right: auto; top: 12px; bottom: 12px; width: 1px; height: auto; }
  .journey::after { height: 0; bottom: auto; transition: height 1.6s cubic-bezier(.2,.8,.2,1); }
  .journey.on::after { width: 1px; height: calc(100% - 24px); }
  .journey li { padding: 0; }
  .j-n { position: absolute; left: -40px; top: 0; }
  .j-t { margin-top: 0; }
}
@media (max-width: 760px) {
  .section { padding: 96px var(--gutter); }
  .slab-wrap { padding-bottom: 96px; }
  .slab { padding: 28px 22px; border-radius: 22px; }
  .contrast li { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .msg { max-width: 88%; }
  .top-nav a:not(.btn) { display: none; }
  .hero { padding-top: 48px; }
  .hero-cta { margin-bottom: 48px; }
  .vsl { border-radius: 18px; }
  .promise-card { padding: 40px 28px 32px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero > * { animation: none; opacity: 1; transform: none; }
  .journey::after, .j-n { transition: none; }
  .typing i { animation: none; opacity: .7; }
}

/* ---------- /ualberta ---------- */
.hero-tight { min-height: 0; padding-bottom: 24px; }
.hero-tight .hero-cta { margin-bottom: 0; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line); padding-top: 40px; }
.role-grid .n { font-family: var(--serif); font-size: 48px; line-height: 1; display: block; margin-bottom: 14px; letter-spacing: -0.02em; }
.role-grid p { margin: 0; color: var(--ink-2); max-width: 30ch; }
.contrast.plain li { grid-template-columns: 1fr; }
.ghl-form { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; min-height: 720px; margin-top: 40px; }
.ghl-form iframe { width: 100%; min-height: 720px; display: block; border: 0; }
@media (max-width: 760px) {
  .role-grid { grid-template-columns: 1fr; gap: 30px; }
  .ghl-form { border-radius: 18px; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 56px var(--gutter) 120px; }
.legal .label { margin-bottom: 20px; }
.legal-h1 { font-size: clamp(38px, 5vw, 64px); text-align: left; margin-bottom: 14px; max-width: 18ch; }
.legal-date { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--stone); margin: 0 0 48px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -0.01em; line-height: 1.1; margin: 48px 0 12px; }
.legal p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.6; }
.legal p strong { color: var(--ink); font-weight: 500; }
.legal a { color: var(--ink); border-bottom: 1px solid var(--line); }
.legal a:hover { border-color: var(--ink); }
.foot-links a { border-bottom: 1px solid transparent; }
.foot-links a:hover { border-color: var(--stone); }
