* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-weight: 700;
}
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }
button { font-family: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- shared background field (floating gradient blobs) ---------- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, #fcfcfb 0%, #f8f7f4 100%);
}
.bg-field .blob {
  position: absolute;
  border-radius: 50%;
  opacity: var(--glow-op);
}
.bg-field .b1 {
  top: -160px; left: -120px; width: 560px; height: 560px; filter: blur(70px);
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%);
  animation: floaty 18s ease-in-out infinite;
}
.bg-field .b2 {
  top: 120px; right: -140px; width: 620px; height: 620px; filter: blur(80px);
  background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--accent2) 50%, transparent), transparent 70%);
  animation: floaty2 22s ease-in-out infinite;
}
.bg-field .b3 {
  bottom: -200px; left: 30%; width: 640px; height: 640px; filter: blur(90px);
  opacity: calc(var(--glow-op) * 0.8);
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent3) 45%, transparent), transparent 70%);
  animation: floaty 26s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .bg-field .blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- glass utility ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-inset), var(--shadow-md);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--btn-shadow);
}
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.03); box-shadow: 0 2px 8px -2px rgba(214, 178, 0, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.05); }
.btn-ghost {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 18, 12, 0.04);
}
.btn-ghost:hover { color: var(--ink); background: #fbfbf9; border-color: #e0dfda; }
.btn-soft {
  background: rgba(20, 18, 12, 0.05);
  color: var(--ink2);
}
.btn-soft:hover { background: rgba(20, 18, 12, 0.09); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(1.06); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 15px; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- form controls ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink3);
}
.input, .select, textarea.input {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--r-sm);
  background: #f7f7f5;
  border: 1px solid #ecebe7;
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, textarea.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a909c' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 30px;
  cursor: pointer;
}
.checkbox-row { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }

.hint { font-size: 12.5px; color: var(--ink3); line-height: 1.45; }

/* utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
.spinner-ink { border: 2.5px solid rgba(20, 30, 70, 0.15); border-top-color: var(--accent); }
