/* ─── Estil provisional · tot el color i les fonts es canvien des d'aquí ─── */
:root {
  --ink: #141414;
  --muted: #6a6660;
  --line: #e6e1da;
  --bg: #ffffff;
  --accent: #5f7558;       /* verd salvia: color del detall */
  --accent-soft: #eef2ec;
  --danger: #b3261e;
  --script: 'Parisienne', cursive;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
}

.page { max-width: 560px; margin: 0 auto; padding: 36px 22px 56px; }

/* Capçalera */
.hero { text-align: center; padding: 20px 0 4px; }
.eyebrow {
  margin: 0 0 4px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
}
.script { font-family: var(--script); font-weight: 400; }
h1.script { margin: .1em 0; font-size: clamp(3.2rem, 17vw, 4.8rem); line-height: 1.05; }
h1 .amp { color: var(--accent); }
.lead { margin: 0 auto; max-width: 440px; color: var(--muted); }

.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  max-width: 220px; margin: 18px auto; color: var(--accent);
}
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .45; }
.ornament i { width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }

/* Camps */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { margin: 30px 0; }
.q { display: block; margin: 0 0 10px; padding: 0; font-size: .95rem; font-weight: 500; }

input[type=text], input[type=email], input[type=number], textarea {
  width: 100%;
  font: inherit; font-weight: 300; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 10px 2px;
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
textarea { resize: vertical; min-height: 96px; padding: 12px; border: 1px solid var(--line); border-bottom: 1px solid var(--ink); }
::placeholder { color: #a39e97; }

/* Sí / No */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 96px; min-height: 46px; padding: 0 24px;
  border: 1px solid var(--ink);
  font-weight: 400; letter-spacing: .04em;
  transition: background .2s, color .2s, border-color .2s;
}
.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Blocs condicionals */
.sub { margin-top: 22px; padding-left: 16px; border-left: 1px solid var(--accent); }
.sub > .field:first-child { margin-top: 0; }
.sub .field:last-child { margin-bottom: 8px; }
.hint { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }

/* Números */
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button {
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--ink); border-radius: 50%;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.stepper button:active { background: var(--accent-soft); }
.stepper input { width: 58px; text-align: center; font-size: 1.1rem; font-weight: 400; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Menús especials */
.menu-list { display: grid; gap: 10px; }
.menu-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 8px 14px;
  border: 1px solid var(--line);
}
.menu-opt label { display: flex; flex: 1; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 400; }
.menu-opt input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.menu-opt .stepper button { width: 36px; height: 36px; font-size: 1.15rem; }
.menu-opt .stepper input { width: 42px; padding: 6px 0; }

/* Botó i missatges */
.btn {
  display: block; width: 100%; min-height: 54px; margin-top: 38px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: 0;
  font: inherit; font-size: .8rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; transition: background .25s, border-color .25s;
}
.btn:hover, .btn:focus-visible { background: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: .6; cursor: wait; }

.err { margin: 8px 0 0; color: var(--danger); font-size: .84rem; font-weight: 400; }
.err:empty { display: none; }
.status { margin: 14px 0 0; text-align: center; font-size: .9rem; color: var(--accent); }
.status.is-error { color: var(--danger); }
.notice { margin: 26px 0 0; padding: 12px 14px; background: var(--accent-soft); border-left: 2px solid var(--accent); font-size: .92rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Gràcies */
.thanks { text-align: center; padding-top: 20px; }
.thanks h2 { margin: 0; font-size: 3.2rem; line-height: 1.1; font-weight: 400; }
.thanks .small { margin-top: 28px; font-size: .88rem; color: var(--muted); }
.copy { display: flex; gap: 8px; margin-top: 10px; }
.copy input { font-size: .85rem; }
.copy button, .link {
  font: inherit; font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  background: none; color: var(--ink); cursor: pointer;
}
.copy button { padding: 0 16px; border: 1px solid var(--ink); }
.copy button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.link { margin-top: 28px; padding: 4px 0; border: 0; border-bottom: 1px solid var(--accent); }

.foot { margin-top: 56px; text-align: center; color: var(--accent); }
.foot p { margin: 0; font-size: 1.8rem; }

button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
