:root {
  --orange: #fc4c02;
  --orange-dark: #d94300;
  --orange-soft: #fff0e9;
  --ink: #303030;
  --muted: #76787e;
  --canvas: #f5f5f7;
  --panel: #ebecef;
  --white: #ffffff;
  --line: #d7d8dc;
  --green: #2f9d66;
  --red: #c9313b;
  --shadow: 0 30px 90px rgba(42, 42, 46, 0.12);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Montserrat", Arial, sans-serif;
}

button,
textarea { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(252, 76, 2, 0.22);
  outline-offset: 2px;
}

.hidden { display: none !important; }

.visit-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
}

.ambient-one {
  width: 390px;
  height: 390px;
  top: -220px;
  right: -120px;
  background: rgba(252, 76, 2, 0.1);
  filter: blur(6px);
}

.ambient-two {
  width: 290px;
  height: 290px;
  bottom: -165px;
  left: -95px;
  border: 58px solid rgba(252, 76, 2, 0.055);
}

.experience-shell {
  width: min(1240px, 100%);
  min-height: min(820px, calc(100svh - 56px));
  padding: 26px 34px 20px;
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.brand-bar {
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-logo {
  width: 150px;
  height: auto;
  display: block;
}

.brand-name {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.point-chip,
.time-chip,
.card-point {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.point-chip {
  max-width: 230px;
  overflow: hidden;
  color: #a43708;
  background: var(--orange-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-chip {
  color: #5e6066;
  background: var(--panel);
}

.content-grid {
  min-height: 640px;
  display: grid;
  grid-template-columns: 0.87fr 0.72fr 1.08fr;
  gap: 12px;
  align-items: center;
  position: relative;
}

.intro-copy {
  align-self: center;
  padding: 18px 0 42px 24px;
  position: relative;
  z-index: 3;
  min-width: 0;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.intro-copy h1 {
  margin: 0;
  font-size: clamp(54px, 5.2vw, 78px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.065em;
}

.intro-copy h1 span { color: var(--orange); }

.intro-text {
  width: 100%;
  max-width: 350px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
}

.trust-line {
  max-width: 380px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #696a70;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 600;
}

.trust-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
}

.mascot-stage {
  height: 590px;
  align-self: end;
  position: relative;
  z-index: 2;
}

.orange-ring {
  width: 360px;
  height: 360px;
  position: absolute;
  left: 50%;
  bottom: 43px;
  transform: translateX(-52%);
  border: 80px solid var(--orange);
  border-radius: 50%;
}

.dot-field {
  width: 118px;
  height: 118px;
  position: absolute;
  top: 46px;
  left: 4px;
  opacity: 0.42;
  background-image: radial-gradient(#7f8085 2.2px, transparent 2.2px);
  background-size: 20px 20px;
}

.mascot {
  width: min(390px, 31vw);
  max-height: 590px;
  object-fit: contain;
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-54%);
  filter: drop-shadow(0 25px 24px rgba(35, 35, 38, 0.16));
  animation: mascot-in 650ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.mascot-done { animation: mascot-pop 650ms cubic-bezier(0.2, 0.9, 0.25, 1) both; }

.speech-bubble {
  min-width: 150px;
  max-width: 190px;
  padding: 11px 15px;
  position: absolute;
  top: 86px;
  right: -18px;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(48, 48, 48, 0.1);
  font-size: 10px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

.rating-card {
  width: 100%;
  min-height: 560px;
  padding: 25px 31px 22px;
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: var(--panel);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.step-line {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #8a8b90;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-current {
  color: var(--orange);
  font-size: 14px;
}

.step-divider {
  width: 36px;
  height: 1px;
  background: #c9cacf;
}

.card-point {
  max-width: 145px;
  min-height: 27px;
  padding: 6px 9px;
  overflow: hidden;
  color: #74767d;
  background: rgba(255, 255, 255, 0.6);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: panel-in 330ms ease both;
}

.panel h2 {
  max-width: 410px;
  margin: 0;
  font-size: clamp(29px, 2.8vw, 43px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.panel-help {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  font-weight: 500;
}

.stars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 34px;
}

.star {
  min-width: 0;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #d2d3d7;
  border-radius: 17px;
  color: #b7b8bd;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.star span { font-size: clamp(19px, 2vw, 27px); line-height: 1; }
.star small { font-size: 8px; font-weight: 700; }

.star:hover,
.star:focus-visible {
  transform: translateY(-4px);
  border-color: var(--orange);
  outline: none;
}

.star.active {
  border-color: var(--orange);
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 12px 24px rgba(252, 76, 2, 0.22);
}

.rating-status {
  min-height: 21px;
  margin: 17px 0 0;
  color: #98999e;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
}

.rating-status.has-rating { color: var(--orange); }

.scale {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: #85868b;
  font-size: 9px;
  font-weight: 600;
}

.panel-feedback {
  justify-content: flex-start;
  padding-top: 28px;
}

.panel-feedback .panel-kicker { margin-bottom: 10px; }

.reason-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.reason {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid #d1d2d6;
  border-radius: 999px;
  color: #5d5e63;
  background: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.reason:hover,
.reason:focus-visible { border-color: var(--orange); outline: none; }

.reason.selected {
  border-color: var(--orange);
  color: var(--orange-dark);
  background: var(--orange-soft);
}

.reason span { margin-right: 4px; }

.comment-label {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  color: #55565a;
  font-size: 10px;
  font-weight: 700;
}

.comment-label span { color: #95969b; font-weight: 500; }

textarea {
  width: 100%;
  height: 68px;
  min-height: 68px;
  resize: vertical;
  margin-top: 7px;
  padding: 11px 13px;
  border: 1px solid #d1d2d6;
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  font-size: 10px;
  line-height: 1.5;
}

.help-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid #efc3b0;
  border-radius: 13px;
  background: #fff5f0;
}

.help-card strong,
.help-card span { display: block; }
.help-card strong { font-size: 10px; }
.help-card span { margin-top: 2px; color: #8a6b5f; font-size: 8px; }

.switch {
  width: 44px;
  height: 25px;
  flex: 0 0 auto;
  padding: 0;
  position: relative;
  border: 0;
  border-radius: 999px;
  background: #c9cbd0;
  cursor: pointer;
  transition: background 160ms ease;
}

.switch span {
  width: 19px;
  height: 19px;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
  transition: transform 160ms ease;
}

.switch.active { background: var(--orange); }
.switch.active span { transform: translateX(19px); }

.primary-button,
.secondary-button,
.review-button {
  min-height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  width: 100%;
  margin-top: 12px;
  border: 0;
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 14px 28px rgba(252, 76, 2, 0.2);
}

.primary-button:hover,
.secondary-button:hover,
.review-button:hover { transform: translateY(-2px); }
.primary-button:disabled { opacity: 0.58; cursor: wait; transform: none; }

.text-button {
  align-self: center;
  margin-top: 9px;
  padding: 5px 8px;
  border: 0;
  color: #7c7d82;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.panel-result { align-items: flex-start; }

.result-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 14px 28px rgba(47, 157, 102, 0.23);
  font-size: 20px;
  font-weight: 700;
}

.result-copy {
  max-width: 420px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  font-weight: 500;
}

.response-id {
  margin: 9px 0 0;
  color: #8b8c91;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
}

.review-box {
  width: 100%;
  margin-top: 17px;
  padding: 12px;
  border: 1px solid #d4d5da;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.review-box strong,
.review-box > span { display: block; }
.review-box strong { font-size: 10px; }
.review-box > span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.review-actions { display: grid; gap: 7px; margin-top: 9px; }

.review-button {
  min-height: 39px;
  border: 0;
  color: #fff;
  background: var(--ink);
}

.secondary-button {
  width: 100%;
  margin-top: 10px;
  border: 1px solid #c9cacf;
  color: var(--ink);
  background: transparent;
}

.privacy-note {
  margin: auto 0 0;
  padding-top: 14px;
  color: #98999e;
  font-size: 8px;
  font-weight: 600;
  text-align: center;
}

.privacy-note span { margin-right: 5px; color: var(--green); font-size: 8px; }

.site-footer {
  min-height: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 8px;
  position: relative;
  z-index: 5;
  color: #9a9ba0;
  font-size: 9px;
  font-weight: 600;
}

.footer-links { display: flex; gap: 14px; }
.site-footer a { color: var(--orange); text-decoration: none; }

.toast {
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 15px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 18px 45px rgba(30, 30, 32, 0.2);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 180ms ease;
}

.toast.visible { opacity: 1; transform: translateY(0); }

@keyframes mascot-in {
  from { opacity: 0; transform: translate(-54%, 28px) scale(0.96); }
  to { opacity: 1; transform: translate(-54%, 0) scale(1); }
}

@keyframes mascot-pop {
  0% { opacity: 0; transform: translate(-54%, 22px) scale(0.88); }
  65% { opacity: 1; transform: translate(-54%, -5px) scale(1.04); }
  100% { transform: translate(-54%, 0) scale(1); }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
  .experience-shell { min-height: auto; }
  .content-grid { grid-template-columns: 0.95fr 1.05fr; gap: 22px; min-height: 680px; }
  .mascot-stage {
    width: 340px;
    height: 360px;
    position: absolute;
    left: 25%;
    bottom: -8px;
    transform: translateX(-50%);
    opacity: 0.94;
  }
  .mascot { width: 290px; }
  .orange-ring { width: 260px; height: 260px; border-width: 58px; }
  .speech-bubble, .dot-field { display: none; }
  .intro-copy { align-self: start; padding-top: 74px; }
  .rating-card { grid-column: 2; }
}

@media (max-width: 760px) {
  .visit-page { padding: 0; place-items: stretch; }
  .experience-shell { width: 100%; min-height: 100svh; padding: 18px 15px 13px; border-radius: 0; }
  .brand-bar { align-items: center; }
  .brand { gap: 0; }
  .brand-name, .time-chip { display: none; }
  .wordmark-logo { width: 124px; }
  .point-chip { max-width: 155px; padding: 7px 10px; font-size: 8px; }
  .content-grid { min-height: 0; display: flex; flex-direction: column; gap: 15px; align-items: stretch; }
  .intro-copy { padding: 24px 4px 0; text-align: center; }
  .eyebrow { margin-bottom: 10px; }
  .intro-copy h1 { font-size: clamp(42px, 13vw, 60px); }
  .intro-text { max-width: 350px; margin: 14px auto 0; font-size: 12px; line-height: 1.55; }
  .trust-line { display: none; }
  .mascot-stage {
    width: 176px;
    height: 166px;
    position: absolute;
    top: 205px;
    left: 50%;
    bottom: auto;
    transform: translateX(-50%);
    z-index: 2;
  }
  .mascot { width: 172px; max-height: 183px; bottom: -4px; }
  .orange-ring { width: 145px; height: 145px; bottom: 4px; border-width: 32px; }
  .rating-card { width: 100%; min-height: 465px; margin-top: 142px; padding: 20px 17px 17px; border-radius: 24px; }
  .panel { padding-top: 12px; }
  .panel-feedback { padding-top: 20px; }
  .panel h2 { font-size: 29px; }
  .stars { margin-top: 27px; gap: 6px; }
  .star { border-radius: 14px; }
  .reason-grid { margin-top: 15px; }
  .reason { font-size: 8px; }
  .site-footer { padding-top: 12px; }
  .footer-links a:first-child { display: none; }
}

@media (max-width: 390px) {
  .header-tools { max-width: 150px; }
  .step-divider { width: 24px; }
  .card-point { max-width: 110px; }
  .intro-copy h1 { font-size: 43px; }
  .mascot-stage { top: 201px; }
  .rating-card { margin-top: 139px; padding-inline: 14px; }
  .panel h2 { font-size: 27px; }
  .star { border-radius: 12px; }
  .review-box { margin-top: 13px; }
}

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