/* Build Us: fonts, tokens, buttons, fields, sheets (shared by the builder and the maker) */
@font-face { font-family: 'Bungee'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/bungee-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bungee'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/bungee-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Gabarito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/gabarito-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Gabarito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/gabarito-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #2d2640;
  --ink-2: rgba(45, 38, 64, 0.74);
  --ink-3: rgba(45, 38, 64, 0.52);
  --paper: #fffaf3;
  --paper-2: #fff3e6;
  --glass: rgba(255, 250, 243, 0.86);
  --line: rgba(45, 38, 64, 0.13);
  --a: #ff6f5e;
  --a-dark: #d64d3e;
  --b: #3f8efc;
  --b-dark: #2a6ccf;
  --brick: #ff6f5e;
  --brick-dark: #cf4a3b;
  --focus: #3f8efc;
  --display: 'Bungee', 'Arial Black', system-ui, sans-serif;
  --body: 'Gabarito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --shadow: 0 10px 30px -12px rgba(45, 38, 64, 0.35), 0 2px 6px rgba(45, 38, 64, 0.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; background: #fff3e4; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--b-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the wordmark: BUILD + US */
.wordmark { font-family: var(--display); font-size: 22px; letter-spacing: 0.02em; margin: 0; color: var(--ink); line-height: 1; }
.wordmark span { color: var(--a); margin-left: 0.18em; }

/* buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--paper); color: var(--ink); text-decoration: none;
  font-family: var(--body); font-weight: 700; font-size: 16px; letter-spacing: 0.005em; white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { background: #fff; }
.btn:active { transform: translateY(2px); }
.btn-small { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(45, 38, 64, 0.06); }
/* the signature button: a brick with two studs */
.btn-brick {
  background: var(--brick); color: #fff; border: 0; margin-top: 6px;
  box-shadow: 0 4px 0 var(--brick-dark), 0 12px 24px -10px var(--brick-dark);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
.btn-brick::before, .btn-brick::after {
  content: ''; position: absolute; top: -6px; width: 22px; height: 8px; border-radius: 6px 6px 2px 2px;
  background: var(--brick); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.28);
}
.btn-brick::before { left: 22%; }
.btn-brick::after { right: 22%; }
.btn-brick:hover { background: color-mix(in srgb, var(--brick) 90%, white); }
.btn-brick:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--brick-dark), 0 6px 14px -8px var(--brick-dark); }
.btn-brick[disabled] { filter: grayscale(0.6) opacity(0.6); cursor: default; }
.btn-big { min-height: 58px; font-size: 19px; padding: 0 30px; border-radius: 16px; }
.linkbtn { background: none; border: 0; padding: 10px 8px; min-height: 46px; color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* fields */
.field { display: block; margin: 0 0 14px; }
.lbl { display: block; font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.muted { color: var(--ink-3); font-weight: 500; }
.field input[type=text], .field input:not([type]), .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 14px; border: 2px solid var(--line);
  background: #fff; font-size: 16px; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--b); outline: none; box-shadow: 0 0 0 3px rgba(63, 142, 252, 0.2); }
.count-line { display: block; text-align: right; font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.hint-line { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }
.warn { font-size: 14px; color: #a2381f; background: #ffe9e2; padding: 10px 12px; border-radius: 12px; margin: 0 0 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 6px 0 14px; padding: 10px 12px; border-radius: 14px; background: var(--paper-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--a); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; text-align: left; }
.chip:hover { border-color: var(--b); }

/* sheets: bottom sheet on phones, centred card on desktop */
.sheet, .modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(35, 28, 52, 0.36); padding: 0 var(--sar) 0 var(--sal); }
.sheet-inner, .modal-inner {
  width: 100%; max-width: 520px; max-height: min(90vh, 90dvh); overflow: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: 26px 26px 0 0; box-shadow: var(--shadow);
  padding: 22px 18px calc(18px + var(--sab));
  animation: sheet-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) and (min-height: 560px) {
  .sheet, .modal { align-items: center; }
  .sheet-inner, .modal-inner { border-radius: 26px; padding: 26px 26px 22px; }
}
.sheet-title { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.15; margin: 0 0 6px; letter-spacing: 0.01em; }
.sheet-sub { margin: 0 0 16px; color: var(--ink-2); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.sheet-actions .btn { flex: 1 1 auto; }

.toast {
  position: fixed; z-index: 80; left: 50%; top: calc(var(--sat) + 74px); transform: translateX(-50%);
  width: max-content; max-width: min(92vw, 420px); padding: 10px 16px; border-radius: 14px; background: var(--ink); color: #fff;
  font-weight: 600; font-size: 15px; text-align: center; box-shadow: var(--shadow); pointer-events: none;
  animation: toast-in 0.25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.noscript, .fallback { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; padding: 24px; text-align: center; background: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
