/* ============================================================
   Enquesta AFA · CEIP Ses Marjades
   Tema: marjades (bancals de pedra seca) d'una ecoescola.
   Morat de marca + verd oliva (eco) + ocre pedra + crema.
   ============================================================ */

:root {
  --aubergine: #5E2A5B;
  --aubergine-deep: #3A1838;
  --aubergine-soft: #7C4878;
  --oliva: #6E8B3D;
  --oliva-deep: #54702c;
  --ocre: #D8A766;
  --ocre-soft: #E7C892;
  --terracotta: #C2683F;
  --crema: #F4EFE3;
  --paper: #FBF8F1;
  --stone: #ECE3CF;
  --stone-line: #D9CDB2;
  --ink: #2E2230;
  --ink-soft: #6F6271;
  --danger: #B4452F;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 14px 40px -22px rgba(58, 24, 56, 0.45);
  --shadow-card: 0 22px 60px -34px rgba(58, 24, 56, 0.5);
  --contour: rgba(94, 42, 91, 0.07);
  --maxw: 760px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
  transition: background 0.7s ease;
}

body[data-screen="welcome"] {
  background:
    radial-gradient(120% 90% at 15% 0%, #6E3469 0%, var(--aubergine) 42%, var(--aubergine-deep) 100%);
  --contour: rgba(255, 248, 240, 0.07);
  color: var(--crema);
}

.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

.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;
}

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--ocre);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Ambient background ---------- */
.atmosphere {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.contours path {
  fill: none; stroke: var(--contour); stroke-width: 2.5;
  transition: stroke 0.7s ease;
}

.leaves { position: absolute; inset: 0; }
.leaf {
  position: absolute; top: -6vh;
  width: 26px; height: 26px;
  transform: scale(var(--s, 1));
  opacity: 0.0;
  color: var(--oliva);
  animation: fall var(--d, 20s) linear var(--delay, 0s) infinite;
}
body[data-screen="welcome"] .leaf { color: var(--ocre-soft); }
.leaf svg { width: 100%; height: 100%; fill: currentColor; opacity: 0.55; }
body[data-screen="survey"] .leaves { opacity: 0.35; }
body[data-screen="thankyou"] .leaves { opacity: 0.18; }

@keyframes fall {
  0%   { transform: translateY(-10vh) translateX(0) rotate(0deg) scale(var(--s)); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(112vh) translateX(var(--x, 0)) rotate(320deg) scale(var(--s)); opacity: 0; }
}

/* ---------- Stage / screens ---------- */
.stage { position: relative; z-index: 1; }
.screen { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.screen[hidden] { display: none !important; }
body[data-screen="thankyou"] {
  overflow: hidden;
  background: var(--paper);
}
body[data-screen="thankyou"] .atmosphere { display: none; }

/* ---------- Language switch ---------- */
.lang-switch {
  position: fixed; top: 16px; right: 16px; z-index: 5;
  display: flex; gap: 6px;
  padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
body:not([data-screen="welcome"]) .lang-switch {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--stone-line);
  box-shadow: var(--shadow-soft);
}
body[data-screen="thankyou"] .lang-switch { display: none; }
.lang-btn {
  width: 34px; height: 24px; padding: 0; border: 0; cursor: pointer;
  background: transparent; border-radius: 5px; line-height: 0;
  opacity: 0.5; transition: opacity 0.2s, transform 0.2s;
}
.lang-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.lang-btn.is-active { opacity: 1; }
.lang-btn.is-active::after {
  content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px;
  background: currentColor;
}
.flag-svg {
  width: 34px; height: 22px; border-radius: 4px; display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   WELCOME
   ============================================================ */
.welcome { min-height: 100vh; display: grid; place-items: center; text-align: center; padding-block: 70px 90px; }
.welcome-inner { max-width: 560px; animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
body.is-starting .welcome-inner {
  animation: startExit 0.24s cubic-bezier(.4,0,.2,1) both;
}

.brand { display: flex; justify-content: center; margin-bottom: 26px; }
.brand-mark {
  width: 124px; height: 124px; border-radius: 50%;
  background: var(--crema);
  display: grid; place-items: center;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 6px rgba(255,255,255,0.4);
  animation: float 7s ease-in-out infinite;
}
.brand-mark img { width: 78%; height: 78%; object-fit: contain; border-radius: 50%; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem;
  font-weight: 700; margin: 0 0 14px; opacity: 0.82;
}
.welcome .display { font-size: clamp(2.1rem, 6vw, 3.2rem); margin: 0 0 18px; line-height: 1.04; }
.intro { font-size: 1.06rem; opacity: 0.92; margin: 0 auto 30px; max-width: 46ch; }

.identify { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.field-label { font-weight: 700; font-size: 0.95rem; opacity: 0.9; }
.anon-note {
  max-width: 44ch;
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.45;
}

.text-input {
  width: 100%;
  font-family: var(--font-body); font-size: 1.05rem; color: var(--ink);
  background: var(--paper);
  border: 2px solid transparent; border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.text-input::placeholder { color: #a99fab; }
.text-input:focus { outline: none; border-color: var(--ocre); }

.micro-note { font-size: 0.82rem; opacity: 0.7; margin: 20px auto 0; max-width: 40ch; }

.field-error { color: #ffd9cf; font-weight: 700; font-size: 0.86rem; margin: 2px 0 0; }
body:not([data-screen="welcome"]) .field-error { color: var(--danger); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  border: 0; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--oliva) 0%, var(--oliva-deep) 100%);
  box-shadow: 0 16px 30px -16px rgba(84, 112, 44, 0.9);
}
.btn-primary:hover { box-shadow: 0 20px 36px -16px rgba(84, 112, 44, 1); transform: translateY(-2px); }
.btn-start { margin-top: 6px; padding-inline: 34px; }
.btn-soft {
  background: var(--stone); color: var(--aubergine);
  box-shadow: var(--shadow-soft);
}
.btn-soft:hover { background: var(--ocre-soft); }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 0.84rem; color: inherit;
  opacity: 0.72; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { opacity: 1; }

/* ============================================================
   SURVEY
   ============================================================ */
.survey { padding-top: 86px; padding-bottom: 70px; }

.survey-head {
  position: sticky; top: 10px; z-index: 4;
  background: rgba(251, 248, 241, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid var(--stone-line);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 26px;
}
.survey-head-row { display: flex; align-items: center; gap: 12px; }
.brand-mark--sm {
  width: 42px; height: 42px; flex: 0 0 auto; box-shadow: none;
  background: var(--crema); animation: none;
}
.brand-mark--sm img { width: 84%; height: 84%; }
.survey-greet { display: flex; flex-direction: column; line-height: 1.2; }
.survey-greet-hi { font-weight: 800; font-size: 1rem; color: var(--aubergine); }

.progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.progress-track {
  flex: 1; height: 9px; border-radius: 999px;
  background: var(--stone); overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ocre) 0%, var(--oliva) 100%);
  border-radius: 999px; transition: width 0.5s cubic-bezier(.2,.7,.2,1);
}
.progress-pct { font-size: 0.78rem; font-weight: 800; color: var(--oliva-deep); min-width: 36px; text-align: right; }

.survey-title { font-size: clamp(1.7rem, 4.5vw, 2.3rem); color: var(--aubergine); margin: 0 0 22px; text-align: center; }

/* ---------- Terrace (section) ---------- */
.terrace {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px 24px 10px;
  margin-bottom: 22px;
  overflow: hidden;
}
/* Dry-stone wall course along the top edge */
.terrace::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background:
    repeating-linear-gradient(90deg,
      var(--ocre) 0 18px, var(--ocre-soft) 18px 30px,
      #c79a5c 30px 50px, var(--ocre-soft) 50px 62px);
  opacity: 0.9;
}
.terrace-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.terrace-num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--aubergine); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
}
.terrace-title { font-size: 1.25rem; margin: 0; color: var(--aubergine-deep); }
.terrace-note {
  margin: -2px 0 14px; font-size: 0.86rem; color: var(--ink-soft);
  background: var(--crema); display: inline-block; padding: 5px 12px; border-radius: 999px;
}

/* ---------- Question ---------- */
.q { padding: 16px 0; border-top: 1px solid #f0ece2; }
.q:first-of-type { border-top: 0; }
.q-label { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.q-text { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.q-flag {
  flex: 0 0 auto; font-size: 0.64rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 3px 8px; border-radius: 999px; margin-top: 3px;
}
.q-flag.is-req { color: var(--oliva-deep); background: #eef2e2; }
.q-flag.is-opt { color: var(--ink-soft); background: #f0ece2; }
.q-help { margin: 6px 0 0; font-size: 0.86rem; color: var(--ink-soft); }
.q.is-invalid { animation: shake 0.35s; }
.q.is-invalid .q-text { color: var(--danger); }
.q.is-invalid .scale-row, .q.is-invalid .q-choices, .q.is-invalid .q-textarea {
  box-shadow: 0 0 0 2px var(--danger);
  border-radius: 14px;
}
.q.is-current {
  animation: questionGlow 0.9s ease;
  border-radius: 14px;
}

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* ---------- Scale (stones) ---------- */
.q-scale { margin-top: 14px; }
.scale-row { display: flex; gap: 10px; }
.stone { flex: 1; cursor: pointer; }
.stone-face {
  display: grid; place-items: center;
  height: 54px; border-radius: 14px;
  background: var(--crema);
  border: 2px solid var(--stone-line);
  font-weight: 800; font-size: 1.15rem; color: var(--ink-soft);
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.stone:hover .stone-face { transform: translateY(-3px); border-color: var(--ocre); }
.stone input:focus-visible + .stone-face { outline: 3px solid var(--ocre); outline-offset: 2px; }
.stone input:checked + .stone-face {
  color: #fff; border-color: transparent; transform: translateY(-3px);
  box-shadow: 0 12px 22px -12px rgba(58, 24, 56, 0.6);
}
/* low (dry soil) -> high (green growth) */
.scale-row .stone:nth-child(1) input:checked + .stone-face { background: var(--terracotta); }
.scale-row .stone:nth-child(2) input:checked + .stone-face { background: #CF8A46; }
.scale-row .stone:nth-child(3) input:checked + .stone-face { background: var(--ocre); }
.scale-row .stone:nth-child(4) input:checked + .stone-face { background: #97A24A; }
.scale-row .stone:nth-child(5) input:checked + .stone-face { background: var(--oliva); }
.scale-ends {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 8px; font-size: 0.78rem; color: var(--ink-soft);
}
.scale-ends span:last-child { text-align: right; }

/* ---------- Choices (chips) ---------- */
.q-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 11px 18px 11px 14px; border-radius: 999px;
  background: var(--crema); border: 2px solid var(--stone-line);
  font-weight: 700; font-size: 0.96rem; color: var(--ink);
  transition: background 0.2s, border-color 0.2s, transform 0.12s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--ocre); }
.chip-dot {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--stone-line); background: #fff;
  display: grid; place-items: center; transition: all 0.18s;
}
.chip input:focus-visible + .chip-dot { outline: 3px solid var(--ocre); outline-offset: 2px; }
.chip input:checked ~ * { color: var(--oliva-deep); }
.chip input:checked + .chip-dot { border-color: var(--oliva); background: var(--oliva); }
.chip input:checked + .chip-dot::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff;
}
.q-choices .chip:has(input:checked) { border-color: var(--oliva); background: #eef2e2; }

/* ---------- Textarea ---------- */
.q-textarea {
  width: 100%; margin-top: 12px; resize: vertical; min-height: 92px;
  background: var(--crema); box-shadow: none; border: 2px solid var(--stone-line);
  font-size: 1rem; line-height: 1.5;
}
.q-textarea:focus { background: #fff; border-color: var(--ocre); }

/* ---------- Submit ---------- */
.form-error {
  background: #fbeae5; color: var(--danger); border: 1px solid #e7c3b8;
  border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 0.92rem;
  margin: 6px 0 0;
}
.submit-row { display: flex; justify-content: center; margin-top: 26px; }
.btn-submit { padding-inline: 40px; font-size: 1.05rem; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; display: none;
  border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
.btn-submit.is-loading .spinner { display: inline-block; }

/* ============================================================
   THANK YOU
   ============================================================ */
.thanks {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}
body[data-screen="thankyou"] .thanks {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 24px;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 18%, rgba(244, 239, 227, 0.95) 0 0, transparent 260px),
    var(--paper);
}
.thanks-inner {
  max-width: 500px;
  padding: 42px 36px 38px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both;
}
.sprig { width: 184px; height: 210px; margin: 0 auto 10px; overflow: visible; }
.sprig-stem {
  stroke: var(--oliva-deep);
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
}
.flower {
  transform-box: fill-box;
  transform-origin: center;
}
.flower-head {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}
.wind-line {
  fill: none;
  stroke: rgba(94, 42, 91, 0.28);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-dasharray: 88;
  stroke-dashoffset: 88;
  opacity: 0;
}
.sprig-leaf path { fill: var(--oliva); }
.sprig-leaf--2 path { fill: #7d9a48; }
.sprig-leaf,
.flower-heart {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}
.petal {
  fill: #d97b8a;
  opacity: 0;
}
.petal--2 { fill: #e29a72; }
.petal--3 { fill: #d989ac; }
.petal--4 { fill: #c86c8a; }
.petal--5 { fill: #d78a74; }
.petal--6 { fill: #cf6f95; }
.petal--7 { fill: #e0a36f; }
.petal--8 { fill: #d885aa; }
.petal--9 { fill: #c96d84; }
.flower-heart { fill: var(--ocre); stroke: #b77e37; stroke-width: 1.8; }
.thanks .display { font-size: clamp(2rem, 6vw, 2.9rem); color: var(--aubergine); margin: 0 0 14px; }
.thanks-body { font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 28px; }

/* flower blooms in on success */
.thanks.bloom .sprig-stem { animation: draw 1.1s ease forwards; }
.thanks.bloom .sprig-leaf,
.thanks.bloom .flower-heart {
  transform: scale(1);
}
.thanks.bloom .sprig-leaf { transform-origin: bottom center; animation: leafPop 0.48s cubic-bezier(.2,1.4,.4,1) both; }
.thanks.bloom .sprig-leaf--1 { animation-delay: 0.42s; }
.thanks.bloom .sprig-leaf--2 { animation-delay: 0.58s; }
.thanks.bloom .petal {
  opacity: 1;
  animation: petalFade 0.4s ease both;
}
.thanks.bloom .petal--1 { animation-delay: 1.05s; }
.thanks.bloom .petal--2 { animation-delay: 1.13s; }
.thanks.bloom .petal--3 { animation-delay: 1.21s; }
.thanks.bloom .petal--4 { animation-delay: 1.29s; }
.thanks.bloom .petal--5 { animation-delay: 1.37s; }
.thanks.bloom .petal--6 { animation-delay: 1.45s; }
.thanks.bloom .petal--7 { animation-delay: 1.53s; }
.thanks.bloom .petal--8 { animation-delay: 1.61s; }
.thanks.bloom .petal--9 { animation-delay: 1.69s; }
.thanks.bloom .flower-heart { animation: leafPop 0.42s cubic-bezier(.2,1.45,.4,1) 1.78s both; }
.thanks.bloom .flower-head { animation: flowerBloom 0.7s cubic-bezier(.2,1.5,.45,1) 0.95s both, flowerWind 5.2s ease-in-out 1.9s infinite; }
.thanks.bloom .sprig { animation: sprigWind 6.4s ease-in-out 2.0s infinite; }
.thanks.bloom .wind-line {
  opacity: 0.24;
  animation: windLine 5.2s ease-in-out 0.35s infinite;
}
.thanks.bloom .wind-line--2 { animation-delay: 0.95s; }
.thanks.bloom .wind-line--3 { animation-delay: 1.55s; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  position: relative; z-index: 1; text-align: center;
  padding: 26px 20px 30px; font-size: 0.8rem; color: var(--ink-soft);
}
body[data-screen="welcome"] .site-foot { color: rgba(255, 255, 255, 0.6); }
body[data-screen="thankyou"] .site-foot { display: none; }
.admin-link { color: inherit; text-decoration: none; opacity: 0.4; margin-left: 4px; }
.admin-link:hover { opacity: 0.8; }

/* ---------- Reveal on scroll ---------- */
.terrace.reveal { opacity: 0; transform: translateY(20px); }
.terrace.revealed { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
.terrace.pop { animation: pop 0.5s cubic-bezier(.2,1.3,.4,1); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes startExit { to { opacity: 0; transform: translateY(-18px) scale(0.98); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
@keyframes pop { 0%{transform:scale(0.98)} 60%{transform:scale(1.01)} 100%{transform:scale(1)} }
@keyframes questionGlow {
  0% { background: rgba(216, 167, 102, 0); box-shadow: 0 0 0 0 rgba(216, 167, 102, 0); }
  35% { background: rgba(216, 167, 102, 0.12); box-shadow: 0 0 0 8px rgba(216, 167, 102, 0.08); }
  100% { background: rgba(216, 167, 102, 0); box-shadow: 0 0 0 0 rgba(216, 167, 102, 0); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes leafPop { to { transform: scale(1); } }
@keyframes petalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes flowerBloom {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.12); }
  85%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}
@keyframes flowerWind {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1.4deg); }
  50% { transform: rotate(-1.1deg); }
  75% { transform: rotate(0.6deg); }
}
@keyframes sprigWind {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(0.5deg); }
  65% { transform: rotate(-0.4deg); }
}
@keyframes windLine {
  0% { opacity: 0; stroke-dashoffset: 88; transform: translateX(-12px); }
  18% { opacity: 0.55; }
  50% { opacity: 0.22; stroke-dashoffset: 0; transform: translateX(8px); }
  100% { opacity: 0; stroke-dashoffset: -88; transform: translateX(24px); }
}

@media (prefers-reduced-motion: reduce) {
  .thanks.bloom .sprig-stem {
    animation: none;
    stroke-dashoffset: 0;
  }
  .thanks.bloom .sprig-leaf,
  .thanks.bloom .petal,
  .thanks.bloom .flower-heart,
  .thanks.bloom .flower-head {
    animation: none;
    transform: scale(1);
    opacity: 1;
  }
  .thanks.bloom .wind-line {
    animation: none;
    opacity: 0.28;
    stroke-dashoffset: 0;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 560px) {
  .screen { padding-inline: 16px; }
  .terrace { padding: 22px 16px 8px; }
  .scale-row { gap: 7px; }
  .stone-face { height: 48px; font-size: 1rem; border-radius: 12px; }
  .scale-ends { font-size: 0.72rem; }
  .q-label { flex-wrap: wrap; }
  .brand-mark { width: 104px; height: 104px; }
  .lang-switch { top: 12px; right: 12px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .leaf { display: none; }
  .terrace.reveal { opacity: 1; transform: none; }
}
