@font-face { font-family: "Bricolage"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("fonts/instrument.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("fonts/instrument-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #13141c;
  --ink-2: #3b3d4d;
  --paper: #ffffff;
  --mist: #eef1ff;
  --cobalt: #2b3ff0;
  --cobalt-2: #1c29b8;
  --sun: #ffd43b;
  --coral: #ff6b5e;
  --leaf: #22b573;
  --sky: #a9dcff;
  --line: 2.5px solid var(--ink);
  --r: 16px;
  --display: "Bricolage", "Arial Black", system-ui, sans-serif;
  --body: "Instrument", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  --focus: var(--cobalt);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-family: var(--display); line-height: 1; margin: 0; letter-spacing: -0.02em; font-variation-settings: "opsz" 96; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--sun); padding: 10px 14px; border-radius: 10px; z-index: 50; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; }
.section-head p { margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }

/* ---------- nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; max-width: 1180px; margin: 0 auto; color: #fff; --focus: var(--sun); }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 3px; }
.caret { display: inline-block; width: 3px; height: 1.05em; background: var(--sun); animation: blink 1.05s steps(1) infinite; }
.nav nav { display: flex; gap: 6px; }
.nav nav a { text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.nav nav a:hover { background: rgba(255,255,255,.14); }
@media (max-width: 640px) { .nav nav { display: none; } }

/* ---------- hero ---------- */
.hero { background: var(--cobalt); color: #fff; padding: 110px 0 72px; position: relative; overflow: hidden; --focus: var(--sun); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1.4px, transparent 1.6px); background-size: 26px 26px; pointer-events: none; }
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(3.6rem, 10.5vw, 8.4rem); font-weight: 800; line-height: .9; letter-spacing: -0.035em; }
.hl { color: var(--sun); }
.lede { margin-top: 26px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34ch; color: rgba(255,255,255,.92); }
.lede strong { color: #fff; }
.lede-2 { margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.1vw, 1.65rem); color: #fff; }

.ask-demo { position: relative; padding: 46px 0 40px; }
.chatbox { background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 24px; padding: 20px 22px 16px; box-shadow: 8px 8px 0 var(--sun); position: relative; z-index: 1; --focus: var(--cobalt); }
.chatbox-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 100px; }
.chatbox-label { font-size: .8rem; font-weight: 600; color: #6a6d80; }
.chatbox-top .tiny-btn { padding: 3px 9px; font-size: .78rem; color: #6a6d80; border-width: 1.5px; }
.typer { font-family: var(--mono); font-size: clamp(1.05rem, 1.9vw, 1.3rem); line-height: 1.45; min-height: 5.8em; margin-top: 8px; }
.type-caret { display: inline-block; width: 2px; height: 1.2em; margin-left: 2px; background: var(--cobalt); vertical-align: -0.2em; animation: blink 1.05s steps(1) infinite; }
.chatbox-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 2px dashed #d6d9ea; }
.chatbox-try { margin-left: auto; font-size: .9rem; color: #6a6d80; }
.go { text-decoration: none; font-weight: 700; font-size: .95rem; padding: 9px 14px; border-radius: 12px; border: 2px solid var(--ink); transition: transform .12s ease, background .12s ease; }
.go:hover { transform: translateY(-2px); }
.go:active { transform: translateY(0); }
.go-claude { background: var(--sun); }
.go-gpt { background: var(--sky); }
.tiny-btn { background: transparent; border: 2px solid currentColor; border-radius: 10px; padding: 6px 11px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.tiny-btn:hover { background: var(--mist); }
.tiny-btn-dark { margin-top: 22px; }
.tiny-btn-dark:hover { background: rgba(255,255,255,.35); }

.boxy { position: absolute; width: 112px; right: -6px; top: -26px; z-index: 2; transform: rotate(8deg); animation: bob 3.2s ease-in-out infinite; }
.boxy-body { fill: #fff; stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; }
.boxy-white { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.boxy-pupil { fill: var(--ink); transition: transform .08s linear; }
.boxy-cursor { fill: var(--cobalt); animation: blink 1.05s steps(1) infinite; }
.sticker { position: absolute; z-index: 2; left: -18px; bottom: -6px; background: var(--coral); color: var(--ink); border: 3px solid var(--ink); border-radius: 50%; width: 132px; height: 132px; display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 700; font-size: .95rem; line-height: 1.12; transform: rotate(-12deg); }

@media (max-width: 900px) {
  .hero { padding-top: 92px; }
  .hero-inner { grid-template-columns: 1fr; }
  .ask-demo { padding-bottom: 100px; }
  .sticker { left: 4px; bottom: 0; width: 108px; height: 108px; font-size: .85rem; }
}
@media (max-width: 520px) {
  .boxy { width: 88px; top: -20px; right: -4px; }
  .chatbox { padding: 16px 16px 14px; }
  .chatbox-try { width: 100%; margin-left: 0; order: -1; }
  .typer { min-height: 7.4em; }
}

/* ---------- ticker ---------- */
.ticker { background: var(--sun); border-block: 3px solid var(--ink); overflow: hidden; padding: 14px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker-track span { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); white-space: nowrap; padding: 0 18px; display: inline-flex; align-items: center; gap: 36px; }
.ticker-track span::after { content: "✳"; color: var(--cobalt); font-size: .9em; }

/* ---------- asks ---------- */
.underline { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 30 2, 50 12, 80 6 S 140 2, 198 7' fill='none' stroke='%23ff6b5e' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% .32em; padding-bottom: .12em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter { border: 2px solid var(--ink); background: #fff; border-radius: 12px; padding: 9px 15px; font-weight: 600; cursor: pointer; transition: background .12s ease; }
.filter:hover { background: var(--mist); }
.filter.is-on { background: var(--ink); color: #fff; }
.ask-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.ask { --acc: var(--cobalt); border: var(--line); border-radius: var(--r); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px; background: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.ask:hover { transform: translate(-2px, -3px); box-shadow: 5px 6px 0 var(--acc); }
.ask[data-cat="think"] { --acc: var(--coral); }
.ask[data-cat="make"] { --acc: var(--leaf); }
.ask[data-cat="learn"] { --acc: var(--sun); }
.ask[data-cat="life"] { --acc: var(--sky); }
.ask[data-cat="work"] { --acc: var(--ink); }
.ask-cat { font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ask-cat::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--acc); border: 1.5px solid var(--ink); }
.ask-text { font-family: var(--mono); font-size: .95rem; line-height: 1.5; background: var(--mist); border-radius: 12px 12px 12px 4px; padding: 13px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-get { font-size: .98rem; }
.ask-get b { font-family: var(--display); }
.ask-needs { font-size: .86rem; color: var(--ink-2); display: flex; gap: 6px; }
.ask-needs::before { content: "↳"; font-weight: 700; color: var(--ink); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ask .card-actions { margin-top: auto; }
.act { flex: 1 1 auto; text-align: center; text-decoration: none; font-weight: 700; font-size: .92rem; padding: 9px 12px; border-radius: 11px; border: 2px solid var(--ink); background: #fff; cursor: pointer; transition: transform .12s ease, background .12s ease; min-height: 42px; }
.act:hover { transform: translateY(-2px); }
.act:active { transform: none; }
.act-copy { flex: 0 0 auto; }
.act-copy.did { background: var(--leaf); color: #fff; }
.act-claude { background: var(--sun); }
.act-gpt { background: var(--sky); }
.more-btn { display: block; margin: 26px auto 0; background: var(--ink); color: #fff; border: 0; border-radius: 14px; padding: 14px 24px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; cursor: pointer; box-shadow: 5px 5px 0 var(--sun); transition: transform .12s ease; }
.more-btn:hover { transform: translate(-2px, -2px); }
.more-btn[hidden] { display: none; }
.grid-note { margin-top: 22px; color: var(--ink-2); font-size: .95rem; }
.grid-note code { font-family: var(--mono); background: var(--mist); padding: 2px 6px; border-radius: 6px; }

/* ---------- ladder ---------- */
.ladder { background: var(--ink); color: #fff; --focus: var(--sun); }
.ladder .section-head p { color: rgba(255,255,255,.75); }
.rungs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; }
.rung { --n: 0; border: 3px solid var(--ink); outline: 2px solid rgba(255,255,255,.0); border-radius: var(--r); padding: 18px 16px 18px; color: var(--ink); margin-top: calc((4 - var(--n)) * 46px); position: relative; display: flex; flex-direction: column; gap: 10px; }
.r1 { --n: 0; background: var(--sky); }
.r2 { --n: 1; background: var(--sun); }
.r3 { --n: 2; background: var(--leaf); }
.r4 { --n: 3; background: var(--coral); }
.r5 { --n: 4; background: #fff; }
.rung-n { font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: .9; }
.rung h3 { font-size: 1.35rem; font-weight: 800; }
.rung p { font-size: .97rem; }
.rung-eg { font-family: var(--mono); font-size: .85rem !important; background: rgba(255,255,255,.55); border-radius: 10px; padding: 8px 10px; margin-top: auto; }
.r5 .rung-eg { background: var(--mist); }
@media (max-width: 960px) {
  .rungs { grid-template-columns: 1fr; gap: 12px; }
  .rung { margin-top: 0; margin-left: calc(var(--n) * 4%); }
}
@media (max-width: 520px) { .rung { margin-left: calc(var(--n) * 10px); } }

.ladder-more { margin-top: 34px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.ladder-more a { color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- deep end ---------- */
.deep { position: relative; color: #fff; background: linear-gradient(180deg, var(--cobalt) 0%, #1a24a8 45%, #0b1160 100%); padding-top: clamp(96px, 12vw, 150px); --focus: var(--sun); }
.wave { position: absolute; top: -1px; left: 0; width: 100%; height: 48px; }
.wave path { fill: var(--ink); }
.deep .section-head { max-width: 780px; }
.deep .section-head h2 { font-size: clamp(2.6rem, 7vw, 5rem); }
.deep .section-head p { color: rgba(255,255,255,.88); }
.swings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; grid-auto-flow: dense; }
.swing { background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 12px; --focus: var(--cobalt); }
.swing-wide { grid-column: span 2; }
.swing h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 800; }
.swing-ask { font-family: var(--mono); font-size: .93rem; line-height: 1.5; background: var(--mist); border-radius: 12px 12px 12px 4px; padding: 13px 14px; }
.swing-what { font-size: 1rem; }
.swing-proof { font-family: var(--display); font-weight: 700; background: var(--sun); border: 2px solid var(--ink); border-radius: 10px; padding: 6px 10px; align-self: flex-start; transform: rotate(-1deg); }
.swing-meta { margin: auto 0 0; display: grid; gap: 6px; font-size: .9rem; border-top: 2px dashed #d6d9ea; padding-top: 12px; }
.swing-meta div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; }
.swing-meta dt { font-weight: 700; color: var(--cobalt); }
.swing-meta dd { margin: 0; color: var(--ink-2); }
.swing .act-copy { align-self: flex-start; }
@media (min-width: 961px) {
  .swing-wide { display: grid; grid-template-columns: 1.05fr 1fr; grid-auto-rows: min-content; column-gap: 22px; align-content: start; }
  .swing-wide h3 { grid-column: 1 / -1; }
  .swing-wide .swing-ask { grid-column: 1; grid-row: 2 / span 3; align-self: start; }
  .swing-wide > :not(h3):not(.swing-ask):not(.act-copy) { grid-column: 2; }
  .swing-wide .swing-meta { margin-top: 0; }
  .swing-wide .act-copy { grid-column: 1; grid-row: 5; justify-self: start; }
}
@media (max-width: 960px) { .swings { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .swings { grid-template-columns: 1fr; } .swing-wide { grid-column: auto; } }

/* ---------- builder ---------- */
.builder { background: var(--coral); }
.builder-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.builder-copy h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.hl-ink { display: inline-block; margin-top: 10px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 4px 12px 8px; transform: rotate(-1.5deg); }
.builder-copy p { margin-top: 20px; font-size: 1.15rem; max-width: 40ch; }
.builder-card { background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: clamp(18px, 3vw, 28px); box-shadow: 8px 8px 0 var(--ink); }
.madlib { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.75; }
.madlib input { font-family: var(--display); font-weight: 700; color: var(--cobalt); border: 0; border-bottom: 3px dashed var(--ink); background: var(--mist); border-radius: 8px 8px 0 0; padding: 0 8px; width: min(100%, 15em); max-width: 100%; }
.madlib input::placeholder { color: #8d92b5; font-weight: 600; }
.madlib input:focus { outline: none; border-bottom-style: solid; border-bottom-color: var(--cobalt); background: #e2e7ff; }
.built { margin-top: 18px; background: var(--mist); border-radius: 14px; padding: 14px 16px; }
.built-label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.built-text { font-family: var(--mono); font-size: .93rem; margin-top: 6px; white-space: pre-wrap; }
.builder-card .card-actions { margin-top: 14px; }
@media (max-width: 900px) { .builder-wrap { grid-template-columns: 1fr; } }

/* ---------- how ---------- */
.aside { font-weight: 500; font-size: .5em; color: var(--ink-2); letter-spacing: 0; white-space: nowrap; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.note { border: var(--line); border-radius: 6px 6px 22px 6px; padding: 22px 20px 24px; transform: rotate(var(--rot, -1deg)); transition: transform .2s ease; }
.note:nth-child(2n) { --rot: 1.2deg; }
.note:nth-child(3n) { --rot: -.4deg; }
.note:hover { transform: rotate(0) translateY(-3px); }
.note h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; }
.n-sun { background: var(--sun); }
.n-sky { background: var(--sky); }
.n-leaf { background: #8ee6b6; }
.n-coral { background: #ffb3a9; }
@media (max-width: 900px) { .notes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .notes { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { background: var(--mist); }
.faq-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.qs { display: flex; flex-direction: column; gap: 12px; }
.qs details { background: #fff; border: var(--line); border-radius: var(--r); }
.qs summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.4rem); padding: 18px 56px 18px 20px; position: relative; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--body); font-weight: 700; line-height: 1; transition: rotate .2s ease, background .2s ease; }
.qs details[open] summary::after { rotate: 45deg; background: var(--sun); }
.qs .a { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 12px; max-width: 64ch; }
.qs .a ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.qs .a a { font-weight: 600; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq .section-head { margin-bottom: 0; } }

/* ---------- final ---------- */
.final { background: var(--sun); text-align: center; }
.final-wrap { display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(2.5rem, 7.5vw, 5.6rem); font-weight: 800; line-height: .95; letter-spacing: -0.03em; }
.final-wrap > p { margin-top: 22px; font-size: 1.2rem; max-width: 46ch; }
.roulette { margin-top: 34px; width: min(100%, 680px); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.big-btn { background: var(--ink); color: #fff; border: 0; border-radius: 18px; padding: 18px 28px; font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.45rem); cursor: pointer; box-shadow: 6px 6px 0 var(--cobalt); transition: transform .12s ease, box-shadow .12s ease; }
.big-btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--cobalt); }
.big-btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--cobalt); }
.spin-out { width: 100%; background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 20px; text-align: left; }
.spin-text { font-family: var(--mono); font-size: 1.02rem; white-space: pre-wrap; margin-bottom: 14px; min-height: 3em; }
.spin-out.spinning .spin-text { color: #8d92b5; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,.82); padding: 64px 0 56px; --focus: var(--sun); }
.foot-wrap { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.foot-big { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: #fff; line-height: 1.05; }
.foot-small { font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; translate: -50% 20px; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s ease, translate .2s ease; z-index: 60; border: 2px solid var(--sun); }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- motion ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-track { flex-wrap: wrap; width: auto; justify-content: center; }
}
