/* Joybooth SketchMe — shared tokens (derived from the JoyBooth brand sheet) */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;700;800;900&family=Inter:wght@400;500;600;700&family=Cairo:wght@500;700;800&family=Caveat:wght@400;700&family=Permanent+Marker&display=swap');

:root {
  --ink: #0A0A0A;
  --lens: #246C90;
  --lens-hi: #3E9CC4;
  --paper: #F7F8FA;
  --night: #0B1020;
  --vermillion: #E45424;
  --sun: #F0D854;
  --lime: #84C03C;
  --teal: #0CA884;
  --navy: #183C78;
  --violet: #603C90;
  --grape: #842484;
  --pink: #D83C90;
  --muted: #5b6170;
  --line: #e3e6ec;
  --card: #FFFFFF;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(10,10,10,.06), 0 8px 24px rgba(10,10,10,.08);
  --font: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  --display: Archivo, Inter, sans-serif;
  --hand: Caveat, cursive;
}
[dir="rtl"] { --font: Cairo, Inter, sans-serif; --display: Cairo, Archivo, sans-serif; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.5; }
img, video, canvas { max-width: 100%; display: block; }
a { color: var(--lens); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }

.lockup { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; line-height: 1; }
.lockup img { width: 92px; height: auto; margin: -14px 0 -10px; }
.lockup .product { font-family: var(--display); font-weight: 800; font-size: 10px; letter-spacing: .34em; color: var(--muted); text-transform: uppercase; padding-left: .34em; }
.lockup.row { flex-direction: row; gap: 4px; }
.lockup.row img { margin: -16px -8px; }
.lockup.row .product { border-left: 1.5px solid var(--line); padding: 4px 0 4px 14px; margin-left: 6px; }

.btn {
  appearance: none; border: 0; cursor: pointer; font: 600 16px/1 var(--font);
  padding: 14px 22px; border-radius: 999px; background: var(--lens); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  min-height: 48px; transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.btn:hover { box-shadow: 0 6px 18px rgba(36,108,144,.3); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.dark { background: var(--ink); }
.btn.danger { background: #b4232a; }
.btn.sm { padding: 9px 14px; min-height: 36px; font-size: 14px; }
.btn.block { width: 100%; }

label.field { display: block; font-weight: 600; font-size: 14px; margin: 0 0 14px; }
label.field > span { display: block; margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; font: 400 16px var(--font); padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--lens); box-shadow: 0 0 0 3px rgba(36,108,144,.15); }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }

.brackets { position: relative; }
.brackets::before, .brackets::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid var(--lens); pointer-events: none;
}
.brackets::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.brackets::after { bottom: -8px; right: -8px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px;
  transition: transform .25s ease; z-index: 1000; max-width: calc(100vw - 32px);
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
