/* Sellhelm - shared foundations: fonts, colour tokens, buttons, forms.
   The colours come from the program itself (ink header, cool paper page, one
   cobalt-to-violet gradient reserved for the main action) so the website and the
   panel feel like one product. */

@font-face { font-family: 'Geist'; src: url('/fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #0a0f1f;
  --ink-2: #111a35;
  --ink-3: #1c2750;
  --paper: #f4f6fc;
  --surface: #ffffff;
  --line: #dde3f0;
  --line-2: #c5cee3;
  --text: #0f1729;
  --muted: #566076;
  --faint: #8590a6;
  --cobalt: #3d7bff;
  --violet: #7a3cf5;
  --grad: linear-gradient(135deg, #3d7bff 0%, #7a3cf5 100%);
  --green: #0c8a5e;
  --green-bg: #e0f5ec;
  --amber: #a85f00;
  --amber-bg: #fff0d1;
  --red: #c8281c;
  --red-bg: #fde6e3;
  --blue: #2557d6;
  --blue-bg: #e5edff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, .06);
  --shadow: 0 1px 2px rgba(15, 23, 41, .05), 0 12px 32px -12px rgba(15, 23, 41, .16);
  --font-display: 'Geist', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --font: 'Geist', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
code, kbd, .mono { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }
::selection { background: #cddcff; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 1000; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-mark { display: block; border-radius: 8px; }
.wordmark { font: 700 21px/1 var(--font-display); letter-spacing: -.035em; }
.wordmark b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- buttons
   One system: 40px default, 32px small, 52px large. The gradient is used ONLY
   for the one primary action on a screen. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font: 600 15px/1 var(--font); text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { border-color: var(--cobalt); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 20px -6px rgba(89, 80, 245, .6), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { color: #fff; border-color: transparent; box-shadow: 0 10px 28px -8px rgba(89, 80, 245, .75), inset 0 1px 0 rgba(255,255,255,.3); transform: translateY(-1px); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--red); border-color: #f0b8b3; background: #fff; }
.btn-danger:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 17px; border-radius: 12px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-block { display: flex; width: 100%; }

/* ------------------------------------------------------------------ forms */
label, .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { display: block; color: var(--muted); font-size: 13.5px; margin-top: 6px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px;
  background: #fff; color: var(--text); font: 400 16px/1.3 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: #9fb0d6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(61, 123, 255, .18); }
input.mono, textarea.mono { font-family: var(--mono); font-size: 14.5px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--cobalt); margin: 0; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 1.45; }
.check input { margin-top: 2px; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; border: 1px solid; }
.flash-ok { background: var(--green-bg); border-color: #a9e2c8; color: #065a3d; }
.flash-error { background: var(--red-bg); border-color: #f4b4ad; color: #8c1a11; }
.flash-info { background: var(--blue-bg); border-color: #b8ccff; color: #1a3f9e; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: #eef1f8; color: #3a4562; white-space: nowrap; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }
.badge-green { background: var(--green-bg); color: #075f40; }
.badge-amber { background: var(--amber-bg); color: #7a4500; }
.badge-red { background: var(--red-bg); color: #8c1a11; }
.badge-blue { background: var(--blue-bg); color: #1d45b0; }
.badge-grey { background: #eceff6; color: #4a5470; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* a trap field for form bots: real people never see or fill it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
