:root {
  --paper: #F4EFE6;
  --paper-2: #EBE4D7;
  --ink: #16130F;
  --ink-2: #4A443C;
  --line: rgba(22, 19, 15, .22);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gut: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 clamp(16px, .6vw + 13px, 18px)/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.top { display: flex; align-items: center; gap: 14px; padding: 14px var(--gut); }
.home { font: 600 13px/1 var(--mono); text-decoration: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; }
.back { font: 500 15px/1.1 var(--serif); text-decoration: none; }
.lang { margin-left: auto; display: flex; border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; }
.lang button { font: 500 11px/1 var(--mono); letter-spacing: .06em; border: 0; background: none; color: var(--ink); padding: 8px 10px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.wrap { width: min(760px, 100%); margin: 0 auto; padding: clamp(24px, 6vw, 72px) var(--gut) 96px; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin-bottom: 28px; }
.bars i { width: 14px; border-radius: 14px 14px 0 0; transform-origin: 50% 100%; animation: grow 1s var(--ease) both; }
.bars i:nth-child(1) { background: #3B4BDB; height: 60%; animation-delay: .05s; }
.bars i:nth-child(2) { background: #F25C3B; height: 80%; animation-delay: .12s; }
.bars i:nth-child(3) { background: #F4B223; height: 50%; animation-delay: .19s; }
.bars i:nth-child(4) { background: #0FA38F; height: 90%; animation-delay: .26s; }
.bars i:nth-child(5) { background: #DB3F8E; height: 70%; animation-delay: .33s; }
.bars i:nth-child(6) { background: #6FB038; height: 100%; animation-delay: .4s; }
body.sent .bars i { animation: bounce .9s var(--ease) both; }
body.sent .bars i:nth-child(n) { height: 100%; }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes bounce { 0% { transform: scaleY(.2); } 60% { transform: scaleY(1.15); } 100% { transform: scaleY(1); } }

h1, h2 { margin: 0 0 14px; font: 400 clamp(40px, 7vw, 84px)/.95 var(--serif); letter-spacing: -.035em; font-variation-settings: "opsz" 72; animation: rise .9s .1s var(--ease) both; }
.intro { color: var(--ink-2); font: 420 clamp(19px, 1.8vw, 24px)/1.35 var(--serif); margin: 0 0 clamp(32px, 5vw, 56px); animation: rise .9s .2s var(--ease) both; }
form { display: grid; gap: 26px; animation: rise .9s .3s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }

.field { display: block; border: 0; margin: 0; padding: 0; min-width: 0; }
.label { display: block; font: 500 12px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; padding: 0; }
/* clearly boxed fields: light fill, visible border, coloured ring on focus */
input:not([type=checkbox]), textarea {
  width: 100%; font: inherit; color: inherit; background: #FFFDF9;
  border: 1.5px solid rgba(22, 19, 15, .35); border-radius: 12px;
  padding: 13px 15px; outline: none;
  transition: border-color .25s, box-shadow .25s;
}
input:not([type=checkbox])::placeholder, textarea::placeholder { color: rgba(22, 19, 15, .4); }
input:not([type=checkbox]):hover, textarea:hover { border-color: rgba(22, 19, 15, .6); }
textarea { resize: vertical; min-height: 120px; font: 420 19px/1.45 var(--serif); }
input:not([type=checkbox]):focus, textarea:focus { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.bad input:not([type=checkbox]), .bad textarea { border-color: #B23A1E; box-shadow: 0 0 0 3px rgba(178, 58, 30, .18); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; min-width: 44px; text-align: center; padding: 9px 14px; cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: 99px; font: 500 15px/1 var(--serif);
  transition: background .25s, color .25s, transform .3s var(--ease), border-color .25s;
}
.chip input:checked + span { background: var(--c); border-color: var(--c); color: var(--on); transform: translateY(-2px); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.check { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; cursor: pointer; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; }
.box { width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 8px; position: relative; transition: background .25s, border-color .25s; }
.box::after { content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px; border: solid var(--paper); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.check input:checked + .box { background: var(--c); border-color: var(--c); }
.check input:checked + .box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .box { outline: 2px solid var(--ink); outline-offset: 2px; }
.check.consent { font-size: .9em; color: var(--ink-2); }
.bad .box { border-color: #B23A1E; }

/* closed: fully hidden (no peeking label, not reachable with Tab); open: slides down */
/* the WhatsApp phone field: takes no space while closed, slides in when opened */
.reveal { display: none; margin-top: -14px; }
.reveal.open { display: block; animation: reveal .4s var(--ease) both; }
.reveal > div { padding: 4px 4px 4px 40px; }
@keyframes reveal { from { opacity: 0; transform: translateY(-8px); } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.msg { min-height: 1.4em; margin: 0; font-size: .95em; }
.msg.error { color: #B23A1E; }

.send {
  justify-self: start; display: inline-flex; align-items: center; gap: 14px;
  font: 500 18px/1 var(--sans); text-decoration: none;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 99px; padding: 18px 28px; cursor: pointer;
  transition: transform .3s var(--ease), background .3s;
}
.send i { font-style: normal; transition: transform .35s var(--ease); }
.send:hover { transform: translateY(-2px); }
.send:hover i { transform: translateX(5px); }
.send:disabled { opacity: .6; cursor: progress; }

.done { animation: rise .8s var(--ease) both; }
.done p { font: 420 clamp(19px, 1.8vw, 24px)/1.35 var(--serif); color: var(--ink-2); margin: 0 0 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}

.privacy-link { justify-self: start; margin: -16px 0 0 40px; font-size: .88em; color: var(--ink-2); }
.privacy-link:hover { color: var(--ink); }
