/* ============================================================
 * Bokaren brand system — shared styles for bokaren's own funnel
 * pages (register, login, privacy, onboarding). Scoped under
 * `.brand` so it doesn't leak into the portal or per-tenant
 * booking pages that rely on style.css / booking themes.
 *
 * Values mirror static/landing.css (--ln-*) so the landing page
 * and the funnel pages share a visual language. Tokens are
 * declared at :root so they can be referenced from inline style
 * blocks on the funnel templates.
 * ============================================================ */

:root {
  --br-paper:      #FAFAF7;
  --br-sand:       #F3F0EA;
  --br-border:     #E6E3DC;
  --br-ink:        #0F1113;
  --br-ink-soft:   #1A1D21;
  --br-text:       #111111;
  --br-text-dim:   #3B3B3B;
  --br-text-muted: #5B5B5B;
  --br-coral:      #F15A42;
  --br-coral-deep: #D94B34;

  --br-peach:    #FCD5B5;
  --br-rose:     #F7C9D0;
  --br-mint:     #C3E8D3;
  --br-sky:      #BDDEEE;
  --br-lavender: #D8C9F5;
  --br-butter:   #F6E1A0;
  --br-sage:     #CBDDC0;
  --br-clay:     #E8C5B0;

  --br-radius-sm: 6px;
  --br-radius:    12px;
  --br-radius-lg: 20px;

  --br-shadow-float: 0 1px 2px rgba(0,0,0,.04), 0 20px 50px rgba(17,17,17,.08);
  --br-shadow-card:  0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(17,17,17,.06);
  --br-maxw: 1120px;
}

/* ---------- Wrapper ---------- */
.brand {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  color: var(--br-text);
  background: var(--br-paper);
  line-height: 1.5;
  font-size: 16px;
  min-height: 100vh;
}

/* Reset anything inherited from style.css that would visually leak.
 * Specificity-wise these match or beat the global rules in style.css. */
.brand *, .brand *::before, .brand *::after { box-sizing: border-box; }
.brand img { max-width: 100%; display: block; }
.brand button { font-family: inherit; }
.brand h1, .brand h2, .brand h3, .brand h4, .brand p { margin: 0; }
.brand ul { margin: 0; padding: 0; list-style: none; }

/* Links: by default inherit color (for nav / cards / headings).
 * Use .brand .link for body-text links that should stand out. */
.brand a { text-decoration: none; color: inherit; }
.brand .link { color: var(--br-coral); font-weight: 600; }
.brand .link:hover { color: var(--br-coral-deep); }

/* ---------- Typography ---------- */
.brand .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--br-text-muted);
  margin: 0 0 14px;
}
.brand h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.03; letter-spacing: -0.03em; font-weight: 700;
  color: var(--br-text);
}
.brand h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 700;
  color: var(--br-text);
}
.brand h3 {
  font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--br-text);
}
.brand p { color: var(--br-text-dim); }
.brand .lead {
  font-size: 19px; line-height: 1.55;
  color: var(--br-text-dim); max-width: 640px;
}
.brand .micro {
  color: var(--br-text-muted); font-size: 13px;
}
.brand .micro b { color: var(--br-text); font-weight: 700; }

/* ---------- Buttons ---------- */
.brand .btn-coral,
.brand .btn-ink,
.brand .btn-ghost,
.brand .btn-quiet {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
}
.brand .btn-coral { background: var(--br-coral); color: #fff; }
.brand .btn-coral:hover { background: var(--br-coral-deep); color: #fff; }
.brand .btn-ink { background: var(--br-ink); color: #fff; }
.brand .btn-ink:hover { background: #000; color: #fff; }
.brand .btn-ghost {
  background: transparent; color: var(--br-text);
  border-color: var(--br-text);
  padding: 11.5px 24px;
}
.brand .btn-ghost:hover { background: var(--br-text); color: #fff; }
.brand .btn-quiet {
  background: #fff; color: var(--br-text);
  border-color: var(--br-border);
  padding: 11.5px 24px;
}
.brand .btn-quiet:hover { border-color: var(--br-text); }
.brand .btn-sm { padding: 8.5px 18px; font-size: 14px; }
.brand .btn-lg { padding: 15px 30px; font-size: 16.5px; }
.brand .btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Cards ---------- */
.brand .card {
  background: #fff;
  border: 1px solid var(--br-border);
  border-radius: var(--br-radius);
  padding: 28px;
  box-shadow: none;
}
.brand .card-float { box-shadow: var(--br-shadow-card); }
.brand .card-lg { padding: 36px; border-radius: var(--br-radius-lg); }

/* ---------- Form controls ---------- */
.brand label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--br-text);
  letter-spacing: 0.01em;
}
.brand input,
.brand select,
.brand textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--br-border);
  border-radius: var(--br-radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--br-text);
  background: #fff;
  line-height: 1.3;
  transition: border-color .15s, box-shadow .15s;
}
.brand input[type="checkbox"],
.brand input[type="radio"] {
  width: auto;
  padding: 0;
  accent-color: var(--br-coral);
}
.brand input:focus,
.brand select:focus,
.brand textarea:focus {
  outline: none;
  border-color: var(--br-ink);
  box-shadow: 0 0 0 3px rgba(15, 17, 19, .08);
}
.brand .form-group { margin-bottom: 18px; }
.brand .form-hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--br-text-muted);
}
.brand .form-error {
  color: var(--br-coral-deep);
  font-size: 12.5px;
  margin-top: 6px;
}

/* Segmented pill-button control (used on register business-type toggle).
 * Expects a flex row of <button class="brand-seg"> siblings, with the
 * active button carrying `brand-seg-active`. */
.brand .brand-seg {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--br-border);
  background: #fff;
  color: var(--br-text);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.brand .brand-seg:hover { border-color: var(--br-text); }
.brand .brand-seg-active {
  background: var(--br-ink);
  color: #fff;
  border-color: var(--br-ink);
}
.brand .brand-seg-active:hover { background: #000; border-color: #000; }

/* ---------- Messages ---------- */
.brand .success-msg {
  background: #ECF7F0;
  color: #14532d;
  border: 1px solid #C3E8D3;
  padding: 12px 14px;
  border-radius: var(--br-radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
.brand .error-msg {
  background: #FCECE9;
  color: #7f1d1d;
  border: 1px solid #F6C7BE;
  padding: 12px 14px;
  border-radius: var(--br-radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}

/* ---------- Top bar (wordmark + optional nav link) ---------- */
.brand .topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 250, 247, .9);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--br-border);
}
.brand .topbar-inner {
  max-width: var(--br-maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 20px;
}
.brand .wordmark {
  font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--br-text);
  min-height: 44px;
}
.brand .wordmark-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; background: var(--br-coral);
}
.brand .topbar-spacer { flex: 1; }
.brand .topbar-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--br-text-dim);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand .topbar-link:hover { color: var(--br-coral); }

/* ---------- Section scaffolding ---------- */
.brand .wrap {
  max-width: var(--br-maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.brand .section {
  padding: clamp(48px, 7vw, 96px) 28px;
}

/* ---------- Pastel accent chip ---------- */
.brand .pastel {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand .pastel-peach    { background: var(--br-peach); }
.brand .pastel-rose     { background: var(--br-rose); }
.brand .pastel-mint     { background: var(--br-mint); }
.brand .pastel-sky      { background: var(--br-sky); }
.brand .pastel-lavender { background: var(--br-lavender); }
.brand .pastel-butter   { background: var(--br-butter); }
.brand .pastel-sage     { background: var(--br-sage); }
.brand .pastel-clay     { background: var(--br-clay); }

/* ---------- Terms acceptance checkbox on /register ---------- */
.brand .terms-check {
    margin-top: 8px;
}
.brand .checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.45;
    cursor: pointer;
    color: var(--br-text);
}
.brand .checkbox-row input[type="checkbox"] {
    margin-top: 3px;
    flex: none;
    accent-color: var(--br-coral);
}
.brand .checkbox-row span {
    flex: 1;
}
.brand .checkbox-row a {
    color: var(--br-coral);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.brand .checkbox-row a:hover {
    text-decoration: none;
}
