:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #737373;
  --border: #e5e5e5;
  --surface: #fafafa;
  --green: #0f6a33;
  --green-bright: #1f8a45;
  --red: #ff4757;
  --pill: 999px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --font: "Geist", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.shell {
  min-height: 100vh;
}

.page {
  position: relative;
  margin: 0 auto;
  min-height: 100vh;
  max-width: 390px;
  padding: 24px 24px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.page--scroll {
  justify-content: flex-start;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 12px;
}

.back-link {
  align-self: center;
  justify-self: start;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.back-link.back-link--hidden {
  visibility: hidden;
}

.brand {
  min-width: 0;
  max-width: 9rem;
  justify-self: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.lang-toggle {
  justify-self: end;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--text);
  border-radius: var(--pill);
  background: #fff;
  box-shadow: var(--shadow);
}

.lang-link {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.7);
}

.lang-link.active {
  background: var(--text);
  color: #fff;
}

.center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid #d4d4d8;
  object-fit: contain;
  background: #fff;
  padding: 8px;
}

.logo.logo--sm {
  width: 84px;
  height: 84px;
}

.heading {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  text-align: center;
}

.heading.heading--left {
  text-align: left;
  width: 100%;
}

.subtle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.emoji {
  font-size: 58px;
  line-height: 1;
}

.primary-card,
.secondary-card,
.wide-button,
.wide-link {
  width: 100%;
  border-radius: 16px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.primary-card:hover,
.secondary-card:hover,
.wide-button:hover,
.wide-link:hover {
  transform: translateY(-1px);
}

.primary-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 16px 24px;
  background: var(--green-bright);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.primary-card strong {
  font-size: 16px;
}

.primary-card span {
  font-size: 15px;
  opacity: 0.9;
}

.secondary-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 16px 24px;
  border: 1px solid var(--red);
  color: var(--red);
  text-align: center;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.section-title {
  width: 100%;
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--muted);
}

.section-card {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--border);
  border-radius: var(--pill);
  padding: 8px 14px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}

.chip.active {
  border-color: var(--green-bright);
  background: var(--green-bright);
  color: #fff;
}

.field-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 14px;
  font-weight: 500;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

.input {
  height: 42px;
  padding: 10px 12px;
}

.textarea {
  min-height: 110px;
  resize: vertical;
  padding: 12px;
}

.review-text {
  min-height: 154px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.review-cta-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--green-bright);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--green-bright);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}

.wide-button,
.wide-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.wide-button {
  background: var(--green-bright);
  color: #fff;
}

.wide-link {
  background: var(--green-bright);
  color: #fff;
}

.wide-link.wide-link--xhs,
.wide-button.wide-button--xhs {
  background: var(--red);
}

.wide-button.wide-button--outline {
  background: #fff;
  color: var(--green-bright);
  border: 1px solid var(--green-bright);
  box-shadow: none;
}

.hint {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.option-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 86px;
  padding: 0 20px;
  border: 1px solid var(--text);
  border-radius: 20px;
  background: #fff;
}

.option-link__left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 600;
}

.option-link__right {
  color: var(--muted);
  font-size: 22px;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
}

.service-badge--google {
  background: #f3f6ff;
  color: #2b63f6;
}

.service-badge--xhs {
  background: #fff1f2;
  color: var(--red);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 10px;
  width: 100%;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.social-bubble {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.media-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.media-preview {
  width: 196px;
  height: 196px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #f7f7f7, #efefef);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--text);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
}

.hidden-input {
  display: none;
}

.thanks-card {
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, #f7fbf8, #ffffff);
  border: 1px solid #d6ebdc;
}

.tiny-link {
  margin: 4px auto 0;
  font-size: 12px;
  color: var(--muted);
}

.spacer-sm {
  height: 8px;
}

@media (max-width: 480px) {
  .page {
    padding-inline: 18px;
  }

  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
