/* /tools/google-review-link-generator. Borrowed format: the counter card.
   The card on the stage is the card that prints. Prefix rl-. */
.rl-page {
  --rl-paper: #f4f0e6;
  --rl-white: #fdfbf6;
  --rl-ink: #1a1a18;
  --rl-muted: #56524b;
  --rl-line: #d8d1c2;
  --rl-accent: #1f5c4f;
  --rl-brass: #c9a24d;
  --rl-stage: #1b1712;
  --rl-night: #13201c;
  background: var(--rl-paper);
  color: var(--rl-ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.62;
}
.rl-page * { box-sizing: border-box; }
.rl-page ::selection { background: var(--rl-brass); color: var(--rl-ink); }
.rl-page :focus-visible { outline: 2px solid var(--rl-accent); outline-offset: 3px; border-radius: 3px; }
.rl-page a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:where(.rl-page) :where(h1, h2, h3, p, ol, ul, figure) { margin: 0; }
:where(.rl-page) :where(ol, ul) { padding: 0; list-style: none; }
.rl-page h1, .rl-page h2 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.rl-wrap { width: min(100%, 1180px); margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.rl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero: a plain statement, then straight to the tool. */
.rl-hero { padding: calc(104px + clamp(20px, 3vw, 44px)) 0 clamp(28px, 4vw, 48px); }
.rl-hero h1 { max-width: 16ch; font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: 0.98; }
.rl-lead { margin-top: 22px; max-width: 58ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--rl-muted); }
.rl-hero .ns-trustline { margin-top: 18px !important; color: var(--rl-ink); }

/* The bench: fields, card, actions, texts. */
.rl-tool { padding: 0 0 clamp(40px, 6vw, 80px); }
.rl-bench {
  display: grid;
  gap: 28px clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "fields" "stage" "actions" "texts";
}
.rl-fields { grid-area: fields; display: grid; gap: 20px; align-content: start; }
.rl-stage { grid-area: stage; }
.rl-actions { grid-area: actions; display: grid; gap: 14px; align-content: start; }
.rl-texts { grid-area: texts; }
@media (min-width: 920px) {
  .rl-bench {
    grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
    grid-template-areas: "fields stage" "actions stage" "texts stage";
    align-items: start;
  }
  .rl-stage { position: sticky; top: 124px; grid-row: 1 / span 3; }
}

.rl-field { display: grid; gap: 8px; border: 0; padding: 0; min-width: 0; }
.rl-field label, .rl-field legend, .rl-linklabel { font-size: 15px; font-weight: 800; padding: 0; }
.rl-optional { font-weight: 500; color: var(--rl-muted); }
.rl-page input[type="text"], .rl-linkrow input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--rl-ink);
  background: var(--rl-white);
  border: 1px solid #8f8777;
  border-radius: 6px;
}
.rl-page input::placeholder { color: #6e6a62; }
.rl-page input[aria-invalid="true"] { border-color: #9b2c1f; box-shadow: 0 0 0 1px #9b2c1f; }
.rl-help { font-size: 14.5px; color: var(--rl-muted); }
.rl-help-error { color: #8a2417; font-weight: 700; }
.rl-headlines { gap: 4px; }
.rl-choice { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 500 !important; font-size: 16px !important; cursor: pointer; }
.rl-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--rl-accent); flex: none; }

/* The stage: a counter top, with the card standing on it. */
.rl-stage {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 48px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 56px);
  background:
    linear-gradient(to bottom, var(--rl-stage) 0 82%, #3a2f20 82% 83%, #2a2118 83% 100%);
  border-radius: 10px;
}
.rl-card {
  width: min(100%, 340px);
  aspect-ratio: 4 / 5.15;
  background: var(--rl-white);
  border-radius: 4px;
  box-shadow: 0 22px 28px -16px rgba(0, 0, 0, 0.7), 0 2px 0 rgba(255, 255, 255, 0.08) inset;
  background-image: linear-gradient(to bottom, transparent 0 78.6%, rgba(26, 26, 24, 0.09) 78.6% 78.9%, transparent 78.9%);
}
.rl-card-face { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 14px; padding: 22px 24px 20px; text-align: center; }
.rl-card-head { font-family: var(--font-serif); font-size: clamp(1.35rem, 3.6vw, 1.7rem); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.rl-qr { display: grid; place-items: center; min-height: 0; }
.rl-qr svg, .rl-qr-empty { width: min(100%, 210px); aspect-ratio: 1; height: auto; }
.rl-qr svg { border: 1px solid var(--rl-line); }
.rl-qr-empty { position: relative; display: grid; place-items: center; border: 1px dashed #8f8777; background: #fff; }
.rl-finder { position: absolute; width: 26%; aspect-ratio: 1; border: 5px solid var(--rl-ink); }
.rl-finder::after { content: ""; position: absolute; inset: 22%; background: var(--rl-ink); }
.rl-finder-a { top: 8%; left: 8%; }
.rl-finder-b { top: 8%; right: 8%; }
.rl-finder-c { bottom: 8%; left: 8%; }
.rl-qr-empty-text { max-width: 12ch; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--rl-muted); background: #fff; padding: 4px 6px; z-index: 1; }
.rl-card-steps { font-size: 13.5px; line-height: 1.4; color: var(--rl-muted); }
.rl-card-name { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; overflow-wrap: anywhere; }

/* Actions. */
.rl-linkrow { display: grid; gap: 8px; }
.rl-linkrow input { background: #ebe5d6; }
.rl-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.rl-btn {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  color: var(--rl-ink);
  background: transparent;
  border: 1.5px solid var(--rl-ink);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.rl-btn:hover:not(:disabled) { background: var(--rl-ink); color: var(--rl-paper); }
.rl-btn-main { background: var(--rl-accent); border-color: var(--rl-accent); color: #fff; }
.rl-btn-main:hover:not(:disabled) { background: #174a3f; border-color: #174a3f; }
.rl-btn:disabled { color: #6a665e; border-color: #b8b0a0; background: transparent; cursor: not-allowed; }
.rl-btn-main:disabled { background: #d9d3c4; color: #5d5950; border-color: #d9d3c4; }
.rl-btn-quiet { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; padding-inline: 8px; }
.rl-btn-small { min-height: 44px; font-size: 14px; }
.rl-notice { min-height: 1.6em; font-size: 14.5px; color: var(--rl-muted); }

.rl-texts h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; padding-bottom: 10px; border-bottom: 2px solid var(--rl-ink); }
.rl-texts li { display: grid; gap: 6px; justify-items: start; padding: 16px 0; border-bottom: 1px solid var(--rl-line); }
.rl-text-label { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rl-muted); }
.rl-text-body { font-size: 16px; overflow-wrap: anywhere; }


/* Hero: the statement, and what the visitor leaves with. */
.rl-hero-grid { display: grid; gap: 32px clamp(32px, 6vw, 88px); }
@media (min-width: 960px) { .rl-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: end; } }
.rl-gets { display: grid; border-top: 2px solid var(--rl-ink); }
.rl-gets li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rl-line); }
.rl-gets strong { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; }
.rl-gets span { font-size: 15px; color: var(--rl-muted); }

/* Sections below the tool. */
.rl-source { margin-top: clamp(28px, 4vw, 40px); max-width: 70ch; font-size: 15px; color: var(--rl-muted); }
.rl-intro { margin-top: 14px; max-width: 52ch; color: var(--rl-muted); }
.rl-route, .rl-place, .rl-ledger, .rl-faqs { padding: clamp(52px, 7vw, 96px) 0; border-top: 1px solid var(--rl-line); }
.rl-route h2, .rl-place h2, .rl-ledger h2, .rl-faqs h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.04; max-width: 20ch; }

/* The route: one job, five moments. A rail with a stop for each. */
.rl-route { background: #ece6d6; }
.rl-rail { position: relative; display: grid; margin-top: clamp(32px, 5vw, 56px); }
.rl-rail li { position: relative; display: grid; gap: 6px; align-content: start; }
.rl-rail h3 { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 500; line-height: 1.1; }
.rl-when { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rl-accent); }
.rl-because { font-size: 15px; color: var(--rl-muted); }
.rl-rail li::before { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--rl-brass); border: 2px solid var(--rl-ink); }
@media (max-width: 999px) {
  .rl-rail::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 7px; width: 2px; background: var(--rl-ink); }
  .rl-rail li { padding: 0 0 30px 40px; }
  .rl-rail li:last-child { padding-bottom: 0; }
  .rl-rail li::before { left: 0; top: 4px; }
}
@media (min-width: 1000px) {
  .rl-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 clamp(18px, 2.4vw, 36px); }
  .rl-rail::before { content: ""; position: absolute; top: 7px; left: 8px; right: 8px; height: 2px; background: var(--rl-ink); }
  .rl-rail li { padding-top: 40px; }
  .rl-rail li::before { top: 0; left: 0; }
}

/* Place ID: an annotated drawing beside the steps. */
.rl-place-grid { display: grid; gap: 32px clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .rl-place-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.rl-diagram svg { display: block; width: 100%; height: auto; border-radius: 10px; }
.rl-diagram figcaption { margin-top: 10px; font-size: 14.5px; color: var(--rl-muted); }
.rl-steps { counter-reset: step; display: grid; gap: 16px; margin-top: 22px; }
.rl-steps li { counter-increment: step; position: relative; padding-left: 2.8rem; min-height: 2.4rem; }
.rl-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 2rem; height: 2rem; display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.2rem; color: #fff; background: var(--rl-ink); border-radius: 50%; }
.rl-note { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rl-line); color: var(--rl-muted); max-width: 54ch; }

/* The ledger: what to do, what never to do. */
.rl-ledger { background: var(--rl-white); }
.rl-ledger-grid { display: grid; gap: 28px clamp(32px, 6vw, 80px); margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 800px) { .rl-ledger-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rl-ledger h3 { font-family: var(--font-serif); font-size: 2rem; font-weight: 500; padding-bottom: 10px; border-bottom: 2px solid currentColor; }
.rl-do h3 { color: var(--rl-accent); }
.rl-never h3 { color: #8a2417; }
.rl-ledger li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--rl-line); }
.rl-ledger li svg { width: 24px; height: 24px; margin-top: 2px; }

/* Questions. */
.rl-faqs { background: #ece6d6; }
.rl-faq-grid { display: grid; gap: 28px clamp(32px, 6vw, 80px); }
@media (min-width: 900px) { .rl-faq-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); align-items: start; } }
.rl-faq details { border-bottom: 1px solid #b8b0a0; }
.rl-faq details:first-child { border-top: 2px solid var(--rl-ink); }
.rl-faq summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; cursor: pointer; list-style: none; font-family: var(--font-serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.2; }
.rl-faq summary::-webkit-details-marker { display: none; }
.rl-faq summary i { position: relative; flex: none; width: 20px; height: 20px; }
.rl-faq summary i::before, .rl-faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--rl-ink); }
.rl-faq summary i::after { transform: rotate(90deg); }
.rl-faq details[open] summary i::after { transform: rotate(0deg); }
.rl-faq details p { padding: 0 0 22px; max-width: 60ch; color: var(--rl-muted); }

/* Close: a free tool, or a system that does it for you. */
.rl-close { padding: clamp(64px, 8vw, 112px) 0; background: var(--rl-night); color: #f4f0e6; }
.rl-close h2 { max-width: 22ch; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.04; }
.rl-versus { display: grid; gap: 28px clamp(32px, 6vw, 72px); margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 800px) { .rl-versus { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rl-versus > div + div { padding-left: clamp(32px, 6vw, 72px); border-left: 1px solid #4b5a54; } }
.rl-versus h3 { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 500; }
.rl-versus p { margin-top: 10px; max-width: 46ch; font-size: 17.5px; color: #d6dfdb; }
.rl-actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.rl-cta { min-height: 52px; display: inline-flex; align-items: center; padding: 0 22px; font-weight: 800; text-decoration: none !important; color: var(--rl-ink); background: var(--rl-brass); border-radius: 6px; }
.rl-cta:hover { background: #dbb965; }
.rl-cta-line { background: transparent; color: #f4f0e6; border: 1.5px solid #f4f0e6; }
.rl-cta-line:hover { background: #f4f0e6; color: var(--rl-ink); }
.rl-close :focus-visible { outline-color: var(--rl-brass); }

@media (prefers-reduced-motion: no-preference) {
  .rl-btn, .rl-cta { transition: background-color 160ms cubic-bezier(0.22, 1, 0.36, 1), color 160ms cubic-bezier(0.22, 1, 0.36, 1); }
}

/* Print: only the card, large, on a clean page. */
@media print {
  body * { visibility: hidden !important; }
  .rl-print, .rl-print * { visibility: visible !important; }
  .rl-print { position: absolute; left: 50%; top: 18mm; transform: translateX(-50%); width: 120mm; box-shadow: none; border: 1px solid #999; }
  .rl-print .rl-card-face { padding: 10mm; gap: 6mm; }
  .rl-print .rl-card-head { font-size: 22pt; }
  .rl-print .rl-qr svg { width: 80mm; }
}
