/* ─────────────────────────────────────────────────────────────
   Heyseed — Application pages (brand + retailer)
   Shares the tokens / type / button system from index.html
   ───────────────────────────────────────────────────────────── */

:root {
  --inkwell:        #000000;
  --canvas:         #f7f5f2;
  --cool-canvas:    #f5f5f5;
  --porcelain:      #ffffff;
  --whisper-white:  #efefef;
  --pale-ash:       #e0e0e0;
  --sterling:       #999999;
  --storm-gray:     #a1a1a1;
  --dim:            #6e6e6e;

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;

  --t-caption:    12px;
  --t-body-sm:    14px;
  --t-body:       16px;
  --gutter:       48px;
  --max-wide:     1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.4;
  color: var(--inkwell);
  background: var(--cool-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.inline { display: inline; margin: 0; }

.marketing-flash-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: min(640px, calc(100% - 32px));
}
.marketing-flash {
  background: var(--porcelain);
  color: var(--inkwell);
  border: 1px solid var(--pale-ash);
  border-radius: 999px;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
}

.wrap {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

.label {
  font-size: var(--t-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.muted { color: var(--storm-gray); }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--inkwell);
  color: var(--canvas);
  border-radius: 999px;
  padding: 14px 22px;
  font-size: var(--t-body-sm);
  line-height: 1;
  letter-spacing: 0.02em;
  transition: opacity .15s ease;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.86; }
.btn-primary .dot { color: var(--canvas); font-size: 0.85em; }

.btn-primary.big {
  width: 100%;
  justify-content: center;
  padding: 20px 28px;
  font-size: 16px;
  letter-spacing: -0.005em;
  font-weight: 500;
}
.btn-primary.big .dot { font-size: 1em; }

/* ─── Nav ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklab, var(--cool-canvas) 90%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid color-mix(in oklab, var(--pale-ash) 60%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.wordmark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}
.wordmark .dot.dot-circle {
  width: 0.8em;
  height: 0.8em;
  background: var(--inkwell);
  border-radius: 999px;
  display: inline-block;
  margin-left: 2px;
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-right .nav-link {
  font-size: var(--t-body-sm);
  color: var(--inkwell);
  padding: 4px 2px;
  transition: color .15s ease;
}
.nav-right .nav-link:hover { color: var(--storm-gray); }

/* ─── Page layout ─── */
main.app {
  flex: 1;
  padding: 64px 0 96px;
}
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 80px;
  align-items: start;
}

/* Left rail */
.intro .eyebrow {
  color: var(--inkwell);
  font-size: var(--t-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}
.intro .eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--inkwell);
  border-radius: 999px;
  display: inline-block;
}
.intro h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 24px;
  text-wrap: balance;
}
.intro h1 .dot { font-size: 0.45em; vertical-align: 0.5em; margin-left: 0.04em; }
.intro .lede {
  font-size: 19px;
  line-height: 1.45;
  color: var(--dim);
  margin: 0 0 56px;
  max-width: 42ch;
  letter-spacing: -0.005em;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.benefits li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--pale-ash);
  align-items: start;
}
.benefits li:last-child { border-bottom: 1px solid var(--pale-ash); }
.benefits .marker {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 2px;
}
.benefits .marker .dot {
  width: 8px;
  height: 8px;
  background: var(--inkwell);
  border-radius: 999px;
  display: inline-block;
}
.benefits h4 {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0 0 4px;
}
.benefits p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--storm-gray);
  margin: 0;
  max-width: 44ch;
}

/* ─── Form card ─── */
.form-card {
  background: var(--porcelain);
  border-radius: 14px;
  padding: 40px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.03),
    0 18px 40px -24px rgba(0,0,0,0.12);
  border: 1px solid color-mix(in oklab, var(--pale-ash) 50%, transparent);
}
.form-card h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0 0 8px;
}

.field { margin-bottom: 22px; }
.field > label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-help {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--storm-gray);
  line-height: 1.4;
}

.input, .select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--inkwell);
  background: var(--porcelain);
  border: 1px solid var(--pale-ash);
  border-radius: 10px;
  padding: 13px 14px;
  line-height: 1.2;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
textarea {
  min-height: 120px;
  line-height: 1.5;
  resize: vertical;
}
.input::placeholder, textarea::placeholder { color: #b9b9b9; }
.input:focus, .select:focus, textarea:focus {
  outline: none;
  border-color: var(--inkwell);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M2 5l5 5 5-5' fill='none' stroke='%236e6e6e' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
  color: var(--storm-gray);
}
.select.has-value { color: var(--inkwell); }

.submit-row { margin-top: 36px; }
.signin-line {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--storm-gray);
}
.signin-line a {
  color: var(--inkwell);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.signin-line a .dot { font-size: 0.7em; }

.legal {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--storm-gray);
  text-align: center;
}
.legal a { text-decoration: underline; text-underline-offset: 2px; }

.field-error {
  margin-top: 6px;
  color: var(--inkwell);
  font-size: 12px;
}

/* ─── Footer (minimal) ─── */
.app-foot {
  border-top: 1px solid var(--pale-ash);
  padding: 24px 0;
  font-size: var(--t-caption);
  letter-spacing: 0.02em;
  color: var(--storm-gray);
}
.app-foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.app-foot a { display: inline-flex; align-items: center; gap: 6px; }
.app-foot .dot { color: var(--inkwell); }

/* ─── Responsive ─── */
@media (max-width: 980px) {
  :root { --gutter: 24px; }
  main.app { padding: 32px 0 64px; }
  .app-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .intro h1 { font-size: 44px; }
  .intro .lede { margin-bottom: 40px; font-size: 17px; }
  .form-card { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-right { gap: 12px; }
  .nav-right .nav-link.hide-sm { display: none; }
  .app-foot-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
