@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02FF, U+1E00-1EFF; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02FF, U+1E00-1EFF; }

:root { --bg: #ededed; --ink: #000; --muted: #555; --line: #000; --surface: #fff; --accent: #0067a5; --error: #a4001d; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 "Hanken Grotesk", system-ui, sans-serif; }
main { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 48px; max-width: 1080px; margin: 0 auto; padding: 40px 24px 24px; }
h1 { font-size: 40px; line-height: 1.05; font-weight: 500; margin: 0 0 10px; }
h2 { font-size: 18px; font-weight: 500; margin: 24px 0 6px; }
.lead { margin: 0 0 24px; font-size: 18px; }
form { display: grid; gap: 16px; }
label, fieldset { display: grid; gap: 5px; font-weight: 500; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; margin-bottom: 5px; }
small { font-weight: 400; color: var(--muted); font-size: 13px; }
small[hidden] { display: none; }
.error { color: var(--error); }
input:not([type=radio], [type=checkbox], [type=color]), select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; }
input[type=color] { width: 64px; height: 46px; padding: 2px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.color { display: grid; gap: 5px; align-content: start; }
.color-input { display: flex; }
.color-input input[type=color] { flex: none; width: 52px; border-right: 0; }
.color-input input:not([type=color]) { min-width: 0; }
.colors-hint { grid-column: 1 / -1; }
.lead-fields { display: grid; gap: 16px; }
.lead-fields[hidden], .notice[hidden], #privacyLocal[hidden] { display: none; }
.consent { align-items: flex-start; font-size: 14px; }
.consent input { flex: none; margin-top: 3px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { color: var(--ink); margin-top: 16px; }
#status:empty { display: none; }
main.single { display: block; max-width: 720px; }
.legal h2 { margin-top: 32px; }
.legal h3 { font-size: 16px; font-weight: 500; margin: 20px 0 4px; }
.legal li { margin-bottom: 6px; }
.inline { display: flex; align-items: center; gap: 8px; font-weight: 400; min-height: 28px; }
button { width: 100%; min-height: 52px; margin-top: 20px; border: 0; border-radius: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 500; font-size: 18px; cursor: pointer; }
button:disabled { background: #6f6f6f; cursor: not-allowed; }
.note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
ol.note { padding-left: 20px; }
.stage { position: sticky; top: 24px; align-self: start; display: flex; justify-content: center; }
.frame { position: relative; height: min(84vh, 780px); max-width: 100%; aspect-ratio: 9 / 19.5; overflow: hidden; background: #dcdcdc; border: 1px solid var(--line); }
canvas { display: block; width: 100%; height: 100%; }
canvas[hidden] { display: none; }
.empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.empty[hidden] { display: none; }
.overlay { display: none; position: absolute; left: 0; right: 0; pointer-events: none; }
.with-overlay .overlay { display: flex; }
.overlay.top { top: 0; justify-content: center; align-items: flex-start; padding-top: 12%; background: rgb(0 0 0 / .05); border-bottom: 1px dashed rgb(0 0 0 / .45); }
.overlay.top span { font-size: 52px; font-weight: 500; line-height: 1; padding: 4px 10px; background: rgb(255 255 255 / .8); color: #000; }
.overlay.bottom { bottom: 0; justify-content: space-between; align-items: center; padding: 0 12%; background: rgb(0 0 0 / .05); border-top: 1px dashed rgb(0 0 0 / .45); }
.overlay.bottom i { width: 44px; height: 44px; border-radius: 50%; background: rgb(0 0 0 / .55); border: 1px solid #fff; }
footer { max-width: 1080px; margin: 0 auto; padding: 16px 24px 32px; font-size: 14px; color: var(--muted); }
footer a { color: var(--ink); }

@media (max-width: 820px) {
  main { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px 16px 16px; }
  .stage { position: static; }
  .frame { height: auto; width: min(100%, 320px); }
  .overlay.top span { font-size: 38px; }
  .overlay.bottom i { width: 34px; height: 34px; }
}
