/* Kanz — merchant flow retrofit
   These pages (join, login, portal, dashboard) were built before the new
   site and carry their own look. Rather than rewrite them and risk the
   form logic, this sheet loads last and re-points their own variables at
   the brand, then fixes typography and the few components that do not
   read from a variable. Structure, ids and scripts are untouched. */

:root,
html {
  /* join.html */
  --warm:   #faf5ec !important;
  --ink:    #122b2d !important;
  --mid:    #3f4e50 !important;
  --line:   #e6ded0 !important;
  --teal:   #0d5b61 !important;
  --orange: #c9453c !important;
  --green:  #1a7f4b !important;
  /* merchant_login.html */
  --cream:  #faf5ec !important;
  --gold:   #f4c430 !important;
  --dark:   #122b2d !important;
}

/* the old pages set font-family with a universal selector, so match it */
html body, html body * {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html body { background: #faf5ec; color: #122b2d; }

/* headings pick up the site's tight, large display setting */
html body h1 { font-size: 38px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
html body h2 { font-weight: 700; letter-spacing: -.025em; }
html body .logo, html body .brand span { letter-spacing: -.045em; color: #0d5b61; }

/* cards and panels: the site's radius, border and surface */
html body .wcard,
html body .jpanel,
html body .card,
html body .pick > * {
  background: #fff;
  border: 1px solid #e6ded0;
  border-radius: 22px;
}

/* the one action is gold, as everywhere else */
html body .wbtn,
html body .btn,
html body button[type="submit"] {
  background: linear-gradient(180deg, #ffd758 0%, #f4c430 100%);
  color: #122b2d;
  border: none;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 28px;
  box-shadow: 0 8px 22px rgba(190,142,10,.28);
  cursor: pointer;
}
html body .wbtn:hover,
html body .btn:hover,
html body button[type="submit"]:hover { filter: brightness(1.03); }

/* secondary / outline actions stay teal */
html body .btn.ghost,
html body .wbtn.ghost {
  background: none;
  border: 2px solid #0d5b61;
  color: #0d5b61;
  box-shadow: none;
}

/* form fields match the site's card edges */
html body input[type="text"],
html body input[type="email"],
html body input[type="password"],
html body input[type="tel"],
html body select,
html body textarea {
  border: 1px solid #e6ded0;
  border-radius: 13px;
  background: #fff;
  font-size: 16px;      /* 16px stops iOS zooming the page on focus */
  padding: 14px 15px;
  color: #122b2d;
}
html body input:focus,
html body select:focus,
html body textarea:focus {
  outline: 3px solid #0d5b61;
  outline-offset: 2px;
  border-color: #0d5b61;
}
html body label { color: #5c6370; letter-spacing: .08em; }

/* small print and footers */
html body .sub, html body .nl a, html body .foot { color: #3f4e50; }
/* .pill is the nav's "Merchant log in" and it hard-sets white text,
   so it has to keep a dark fill or the label disappears */
html body a.pill {
  background: #0d5b61 !important;
  color: #fff !important;
  border-radius: 999px; font-weight: 700; letter-spacing: .02em;
}

/* the sticky bar was white over a cream page */
html body nav, html body > header, html body .topbar, html body .top {
  background: #faf5ec !important;
  border-bottom: 1px solid #e6ded0 !important;
}

html body a { color: #122b2d; }
html body a:hover { color: #0d5b61; }
:focus-visible { outline: 3px solid #0d5b61; outline-offset: 3px; }
