/* ===== /review/ — "write it once, post it where it counts" =====
   Loaded only on the review page. Uses the tokens and type scale from styles.css;
   everything here is namespaced .rv-* so it cannot leak into other pages.
   Cache-busted by build.py as /review.css?v=<md5[:8]>. */

.rv-top { padding-top: 32px; padding-bottom: 8px; }
.rv-top .section-title em { color: var(--gold-dark); font-style: italic; }
.rv-lead { font-size: 1.1rem; max-width: 56ch; }

/* the leave-a-review half: anchored at #leave, keep the heading clear of the sticky header */
.rv-leave { scroll-margin-top: 96px; padding-top: 56px; border-top: 1px solid var(--cream-dark); margin-top: 8px; }
.rv-top .start-row .btn-gold .btn-arrow { margin-left: 8px; }

/* ---- step headings shared by both steps ---- */
.rv-step { padding-top: 40px; }
.rv-step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.rv-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.1rem; line-height: 1; color: var(--gold); flex: none;
}
.rv-step-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0; }
.rv-hint { color: var(--text-light); font-weight: 300; max-width: 60ch; margin: 0 0 20px; }

/* ---- step one: the write box ---- */
.rv-box {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  padding: 26px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .05);
}
.rv-prompts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.rv-prompts li {
  font-size: .84rem; font-weight: 300; color: var(--text-light);
  background: var(--cream); border: 1px solid var(--cream-dark);
  border-radius: 999px; padding: 6px 14px;
}
.rv-textarea {
  width: 100%; min-height: 190px; resize: vertical;
  font-family: 'Outfit', system-ui, sans-serif; font-size: 1.02rem; font-weight: 300; line-height: 1.7;
  color: var(--dark); background: var(--cream);
  border: 1.5px solid var(--cream-dark); border-radius: 4px;
  padding: 16px; transition: border-color .2s, box-shadow .2s;
}
.rv-textarea::placeholder { color: var(--text-light); opacity: .7; }
.rv-textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196, 162, 101, .25); }
.rv-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 16px; }
.rv-saved { font-size: .8rem; color: var(--text-light); font-weight: 300; }
.rv-saved[hidden] { display: none; }

/* ---- step two: the platform cards ---- */
.rv-progress { margin: 0 0 20px; max-width: 420px; }
.rv-track { height: 4px; border-radius: 2px; background: var(--cream-dark); overflow: hidden; }
.rv-fill { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--gold); transition: width .45s cubic-bezier(.2, .7, .2, 1); }
.rv-plabel { display: block; margin-top: 9px; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); }
.rv-progress.done .rv-plabel { color: var(--gold-dark); }

.rv-cards { display: flex; flex-direction: column; gap: 12px; }
.rv-card {
  --brand: var(--gold);
  position: relative; display: grid;
  grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center;
  padding: 20px 22px; background: var(--white);
  border: 1px solid var(--cream-dark); border-radius: 8px;
  text-decoration: none; color: var(--dark); overflow: hidden;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s, border-color .3s;
}
.rv-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%);
  opacity: 0; transition: opacity .5s;
}
.rv-card:hover, .rv-card:focus-visible { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(0, 0, 0, .1); border-color: var(--brand); }
.rv-card:hover::before, .rv-card:focus-visible::before { opacity: 1; }
.rv-card > * { position: relative; }
.rv-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cream); color: var(--dark);
  transition: background .4s, color .4s, transform .5s cubic-bezier(.2, .7, .2, 1);
}
.rv-ico svg { width: 26px; height: 26px; }
.rv-card:hover .rv-ico { background: var(--brand); color: #fff; transform: rotate(-6deg) scale(1.08); }
.rv-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rv-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; line-height: 1.1; }
.rv-note { font-size: .84rem; color: var(--text-light); font-weight: 300; }
.rv-go {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--dark); color: var(--dark);
  font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
  transition: background .3s, color .3s, border-color .3s;
}
.rv-card:hover .rv-go { background: var(--dark); color: var(--gold); }
.rv-go .arrow { transition: transform .3s; }
.rv-card:hover .rv-go .arrow { transform: translateX(4px); }

/* the primary (Google) card reads as the main ask */
.rv-card.rv-primary { border-color: var(--gold); box-shadow: 0 16px 40px rgba(196, 162, 101, .2); }
.rv-card.rv-primary .rv-ico { background: var(--gold); color: var(--dark); }
.rv-card.rv-primary .rv-go { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.rv-card.rv-primary:hover .rv-go { background: var(--dark); border-color: var(--dark); color: var(--gold); }
.rv-tag {
  align-self: flex-start; /* inside the flex-column .rv-body, not the card grid */
  font-size: .6rem; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 2px; background: var(--gold); color: var(--dark); margin-bottom: 2px;
}

/* done state */
.rv-card.done { border-color: var(--gold-dark); background: var(--cream); }
.rv-card.done .rv-ico { background: var(--gold-dark); color: #fff; }
.rv-card.done .rv-note { color: var(--gold-dark); }

.rv-secondary-head {
  margin: 30px 0 14px; font-size: .68rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold-dark);
}

/* ---- toast ---- */
.rv-toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  background: var(--dark); color: var(--gold);
  padding: 13px 24px; border-radius: 3px;
  font-size: .82rem; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 500;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  z-index: 1600; max-width: calc(100vw - 32px); text-align: center;
}

/* ---- closing note ---- */
.rv-closer p { color: rgba(26, 26, 26, .78); font-weight: 300; margin-bottom: 10px; }
.rv-sig { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; color: var(--dark); margin-top: 16px; }

@media (max-width: 720px) {
  .rv-step { padding-top: 30px; }
  .rv-box { padding: 18px 16px; }
  .rv-card { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; }
  .rv-ico { width: 44px; height: 44px; border-radius: 11px; }
  .rv-ico svg { width: 22px; height: 22px; }
  .rv-go { grid-column: 1 / -1; justify-content: center; margin-top: 4px; }
  .rv-bar .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-card:hover { transform: none; }
  .rv-card:hover .rv-ico { transform: none; }
  .rv-fill { transition: none; }
}
