/* {site}/reviews — standalone link-in-bio shell. NOT the site theme. Mobile-first.
   Brand colour arrives as --rv-brand / --rv-brand-dark, set inline by reviews.php
   from site_settings.theme_color (the same 10-colour enum the site themes use). */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --rv-brand: #0066FF;
    --rv-brand-dark: #0050CC;
    --rv-ink: #10131a;
    --rv-ink-2: #5c6577;
    --rv-line: #e7eaf0;
    --rv-card: #ffffff;
}
html {
    /* Phones with accessibility text scaling / auto font boosting were blowing
       the type up ~2x and the page scrolled forever. Keep our own scale. */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
    color: var(--rv-ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    background: var(--rv-brand-dark);
    background-image:
        radial-gradient(80rem 40rem at 14% -10%, rgba(255, 255, 255, .30), transparent 60%),
        radial-gradient(55rem 36rem at 106% 6%, rgba(255, 255, 255, .16), transparent 55%),
        radial-gradient(75rem 55rem at 50% 120%, rgba(0, 0, 0, .38), transparent 62%),
        linear-gradient(160deg, var(--rv-brand) 0%, var(--rv-brand-dark) 100%);
    background-attachment: fixed;
}

.rv-wrap {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 62px 16px calc(36px + env(safe-area-inset-bottom));
}
.rv-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--rv-card);
    border-radius: 24px;
    padding: 56px 20px 24px;
    text-align: center;
    box-shadow: 0 28px 60px -22px rgba(8, 12, 24, .45), 0 2px 8px rgba(8, 12, 24, .10);
    animation: rvCard .5s cubic-bezier(.22, 1, .36, 1) both;
}
@media (min-width: 480px) {
    .rv-card { padding: 62px 32px 28px; }
}

/* Avatar: the site's ICON (apple-touch/favicon mark), floating over the card
   edge like an app icon. Square by design — never a wordmark. */
.rv-logo {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--rv-line);
    box-shadow: 0 10px 24px -10px rgba(8, 12, 24, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.rv-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-logo-mono {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--rv-brand);
}

.rv-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rv-ink-2);
    margin-bottom: 10px;
}
.rv-lead {
    /* Clamped, not fixed: stays compact on narrow phones, never balloons. */
    font-size: clamp(20px, 5.6vw, 24px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.4px;
    margin: 0 auto 8px;
    max-width: 21em;
}
.rv-sub {
    font-size: 14.5px;
    color: var(--rv-ink-2);
    margin: 0 auto;
    max-width: 26em;
}

/* Ratings — DISPLAY ONLY, never emitted as aggregateRating anywhere.
   A hairline list: wordmark left, stars + score + count right. */
.rv-ratings {
    margin-top: 20px;
    border: 1px solid var(--rv-line);
    border-radius: 16px;
    background: #fafbfd;
    text-align: left;
}
.rv-rate {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    min-height: 44px;
}
.rv-rate + .rv-rate { border-top: 1px solid var(--rv-line); }
.rv-rate-brand { display: flex; align-items: center; min-width: 0; }
.rv-rate-brand svg { height: 14px; width: auto; display: block; }
/* Optical balance: each wordmark has a different cap-height share. */
.rv-rate-brand--trustpilot svg { height: 15px; }
.rv-rate-brand--google svg { height: 15px; }
.rv-rate-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rv-rate-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
}
.rv-rate-score { font-size: 13.5px; font-weight: 800; letter-spacing: -.2px; }
.rv-rate-count { font-size: 12px; color: var(--rv-ink-2); font-weight: 500; }

/* Five stars with a fractional fill, driven by --rate (0..5). */
.rv-stars {
    position: relative;
    display: inline-block;
    line-height: 0;
    color: #e2e6ee;
}
.rv-stars svg { height: 12px; width: auto; flex: none; display: block; }
.rv-stars-fill {
    position: absolute;
    inset: 0;
    overflow: hidden;
    width: calc(var(--rate) / 5 * 100%);
    color: #f5a623;
}
/* The clipped overlay must keep the FULL five-star width, or the flex row
   inside it shrinks to the clip box and the fill stops being proportional. */
.rv-stars-fill > span { width: max-content; }

/* The platform buttons — the whole point of the page. */
.rv-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.rv-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--rv-line);
    border-radius: 16px;
    color: var(--rv-ink);
    text-decoration: none;
    text-align: left;
    min-height: 64px;
    transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .18s ease, border-color .18s ease;
    animation: rvUp .45s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}
.rv-btn:hover {
    transform: translateY(-2px);
    border-color: var(--rv-tint, var(--rv-brand));
    box-shadow: 0 14px 28px -14px rgba(8, 12, 24, .35);
}
.rv-btn:active { transform: translateY(0); }
.rv-btn:focus-visible { outline: 3px solid var(--rv-brand); outline-offset: 3px; }

/* Column, always: a custom-label row stacks label + CTA exactly like a
   wordmark row (they used to collapse onto one line). */
.rv-btn-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.rv-btn-logo { display: flex; }
.rv-btn-logo svg { height: 17px; width: auto; max-width: min(150px, 52vw); display: block; }
/* Optical balance: each wordmark has a different cap-height share. */
.rv-btn-logo--trustpilot svg { height: 19px; }
.rv-btn-logo--google svg { height: 18px; }
.rv-btn-logo--tripadvisor svg { height: 16px; }
.rv-btn-title {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -.2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rv-btn-cta { font-size: 13px; color: var(--rv-ink-2); font-weight: 500; }
.rv-btn-arrow {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f5f9;
    color: var(--rv-ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.rv-btn-arrow svg { width: 15px; height: 15px; display: block; }
.rv-btn:hover .rv-btn-arrow {
    background: var(--rv-tint, var(--rv-brand));
    color: #fff;
    transform: translateX(2px);
}

.rv-empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f3f5f9;
    color: var(--rv-ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rv-empty-icon svg { width: 26px; height: 26px; }

@keyframes rvCard { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rvUp   { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .rv-card, .rv-btn { animation: none; }
    .rv-btn:hover { transform: none; }
}

@media (max-width: 360px) {
    .rv-card { padding: 52px 16px 20px; }
    .rv-rate { padding: 10px 12px; gap: 8px; }
    .rv-rate-count { display: none; }
}
