/* Review2Rate — design system
   Ink + paper base, electric violet for actions, a five-step score scale as the signature. */

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
    font-weight: 200 800;
    font-stretch: 75% 100%;
    font-display: swap;
}
@font-face {
    font-family: "Hanken Grotesk";
    src: url("../fonts/hanken-grotesk.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --ink: #1B1340;
    --ink-2: #4A4566;
    --ink-3: #75718C;
    --paper: #F4F3FA;
    --surface: #FFFFFF;
    --sunk: #ECEAF5;
    --line: #E1DEEC;
    --line-2: #CFCBE0;
    --brand: #4F3BFF;
    --brand-press: #3925E6;
    --brand-soft: #ECE9FF;
    --gold: #FFC83D;

    --s5: #0E9F6E;
    --s4: #5DAA2A;
    --s3: #E39B00;
    --s2: #EA661C;
    --s1: #D92D48;

    --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
    --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 22px;
    --lift: 0 1px 0 rgba(27, 19, 64, .06), 0 14px 30px -18px rgba(27, 19, 64, .35);
    --wrap: 1200px;
    --gut: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 16px/1.6 var(--text);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-press); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 760px; }
.muted { color: var(--ink-3); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 20px; border-radius: var(--r-sm);
    border: 1.5px solid transparent; cursor: pointer;
    font: 700 15px/1 var(--text); text-decoration: none; white-space: nowrap;
    transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 0 var(--brand-press); }
.btn-primary:hover { background: var(--brand-press); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2B2160; color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-soft); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-danger { background: #fff; color: var(--s1); border-color: #F2C3CB; }
.btn-danger:hover { background: #FDEFF1; color: var(--s1); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-quiet { background: none; border: 0; padding: 4px 2px; color: var(--ink-3); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.link-quiet:hover { color: var(--ink); }
.chip-btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
    border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer;
    font-weight: 600; font-size: 14px; color: var(--ink-2);
}
.chip-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.chip-btn:hover:not([disabled]) { border-color: var(--ink); color: var(--ink); }
.chip-btn.is-on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-press); }
.chip-btn.is-on svg { fill: currentColor; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); font: 800 25px/1 var(--display); letter-spacing: -.03em; }
.logo:hover { color: var(--ink); }
.logo-two {
    display: inline-grid; place-items: center; width: 1.12em; height: 1.12em; margin: 0 .08em;
    background: var(--brand); color: #fff; border-radius: 7px; font-size: .86em; transform: rotate(-6deg);
}
.logo-invert { color: #fff; }
.logo-invert:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.header-search { flex: 1; max-width: 420px; position: relative; }
.header-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 2; }
.header-search input { width: 100%; height: 42px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); padding: 0 16px 0 42px; font-size: 15px; }
.header-search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 8px; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); background: var(--sunk); }
.nav-mobile-only { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: none; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; border-radius: 999px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--lift); padding: 8px; }
.user-menu-panel a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.user-menu-panel a:hover { background: var(--paper); }
.user-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu-head strong { display: block; }
.user-menu-head span { font-size: 13px; color: var(--ink-3); }

/* ---------- Avatar ---------- */
.avatar { --h: 250; display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: hsl(var(--h) 70% 92%); color: hsl(var(--h) 55% 30%); font: 700 14px/1 var(--display); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm { width: 36px; height: 36px; font-size: 13px; }
.avatar-md { width: 48px; height: 48px; font-size: 17px; }
.avatar-lg { width: 96px; height: 96px; font-size: 34px; }

/* ---------- Score tile (signature) ---------- */
.score {
    display: inline-grid; place-items: center; flex-shrink: 0;
    border-radius: var(--r-sm); color: #fff; background: var(--ink-3);
    font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.score-sm { width: 44px; height: 44px; font-size: 18px; border-radius: 9px; }
.score-md { width: 52px; height: 52px; font-size: 22px; }
.score-lg { width: 112px; height: 112px; font-size: 52px; border-radius: 22px; }
.score-xl { width: 148px; height: 148px; font-size: 68px; border-radius: 28px; }
.tone-s5 { background: var(--s5); }
.tone-s4 { background: var(--s4); }
.tone-s3 { background: var(--s3); }
.tone-s2 { background: var(--s2); }
.tone-s1 { background: var(--s1); }
.tone-none { background: var(--sunk); color: var(--ink-3); }

.stars { position: relative; display: inline-block; width: 92px; height: 17px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 17'%3E%3Cg fill='%23D9D5E8'%3E%3Cpath id='s' d='M8.5 0l2.6 5.3 5.9.9-4.3 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L0 6.2l5.9-.9z'/%3E%3Cuse href='%23s' x='18.75'/%3E%3Cuse href='%23s' x='37.5'/%3E%3Cuse href='%23s' x='56.25'/%3E%3Cuse href='%23s' x='75'/%3E%3C/g%3E%3C/svg%3E") left/92px 17px no-repeat; }
.stars-fill { position: absolute; inset: 0 auto 0 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 17'%3E%3Cg fill='%23FFB300'%3E%3Cpath id='s' d='M8.5 0l2.6 5.3 5.9.9-4.3 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L0 6.2l5.9-.9z'/%3E%3Cuse href='%23s' x='18.75'/%3E%3Cuse href='%23s' x='37.5'/%3E%3Cuse href='%23s' x='56.25'/%3E%3Cuse href='%23s' x='75'/%3E%3C/g%3E%3C/svg%3E") left/92px 17px no-repeat; }

/* ---------- Flash ---------- */
.flash-stack { padding-top: 16px; display: grid; gap: 8px; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--brand); }
.flash-success { border-left-color: var(--s5); }
.flash-error { border-left-color: var(--s1); }
.flash-info { border-left-color: var(--brand); }
.flash-x { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-3); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field-label { font-weight: 700; font-size: 14px; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.input { width: 100%; min-height: 46px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff; padding: 10px 14px; font-size: 16px; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input-short { max-width: 140px; }
.input-otp { font: 800 28px/1 var(--display); letter-spacing: .4em; text-align: center; max-width: 280px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.field-error { color: var(--s1); font-size: 14px; font-weight: 600; }
.errors { background: #FDEFF1; border: 1px solid #F2C3CB; color: #8E1A2D; border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 18px; }
.errors ul { margin: 0; padding-left: 18px; }

/* Rating picker uses the score tiles */
.rate-pick { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.rate-pick input { position: absolute; opacity: 0; pointer-events: none; }
.rate-pick label { cursor: pointer; display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.rate-pick .score { width: 58px; height: 58px; font-size: 26px; background: var(--sunk); color: var(--ink-3); transition: background .15s, transform .15s, color .15s; }
.rate-pick label:hover .score { transform: translateY(-2px); }
.rate-pick input:focus-visible + label .score { outline: 3px solid var(--brand); outline-offset: 2px; }
.rate-pick input:checked + label { color: var(--ink); }
.rate-pick input[value="5"]:checked + label .score { background: var(--s5); color: #fff; }
.rate-pick input[value="4"]:checked + label .score { background: var(--s4); color: #fff; }
.rate-pick input[value="3"]:checked + label .score { background: var(--s3); color: #fff; }
.rate-pick input[value="2"]:checked + label .score { background: var(--s2); color: #fff; }
.rate-pick input[value="1"]:checked + label .score { background: var(--s1); color: #fff; }

.file-drop { display: grid; place-items: center; text-align: center; gap: 4px; border: 2px dashed var(--line-2); border-radius: var(--r-md); padding: 22px; background: var(--paper); color: var(--ink-2); cursor: pointer; }
.file-drop:hover { border-color: var(--brand); }
.file-drop input { max-width: 100%; }
.file-previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.file-previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }

/* ---------- Generic blocks ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 560px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.panel-sm { padding: 20px; border-radius: var(--r-md); }
.note { padding: 10px 14px; border-radius: var(--r-sm); background: var(--paper); font-size: 14px; }
.note-warn { background: #FFF6E0; color: #7A5300; }
.empty { text-align: center; padding: 56px 20px; background: #fff; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); }
.empty p { color: var(--ink-2); max-width: 420px; margin: 0 auto 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-3); margin-bottom: 18px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.page-head { padding: 44px 0 26px; }
.page-head p { color: var(--ink-2); font-size: 18px; max-width: 640px; margin: 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none; }
a.tag:hover { background: var(--brand-soft); color: var(--brand-press); }
.lvl { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--sunk); color: var(--ink-2); }
.lvl-2 { background: #E7F4FF; color: #0B5C99; }
.lvl-3 { background: #E5F7EE; color: #0B7149; }
.lvl-4 { background: var(--brand-soft); color: var(--brand-press); }
.lvl-5 { background: #FFF2CC; color: #7A5300; }

/* ---------- Home: hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(600px 380px at 82% 30%, rgba(79, 59, 255, .55), transparent 70%),
        radial-gradient(420px 300px at 10% 110%, rgba(14, 159, 110, .28), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 72px var(--gut) 84px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: .98; letter-spacing: -.035em; margin-bottom: 22px; }
.hero-lede { font-size: 19px; color: #D4D0EA; max-width: 520px; margin-bottom: 30px; }
.hero-search { display: flex; background: #fff; border-radius: 16px; padding: 6px; max-width: 560px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font-size: 17px; color: var(--ink); background: transparent; }
.hero-search input:focus { outline: none; }
.hero-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-cats a { color: #E7E4F7; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 600; text-decoration: none; }
.hero-cats a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; color: #BDB8DA; font-size: 14px; }
.hero-stats strong { display: block; color: #fff; font: 800 30px/1 var(--display); margin-bottom: 4px; }

.wall { position: relative; height: 470px; overflow: hidden; mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.wall-track { display: grid; gap: 14px; animation: wall 46s linear infinite; }
.wall:hover .wall-track { animation-play-state: paused; }
@keyframes wall { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.slip { display: grid; grid-template-columns: auto 1fr; gap: 14px; background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 16px; text-decoration: none; }
.slip:nth-child(odd) { margin-right: 36px; }
.slip:nth-child(even) { margin-left: 36px; }
.slip:hover { color: var(--ink); box-shadow: 0 0 0 3px var(--brand); }
.slip-product { font: 700 15px/1.25 var(--display); margin-bottom: 4px; }
.slip-text { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 6px; }
.slip-by { font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* ---------- Home: categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.cat-tile { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-weight: 700; }
.cat-tile span { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.cat-tile:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Ranked list ---------- */
.ranked { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; counter-reset: rank; list-style: none; padding: 0; margin: 0; }
.ranked li { display: grid; grid-template-columns: 44px 64px 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ranked li::before { counter-increment: rank; content: counter(rank); font: 800 28px/1 var(--display); color: var(--line-2); }
.ranked img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: var(--r-sm); border: 1px solid var(--line); }
.ranked a { color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3; }
.ranked a:hover { color: var(--brand); }
.ranked small { display: block; color: var(--ink-3); font-weight: 500; margin-top: 2px; }

/* ---------- Product cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.pcard:hover { border-color: var(--line-2); box-shadow: var(--lift); }
.pcard-media { display: block; position: relative; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-cat { font-size: 13px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.pcard-cat:hover { color: var(--brand); }
.pcard-title { font-size: 17px; margin: 0; line-height: 1.25; }
.pcard-title a { color: var(--ink); text-decoration: none; }
.pcard-title a::after { content: ""; position: absolute; inset: 0; }
.pcard-title a:hover { color: var(--brand); }
.pcard-cat { position: relative; z-index: 2; }
.pcard-rating { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.pcard-meta { display: grid; font-size: 13px; line-height: 1.3; color: var(--ink-3); }
.pcard-meta strong { color: var(--ink); font-size: 14px; }
.pcard-claimed { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }

/* ---------- Review cards ---------- */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; }
.review + .review { margin-top: 14px; }
.review-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.review-who { flex: 1; min-width: 0; display: grid; gap: 4px; }
.review-product { font: 700 16px/1.25 var(--display); color: var(--ink); text-decoration: none; }
.review-product:hover { color: var(--brand); }
.review-author { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.review-author a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; text-decoration: none; }
.review-author a:hover { color: var(--brand); }
.review-date { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.review-title { font-size: 18px; margin-bottom: 6px; }
.review-text { color: var(--ink-2); }
.review-text p:last-child { margin-bottom: 0; }
.review-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.procon-list { list-style: none; margin: 0; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; display: grid; gap: 4px; }
.procon-list li { padding-left: 22px; position: relative; }
.procon-list li::before { position: absolute; left: 0; font-weight: 800; }
.procon-list.is-pro { background: #E9F7F0; }
.procon-list.is-pro li::before { content: "+"; color: var(--s5); }
.procon-list.is-con { background: #FDEFF1; }
.procon-list.is-con li::before { content: "–"; color: var(--s1); }
.review-photos { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.review-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.review-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.inline-form { display: grid; gap: 10px; margin-top: 14px; padding: 14px; background: var(--paper); border-radius: var(--r-sm); }
.reply { margin-top: 16px; padding: 14px 16px; border-left: 4px solid var(--ink); background: var(--paper); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 15px; }
.reply-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; font-size: 14px; }
.reply p:last-child { margin: 0; }
.feed { columns: 3 320px; column-gap: 16px; }
.feed .review { break-inside: avoid; margin: 0 0 16px; }
.feed .review + .review { margin-top: 0; }

/* ---------- Dark band ---------- */
.band { background: var(--ink); color: #D4D0EA; border-radius: var(--r-lg); padding: 44px; }
.band h2 { color: #fff; }
.band-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.podium { display: grid; gap: 10px; }
.podium-row { display: grid; grid-template-columns: 34px auto 1fr auto; gap: 12px; align-items: center; background: rgba(255, 255, 255, .06); border-radius: var(--r-md); padding: 12px 16px; color: #fff; text-decoration: none; }
.podium-row:hover { background: rgba(255, 255, 255, .11); color: #fff; }
.podium-rank { font: 800 22px/1 var(--display); color: #8D87B5; }
.podium-row:first-child .podium-rank { color: var(--gold); }
.podium-row small { display: block; color: #A7A2C8; font-size: 13px; }
.podium-pts { font: 800 20px/1 var(--display); }
.podium-pts small { display: block; text-align: right; font-family: var(--text); font-weight: 500; font-size: 12px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding-top: 58px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-press); font: 800 20px/1 var(--display); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); margin: 0; }

/* ---------- Business CTA ---------- */
.biz-cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: var(--brand); color: #E9E6FF; border-radius: var(--r-lg); padding: 48px; overflow: hidden; position: relative; }
.biz-cta h2 { color: #fff; }
.biz-cta p { font-size: 17px; }
.biz-mock { background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 18px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .5); transform: rotate(2deg); }
.widget-card { display: flex; gap: 14px; align-items: center; }
.widget-card strong { display: block; font: 700 17px/1.2 var(--display); }
.widget-card > div > span { font-size: 13px; color: var(--ink-3); }

/* ---------- Blog cards ---------- */
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bcard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.bcard img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: var(--r-md); margin-bottom: 12px; background: var(--sunk); }
.bcard h3 { font-size: 19px; margin-bottom: 6px; }
.bcard:hover h3 { color: var(--brand); }
.bcard p { color: var(--ink-2); font-size: 15px; margin: 0 0 6px; }
.bcard time { font-size: 13px; color: var(--ink-3); }

/* ---------- Browse ---------- */
.browse { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; padding-bottom: 72px; }
.filters { position: sticky; top: 88px; display: grid; gap: 22px; }
.filters h2 { font-size: 15px; font-family: var(--text); font-weight: 700; margin-bottom: 8px; }
.filter-list { display: grid; gap: 2px; }
.filter-list a { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.filter-list a:hover { background: var(--sunk); color: var(--ink); }
.filter-list a.is-active { background: var(--ink); color: #fff; }
.filter-list a span { color: inherit; opacity: .6; font-size: 13px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar select { min-height: 40px; width: auto; }
.filter-toggle { display: none; }

/* ---------- Product page ---------- */
.p-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0 40px; }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.gallery-main { aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: 0 0 72px; height: 72px; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 4px; cursor: pointer; }
.gallery-thumbs button.is-on { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.p-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 10px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 22px; border-radius: var(--r-lg); background: var(--paper); margin-bottom: 22px; }
.verdict-word { font: 800 30px/1 var(--display); margin-bottom: 6px; }
.dist { display: grid; gap: 6px; margin-top: 10px; }
.dist a { display: grid; grid-template-columns: 22px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.dist a:hover { color: var(--ink); }
.dist-bar { height: 8px; background: #fff; border-radius: 99px; overflow: hidden; }
.dist-bar span { display: block; height: 100%; border-radius: 99px; }
.p-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.p-desc { color: var(--ink-2); }
.p-desc.is-clamped { max-height: 7.5em; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); -webkit-mask-image: linear-gradient(#000 60%, transparent); }
.p-body { display: grid; grid-template-columns: 1fr 330px; gap: 36px; align-items: start; padding: 44px 0 72px; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 30px; }
.highlight { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.highlight h3 { font-size: 15px; font-family: var(--text); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.highlight .score { width: 28px; height: 28px; font-size: 14px; border-radius: 7px; }
.highlight p { color: var(--ink-2); font-size: 15px; margin: 0 0 8px; }
.highlight a { font-size: 14px; font-weight: 700; }
.review-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.side-card + .side-card { margin-top: 16px; }
.side-card h3 { font-size: 17px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini-list li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.mini-list img { width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mini-list a { color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; line-height: 1.3; }
.mini-list a:hover { color: var(--brand); }
.mini-list small { display: block; color: var(--ink-3); font-weight: 500; }

.write-panel { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 28px; }

/* ---------- Auth ---------- */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: #D4D0EA; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; bottom: -220px; background: radial-gradient(circle, rgba(79, 59, 255, .6), transparent 65%); }
.auth-side h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 3rem); position: relative; }
.auth-side p, .auth-side ul { position: relative; font-size: 17px; }
.auth-side ul { padding-left: 20px; display: grid; gap: 6px; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 430px; }
.auth-box h1 { font-size: 2.2rem; }
.auth-alt { margin-top: 18px; color: var(--ink-2); font-size: 15px; }

/* ---------- Account ---------- */
.acct { display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding: 36px 0 72px; align-items: start; }
.acct-nav { display: grid; gap: 2px; position: sticky; top: 88px; }
.acct-nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; text-decoration: none; display: flex; justify-content: space-between; }
.acct-nav a:hover { background: var(--sunk); color: var(--ink); }
.acct-nav a.is-active { background: var(--ink); color: #fff; }
.acct-nav .count { font-size: 12px; background: var(--brand); color: #fff; border-radius: 99px; padding: 1px 8px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.stat strong { display: block; font: 800 30px/1 var(--display); margin-bottom: 6px; }
.stat > span:not(.score), .stat > div > span { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.progress { height: 10px; background: var(--sunk); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge { padding: 14px; border-radius: var(--r-md); border: 1.5px dashed var(--line-2); color: var(--ink-3); font-size: 13px; }
.badge strong { display: block; font-size: 15px; color: var(--ink-3); margin-bottom: 2px; }
.badge.is-got { border: 1.5px solid var(--ink); background: #fff; color: var(--ink-2); }
.badge.is-got strong { color: var(--ink); }
.badge.is-got strong::before { content: "★ "; color: var(--gold); }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 13px; color: var(--ink-3); font-weight: 700; background: var(--paper); }
.table tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--sunk); color: var(--ink-2); }
.status-approved, .status-published, .status-resolved { background: #E5F7EE; color: #0B7149; }
.status-pending, .status-open { background: #FFF2CC; color: #7A5300; }
.status-rejected, .status-hidden { background: #FDEFF1; color: #8E1A2D; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-size: 14px; }
.codebox { width: 100%; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--ink); color: #E7E4F7; border-radius: var(--r-sm); padding: 14px; border: 0; resize: vertical; }

/* ---------- Profile ---------- */
.profile-head { background: #fff; border-bottom: 1px solid var(--line); padding: 40px 0; }
.profile-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.profile-row h1 { margin-bottom: 6px; }
.profile-stats { display: flex; gap: 28px; margin-left: auto; }
.profile-stats strong { display: block; font: 800 28px/1 var(--display); }
.profile-stats span { color: var(--ink-3); font-size: 14px; }

/* ---------- Leaderboard ---------- */
.lb-hero { background: var(--ink); color: #D4D0EA; padding: 56px 0 0; overflow: hidden; }
.lb-hero h1 { color: #fff; }
.lb-prize { display: inline-flex; gap: 10px; align-items: center; background: var(--gold); color: var(--ink); font-weight: 800; padding: 8px 16px; border-radius: 999px; margin-bottom: 18px; }
.lb-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-top: 40px; }
.lb-step { background: rgba(255, 255, 255, .07); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 24px 18px 30px; text-align: center; color: #fff; text-decoration: none; display: grid; justify-items: center; gap: 8px; }
.lb-step:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.lb-step.is-1 { padding-bottom: 60px; background: rgba(255, 200, 61, .14); }
.lb-step .place { font: 800 44px/1 var(--display); color: #8D87B5; }
.lb-step.is-1 .place { color: var(--gold); }
.lb-step strong { font-size: 18px; }
.lb-step small { color: #A7A2C8; }
.lb-table td:first-child { font: 800 18px/1 var(--display); color: var(--ink-3); width: 56px; }
.lb-user { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.lb-user:hover { color: var(--brand); }
.winners { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.winner { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.winner time { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.winner strong { display: block; font: 700 19px/1.2 var(--display); margin: 4px 0; }

/* ---------- Article ---------- */
.article { font-size: 18px; line-height: 1.75; color: #2C2650; }
.article h2 { font-size: 1.7rem; margin-top: 1.6em; }
.article h3 { font-size: 1.3rem; margin-top: 1.4em; }
.article img { border-radius: var(--r-md); margin: 1.2em 0; }
.article a { font-weight: 600; }
.article ul, .article ol { padding-left: 1.3em; }
.article blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--brand); color: var(--ink-2); }
.article table { width: 100%; border-collapse: collapse; font-size: 16px; }
.article td, .article th { border: 1px solid var(--line); padding: 8px 10px; }
.post-cover { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-lg); margin: 24px 0 36px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.5em; }
.prose p, .prose li { color: var(--ink-2); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font: 700 22px/1 var(--display); color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); }

/* ---------- Pager ---------- */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pager-num, .pager-btn { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; }
.pager-num:hover, .pager-btn:hover { border-color: var(--ink); color: var(--ink); }
.pager-num.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager-gap { padding: 0 4px; align-self: center; color: var(--ink-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A7A2C8; padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid a:not(.btn):not(.logo) { display: block; color: #D4D0EA; text-decoration: none; padding: 4px 0; font-size: 15px; }
.footer-grid a:not(.btn):not(.logo):hover { color: #fff; text-decoration: underline; }
.footer-brand p { max-width: 340px; margin: 16px 0 20px; }
.footer-h { color: #fff; font: 700 15px/1.2 var(--text); margin-bottom: 12px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.footer-base a { color: #D4D0EA; margin-left: 18px; text-decoration: none; }
.footer-base a:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(15, 10, 40, .9); display: grid; place-items: center; z-index: 200; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; border-radius: var(--r-md); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
    .main-nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: #fff; padding: 12px var(--gut) 20px; border-bottom: 1px solid var(--line); box-shadow: var(--lift); display: none; }
    .main-nav.is-open { display: flex; }
    .nav-mobile-only { display: grid; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
    .nav-link { padding: 12px 10px; font-size: 16px; }
    .nav-toggle { display: block; }
    .header-actions { margin-left: auto; }
    .hero-grid { grid-template-columns: 1fr; padding-bottom: 40px; }
    .wall { height: 300px; }
    .band-grid, .biz-cta { grid-template-columns: 1fr; }
    .p-body { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .header-search { display: none; }
    .browse { grid-template-columns: 1fr; }
    .filters { position: static; display: none; }
    .filters.is-open { display: grid; }
    .filter-toggle { display: inline-flex; }
    .p-grid { grid-template-columns: 1fr; gap: 24px; }
    .ranked { grid-template-columns: 1fr; }
    .bgrid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; gap: 20px; }
    .auth { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .acct { grid-template-columns: 1fr; }
    .acct-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
    .acct-nav a { white-space: nowrap; }
    .stat-row { grid-template-columns: 1fr 1fr; }
    .lb-podium { gap: 8px; }
}
@media (max-width: 600px) {
    :root { --gut: 16px; }
    body { font-size: 15.5px; }
    .hide-sm { display: none !important; }
    .section { padding: 52px 0; }
    .hero-grid { padding-top: 44px; }
    .hero-search { flex-direction: column; gap: 6px; }
    .hero-search input { min-height: 48px; }
    .hero-stats { gap: 22px; }
    .slip:nth-child(odd), .slip:nth-child(even) { margin: 0; }
    .section-head { flex-direction: column; align-items: start; }
    .bgrid { grid-template-columns: 1fr; }
    .pgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .pcard-body { padding: 10px 12px 12px; }
    .pcard-title { font-size: 15px; }
    .pcard-meta strong { font-size: 13px; }
    .score-sm { width: 38px; height: 38px; font-size: 15px; }
    .procon, .highlights, .field-row { grid-template-columns: 1fr; }
    .band, .biz-cta, .panel, .write-panel { padding: 24px 18px; }
    .verdict { grid-template-columns: 1fr; }
    .score-lg { width: 92px; height: 92px; font-size: 42px; }
    .ranked li { grid-template-columns: 30px 52px 1fr auto; gap: 10px; }
    .ranked img { width: 52px; height: 52px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-base a { margin: 0 14px 0 0; }
    .profile-stats { margin-left: 0; }
    .lb-step { padding: 16px 8px 22px; }
    .lb-step.is-1 { padding-bottom: 40px; }
    .lb-step .place { font-size: 32px; }
    .review { padding: 16px; }
    .review-head { flex-wrap: wrap; }
    .rate-pick .score { width: 52px; height: 52px; }
    .table { font-size: 14px; }
    .table-wrap { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
