/* ==========================================================================
   Ogle.live — shared foundation
   Brand source: ogle.live (orange #F7941D, grey #6A7B82, Inter + Outfit).
   One light system for marketing and product; charcoal for chrome.
   ========================================================================== */

:root {
  --ink: #12161a;
  --ink-2: #3d474e;
  --ink-3: #6c7a83;
  --ink-4: #98a3aa;

  --line: #e4e8eb;
  --line-2: #d3d9dd;
  --surface: #ffffff;
  --canvas: #f6f7f8;

  --brand: #f7941d;
  --brand-hover: #e08316;
  --brand-ink: #171a1d;
  --brand-text: #a55c07;

  --grey-brand: #6a7b82;
  --ok: #0f7b4f;
  --ok-bg: #eaf6f0;
  --warn: #8a5a00;
  --warn-bg: #fdf3e2;
  --danger: #b42318;
  --danger-bg: #fdf0ef;

  --ui: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;

  --r: 8px;
  --r-sm: 6px;
  --shadow-1: 0 1px 2px rgba(18, 22, 26, 0.06);
  --shadow-2: 0 4px 12px -2px rgba(18, 22, 26, 0.1), 0 2px 4px -2px rgba(18, 22, 26, 0.06);
  --shadow-3: 0 24px 48px -12px rgba(18, 22, 26, 0.18);
  --focus: 0 0 0 2px #fff, 0 0 0 4px rgba(247, 148, 29, 0.55);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

::selection { background: #ffe6c7; color: var(--ink); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 100ms ease;
  white-space: nowrap;
}

.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }

.btn-brand {
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
}
.btn-brand:hover { background: var(--brand-hover); }

.btn-outline {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-outline:hover { background: #fbfbfc; border-color: var(--ink-4); }

.btn-quiet {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-text);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- forms ---------- */

.field { margin-bottom: 16px; }

.field > label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

textarea.input { height: auto; padding: 10px 12px; resize: vertical; min-height: 66px; line-height: 1.5; }
select.input { padding-right: 34px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236c7a83' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

.input::placeholder { color: var(--ink-4); }
.input:hover { border-color: #bfc7cc; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.16); }
.input.err { border-color: var(--danger); background: #fffbfb; }

.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.45; }
.error-msg { font-size: 12.5px; color: var(--danger); margin-top: 6px; display: none; }
.error-msg.show { display: block; }
.error-msg.ok { color: var(--brand-text); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---------- misc atoms ---------- */

.phone-group { display: flex; }
.phone-group select {
  width: 108px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  background: #f7f8f9;
  padding-left: 10px;
}
.phone-group .input { border-top-left-radius: 0; border-bottom-left-radius: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  background: #fff;
  white-space: nowrap;
}

.pill-ok { background: var(--ok-bg); border-color: #c3e5d4; color: var(--ok); }
.pill-warn { background: var(--warn-bg); border-color: #f0dcb5; color: var(--warn); }
.pill-brand { background: #fff3e3; border-color: #f8d3a5; color: var(--brand-text); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}

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