/* ============================================================
   Bawa website — page styles.
   Interim minimal layout (prd-interim-2026-07.md): top bar,
   hero with copy left + fit-check card right, footer.
   Tokens and card styles carried over from the Claude Design
   handoff conversion.
   ============================================================ */

html { scroll-behavior: smooth; }

/* ---- Rise animation (hero load) ---- */
@keyframes bawa-rise {
  from { opacity: 0; transform: translateY(46px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
  html { scroll-behavior: auto; }
}

/* ============ Top bar ============ */

.topbar {
  background: var(--paper);
}
.topbar .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
}
.topbar img { height: 34px; width: auto; display: block; }

/* ============ Hero / fit-check section ============ */

.fit {
  background-color: var(--paper);
  display: flex;
  min-height: calc(100svh - 68px);
}
.fit-inner {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  /* Asymmetric padding lifts the vertically-centred content ~20px
     toward the top nav (content top = (t - b) / 2 offset). */
  padding: 52px 40px 108px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}

.fit-intro,
.fit-card {
  opacity: 0;
  animation: bawa-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fit-card { animation-delay: 0.08s; }

/* Two lines exactly, one sentence per line (the <br> owns the break);
   the size cap is tuned so line 1 never re-wraps at laptop widths. */
.fit-intro h1 {
  /* 45px cap: the ceiling at which "Your business runs you." stays one
     line in the 532px column (Archivo 800). 52px+ re-wraps to 3 lines. */
  font-size: clamp(29px, 3.6vw, 45px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bawa-ink);
  margin: 0 0 20px;
}
.fit-intro p {
  color: var(--ink-700);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 46ch;
}

.fit-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 15px 26px;
  background: var(--bawa-terra);
  border-radius: 12px;
  color: var(--text-on-accent);
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out);
}
.fit-cta:hover {
  background: var(--terra-deep);
  color: var(--text-on-accent);
  text-decoration: none;
}

/* ---- The card ---- */

.fit-card {
  background: var(--paper-pure);
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(55, 54, 52, 0.05), 0 6px 20px rgba(55, 54, 52, 0.07);
}

.fit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.fit-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fit-progress { display: inline-flex; gap: 4px; }
.fit-progress span {
  width: 18px;
  height: 4px;
  background: var(--ink-200);
  border-radius: 2px;
}
.fit-progress span.done { background: var(--bawa-forest); }

.fit-step {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.fit-step.active { display: block; }

.fit-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-strong);
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.fit-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.fit-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--ink-300);
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  color: var(--text-body);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.fit-opt:hover { border-color: var(--bawa-blue); }

.fit-opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.fit-opt .dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ink-400);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.fit-opt .box { border-radius: var(--radius-sm); }

.fit-opt:has(input:checked) {
  border-color: var(--bawa-blue);
  background: var(--blue-soft);
  font-weight: 600;
  color: var(--text-strong);
}
.fit-opt:has(input:checked) .dot,
.fit-opt:has(input:checked) .box {
  border-color: var(--bawa-blue);
  background: var(--bawa-blue);
  box-shadow: inset 0 0 0 3px var(--paper-pure);
}
.fit-opt:has(input:focus-visible) {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.fit-other-input { display: none; margin-top: -12px; margin-bottom: 22px; }
.fit-other-input.visible { display: block; }

/* ---- Step 7 inputs ---- */

.fit-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.fit-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.fit-field input,
.fit-field select,
.fit-field textarea,
.fit-other-input input {
  width: 100%;
  font-family: var(--font-text);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  background: var(--paper);
  border: 2px solid var(--ink-300);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.fit-field input:focus,
.fit-field select:focus,
.fit-field textarea:focus,
.fit-other-input input:focus {
  outline: none;
  border-color: var(--bawa-blue);
}
.fit-field textarea { resize: vertical; min-height: 96px; }
.fit-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23453f38' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.fit-field-error {
  display: none;
  font-size: 13px;
  color: var(--terra);
  margin-top: 5px;
}
.fit-field.invalid .fit-field-error { display: block; }
.fit-field.invalid input { border-color: var(--terra); }

/* ---- Card footer row ---- */

.fit-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fit-back {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  visibility: hidden;
}
.fit-back.visible { visibility: visible; }
.fit-back:hover { color: var(--text-strong); }

/* Enabled = terracotta (the accent points at the action);
   disabled = visibly inert, not the same colour dimmed. */
.fit-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  background: var(--bawa-terra);
  border: 2px solid var(--bawa-terra);
  color: var(--text-on-accent);
  border-radius: 12px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.fit-next:hover:not(:disabled) {
  background: var(--terra-deep);
  border-color: var(--terra-deep);
}
.fit-next:disabled {
  background: var(--ink-200);
  border-color: var(--ink-200);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ---- Submission error / success states ---- */

.fit-error {
  display: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--terra);
  margin: 0 0 16px;
}
.fit-error.visible { display: block; }

.fit-success { display: none; }
.fit-success.visible { display: block; }
.fit-success .fit-label { margin-bottom: 16px; display: inline-block; }
.fit-success p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-strong);
  margin: 0;
}

/* ---- Honeypot: off-screen rather than display:none so bots still fill it ---- */
.hp-wrap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============ Footer ============ */

.site-footer {
  background-color: var(--bawa-ink);
  border-top: 2px solid var(--bawa-ink);
}
.site-footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer img { height: 26px; width: auto; }
.site-footer .by {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-200);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-footer .by:hover { color: #fbf9f4; text-decoration: underline; }
.site-footer .legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  /* ink-300 (not 400): the new footer grey is lighter, 400 dips under AA */
  color: var(--ink-300);
}

/* Narrow screens: stack the card header so the counter never wraps mid-phrase */
@media (max-width: 480px) {
  .fit-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .fit-label { white-space: nowrap; }
}

/* ============ Mobile ============ */

@media (max-width: 760px) {
  .topbar .inner { padding: 14px 20px; }
  .topbar img { height: 28px; }
  .fit { min-height: 0; }
  .fit-inner { padding: 36px 20px 64px; gap: 40px; }
  .site-footer .inner { padding: 28px 20px; }
}
