/* ReviewHero marketing site — light theme (cream / near-black / hint of red).
   Palette is LOCKED: see vault memory [[reviewhero-web-palette]]. Never introduce
   navy, dark blue, or any dark full-bleed surface. Red is an accent only. */

:root {
  --cream: #FDF9F6;
  --cream-2: #F6EEE9;
  --white: #FFFFFF;
  --ink: #14100F;
  --ink-2: rgba(20, 16, 15, .72);
  --ink-3: rgba(20, 16, 15, .54);
  --red: #C22333;
  --red-dark: #9E1A28;
  --red-soft: rgba(194, 35, 51, .08);
  --gold: #E8A33D;
  --line: rgba(20, 16, 15, .10);
  --line-2: rgba(20, 16, 15, .16);
  --shadow-sm: 0 1px 2px rgba(20, 16, 15, .06), 0 4px 12px rgba(20, 16, 15, .05);
  --shadow-md: 0 8px 28px rgba(20, 16, 15, .09);
  --shadow-lg: 0 24px 64px rgba(20, 16, 15, .13);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1120px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.accent { color: var(--red); }
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: .78rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--red);
  margin: 0 0 .8em;
}
.lede { font-size: clamp(1.05rem, 1.9vw, 1.22rem); color: var(--ink-2); }

section { padding: clamp(56px, 8vw, 104px) 0; }
.sec-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-3); transform: translateY(-1px); }

/* ---------- app store badges ---------- */
.store-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-row.center-row { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; border-radius: 13px;
  padding: 10px 20px 10px 17px; min-width: 194px;
  border: 1px solid var(--ink); transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  box-shadow: var(--shadow-sm);
}
.store-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-btn svg { flex: 0 0 auto; }
.store-btn .st { display: block; line-height: 1.15; text-align: left; }
.store-btn .st-top { display: block; font-size: .66rem; letter-spacing: .05em; opacity: .82; font-family: var(--body); margin-bottom: 1px; }
.store-btn .st-main { display: block; font-size: 1.13rem; font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
/* Google Play placeholder — listing not approved yet, so it is a real-looking
   badge that deliberately isn't a link. Same shape and weight as the App Store
   badge so the pair reads as a pair. */
.store-btn.is-soon {
  background: var(--ink); color: #fff; border-color: var(--ink);
  cursor: default; position: relative; opacity: .58;
}
.store-btn.is-soon:hover { transform: none; box-shadow: var(--shadow-sm); color: #fff; }
.soon-tag {
  position: absolute; top: -9px; right: 10px; background: var(--red); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: .6rem; letter-spacing: .09em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.store-note { font-size: .88rem; color: var(--ink-3); margin: 14px 0 0; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--header-h);
  background: rgba(253, 249, 246, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }
@media (min-width: 720px) { .header-cta { display: inline-flex; padding: 10px 20px; font-size: .95rem; } }

.menu-btn {
  display: inline-flex; align-items: center; gap: 9px; background: var(--white);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px 9px 14px;
  font-family: var(--display); font-weight: 600; font-size: .93rem; color: var(--ink); cursor: pointer;
}
.menu-btn:hover { border-color: var(--ink-3); }
.menu-btn .bars { display: inline-flex; flex-direction: column; gap: 3px; }
.menu-btn .bars i { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--ink); }

.menu-panel {
  position: fixed; inset: 0; z-index: 950; display: none;
  background: rgba(20, 16, 15, .38); backdrop-filter: blur(3px);
}
.menu-panel.is-open { display: block; }
.menu-inner {
  position: absolute; top: 12px; right: 12px; left: 12px; margin: 0 auto; max-width: 420px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 16px;
}
.menu-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 4px 8px; }
.menu-close:hover { color: var(--ink); }
.menu-title { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin: 4px 0 12px 8px; }
.menu-link { display: block; padding: 13px 14px; border-radius: var(--r); color: var(--ink); }
.menu-link:hover, .menu-link.is-current { background: var(--cream-2); color: var(--ink); }
.menu-link strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.06rem; }
.menu-link span { display: block; font-size: .89rem; color: var(--ink-3); }
.menu-foot { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

main { padding-top: var(--header-h); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(178deg, var(--cream) 0%, var(--cream-2) 100%); padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 7vw, 80px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: .35em; }
.hero .lede { max-width: 34em; }
.hero-shot { position: relative; justify-self: center; max-width: 340px; }
.hero-shot img { border-radius: 30px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.hero-badge {
  position: absolute; left: -14px; bottom: 34px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-md);
  padding: 11px 15px; display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600;
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }

/* ---------- generic cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .g3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; background: var(--red-soft);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--red);
}
.step-n {
  font-family: var(--display); font-weight: 800; font-size: 1rem; color: #fff; background: var(--red);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
}

/* ---------- stats ---------- */
.stats { display: grid; gap: 20px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--red); line-height: 1; margin-bottom: 10px; letter-spacing: -.03em; }
.stat span { color: var(--ink-2); font-size: .97rem; }
.footnotes { font-size: .82rem; color: var(--ink-3); margin-top: 22px; }
.footnotes a { color: var(--ink-3); text-decoration: underline; }

/* ---------- pills / industries ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 17px; font-size: .95rem; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ---------- pricing ---------- */
.price-card { position: relative; }
.price-card.is-best { border-color: var(--red); box-shadow: var(--shadow-md); }
.price-tag { font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.03em; line-height: 1; }
.price-tag small { font-family: var(--body); font-weight: 400; font-size: .95rem; color: var(--ink-3); letter-spacing: 0; }
.best-tag { position: absolute; top: -12px; left: 24px; background: var(--red); color: #fff; font-family: var(--display); font-weight: 600; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: .97rem; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 11px; height: 6px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(34px, 5vw, 56px); text-align: center; box-shadow: var(--shadow-md); }

/* ---------- footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 52px 0 34px; font-size: .94rem; }
.foot-grid { display: grid; gap: 30px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid h4 { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { color: var(--ink-2); }
.foot-grid a:hover { color: var(--red); }
.foot-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .87rem; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; }

/* ---------- accordion (help centre / faq) ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); overflow: hidden; margin-bottom: 12px; }
.acc summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.03rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.acc[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.acc summary:hover { background: var(--cream); }
.acc .acc-body { padding: 0 22px 20px; color: var(--ink-2); }
.acc .acc-body > :last-child { margin-bottom: 0; }
.acc .acc-body ol, .acc .acc-body ul { padding-left: 22px; margin: 0 0 1em; }
.acc .acc-body li { margin-bottom: .45em; }

/* ---------- search box ---------- */
.searchbar { position: relative; max-width: 560px; margin: 0 auto 34px; }
.searchbar input {
  width: 100%; font-family: var(--body); font-size: 1rem; padding: 15px 18px 15px 46px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.searchbar input:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.searchbar svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.no-results { text-align: center; color: var(--ink-3); padding: 20px; display: none; }

/* ---------- blog ---------- */
.post-grid { display: grid; gap: 26px; }
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--cream-2); }
.post-card .pc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.16rem; margin-bottom: .4em; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--red); }
.post-card p { font-size: .95rem; color: var(--ink-2); }
.post-meta { font-size: .8rem; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; font-family: var(--display); font-weight: 600; margin-bottom: 10px; }
.post-card .pc-body p:last-child { margin-bottom: 0; margin-top: auto; padding-top: 14px; }

.article { max-width: 730px; margin: 0 auto; }
.article .hero-img { border-radius: var(--r-lg); border: 1px solid var(--line); margin: 0 0 32px; box-shadow: var(--shadow-sm); }
.article h2 { margin-top: 1.8em; }
.article h3 { margin-top: 1.5em; }
.article ul, .article ol { padding-left: 24px; margin: 0 0 1.2em; }
.article li { margin-bottom: .5em; }
.article blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--red); color: var(--ink-2); font-size: 1.06rem; }
.article figure { margin: 2em 0; }
.article figure img { border-radius: var(--r); border: 1px solid var(--line); }
.article figcaption { font-size: .86rem; color: var(--ink-3); margin-top: 10px; text-align: center; }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
.article .table-scroll { overflow-x: auto; margin: 0 0 1.6em; }
.article th, .article td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
.article th { background: var(--cream-2); font-family: var(--display); font-weight: 600; }
.article a { text-decoration: underline; }
.article .key-take {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--r); padding: 20px 24px; margin: 0 0 32px;
}
.article .key-take h4 { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.article .key-take ul { margin-bottom: 0; }

/* ---------- exit-intent popup ---------- */
#rh-exit { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(20, 16, 15, .5); backdrop-filter: blur(3px); padding: 20px; }
#rh-exit.on { display: flex; }
#rh-exit-card { position: relative; background: var(--white); border-radius: var(--r-lg); max-width: 430px; width: 100%; padding: 30px 28px 26px; box-shadow: var(--shadow-lg); }
#rh-exit-card h3 { font-size: 1.42rem; margin-bottom: .35em; }
#rh-exit-card p { font-size: .97rem; color: var(--ink-2); }
#rh-exit-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 27px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 6px 9px; }
#rh-exit-close:hover { color: var(--ink); }
#rh-exit form { display: flex; flex-direction: column; gap: 11px; margin-top: 18px; }
#rh-exit input[type=email] { font-family: var(--body); font-size: 1rem; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--cream); color: var(--ink); }
#rh-exit input[type=email]:focus { outline: 2px solid var(--red); outline-offset: 1px; }
#rh-exit .fine { font-size: .78rem; color: var(--ink-3); margin: 4px 0 0; }
#rh-exit .msg { font-size: .9rem; margin: 10px 0 0; min-height: 1.2em; }
#rh-exit .msg.ok { color: #1F7A46; }
#rh-exit .msg.err { color: var(--red); }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 10px; z-index: 999; background: #fff; padding: 10px 16px; border-radius: 8px; }
