:root {
  --ink: #17202b;
  --muted: #5d6875;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-soft: #fff1f1;
  --line: #e4e8ed;
  --surface: #ffffff;
  --background: #f4f6f8;
  --gold: #f5b301;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(23, 32, 43, 0.1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.09), transparent 34rem),
    var(--background);
  font-family: "Barlow", Arial, sans-serif;
  line-height: 1.5;
  max-width: 100%;
  overflow-x: clip;
}

button, textarea, input { font: inherit; }

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

.review-page {
  min-height: 100vh;
  padding: 18px 12px 36px;
}

.review-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 22px 16px 28px;
  background: var(--surface);
  border: 1px solid rgba(228, 232, 237, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.review-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.review-brand img { display: block; }

.review-brand span { display: grid; line-height: 0.92; }

.review-brand strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.review-brand small {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.3em;
}

.review-intro {
  max-width: 710px;
  margin: 36px auto 28px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: "Barlow Condensed", sans-serif;
  line-height: 1.08;
}

h1 { margin-bottom: 12px; font-size: clamp(2.2rem, 8vw, 4rem); }

h2 { margin-bottom: 0; font-size: clamp(1.7rem, 5vw, 2.4rem); }

.review-intro > p:last-child { margin: 0; color: var(--muted); font-size: 1.04rem; }

.service-fieldset { margin: 0; padding: 0; border: 0; }

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.service-option { display: block; cursor: pointer; }

.service-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.service-option span {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #35404c;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}

.service-option input:checked + span {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red-dark);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.service-option input:focus-visible + span { outline: 3px solid #2563eb; outline-offset: 2px; }

.service-option:active span { transform: scale(0.985); }

.primary-button, .secondary-button {
  min-height: 52px;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.primary-button {
  display: flex;
  width: min(100%, 360px);
  align-items: center;
  justify-content: center;
  margin: 24px auto 0;
  border: 0;
  background: var(--red);
  color: #fff;
  text-decoration: none;
}

.primary-button:hover:not(:disabled) { background: var(--red-dark); }

.primary-button:disabled { cursor: not-allowed; opacity: 0.45; }

.inline-error {
  max-width: 720px;
  margin: 18px auto 0;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fff0f0;
  color: #991b1b;
  text-align: center;
}

.results {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.results-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.secondary-button {
  width: 100%;
  border: 2px solid var(--red);
  background: #fff;
  color: var(--red-dark);
}

.secondary-button:hover:not(:disabled) { background: var(--red-soft); }

.review-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.ai-review-mobile {
  display: none;
}

.generated-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 43, 0.06);
}

.card-label {
  margin: 0 0 3px;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stars {
  color: var(--gold);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.generated-text {
  flex: 1;
  margin: 16px 0 20px;
  color: #303a45;
}

.use-button {
  min-height: 50px;
  width: 100%;
  border: 0;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.use-button:hover { background: #2e3b49; }

.copy-status { min-height: 24px; margin: 16px 0 0; color: #166534; font-weight: 600; text-align: center; }

.manual-copy {
  max-width: 720px;
  margin: 12px auto 0;
  padding: 16px;
  border: 1px solid #f1b2b2;
  border-radius: 12px;
  background: var(--red-soft);
}

.manual-copy label { display: block; margin-bottom: 9px; font-weight: 600; }

.manual-copy textarea {
  width: 100%;
  resize: vertical;
  padding: 12px;
  border: 1px solid #b9c0c8;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}

.manual-copy .google-link { margin-top: 12px; }

.posting-note {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

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

[hidden] { display: none !important; }

@media (max-width: 767px) {
  .ai-review-desktop {
    display: none;
  }

  .ai-review-mobile {
    display: block;
  }

  .review-page {
    padding: 0;
  }

  .mobile-review-shell {
    width: 100%;
    margin: 0;
    padding: 18px 16px 28px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mobile-review-intro {
    margin: 12px 0 18px;
    text-align: left;
  }

  .mobile-review-intro h2 {
    margin: 0;
    font-size: 2rem;
  }

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

  .mobile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-field label {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink);
  }

  .mobile-field textarea,
  .mobile-field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    resize: vertical;
  }

  .mobile-field textarea {
    min-height: 86px;
    max-height: 160px;
  }

  .char-counter-row {
    display: flex;
    justify-content: flex-end;
    font-size: 0.74rem;
    color: var(--muted);
  }

  .mobile-action-button {
    width: 100%;
    margin: 16px 0;
  }

  .mobile-copy-status,
  .mobile-generated-copy-status {
    min-height: 20px;
    margin: 0;
    text-align: left;
    font-size: 0.8rem;
  }

  .mobile-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto 0;
    height: 1px;
    background: var(--line);
  }

  .mobile-divider span {
    position: relative;
    z-index: 1;
    padding: 0 14px;
    background: #fff;
  }

  .mobile-generator-wrap {
    margin-top: 2px;
  }

  .mobile-generator-wrap h3 {
    margin: 0 0 14px;
    font-size: 1.5rem;
  }

  .mobile-results {
    margin-top: 2px;
  }

  .mobile-review-grid {
    display: grid;
    gap: 12px;
  }

  .mobile-review-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  }

  .mobile-review-card.selected {
    border-color: var(--red);
    background: var(--red-soft);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.08);
  }

  .mobile-review-title {
    margin: 0;
    color: var(--red-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-review-text {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.45;
  }

  .mobile-copy-selected-button {
    width: 100%;
    margin-top: 4px;
  }
}

@media (min-width: 540px) {
  .review-page { padding: 28px 20px 48px; }
  .review-shell { padding: 30px 28px 38px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .results-heading { flex-direction: row; align-items: end; justify-content: space-between; }
  .secondary-button { width: auto; flex: 0 0 auto; }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1120px) {
  .review-shell { padding: 36px 40px 46px; }
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .review-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
