:root {
  font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  color: #12364a;
  background: #f1f6f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #0b344b;
  --teal: #159c9b;
  --muted: #66808b;
  --line: #dce7e4;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #e5a040; outline-offset: 4px; }
[hidden] { display: none !important; }

.page-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 22px 20px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 36%, #fff 0%, #f6f9f7 53%, #e9f2ef 100%);
}

.brand-bar {
  width: min(100%, 1080px);
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.15);
  background: var(--navy);
  color: white;
  padding: 0 28px;
  margin: 0 -22px;
  width: calc(100% + 44px);
  box-shadow: 0 2px 14px rgba(14, 48, 64, .11);
}

.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand-word { position: relative; color: #fff; font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.1em; padding-right: 13px; }
.brand-dot { position: absolute; right: 0; font-size: 10px; line-height: 1; letter-spacing: 0; }
.brand-dot--blue { right: 0; top: 9px; color: #35b7db; }
.brand-dot--yellow { right: 0; top: 0; color: #ffcb23; }
.brand-divider { width: 1px; height: 34px; background: rgba(255,255,255,.25); }
.brand-caption { font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.brand-caption small { display: block; margin-top: 4px; color: #a8c5cf; font: 9px 'DM Mono', Consolas, monospace; letter-spacing: .14em; }
.privacy-label { color: #9cbcc5; font: 9px 'DM Mono', Consolas, monospace; letter-spacing: .13em; }

.survey-card {
  position: relative;
  width: min(100%, 518px);
  margin: auto;
  padding: clamp(28px, 6vw, 49px) clamp(22px, 6vw, 48px) 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 20px 55px rgba(15, 55, 72, .09);
  text-align: center;
  animation: card-arrive .55s cubic-bezier(.2,.8,.2,1) both;
}

.survey-mark { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 21px; border: 1px solid #b8dcd3; border-radius: 50%; background: #e9f5f1; color: var(--teal); font-size: 21px; }
.eyebrow { margin: 0 0 9px; color: #218e90; font: 600 9px 'DM Mono', Consolas, monospace; letter-spacing: .16em; }
.agency-name { margin: 0 0 12px; color: #b45a87; font-size: 12px; font-weight: 700; }
h1 { margin: 0; color: var(--navy); font-size: clamp(27px, 6vw, 35px); font-weight: 700; letter-spacing: -.05em; line-height: 1.12; }
.intro-copy { max-width: 320px; margin: 13px auto 29px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.rating-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; transition: opacity .2s ease, transform .2s ease; }
.rating-button { min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 11px 8px; border: 1px solid #cfe0dd; border-radius: 12px; background: #fff; color: #244c5b; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.rating-button:hover:not(:disabled) { transform: translateY(-3px); border-color: #91c8bd; box-shadow: 0 8px 20px rgba(21, 92, 105, .12); }
.rating-button:active:not(:disabled) { transform: scale(.97); }
.rating-button:disabled { cursor: wait; }
.rating-button--bad:hover:not(:disabled) { border-color: #d99aaa; background: #fff8fa; }
.rating-button--good:hover:not(:disabled) { border-color: #d3b36d; background: #fffcf4; }
.rating-button--great:hover:not(:disabled) { border-color: #7bc8bd; background: #f5fffc; }
.rating-emoji { font-size: 33px; line-height: 1; transition: transform .24s cubic-bezier(.2,.8,.2,1); }
.rating-button:hover .rating-emoji { transform: scale(1.12); }
.rating-label { font-size: 13px; font-weight: 700; }
.rating-options--busy { opacity: .7; pointer-events: none; }

.thank-you { display: flex; min-height: 112px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; opacity: 0; transform: translateY(8px) scale(.98); }
.thank-you--visible { animation: thank-you-arrive .42s cubic-bezier(.2,.8,.2,1) forwards; }
.thank-you-emoji { margin-bottom: 4px; font-size: 54px; line-height: 1.1; filter: drop-shadow(0 4px 4px rgba(28,73,83,.12)); }
.thank-you strong { color: var(--navy); font-size: 17px; }
.thank-you>span:last-child { color: var(--muted); font-size: 13px; }
.form-message { min-height: 19px; margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-message--error { color: #a53f54; }
.form-message--blocked { color: #267a71; font-weight: 600; }
.privacy-note { margin: 18px 0 0; color: #7a929a; font-size: 11px; }
.preview-badge { margin: -16px 0 20px; color: #735c14; font-size: 11px; font-weight: 600; }

.page-footer { width: min(100%, 1080px); display: flex; justify-content: space-between; padding: 0 3px; color: #69848d; font: 9px 'DM Mono', Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.confetti-layer { position: fixed; z-index: 5; inset: 0; overflow: hidden; pointer-events: none; }
.confetti-piece { position: absolute; top: 0; left: 0; border-radius: 2px; opacity: 0; will-change: transform, opacity; }
.confetti-piece--round { border-radius: 50%; }

@keyframes card-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes thank-you-arrive { to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 480px) {
  .page-shell { padding: 0 16px 16px; }
  .brand-bar { width: calc(100% + 32px); min-height: 64px; margin: 0 -16px; padding: 0 17px; }
  .brand-word { font-size: 28px; }
  .brand-caption { font-size: 9px; }
  .privacy-label { font-size: 8px; }
  .survey-card { padding: 31px 19px 27px; }
  .rating-options { gap: 8px; }
  .rating-button { min-height: 102px; }
  .rating-emoji { font-size: 29px; }
  .rating-label { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
