:root {
  --cream: #f9f6e8;
  --pink-soft: #f8edf2;
  --pink: #e87fab;
  --pink-deep: #d86095;
  --purple: #462c81;
  --purple-dark: #2f1d58;
  --lavender: #b5a3d6;
  --ink: #352d48;
  --muted: #746d80;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 3%, rgba(232, 127, 171, 0.18) 0 12rem, transparent 12.1rem),
    radial-gradient(circle at 2% 52%, rgba(181, 163, 214, 0.16) 0 10rem, transparent 10.1rem),
    linear-gradient(155deg, var(--cream), #fff 45%, var(--pink-soft));
  font-family: Arial, Helvetica, 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(232, 127, 171, 0.55);
  outline-offset: 3px;
}

main {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 20px 16px 38px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 20px 6px 26px;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
  color: var(--purple);
  text-align: left;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 28px;
  line-height: 1;
}

.brand small {
  margin-top: 5px;
  color: var(--pink-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--pink-deep);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.2em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin: 12px auto 16px;
  color: var(--purple-dark);
  font-size: clamp(38px, 10vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.intro {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.trust-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 9px 14px;
  border: 1px solid rgba(70, 44, 129, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.trust-note span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--pink);
  font-size: 12px;
  font-weight: 900;
}

.trust-note p {
  margin: 0;
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
}

.review-builder,
.preview {
  border: 1px solid rgba(70, 44, 129, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(70, 44, 129, 0.09);
  backdrop-filter: blur(16px);
}

.review-builder {
  padding: 8px 22px;
}

.question {
  padding: 26px 0;
}

.question + .question {
  border-top: 1px solid rgba(70, 44, 129, 0.09);
}

.question-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}

.question-heading > span {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-size: 14px;
  font-weight: 850;
}

.question-heading h2,
.preview h2 {
  margin-bottom: 4px;
  color: var(--purple-dark);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.question-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(70, 44, 129, 0.16);
  border-radius: 999px;
  color: var(--purple);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.chip:hover {
  border-color: var(--pink);
  transform: translateY(-1px);
}

.chip[aria-pressed="true"] {
  border-color: var(--purple);
  color: white;
  background: var(--purple);
  box-shadow: 0 7px 18px rgba(70, 44, 129, 0.2);
}

.detail-field {
  display: block;
  position: relative;
}

.detail-field textarea {
  display: block;
  width: 100%;
  min-height: 118px;
  resize: vertical;
  padding: 16px 16px 32px;
  border: 1px solid rgba(70, 44, 129, 0.16);
  border-radius: 18px;
  color: var(--ink);
  background: #fffdf8;
  line-height: 1.5;
}

.detail-field textarea::placeholder {
  color: #9992a1;
}

.detail-field small {
  position: absolute;
  right: 13px;
  bottom: 10px;
  color: var(--muted);
  font-size: 10px;
}

.recommend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px dashed rgba(70, 44, 129, 0.28);
  border-radius: 16px;
  color: var(--purple);
  background: rgba(245, 235, 239, 0.45);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
}

.recommend span {
  display: grid;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--pink);
  font-size: 15px;
}

.recommend[aria-pressed="true"] {
  border-style: solid;
  border-color: var(--pink);
  background: var(--pink-soft);
}

.preview {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 26px 22px 24px;
}

.preview::after {
  position: absolute;
  right: -50px;
  top: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(232, 127, 171, 0.12);
  content: "";
  pointer-events: none;
}

.preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.preview h2 {
  margin-top: 7px;
  font-size: 24px;
}

.sparkle {
  color: var(--pink);
  font-size: 34px;
}

.review-text {
  position: relative;
  z-index: 1;
  margin: 18px 0 9px;
  padding: 19px;
  border-left: 4px solid var(--pink);
  border-radius: 0 17px 17px 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cream), #fff);
  font-size: 15px;
  line-height: 1.7;
}

.edit-note {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.google-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.google-steps span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(70, 44, 129, 0.1);
  border-radius: 14px;
  color: var(--purple);
  background: rgba(249, 246, 232, 0.68);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
}

.google-steps strong {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--pink);
  font-size: 10px;
}

.actions {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 10px;
}

.actions button {
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.secondary-action {
  border: 1px solid rgba(70, 44, 129, 0.18);
  color: var(--purple);
  background: white;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--pink-deep), var(--purple));
  box-shadow: 0 12px 26px rgba(70, 44, 129, 0.22);
}

.primary-action span {
  font-size: 18px;
}

.direct-link {
  display: block;
  margin-top: 16px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-underline-offset: 4px;
}

footer {
  padding: 34px 20px 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

footer img {
  width: 40px;
  margin-bottom: 8px;
}

footer p {
  margin-bottom: 5px;
}

footer a {
  color: var(--purple);
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  main {
    padding-inline: 12px;
  }

  .hero {
    padding-inline: 4px;
  }

  .brand {
    margin-bottom: 34px;
  }

  .review-builder {
    padding-inline: 17px;
    border-radius: 25px;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .google-steps {
    grid-template-columns: 1fr;
  }

  .primary-action {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
