:root {
  color-scheme: dark;
  font-family: "DM Sans", Arial, sans-serif;
  --ink: #141414;
  --paper: #f3f1e9;
  --coral: #ed715c;
  --teal: #77c5bf;
  --muted: #c5c3bb;
  --line: #ffffff29;
  --serif: "Playfair Display", Georgia, serif;
  color: var(--paper);
  background: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--coral); }
body { min-height: 100svh; margin: 0; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { width: min(1200px, calc(100% - 104px)); margin-inline: auto; }
.masthead { min-height: 87px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: block; width: 114px; height: auto; }
.header-note, .eyebrow, .art-caption, .art-index, .art-foot, #counter { letter-spacing: .135em; font-size: .8125rem; font-weight: 600; }
.header-note { color: var(--muted); }
.hero { min-height: 652px; padding: 73px 0 80px; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(25px, 5vw, 81px); align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--teal); margin: 0 0 22px; }
.eyebrow > span { width: 18px; height: 1px; background: currentColor; }
h1 { margin: 0; text-wrap: balance; font-family: var(--serif); font-weight: 500; letter-spacing: -.066em; line-height: 1.04; font-size: clamp(3.35rem, 6.05vw, 6rem); }
h1 em { font-weight: 500; color: var(--coral); }
.period { color: var(--teal); }
.dek { color: var(--muted); font-size: clamp(1.04rem, 1.5vw, 1.25rem); line-height: 1.56; max-width: 36ch; margin: 26px 0 34px; }
.button { font: inherit; font-weight: 700; min-height: 52px; padding: .85rem 1.5rem; border-radius: 3px; border: 1px solid transparent; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.primary { background: var(--coral); color: var(--ink); }
.primary:hover { background: #ff8c78; }
.secondary { background: transparent; color: var(--paper); border-color: #ffffff60; }
.secondary:hover { background: #292929; border-color: var(--paper); }
.button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 25px; color: var(--muted); font-size: .875rem; }
.meta span + span::before { content: "·"; margin-right: 18px; color: var(--teal); }
.art { position: relative; isolation: isolate; min-width: 0; aspect-ratio: 1; overflow: hidden; background: radial-gradient(ellipse at 48% 40%, #282828db, #101010d9 77%), url("assets/copilot-texture.png") repeat; border: 1px solid var(--line); border-radius: 3px; }
.art-caption, .art-index, .art-foot { position: absolute; z-index: 1; font-size: clamp(.65rem, 1.05vw, .78rem); }
.art-caption { left: 6%; top: 6%; }
.art-index { right: 6%; top: 6%; color: var(--teal); }
.art-foot { bottom: 6%; left: 6%; right: 6%; display: flex; align-items: center; gap: .85rem; }
.art-foot::after { content: ""; height: 1px; background: var(--line); flex: 1; margin-left: 9px; }
.art-foot span { color: var(--coral); }
.art-orbit { position: absolute; inset: 16% 17% 18%; border: 1px solid #77c5bf40; border-radius: 50%; transform: rotate(-28deg) scaleX(1.12); }
.art-orbit::after { content: ""; position: absolute; inset: 10%; border: 1px dashed #77c5bf38; border-radius: inherit; }
.art-globe, .art-butterfly { position: absolute; height: auto; }
.art-globe { width: 55%; left: 19%; top: 15%; transform: rotate(-10deg); }
.art-butterfly { width: 36%; right: 8%; bottom: 10%; transform: rotate(12deg); filter: drop-shadow(0 8px 15px #0009); }
.footer { min-height: 75px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px 20px; color: var(--muted); font-size: .875rem; }
.quiz { width: min(100%, 720px); margin: 60px auto 90px; }
.quiz h1 { font-size: clamp(2.15rem, 5vw, 3.75rem); letter-spacing: -.045em; line-height: 1.11; margin-top: 30px; }
.progress-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.progress-head .eyebrow { margin: 0; }
#counter { color: var(--muted); white-space: nowrap; }
progress { width: 100%; height: 6px; margin: 12px 0 13px; border: 0; appearance: none; color: var(--teal); background: #3b3b3b; border-radius: 8px; overflow: hidden; }
progress::-webkit-progress-bar { background: #3b3b3b; }
progress::-webkit-progress-value { background: var(--teal); }
progress::-moz-progress-bar { background: var(--teal); }
#hint { color: var(--muted); line-height: 1.5; margin: 14px 0 23px; }
.options { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.option { display: flex; gap: 13px; align-items: center; background: #202020; border: 1px solid #ffffff40; border-radius: 4px; padding: 13px 16px; min-height: 56px; cursor: pointer; line-height: 1.4; }
.option:hover { border-color: #ffffff99; }
.option:has(:checked) { background: #263533; border-color: var(--teal); }
input[type=radio], input[type=checkbox] { accent-color: var(--teal); width: 18px; height: 18px; flex: 0 0 18px; margin: 0; }
.field { display: grid; gap: 8px; margin-bottom: 20px; font-weight: 600; }
.field input, textarea { width: 100%; font: inherit; font-weight: 400; color: var(--paper); background: #202020; border: 1px solid #ffffff59; border-radius: 4px; padding: 13px; }
.field input::placeholder, textarea::placeholder { color: #aaa9a2; opacity: 1; }
textarea { min-height: 151px; resize: vertical; }
.consent { font-size: .9375rem; }
.consent a { color: var(--teal); text-underline-offset: 3px; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.error { color: #ffa694; font-weight: 600; line-height: 1.5; margin: 15px 0 0; }
.trap, .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.result .dek { max-width: 57ch; margin-bottom: 22px; }
.direction { background: #263533; border-left: 3px solid var(--teal); padding: 18px 21px; line-height: 1.55; }
.direction p { margin: 5px 0 0; }
.receipt { color: var(--muted); line-height: 1.55; margin: 20px 0; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 62px); }
  .hero { min-height: 0; padding: 55px 0; }
  .desktop-break { display: none; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .masthead { min-height: 68px; }
  .header-note { font-size: .7rem; }
  .wordmark { width: 90px; }
  .hero { grid-template-columns: 1fr; padding-block: 38px; gap: 32px; }
  h1 { font-size: clamp(3rem, 11vw, 4.25rem); }
  .dek { margin: 18px 0 22px; }
  .meta { margin-top: 17px; }
  .art { aspect-ratio: 1.12; }
  .art-globe { width: 49%; left: 22%; }
  .art-butterfly { width: 33%; }
  .quiz { margin: 33px auto 50px; }
  .footer { padding-block: 15px; min-height: 60px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.question-group { margin: 0 0 23px; }
.question-group legend { padding: 0; margin-bottom: 9px; font-weight: 700; }
.check-grid { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
.check-grid .option { padding-inline: 12px; }
.field select {
  appearance: none;
  min-height: 49px;
  width: 100%;
  font: inherit;
  font-weight: 400;
  color: var(--paper);
  background: #202020;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23f3f1e9' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 13px center;
  background-repeat: no-repeat;
  border: 1px solid #ffffff59;
  border-radius: 4px;
  padding: 10px 36px 10px 13px;
}
.palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); padding: 0; gap: 9px; list-style: none; }
.palette li { font-size: .875rem; display: grid; gap: 4px; }
.palette li span { display: block; height: 26px; border: 1px solid #ffffff38; border-radius: 4px; }
.delivery-error { color: #ffa694; }
.delivery-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.delivery-actions:has(> :not([hidden])) { margin-bottom: 20px; }
.delivery-actions a { display: inline-flex; align-items: center; text-decoration: none; }

.values-grid .option { min-height: 50px; }
.value-count { color: var(--teal); font-size: .875rem; margin: 6px 0 20px; }
.option:has(:disabled) { opacity: .57; cursor: default; }
.prepare-list { display: grid; gap: 12px; margin: 28px 0; }
.prepare-list article { background: #202020; border: 1px solid var(--line); padding: 18px 20px; }
.prepare-list article p { color: var(--muted); margin: 5px 0 0; line-height: 1.5; }
.result-page { margin: 44px 0 70px; }
.result-cover { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); background: #222222; border: 1px solid var(--line); min-height: 370px; }
.result-cover-copy { container-type: inline-size; padding: clamp(23px, 4.8vw, 60px); align-self: center; }
.result-cover .eyebrow { margin-bottom: 18px; }
.result-brand { margin: 0 0 8px; color: var(--muted); overflow-wrap: anywhere; }
.result-cover h1 { color: var(--paper); font-size: clamp(1.5rem, 4.3vw, 5.2rem); font-size: min(17cqi, 5.2rem); text-wrap: wrap; }
.result-cover h1:has(span + span) { font-size: min(15.5cqi, 5.2rem); }
.result-cover h1 span { display: inline-block; white-space: nowrap; }
.result-cover h1 span + span { color: var(--teal); }
.result-cover > img { width: 100%; height: 100%; max-height: 550px; min-height: 370px; object-fit: cover; }
.result-traits { padding: 0; margin: 22px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.result-traits li { border: 1px solid #ffffff60; padding: 4px 9px; border-radius: 999px; font-size: .875rem; }
.result-body { display: grid; grid-template-columns: 1.12fr 1fr; gap: 24px; margin-top: 24px; }
.result-body > div { background: #202020; border: 1px solid var(--line); padding: clamp(18px, 3.4vw, 40px); min-width: 0; }
.result-body h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.12; margin: 0 0 14px; }
.result-body h3 { font-size: 1.04rem; margin: 22px 0 10px; }
.result-body p { line-height: 1.56; color: var(--muted); }
.result-body .eyebrow { color: var(--teal); }
.result-body .result-note { font-size: .875rem; }
.result-body .result-kit, .result-body .result-contact { grid-column: 1 / -1; }
.result-body .result-kit { color: var(--result-ink); background: var(--result-paper); }
.result-kit p { color: var(--result-ink); }
.result-kit .eyebrow { color: var(--result-ink); }
.result-kit .palette { margin: 12px 0 14px; }
.result-kit .palette li span { height: 60px; border-color: #0003; }
.result-kit .palette small { display: block; opacity: .78; }
.kit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.font-display { font-size: clamp(1.55rem, 5vw, 3rem); margin: 0; overflow-wrap: anywhere; }
.font-body { margin: 2px 0 0; }
.result-icons { display: flex; flex-wrap: wrap; padding: 0; margin: 0; gap: 8px; list-style: none; }
.result-icons li { display: grid; justify-items: center; gap: 4px; min-width: 65px; font-size: .875rem; }
.result-icons svg { width: 47px; height: 47px; padding: 7px; color: var(--result-ink); display: block; background: #ffffff6b; border-radius: 7px; }
.tone-axis { margin: 10px 0 15px; }
.tone-labels { display: flex; justify-content: space-between; font-size: .875rem; color: var(--muted); gap: 6px; }
.tone-track { position: relative; height: 5px; border-radius: 5px; margin: 7px 6px 0; background: linear-gradient(90deg, #9499b0, var(--teal)); }
.tone-track i { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 13px; height: 13px; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; }
.ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ranking li { display: grid; grid-template-columns: minmax(80px, .5fr) minmax(60px, 1fr) 22px; align-items: center; gap: 8px; font-size: .875rem; }
.ranking progress { margin: 0; }
.result-contact .primary { display: inline-flex; align-items: center; text-decoration: none; }
.result-contact .delivery-actions { margin-top: 12px; }
.text-button { border: 0; background: transparent; color: var(--teal); font: inherit; padding: 7px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 740px) {
  .result-cover, .result-body { grid-template-columns: 1fr; }
  .result-cover > img { min-height: 0; height: auto; aspect-ratio: 1.6; }
  .result-cover-copy { padding: 26px 21px; }
  .result-page { margin-top: 24px; }
  .kit-grid { grid-template-columns: 1fr; gap: 3px; }
}

.logo-upload { border: 1px solid var(--line); background: #212121; padding: 18px; margin: 20px 0; }
.logo-upload .field { margin-bottom: 8px; }
.logo-upload .field input { color: var(--paper); padding: 10px; font-size: .88rem; }
.logo-upload input::file-selector-button { background: var(--teal); color: var(--ink); border: none; padding: 6px 9px; margin-right: 7px; font: inherit; cursor: pointer; }
.logo-upload p { color: var(--muted); margin: 7px 0; overflow-wrap: anywhere; font-size: .875rem; }
.logo-upload img { display: block; object-fit: contain; width: 160px; height: 100px; margin: 12px 0 0; padding: 6px; background: #ece8df; }
