/* Karsus AI intake pages. Same ink-on-paper world as the main site: one ultraviolet spot colour, Archivo display, hand notes. */
:root {
  --paper: #fbfaf7; --ink: #0e0e10; --mute: #55545c; --uv: #5b2bff; --uv-soft: #ece6ff; --rule: rgba(14,14,16,.16);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --hand: "Caveat Brush", "Marker Felt", "Comic Sans MS", cursive;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip;
  background-image: repeating-linear-gradient(90deg, transparent 0 26px, rgba(14,14,16,.05) 26px 27px); }
a { color: inherit; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.ink { filter: grayscale(1) contrast(1.1); }

/* top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 14px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--paper); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: 1rem; letter-spacing: .06em; background: var(--paper); padding: .45em .9em .45em .55em; border-radius: 99px; border: 1.5px solid var(--ink); }
.logo svg { width: 24px; height: 24px; overflow: visible; }
.logo em { font-style: normal; background: var(--uv); color: #fff; margin-left: .34em; padding: .14em .3em .12em; border-radius: .22em; font-size: .8em; letter-spacing: .06em; }
@media (prefers-reduced-motion: no-preference) {
  .logo .beat { transform-origin: center; transform-box: fill-box; animation: lbeat 1.8s ease-in-out infinite; }
  .logo .echo { transform-origin: center; transform-box: fill-box; animation: lecho 1.8s ease-out infinite; }
}
@keyframes lbeat { 0%, 100% { transform: scale(.82); } 45% { transform: scale(1.14); } }
@keyframes lecho { 0% { transform: scale(1); opacity: .45; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
.back { display: inline-flex; gap: .6em; align-items: center; text-decoration: none; background: var(--ink); color: var(--paper); border-radius: 99px; padding: .55em 1.1em; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.back:hover, .back:focus-visible { background: var(--uv); }

/* hero */
.hero { position: relative; max-width: 1180px; margin: 0 auto; padding-block: 34px 26px; display: grid; gap: 14px; }
.eb { font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); display: flex; gap: 10px; align-items: center; }
.eb i { width: 10px; height: 10px; border-radius: 50%; background: var(--uv); display: inline-block; }
h1 { margin: 0; font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: clamp(2.8rem, 9vw, 7.4rem); line-height: .9; letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; max-width: 13ch; }
h1 .uv { color: var(--uv); }
h1 .l { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  h1 .l { animation: drop .7s var(--ease) both; animation-delay: calc(var(--i) * 28ms); }
  .float { animation: bob 5s ease-in-out infinite; }
}
@keyframes drop { from { transform: translateY(45%) rotate(8deg); } to { transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--r, 0deg)); } }
.lede { margin: 0; max-width: 58ch; font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 600; font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.4; }
.hnote { position: absolute; font-family: var(--hand); color: var(--uv); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1; transform: rotate(-5deg); display: flex; gap: 6px; align-items: flex-start; -webkit-text-stroke: .12em var(--paper); paint-order: stroke fill; }
.hnote svg { width: 60px; height: 42px; overflow: visible; }
.hnote svg path { fill: none; stroke: var(--uv); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.art { position: absolute; width: clamp(80px, 11vw, 150px); pointer-events: none; }
@media (max-width: 860px) { .hnote, .art { display: none; } }

/* layout */
.wrap { max-width: 1180px; margin: 0 auto; padding-block: 8px 80px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; }
@media (max-width: 900px) { .wrap { grid-template-columns: 1fr; } }
form { display: grid; gap: 22px; min-width: 0; }
.step { position: relative; background: #fff; border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--ink); padding: 22px 22px 24px; display: grid; gap: 18px; min-width: 0; margin: 0; }
.step:focus-within { box-shadow: 8px 8px 0 var(--uv); }
.step > legend { float: left; width: 100%; padding: 0; display: flex; gap: 12px; align-items: baseline; font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.1; }
.step > legend b { font-family: var(--mono); font-weight: 500; font-size: .78rem; letter-spacing: .14em; color: #fff; background: var(--uv); border-radius: 99px; padding: .25em .7em; flex: none; }
.step > legend + * { clear: both; }
.q { display: grid; gap: 10px; min-width: 0; }
.q > span, .q > .lab { font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 700; font-size: 1.02rem; }
.q small.hint { font-size: .86rem; color: var(--mute); font-weight: 400; font-family: var(--body); }
.req::after { content: " *"; color: var(--uv); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .two { grid-template-columns: 1fr; } .step { padding: 18px 16px 20px; box-shadow: 6px 6px 0 var(--ink); } }
input[type=text], input[type=email], input[type=url], select, textarea { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; padding: .7em .85em; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4em; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--uv); box-shadow: 0 0 0 3px rgba(91,43,255,.25); }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: #c2412d; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .45em; border: 1.5px solid var(--ink); border-radius: 99px; padding: .5em 1em; font-weight: 500; font-size: .95rem; background: var(--paper); transition: background .15s, color .15s, transform .15s, box-shadow .15s; cursor: pointer; user-select: none; }
.chip:hover span { transform: translateY(-2px); }
.chip input:checked + span { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--uv); }
.chip input:checked + span::before { content: "✓"; color: #c9b8ff; font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--uv); outline-offset: 2px; }

/* scale */
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.scale .chip span { width: 100%; justify-content: center; text-align: center; flex-direction: column; gap: 2px; border-radius: 14px; padding: .6em .3em; font-size: .78rem; line-height: 1.2; }
.scale .chip span b { font-family: var(--display); font-size: 1.3rem; font-weight: 800; }
.scale .chip input:checked + span::before { content: none; }
@media (max-width: 520px) { .scale { grid-template-columns: repeat(5, minmax(0, 1fr)); } .scale .chip span small { display: none; } }

/* option cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.card { position: relative; }
.card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.card > div { height: 100%; display: grid; gap: 6px; align-content: start; border: 1.5px solid var(--ink); border-radius: 16px; padding: 14px; background: var(--paper); transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.card img { width: 64px; height: 64px; object-fit: contain; }
.card b { font-family: var(--hand); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--uv); }
.card small { font-size: .88rem; color: var(--mute); line-height: 1.35; }
.card:hover > div { transform: translateY(-3px); }
.card input:checked + div { background: var(--uv-soft); box-shadow: 5px 5px 0 var(--uv); border-color: var(--uv); }
.card input:focus-visible + div { outline: 3px solid var(--uv); outline-offset: 2px; }

[data-show-if] { display: none; }
[data-show-if].on { display: grid; animation: reveal .35s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.consent input { width: 22px; height: 22px; accent-color: var(--uv); flex: none; margin-top: 2px; }

.send { display: grid; gap: 12px; justify-items: start; }
.go { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .7em; background: var(--uv); color: #fff; font-family: var(--display); font-variation-settings: "wdth" 115; font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: .02em; padding: .85em 1.5em; border-radius: 99px; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.go:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.go:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.go:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.fine { font-size: .86rem; color: var(--mute); max-width: 60ch; margin: 0; }
.err { color: #c2412d; font-weight: 600; font-size: .92rem; margin: 0; }

/* aside */
aside { position: sticky; top: 84px; display: grid; gap: 18px; }
@media (max-width: 900px) { aside { position: static; } }
.panel { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 18px; padding: 18px; display: grid; gap: 12px; }
.panel.uvp { background: var(--uv); color: #fff; border-color: var(--uv); }
.panel h2 { margin: 0; font-family: var(--hand); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--uv); }
.panel.uvp h2 { color: #fff; }
.panel ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: s; }
.panel ol li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: .95rem; line-height: 1.4; }
.panel ol li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: .8rem; }
.panel.uvp ol li::before { background: #fff; color: var(--uv); }
.panel p { margin: 0; font-size: .95rem; line-height: 1.45; }
.panel .art-in { width: 92px; justify-self: end; margin-top: -8px; }
.others { display: grid; gap: 8px; }
.others a { display: flex; justify-content: space-between; gap: 8px; text-decoration: none; font-weight: 600; border-bottom: 1.5px solid var(--rule); padding: 6px 0; }
.others a:hover { color: var(--uv); }

/* done state */
.done { display: none; background: var(--uv); color: #fff; border: 2px solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 var(--ink); padding: 28px 24px; gap: 14px; }
.done.on { display: grid; animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.9) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
.done h2 { margin: 0; font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: clamp(2rem, 5vw, 3.4rem); line-height: .95; text-transform: uppercase; }
.done p { margin: 0; font-size: 1.05rem; max-width: 56ch; }
.done .row { display: flex; gap: 10px; flex-wrap: wrap; }
.done button, .done a.btn { all: unset; cursor: pointer; background: #fff; color: var(--uv); font-weight: 700; padding: .65em 1.2em; border-radius: 99px; }
.done a.btn.line { background: transparent; color: #fff; border: 2px solid #fff; }
.done button:focus-visible, .done a.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.done code { font-family: var(--mono); font-size: .95rem; background: rgba(255,255,255,.15); padding: .15em .5em; border-radius: 6px; user-select: all; }

footer { max-width: 1180px; margin: 0 auto; padding-block: 0 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* phones: a solid top bar, a short back link, compact option cards */
.top { background: rgba(251,250,247,.94); }
.back .full { display: inline; }
@media (max-width: 560px) {
  .back .full { display: none; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card > div { padding: 10px; }
  .card img { width: 44px; height: 44px; }
  .card b { font-size: 1.5rem; }
  .card small { font-size: .8rem; }
  .hero { padding-block: 22px 18px; }
}
