:root {
  --g-900: #06341C;
  --g-800: #084726;
  --g-700: #0B6B33;
  --g-600: #00933E;
  --g-500: #12A94C;
  --g-200: #BFE6CC;
  --g-100: #DFF2E4;
  --g-50:  #F0F8F2;
  --teal: #37D6B0;

  --ink: #131711;
  --muted: #63705F;
  --faint: #8A9687;
  --line: #E3EBE1;
  --line-strong: #D3E0D2;
  --bg: #FBFCFA;
  --card: #FFFFFF;

  --danger: #C4452C;

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --shadow-card: 0 1px 2px rgba(8, 44, 22, .05), 0 18px 44px -18px rgba(8, 60, 30, .16);
  --shadow-pop: 0 24px 60px -20px rgba(8, 60, 30, .28);
  --shadow-btn: 0 12px 26px -10px rgba(0, 140, 60, .55);

  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(11, 107, 51, .055) 1px, transparent 1.6px) 0 0 / 26px 26px,
    linear-gradient(180deg, var(--bg) 0%, #F4F9F5 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(0, 147, 62, .35); outline-offset: 2px; border-radius: 8px; }

::selection { background: rgba(18, 169, 76, .22); }

/* ---------- progress ---------- */

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 50;
  background: rgba(6, 52, 28, .08); pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--g-600), var(--teal));
  box-shadow: 0 0 12px rgba(55, 214, 176, .8);
  transition: width .4s var(--ease);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(55, 214, 176, .30), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(18, 169, 76, .32), transparent 60%),
    linear-gradient(135deg, var(--g-900) 0%, var(--g-800) 55%, #0A5A2E 100%);
  color: #fff;
  overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.orb-a { width: 480px; height: 480px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(55, 214, 176, .55), transparent 65%); }
.orb-b { width: 380px; height: 380px; left: -120px; bottom: -160px; background: radial-gradient(circle, rgba(18, 169, 76, .6), transparent 65%); animation-delay: -7s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-40px, 30px, 0) scale(1.12); }
}

.hero-mesh {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .85; pointer-events: none;
}
.pulse-dot { animation: pulseDot 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.pulse-dot.d2 { animation-delay: .8s; }
.pulse-dot.d3 { animation-delay: 1.6s; }
@keyframes pulseDot { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.hero-inner {
  position: relative;
  max-width: 880px; margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) 24px clamp(44px, 7vw, 72px);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--g-100);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(223, 242, 228, .22);
  backdrop-filter: blur(6px);
}
.chip-accent {
  color: #06341C;
  background: linear-gradient(90deg, var(--g-500), var(--teal));
  border-color: transparent;
  box-shadow: 0 6px 18px -6px rgba(18, 169, 76, .6);
}
.chip-accent::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #06341C; opacity: .75;
  animation: pulseDot 2s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(30px, 5.4vw, 50px);
  line-height: 1.1; letter-spacing: -.025em; font-weight: 800;
  max-width: 15em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(6, 52, 28, .35);
}
.hero-sub {
  margin-top: 16px; max-width: 36em;
  color: rgba(240, 248, 242, .85);
  font-size: clamp(15px, 2.2vw, 17.5px);
}
.speaker {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 20px 10px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(223, 242, 228, .18);
  backdrop-filter: blur(6px);
}
.speaker-ava {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #06341C;
  background: linear-gradient(135deg, var(--g-200), var(--teal));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.speaker strong { display: block; font-size: 15px; line-height: 1.25; }
.speaker em { display: block; font-style: normal; font-size: 13px; color: rgba(240, 248, 242, .68); }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fact {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; color: var(--g-100);
  background: rgba(6, 52, 28, .35);
  border: 1px solid rgba(223, 242, 228, .14);
  backdrop-filter: blur(4px);
}
.fact svg { flex: none; opacity: .9; }

.hero-curve {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 42px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 42' preserveAspectRatio='none'%3E%3Cpath d='M0 42h1440V12C1180 34 980 42 720 42 460 42 260 34 0 12v30z' fill='%23FBFCFA'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  opacity: .35;
}

/* ---------- layout ---------- */

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px 46px; }
.card {
  position: relative;
  margin-top: -34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop);
  padding: clamp(22px, 4.4vw, 44px);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--g-600), var(--teal), var(--g-500));
}

/* reveal */
.reveal { animation: rise .6s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.skeleton { display: grid; gap: 14px; }
.skeleton span {
  height: 72px; border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--g-50), var(--g-100), var(--g-50));
  background-size: 200% 100%;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { background-position: 0 0; } 50% { background-position: -100% 0; } }

/* banner */
.banner-map {
  position: relative;
  margin-bottom: 22px;
  border-radius: var(--r-md);
  overflow: hidden;
}
.banner {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 12px 28px -18px rgba(8, 60, 30, .3);
}
.banner-hot {
  position: absolute; top: 0; bottom: 0; width: 33.333%;
  padding: 0; border: none; background: transparent;
  cursor: pointer;
  border-radius: 18px;
  transition: background .2s ease, box-shadow .2s ease;
}
.banner-hot:hover,
.banner-hot:focus-visible {
  background: rgba(18, 169, 76, .08);
  box-shadow: inset 0 0 0 3px rgba(18, 169, 76, .5);
}
.banner-hot:focus-visible { outline: 3px solid rgba(0, 147, 62, .35); outline-offset: -6px; }
.banner-hot:active { background: rgba(18, 169, 76, .16); }

/* ---------- name field ---------- */

.name-block {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 28px; padding: 18px 20px;
  background: linear-gradient(135deg, var(--g-50), #F6FBF7);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}
.name-icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--g-100); color: var(--g-700);
}
.name-body { flex: 1; min-width: 0; }
.name-block label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 2px; }
.name-block .hint { font-size: 13px; color: var(--faint); margin-bottom: 10px; }
.name-block input {
  width: 100%; padding: 12px 15px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.name-block input:focus { border-color: var(--g-500); outline: none; box-shadow: 0 0 0 3px rgba(18, 169, 76, .15); }

/* ---------- questions ---------- */

.q {
  padding: 24px 22px; margin-bottom: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease);
}
.q:hover { border-color: var(--line-strong); box-shadow: 0 12px 30px -20px rgba(8, 60, 30, .22); }
.q:focus-within { border-color: rgba(18, 169, 76, .55); box-shadow: 0 16px 38px -20px rgba(8, 60, 30, .3); }
.q.flash {
  animation: flash 1.5s var(--ease);
}
@keyframes flash {
  0%   { border-color: var(--g-500); box-shadow: 0 0 0 0 rgba(18, 169, 76, .45); background: var(--g-50); }
  60%  { border-color: var(--g-500); box-shadow: 0 0 0 12px rgba(18, 169, 76, 0); background: var(--g-50); }
  100% { border-color: var(--line); box-shadow: none; background: #fff; }
}
.q-head { display: flex; gap: 13px; align-items: baseline; margin-bottom: 18px; }
.q-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13.5px; font-weight: 800; color: #fff;
  background: linear-gradient(160deg, var(--g-500), var(--g-700));
  box-shadow: 0 6px 14px -6px rgba(0, 140, 60, .55);
  transform: translateY(3px);
}
.q-text { font-weight: 700; font-size: 16.5px; letter-spacing: -.012em; text-wrap: balance; }
.q-hint {
  margin: -8px 0 16px 43px;
  font-size: 13.5px; color: var(--muted);
}
.q-req { color: var(--g-600); }
.q-opt {
  display: inline-block; vertical-align: 1px;
  margin-left: 8px; padding: 2px 9px;
  color: var(--faint); font-weight: 600; font-size: 11.5px; letter-spacing: .03em;
  background: var(--g-50); border: 1px solid var(--line);
  border-radius: 999px; white-space: nowrap;
}

/* scale */
.scale { display: flex; flex-wrap: wrap; gap: 8px; }
.scale-wide { display: grid; grid-template-columns: repeat(11, 1fr); gap: 7px; }
.scale-wide button { padding: 12px 0 30px; }
.scale button {
  position: relative;
  flex: 1 0 44px;
  min-width: 44px;
  padding: 14px 0 32px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  font-weight: 800; font-size: 17px; color: var(--muted);
  transition: all .15s ease;
}
.scale button:hover { border-color: var(--g-500); color: var(--g-700); transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(0, 140, 60, .4); }
.scale button.on {
  border-color: var(--g-600);
  background: linear-gradient(160deg, var(--g-500), var(--g-700));
  color: #fff;
  box-shadow: var(--shadow-btn);
  transform: translateY(-1px);
}
.scale button.on::after {
  content: "✓"; position: absolute; bottom: 7px; left: 0; right: 0;
  font-size: 12px; opacity: .95;
}
.scale-captions {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 9px; font-size: 12.5px; color: var(--faint);
}
.scale-picked {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px; padding: 6px 13px;
  border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--g-700);
  background: var(--g-100);
  animation: rise .3s var(--ease) both;
}
.scale-picked b { font-size: 14px; }

/* choice / multi */
.opts { display: grid; gap: 8px; }
.opts.multi { grid-template-columns: 1fr 1fr; }
.opt {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff; text-align: left; width: 100%;
  transition: all .15s ease;
  font-size: 15px;
}
.opts.multi .opt { padding: 10px 13px; font-size: 14px; border-radius: 11px; }
.opt:hover { border-color: var(--g-500); background: var(--g-50); transform: translateY(-1px); }
.opt .mark {
  flex: none; width: 22px; height: 22px;
  border: 2px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; color: transparent;
  transition: all .15s ease;
}
.opts.multi .opt .mark { width: 19px; height: 19px; border-radius: 6px; font-size: 10px; }
.opt.on {
  border-color: var(--g-600);
  background: var(--g-50);
  color: var(--g-800); font-weight: 650;
}
.opt.on .mark {
  border-color: var(--g-600);
  background: linear-gradient(135deg, var(--g-500), var(--g-600)); color: #fff;
}

/* custom variant */
.custom-wrap { grid-column: 1 / -1; margin-top: 4px; }
.custom-field {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--g-50);
  transition: border-color .15s ease, background .15s ease;
}
.custom-field:focus-within { border-color: var(--g-500); border-style: solid; background: #fff; box-shadow: 0 0 0 3px rgba(18, 169, 76, .12); }
.custom-field.filled { border-color: var(--g-600); border-style: solid; background: var(--g-50); }
.custom-field.filled svg { color: var(--g-700); }
.custom-field svg { flex: none; color: var(--g-600); }
.custom-field input {
  flex: 1; min-width: 0; border: none; background: transparent; color: var(--ink);
  outline: none; font-size: 14.5px;
}
.custom-field input::placeholder { color: var(--faint); }

/* textarea */
.q textarea {
  width: 100%; min-height: 112px; resize: vertical;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.q textarea:focus { border-color: var(--g-500); outline: none; box-shadow: 0 0 0 3px rgba(18, 169, 76, .15); }
.q textarea::placeholder { color: var(--faint); }

/* ---------- actions ---------- */

.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.submit {
  position: relative;
  padding: 17px 22px;
  border: none; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--g-600) 0%, var(--g-700) 60%, var(--g-800) 100%);
  color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .01em;
  box-shadow: var(--shadow-btn);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  overflow: hidden;
}
.submit::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: skewX(-18deg);
  animation: sheen 3.4s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.submit:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 32px -12px rgba(0, 140, 60, .65); }
.submit:active { transform: translateY(0); }
.submit:disabled { opacity: .6; cursor: default; transform: none; }
.privacy-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--faint); font-size: 13px;
}
.privacy-note svg { flex: none; opacity: .8; }
.error-msg {
  display: none;
  padding: 12px 16px; border-radius: var(--r-sm);
  background: #FBEFEC; border: 1px solid #EFD2CA; color: var(--danger);
  font-size: 14.5px;
}
.error-msg.show { display: block; animation: rise .3s var(--ease) both; }

/* ---------- states ---------- */

.state { text-align: center; padding: clamp(24px, 5vw, 56px) 10px; }
.state .ring {
  position: relative;
  width: 92px; height: 92px; margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.state-ok .ring {
  color: #fff;
  background: linear-gradient(135deg, var(--g-500), var(--g-700));
  box-shadow: 0 18px 44px -14px rgba(0, 147, 62, .6);
  animation: pop .85s cubic-bezier(.2, 1.2, .35, 1) .1s both;
}
.state-ok .ring::before, .state-ok .ring::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1.5px solid rgba(18, 169, 76, .3);
  opacity: 0;
  animation: ripple 2.8s ease-out 1.3s infinite;
}
.state-ok .ring::after { animation-delay: 2.7s; }
@keyframes ripple {
  0%   { transform: scale(.9);  opacity: 0; }
  22%  { opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}
.state-ok .check-svg path {
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: draw .65s .55s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.state-closed .ring {
  color: var(--g-800); background: var(--g-100);
  box-shadow: inset 0 0 0 1px var(--g-200);
  animation: pop .6s ease .1s both;
}
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.state h2, .state p { animation: rise .55s var(--ease) both; }
.state h2 { font-size: 25px; letter-spacing: -.015em; margin-bottom: 10px; animation-delay: .5s; }
.state p { color: var(--muted); max-width: 32em; margin: 0 auto; animation-delay: .68s; }

.foot {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 30px 10px 8px;
  color: var(--faint); font-size: 13px; text-align: center;
}
.foot-brand { font-weight: 800; color: var(--g-800); letter-spacing: .01em; }
.foot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

@media (max-width: 640px) {
  .wrap { padding: 0 12px 38px; }
  .card { padding: 18px 15px 22px; margin-top: -26px; border-radius: 22px; }
  .banner-map { margin-bottom: 16px; }
  .name-block { flex-direction: column; gap: 10px; padding: 15px 15px; }
  .q { padding: 18px 14px 16px; }
  .q-head { gap: 10px; margin-bottom: 14px; }
  .q-num { width: 28px; height: 28px; font-size: 12.5px; }
  .q-text { font-size: 15.5px; }
  .q-hint { margin: -6px 0 13px 38px; font-size: 13px; }
  .q-opt { margin-left: 6px; font-size: 11px; }
  .scale { gap: 6px; }
  .scale button { padding: 12px 0 27px; font-size: 15px; flex: 1 0 40px; min-width: 40px; }
  .scale-wide { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .scale-wide button { padding: 12px 0 25px; font-size: 15.5px; }
  .scale-captions { font-size: 11.5px; gap: 6px; }
  .scale-picked { font-size: 12.5px; padding: 5px 11px; }
  .opts { gap: 7px; }
  .opt { padding: 12px 13px; font-size: 14.5px; gap: 10px; }
  .opts.multi { grid-template-columns: 1fr; }
  .opts.multi .opt { padding: 11px 12px; font-size: 14px; }
  .custom-field { padding: 11px 12px; }
  .custom-field input { font-size: 16px; }
  .q textarea { font-size: 16px; min-height: 96px; }
  .name-block input { font-size: 16px; }
  .submit { padding: 15px 18px; font-size: 16px; }
  .chips { gap: 6px; }
  .chip { padding: 6px 12px; font-size: 12px; }
  .speaker { border-radius: var(--r-md); }
  .facts { gap: 7px; }
  .fact { padding: 8px 13px 8px 10px; font-size: 12.5px; }
  .foot { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .scale-wide { grid-template-columns: repeat(4, 1fr); }
  .scale button { flex: 1 0 36px; min-width: 36px; }
  .hero h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
