@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Inter:wght@300;400;500;600&family=Anton&display=swap');

* { box-sizing: border-box; }

html, body {
  background: #ffffff;
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
}

.page {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ── Header ── */
.header {
  text-align: center;
  padding: 2.75rem 0 1.75rem;
  border-bottom: 0.5px solid rgba(10,10,15,0.07);
  margin-bottom: 1.5rem;
}
.logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(10,10,15,0.04);
  border: 0.5px solid rgba(10,10,15,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  overflow: hidden;
}
.logo-circle img { width: 62px; height: 62px; object-fit: contain; }
.title {
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  color: rgba(10,10,15,0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.6rem 0 0;
  line-height: 1;
}
.subtitle {
  font-size: 13px;
  color: rgba(10,10,15,0.82);
  margin: 0.6rem 0 0;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ── Field labels ── */
.field-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(10,10,15,0.6);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin: 1.1rem 0 0.4rem;
  display: block;
}
.optional {
  color: rgba(10,10,15,0.45);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
}

/* ── Text / number inputs ── */
input[type="text"], input[type="number"] {
  width: 100%;
  background: rgba(10,10,15,0.04);
  border: 0.5px solid rgba(10,10,15,0.09);
  border-radius: 8px;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 0.65rem 0.9rem;
  outline: none;
}
input[type="text"]:focus, input[type="number"]:focus {
  border-color: rgba(90,157,240,0.4);
}
input::placeholder { color: rgba(10,10,15,0.18); }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Height slider ── */
input[type="range"] {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(10,10,15,0.08);
  appearance: none;
  margin: 0.9rem 0 0.3rem;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #5a9df0;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(90,157,240,0.4);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #5a9df0;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(90,157,240,0.4);
  cursor: pointer;
}
.height-readout {
  color: #5a9df0;
  font-size: 13px;
  text-align: center;
}

/* ── Pill checkboxes / radios (board type, skill) ── */
.pill-row {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.pill-row.wrap { flex-wrap: wrap; }

.pill-checkbox, .pill-radio {
  position: relative;
  cursor: pointer;
  font-size: 10.5px;
  color: rgba(10,10,15,0.62);
  border: 0.5px solid rgba(10,10,15,0.09);
  border-radius: 6px;
  padding: 0.3rem 0.45rem;
  white-space: nowrap;
  transition: all 0.15s;
}
.pill-checkbox {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(10,10,15,0.02);
  border-radius: 8px;
  padding: 0.6rem 0.5rem;
  font-size: 13px;
}
.pill-checkbox input, .pill-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.pill-checkbox:has(input:checked), .pill-radio:has(input:checked) {
  border-color: rgba(90,157,240,0.45);
  background: rgba(90,157,240,0.1);
  color: #8bbeff;
}

/* ── CTA button ── */
.cta-button {
  display: block;
  width: 100%;
  margin-top: 1.4rem;
  background: rgba(90,157,240,0.13);
  border: 0.5px solid rgba(90,157,240,0.28);
  color: #8bbeff;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s;
}
.cta-button:hover { background: rgba(90,157,240,0.22); border-color: rgba(90,157,240,0.5); color: #acd0ff; }
.cta-button:disabled { opacity: 0.35; cursor: default; }

.secondary-button {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  background: transparent;
  border: 0.5px solid rgba(10,10,15,0.09);
  color: rgba(10,10,15,0.6);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 0.7rem;
  cursor: pointer;
}
.secondary-button:hover { border-color: rgba(10,10,15,0.2); }

/* ── Conversation ── */
.conversation { margin-top: 1.5rem; }
.conversation.hidden { display: none; }

.section-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.section-divider::before, .section-divider::after {
  content: "";
  flex: 1;
  height: 0.5px;
  background: rgba(10,10,15,0.07);
}
.section-divider span {
  font-size: 10px;
  color: rgba(10,10,15,0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.messages { margin-bottom: 1rem; }

.bubble-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}
.bubble-row.user { justify-content: flex-end; }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10,10,15,0.04);
  border: 0.5px solid rgba(10,10,15,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  overflow: hidden;
}
.avatar img { width: 26px; height: 26px; object-fit: contain; }

.bubble {
  font-size: 13.5px;
  line-height: 1.75;
  max-width: 520px;
  font-family: 'Inter', sans-serif;
  padding: 0.85rem 1rem;
}
.bubble.assistant {
  background: rgba(10,10,15,0.04);
  border: 0.5px solid rgba(10,10,15,0.08);
  border-radius: 2px 12px 12px 12px;
  color: rgba(10,10,15,0.82);
}
.bubble.user {
  background: rgba(90,157,240,0.1);
  border: 0.5px solid rgba(90,157,240,0.2);
  border-radius: 12px 2px 12px 12px;
  color: rgba(10,10,15,0.78);
  max-width: 400px;
}

.shopify-links {
  margin: 0.2rem 0 0.9rem 44px;
}
.shopify-links a {
  display: block;
  color: #5a9df0;
  text-decoration: none;
  font-size: 11.5px;
  margin-bottom: 0.25rem;
}

/* ── Board cards ── */
.board-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 0.75rem 0 1.5rem;
}
.board-card {
  border-radius: 10px;
  padding: 0.9rem 0.85rem;
  border: 0.5px solid rgba(10,10,15,0.08);
  background: rgba(10,10,15,0.03);
}
.board-card.top {
  border: 0.5px solid rgba(90,157,240,0.28);
  background: rgba(90,157,240,0.06);
}
.board-card .label {
  font-size: 9.5px;
  color: rgba(10,10,15,0.2);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.board-card.top .label { color: #8bbeff; }
.board-card .name {
  font-size: 13.5px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}
.board-card .size {
  font-size: 11px;
  color: rgba(10,10,15,0.28);
  margin-bottom: 0.45rem;
}
.board-card .spec {
  font-size: 10.5px;
  color: rgba(10,10,15,0.22);
  line-height: 1.9;
}
.board-card .spec span { color: rgba(90,157,240,0.7); }
.board-card .store-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 10.5px;
  color: #5a9df0;
  text-decoration: none;
  letter-spacing: 0.02em;
}

/* ── Chat input ── */
.chat-form {
  border-top: 0.5px solid rgba(10,10,15,0.06);
  padding: 0.75rem 0;
}
.chat-form input {
  width: 100%;
  background: rgba(10,10,15,0.04);
  border: 0.5px solid rgba(10,10,15,0.09);
  border-radius: 10px;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  padding: 0.75rem 1rem;
  outline: none;
}
.chat-form input:focus { border-color: rgba(90,157,240,0.4); }
.chat-form input::placeholder { color: rgba(10,10,15,0.2); }

/* ── Spinner ── */
.spinner-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(10,10,15,0.5);
  margin: 0.5rem 0 1rem;
}
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(10,10,15,0.1);
  border-top-color: #8bbeff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-message {
  background: rgba(10,10,15,0.04);
  border: 0.5px solid rgba(10,10,15,0.09);
  color: rgba(10,10,15,0.6);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 13px;
  margin: 0.5rem 0 1rem;
}

/* ── Footer ── */
.footer {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid rgba(10,10,15,0.06);
}
.footer span { font-size: 11px; color: rgba(10,10,15,0.5); }
.footer a { font-size: 11px; color: rgba(90,157,240,0.8); text-decoration: none; }

/* ── Mobile ── */
@media (max-width: 640px) {
  .page { padding: 0 0.75rem 3rem; }
  .pill-row.wrap { flex-wrap: wrap; gap: 5px; }
  .board-cards { grid-template-columns: 1fr; }
}
