/* FaceLift standalone pages: /manage, /membership-terms, /review… (same tokens as app.css) */

:root {
  --brand: #203A43;
  --brand-hover: #182C33;
  --brand-2: #2C5364;
  --brand-50: #EAF0F1;
  --brand-100: #CFDDE1;
  --gold: #D0AA86;
  --gold-ink: #B08458;
  --ink: #1C2B30;
  --muted: #4E5A5E;
  --line: #E9DED2;
  --bg: #F9F4EA;
  --card: #FFFDF8;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); }
a:focus-visible { outline: 3px solid rgba(44, 83, 100, .45); outline-offset: 2px; border-radius: 4px; }

.pg-top { display: flex; justify-content: center; padding: 18px 16px 6px; }
.pg-top img { display: block; height: 28px; width: auto; }

.pg { max-width: 640px; margin: 0 auto; padding: 12px 16px 24px; }
.pg h1 { font-family: var(--serif); font-size: 28px; line-height: 1.2; margin: 14px 0 8px; text-wrap: balance; }
.pg h2 { font-size: 18px; line-height: 1.3; margin: 22px 0 6px; }
.pg-card h2:first-child { margin-top: 0; }
.pg p { margin: 0 0 12px; }
.pg-lead { font-size: 17px; color: var(--muted); }
.pg-fine { font-size: 14px; color: var(--muted); }

.pg-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}
.pg-card p:last-child { margin-bottom: 0; }

.pg-btn {
  display: block;
  text-align: center;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(32, 58, 67, .22);
}
.pg-btn:hover { background: var(--brand-hover); }

.pg-steps { margin: 18px 0 14px; padding-left: 22px; }
.pg-steps li { margin: 6px 0; }

.pg-ok {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
}

.pg-doc h2 { scroll-margin-top: 16px; }

.pg-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 8px 16px 32px;
  font-size: 13px;
}
.pg-legal a { color: var(--muted); }

/* /review: star rating and form */
.pg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.rv-stars-in { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; margin: 0 0 16px; padding: 0; border: 0; }
.rv-stars-in legend { width: 100%; margin-bottom: 4px; text-align: center; font-weight: 700; }
.rv-stars-in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-stars-in label { font-size: 46px; line-height: 1; color: #E3D3C5; cursor: pointer; padding: 2px; }
.rv-stars-in input:checked ~ label, .rv-stars-in label:hover, .rv-stars-in label:hover ~ label { color: var(--gold-ink); }
.rv-stars-in input:focus-visible + label { outline: 3px solid rgba(44, 83, 100, .45); border-radius: 8px; }
.pg-field { display: block; margin: 0 0 14px; }
.pg-field span { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.pg-field input, .pg-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: var(--card);
}
.pg-field input:focus, .pg-field textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(44, 83, 100, .15); }
.pg-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; font-size: 15px; }
.pg-check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--brand); }
.pg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pg-err { padding: 10px 12px; border-radius: 12px; color: #B91C1C; background: #FEF2F2; border: 1px solid #FECACA; }
.pg-card .pg-btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.pg-card .pg-fine { margin: 12px 0 0; text-align: center; }
