:root {
  color-scheme: light;
  --page-top: #f8f6f4;
  --page-bottom: #ffe6d4;
  --surface: #ffffff;
  --ink: #1e1f1e;
  --ink-strong: #0d0d0d;
  --muted: rgba(13, 13, 13, 0.52);
  --line: rgba(13, 13, 13, 0.16);
  --line-hover: rgba(13, 13, 13, 0.52);
  --line-soft: rgba(13, 13, 13, 0.08);
  --orange: #ff6d34;
  --orange-hover: #fe4a11;
  --orange-disabled: #ffc8a8;
  --green: #44b58f;
  --link: #29a07c;
  --link-hover: #1a8164;
  --error: #f1416c;
  --error-text: #db3b62;
  --required: #fe4a11;
  --neutral: #f3f1ed;
  --font-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --space-lg-responsive: 30px; /* Promo token spacing/lg-responsive: 30 on 2xl/xl/lg, 20 on sm */
  --r-sm: 3px;
  --r-md: 5px;
}
@media (max-width: 600px) { :root { --space-lg-responsive: 20px; } }
* { box-sizing: border-box; }
/* the gradient is a fixed layer behind the page: Safari on iPhone tints its top bar from the top edge and the bottom bar from the bottom edge of what is on screen */
header.site, main { position: relative; z-index: 1; }
html { background: var(--page-top); } /* Safari paints its top and bottom bars with this one colour, so the gradient fades back to it at the very bottom */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, var(--page-top) 0, var(--page-top) 88px, var(--page-bottom) calc(100% - 150px), var(--page-top) 100%); }
body {
  margin: 0; min-height: 100vh;
  color: var(--ink-strong); font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1536px; margin: 0 auto; padding-inline: 100px; }
@media (max-width: 1100px) { .wrap { padding-inline: 50px; } }
@media (max-width: 600px) { .wrap { padding-inline: 20px; } }
header.site { padding-block: 15px; }
header.site .logo { display: block; width: 91px; height: 58px; }
main { padding-block: 50px 100px; }
@media (max-width: 767px) { main { padding-top: 30px; } }
@media (max-width: 1099px) { main { padding-bottom: 50px; } } /* phones/tablets: half of the desktop bottom space under the last block */
main:has(#screen-result[data-layout="single"]:not([hidden])) { padding-top: 10px; }
.screen[hidden] { display: none !important; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 100px; row-gap: 50px; }
.col-form { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
@media (max-width: 767px) { .col-form { gap: 30px; } }
.intro { display: flex; flex-direction: column; gap: 20px; }
h1, h2 { margin: 0; font-weight: 500; font-size: 52px; line-height: 56px; letter-spacing: 0; color: var(--ink); text-wrap: pretty; }
.intro p { margin: 0; font-size: 16px; line-height: 24px; }
.form-block { display: flex; flex-direction: column; gap: 30px; }
form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.label { font-size: 14px; line-height: 18px; font-weight: 500; color: var(--ink); }
.label .req { margin-left: 5px; color: var(--required); }
.label .opt { font-weight: 400; color: var(--muted); margin-left: 5px; }
.input {
  height: 50px; width: 100%; padding: 10px 20px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface);
  font: 400 16px/20px var(--font-sans); color: var(--ink-strong); outline: none; transition: border-color .15s;
}
.input::placeholder { color: var(--muted); }
.input:hover { border-color: var(--line-hover); }
.input:focus { border-color: var(--green); }
.field.has-error .input { border-color: var(--error); }
.err { font-size: 14px; line-height: 18px; color: var(--error-text); }
.help { font-size: 14px; line-height: 18px; color: var(--muted); }
.avatar-group { display: flex; flex-direction: column; gap: 30px; }
.drop {
  position: relative; display: flex; align-items: center; gap: 15px; padding: 15px 20px; width: 100%;
  border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--surface);
  cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s;
}
.drop-row { position: relative; }
.drop-row:hover .drop { border-color: var(--line-hover); }
.drop.filled { border-style: solid; padding-right: 75px; }
.drop.dragging { border-style: solid; border-color: var(--green); background: #f6fbf9; }
.drop.error { border-color: var(--error); }
.drop:focus-visible, .btn:focus-visible, .ghost:focus-visible, .remove:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.drop .thumb { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--neutral); border: 1px solid var(--line-soft); display: grid; place-items: center; }
.drop .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drop .thumb svg { width: 100%; height: 100%; display: block; }
.drop .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.drop .t1 { display: block; font-weight: 500; font-size: 14px; line-height: 18px; color: var(--ink); overflow-wrap: anywhere; }
.drop .t2 { display: block; font-size: 14px; line-height: 18px; color: var(--muted); }
.drop .t2 .browse { color: var(--link); }
.drop-row:hover .t2 .browse { color: var(--link-hover); text-decoration: underline; }
.card-hint { margin: -15px 0 0; text-align: left; }
.card-hint[hidden] { display: none; }
#card.editable { cursor: grab; touch-action: none; } /* with a photo the card is draggable: the browser must not scroll the page under a finger */
#card.dragging { cursor: grabbing; }
.remove { flex: none; width: 40px; height: 40px; border-radius: 5px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-strong); padding: 10px; transition: background-color .15s; }
.remove { position: absolute; right: 21px; top: 50%; transform: translateY(-50%); }
.remove[hidden] { display: none; }
.remove:hover { background: rgba(13, 13, 13, 0.06); }
.remove svg { width: 20px; height: 20px; }
.upload-msg { font-size: 14px; line-height: 18px; color: var(--error-text); }
#h-result:focus { outline: none; }
.col-card { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.cta-block { display: flex; flex-direction: column; gap: 15px; }
@media (min-width: 1101px) {
  .hero { grid-template-columns: minmax(0, 658px) minmax(0, 565px); justify-content: space-between; column-gap: 100px; }
}
@media (min-width: 1101px) {
  #screen-form .col-card { align-self: start; padding-top: 10px; }
  #screen-form .cta-block { position: relative; }
  #screen-form .cta-block .legal { position: absolute; top: calc(100% + 15px); left: 0; right: 0; }
}
.card { display: block; width: 100%; max-width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; background: #dff1fe; }
.btn, .ghost {
  height: 50px; width: 100%; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 14px/20px var(--font-mono); letter-spacing: -0.01em; text-transform: uppercase; cursor: pointer; text-decoration: none; color: var(--ink-strong);
  transition: background-color .15s, border-color .15s;
}
.btn { border: 0; background: var(--orange); }
.btn:hover { background: var(--orange-hover); }
.btn:disabled { background: var(--orange-disabled); color: rgba(13, 13, 13, 0.4); cursor: default; }
.btn .spin { width: 20px; height: 20px; display: none; animation: spin 1s linear infinite; }
.btn.loading .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.ghost { border: 1px solid var(--line); background: var(--surface); }
.ghost:hover { border-color: var(--line-hover); }
.legal { margin: 0; font-size: 14px; line-height: 18px; color: var(--muted); }
.legal a { color: var(--link); text-decoration: none; }
.legal a:hover { color: #29a07c; text-decoration: underline; }
.legal a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.single { display: flex; flex-direction: column; }
.actions { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.actions .row { width: 100%; display: flex; gap: 10px; }
.actions .row > * { flex: 1 1 0; min-width: 0; width: auto; }
.tile { height: 50px; flex-direction: row; gap: 10px; padding: 10px 20px; border-radius: 5px; font-size: 14px; line-height: 20px; white-space: nowrap; }
.tile.ghost { border-color: rgba(13, 13, 13, 0.24); background: transparent; }
.tile.ghost:hover { border-color: var(--line-hover); }
.tile.btn { border: 0; }
.tile .ico { width: 20px; height: 20px; flex: none; }
.tile span { text-wrap: balance; }
.result .bonus { display: flex; align-items: flex-start; gap: 10px; padding: 15px; border-radius: 5px; background: rgba(255, 255, 255, 0.9); text-align: left; }
.result .bonus p { margin: 0; font-size: 14px; line-height: 18px; color: var(--ink-strong); }
.bonus-info { flex: none; width: 18px; height: 18px; color: #1e1f1e; }
.link-light { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; height: 20px; font: 400 14px/20px var(--font-sans); color: rgba(13, 13, 13, 0.52); cursor: pointer; }
.link-light span { text-decoration: underline; }
.link-light svg { width: 20px; height: 20px; flex: none; }
.link-light:hover { color: #29a07c; }
.link-light:disabled { color: rgba(13, 13, 13, 0.32); cursor: default; }
.link-light:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.result img.final { max-width: 100%; height: auto; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; }
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  /* mobile/tablet: heading, then the card preview, then the form */
  #screen-form .hero { gap: 30px; }
  #screen-form .col-form { display: contents; }
  #screen-form .intro { order: 1; }
  #screen-form .col-card { order: 2; }
  #screen-form .form-block { order: 3; }
  .col-card { max-width: 565px; width: 100%; }
  .hero { max-width: 565px; margin-inline: auto; }
  .col-card { max-width: none; }
}
@media (max-width: 1023px) { h1, h2 { font-size: 36px; line-height: 40px; } }
@media (max-width: 600px) { .actions .row { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) {
  .input, .btn, .drop { transition: none; }
  .btn .spin { animation: none; }
}
.survey { width: 100%; max-width: 565px; padding: var(--space-lg-responsive); border-radius: 10px; background: var(--surface); text-align: left; }
.survey form[hidden] { display: none; }
.survey form { display: flex; flex-direction: column; gap: 20px; }
.survey-head { display: flex; flex-direction: column; gap: 10px; }
.survey-body { display: flex; flex-direction: column; gap: 20px; }
.survey-toggle { all: unset; display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; font: inherit; color: inherit; cursor: default; }
.survey-toggle .chev { display: none; flex: none; width: 20px; height: 20px; margin-left: auto; transition: transform .2s; }
.float .survey-toggle { cursor: pointer; }
.float .survey-toggle .chev { display: block; }
.survey-badge { display: none; align-items: center; gap: 5px; font: 400 12px/16px var(--font-mono); letter-spacing: -0.01em; text-transform: uppercase; color: var(--muted); }
.survey-badge svg { flex: none; width: 15px; height: 15px; }
.survey-badge { display: flex; grid-row: 2; grid-column: 1; justify-self: start; }
.survey-toggle { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; row-gap: 5px; }
.float .survey-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.float .survey-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.float .survey-body[hidden] { display: none; }
.survey-sub { display: none; }
.survey h3 { margin: 0; font-weight: 500; font-size: 18px; line-height: 20px; color: var(--ink); }
#survey-title { font-size: 18px; line-height: 20px; }
.survey p { margin: 0; font-size: 14px; line-height: 18px; color: var(--ink-strong); }
.survey-fields { display: flex; flex-wrap: wrap; gap: 15px; }
.survey-fields > .field { flex: 1 1 100%; min-width: 0; }
.survey-fields > .field[hidden] { display: none; }
.survey .input.other { padding: 5px 15px; }
.survey .input.other[hidden] { display: none; }
.survey-fields > .input.other { flex: 1 1 100%; min-width: 0; }
.survey .input { height: 40px; padding: 5px 40px 5px 15px; border-radius: 5px; font-size: 14px; line-height: 18px; background-position: right 15px center; }
.select { appearance: none; -webkit-appearance: none; padding-right: 50px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230d0d0d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; }
.select:invalid, .select.empty { color: var(--muted); }
.survey-send { width: 100%; }
.survey-send { height: 40px; padding: 10px 15px; font-size: 12px; line-height: 18px; }
.survey-send { border-color: rgba(13, 13, 13, 0.24); background: transparent; }
.survey-send:hover:not(:disabled) { border-color: rgba(13, 13, 13, 0.52); }
.survey-send:disabled { cursor: default; color: rgba(13, 13, 13, 0.32); border-color: rgba(13, 13, 13, 0.12); }
.survey-done { display: flex; gap: 15px; align-items: flex-start; outline: none; }
.survey-done[hidden] { display: none; }
.survey-done { align-items: flex-start; gap: 15px; }
.survey-done .done-ico { flex: none; width: 72px; height: 72px; display: block; }
.survey-done .survey-head { flex: 1; min-width: 0; }
.float .survey-done .survey-head { padding-right: 40px; }
.float .survey-done h3 { padding-right: 0; }
.x-btn { position: absolute; top: calc(var(--pad, 30px) - 10px); right: calc(var(--pad, 30px) - 15px); width: 40px; height: 40px; border: 0; border-radius: 5px; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-strong); padding: 10px; transition: background-color .15s; }
.x-btn:hover { background: rgba(13, 13, 13, 0.06); }
.x-btn svg { width: 20px; height: 20px; }
.x-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.float .survey { max-width: none; padding: 0; box-shadow: none; background: none; }
#survey-box[hidden] { display: none; }
#survey-box { animation: fade-in .3s ease-out; }
.float { position: fixed; z-index: 20; right: max(30px, env(safe-area-inset-right, 0px)); bottom: 0; width: 340px; max-height: calc(100vh - 120px); overflow: auto; padding: var(--space-lg-responsive); padding-bottom: calc(var(--space-lg-responsive) + env(safe-area-inset-bottom, 0px)); border-radius: 10px 10px 0 0; background: var(--surface); animation: fade-in .3s ease-out; }
.float[hidden] { display: none; }
/* opened by a click on Share: the questions unfold softly */
.survey-body.unfold { animation: unfold .45s ease-out; }
@keyframes unfold { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.float { --pad: var(--space-lg-responsive); }
.float .survey h3, .single #survey-box h3 { padding-right: 40px; }
.single #survey-box { position: relative; --pad: var(--space-lg-responsive); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
#screen-result[data-layout="single"] .single { max-width: 820px; margin-inline: auto; align-items: center; text-align: center; }
#screen-result[data-layout="single"] img.final, #screen-result[data-layout="single"] .bonus, #screen-result[data-layout="single"] #survey-box { margin-top: 30px; }
@media (max-width: 767px) { #screen-result[data-layout="single"] img.final, #screen-result[data-layout="single"] .bonus, #screen-result[data-layout="single"] #survey-box { margin-top: 20px; } }
#screen-result[data-layout="single"] .actions { margin-top: 15px; }
#screen-result[data-layout="single"] .actions .row > * { container-type: inline-size; }
@container (max-width: 172px) { .actions .share-pre { display: none; } }
#screen-result[data-layout="single"] .links { margin-top: 5px; }
#screen-result[data-layout="single"] .share { display: contents; }
#screen-result[data-layout="single"] .intro { align-items: center; }
#screen-result[data-layout="single"] h2 { font-size: 36px; line-height: 40px; }
#screen-result[data-layout="single"] img.final, #screen-result[data-layout="single"] .actions, #screen-result[data-layout="single"] .bonus { width: var(--fit, 565px); max-width: 100%; align-self: center; }
#screen-result[data-layout="single"] .intro { width: var(--fit, 565px); min-width: min(100%, 440px); max-width: 100%; align-self: center; }
@media (max-width: 1099px) { #screen-result[data-layout="single"] #survey-box { width: var(--fit, 565px); max-width: 100%; align-self: center; } }
@media (max-width: 1023px) { #screen-result[data-layout="single"] h2 { font-size: 24px; line-height: 30px; } }
#screen-result[data-layout="single"] .intro { order: 1; } #screen-result[data-layout="single"] img.final { order: 2; } #screen-result[data-layout="single"] .bonus { order: 3; } #screen-result[data-layout="single"] .actions { order: 4; } #screen-result[data-layout="single"] #survey-box { order: 5; }
.confetti { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; left: 0; top: 0; border-radius: 2px; will-change: transform, opacity; }
.confetti i:nth-child(5n+1) { background: #ff6d34; } .confetti i:nth-child(5n+2) { background: #7eccfb; } .confetti i:nth-child(5n+3) { background: #ffc64a; } .confetti i:nth-child(5n+4) { background: #44b58f; } .confetti i:nth-child(5n) { background: #847fd5; }
.confetti i:nth-child(4n+1) { width: 8px; height: 12px; } .confetti i:nth-child(4n+2) { width: 12px; height: 8px; border-radius: 50%; } .confetti i:nth-child(4n+3) { width: 6px; height: 14px; } .confetti i:nth-child(4n) { width: 10px; height: 10px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .float, #survey-box, .survey-body.unfold { animation: none; } .confetti { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
