/* rrpfx.com — competitor price monitoring. Modern responsive stylesheet. */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-2: #0ea5e9;
  --accent: #16a34a;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f1f5f9;
  --bg-tint: #eff6ff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --maxw: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 10000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.logo:hover { text-decoration: none; }
.logo-text { font-size: 1.35rem; color: var(--ink); letter-spacing: -.03em; }
.logo-accent { color: var(--brand); }
#primary-nav { display: flex; align-items: center; gap: 26px; }
#primary-nav a { color: var(--body); font-weight: 600; font-size: .97rem; }
#primary-nav a:hover { color: var(--brand); text-decoration: none; }
.nav-cta {
  background: var(--brand); color: #fff !important; padding: 10px 18px;
  border-radius: 10px; box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
}
.nav-cta:hover { background: var(--brand-dark); text-decoration: none !important; }
.nav-burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .25s; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Layout ---------- */
main { display: block; }
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 20px; }
.section-alt { background: var(--bg-soft); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(14, 165, 233, .18), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, rgba(37, 99, 235, .14), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 84px 20px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); background: var(--bg-tint);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero-copy h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 18px; }
.hero-copy .lead { font-size: 1.18rem; color: var(--body); margin: 0 0 28px; max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 11px; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: .2s; border: 1.5px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(37, 99, 235, .32); }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn-ghost.light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost.light:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.hero-badges { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-badges li { position: relative; padding-left: 24px; color: var(--muted); font-size: .95rem; font-weight: 500; }
.hero-badges li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800;
}

/* Hero card */
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 26px; transform: rotate(1.2deg);
}
.hc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-radius: 11px; background: var(--bg-soft); margin-bottom: 12px;
  font-weight: 600; color: var(--body);
}
.hc-row strong { color: var(--ink); font-size: 1.1rem; }
.hc-alert { background: #fef2f2; color: #b91c1c; }
.hc-alert strong { color: #dc2626; }
.hc-win { background: #ecfdf5; color: #047857; }
.hc-win strong { color: var(--accent); }
.hc-bar { height: 10px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin: 6px 0 10px; }
.hc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.hc-foot { font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--ink); color: #fff;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: none; padding: 40px 20px;
}
.stats-band .stat { text-align: center; }
.stats-band strong { display: block; font-size: 2rem; color: #fff; letter-spacing: -.02em; }
.stats-band span { color: #94a3b8; font-size: .95rem; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: .2s; box-shadow: var(--shadow);
}
.feature-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }
.feature-box .fi { font-size: 1.9rem; margin-bottom: 12px; }
.feature-box h3 { font-size: 1.2rem; margin: 0 0 8px; }
.feature-box p { margin: 0 0 14px; color: var(--muted); font-size: .98rem; }
.feature-box a { font-weight: 700; font-size: .93rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; padding: 12px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Quote ---------- */
.big-quote {
  max-width: 820px; margin: 0 auto; text-align: center; font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700; color: var(--ink); line-height: 1.4; border: 0; padding: 0;
}
.big-quote cite { display: block; margin-top: 20px; font-size: 1rem; font-weight: 600; color: var(--muted); font-style: normal; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  text-align: center; padding: 72px 20px;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 12px; }
.cta-band p { color: rgba(255, 255, 255, .9); margin: 0 0 28px; font-size: 1.05rem; }
.center-cta { text-align: center; margin-top: 36px; }

/* ---------- Post grid / cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pc-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.post-card:hover .pc-img img { transform: scale(1.05); }
.pc-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.pc-body h3 { font-size: 1.12rem; margin: 0 0 10px; line-height: 1.35; }
.pc-body h3 a { color: var(--ink); }
.pc-body h3 a:hover { color: var(--brand); text-decoration: none; }
.pc-body p { margin: 0 0 16px; color: var(--muted); font-size: .93rem; flex: 1; }
.read-more { font-weight: 700; font-size: .9rem; }

/* ---------- Page head (blog/contact/feature) ---------- */
.page-head { text-align: center; max-width: 760px; margin: 56px auto 40px; padding: 0 20px; }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 14px; }
.page-sub { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- Article / generic content ---------- */
main > h1, main > h2, main > h3, main > h4, main > p, main > ul, main > ol,
main > blockquote, main > table, main > figure, main > pre, main > .contact-wrap,
main > .faq-section, main > .post-hero, main > hr, main > .related-posts, main > div {
  max-width: 800px; margin-left: auto; margin-right: auto;
}
main > h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin-top: 48px; margin-bottom: 20px; padding: 0 20px; }
main > h2 { font-size: 1.6rem; margin-top: 40px; margin-bottom: 14px; padding: 0 20px; }
main > h3 { font-size: 1.25rem; margin-top: 28px; margin-bottom: 10px; padding: 0 20px; }
main > h4 { padding: 0 20px; }
main > p, main > ul, main > ol { padding: 0 20px; margin: 0 auto 18px; }
main > ul, main > ol { padding-left: 40px; }
main > ul li, main > ol li { margin-bottom: 8px; }
.post-hero {
  display: block; width: 100%; max-width: 860px !important; border-radius: var(--radius);
  margin: 8px auto 28px; box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover;
}
main > blockquote {
  border-left: 4px solid var(--brand); background: var(--bg-tint);
  padding: 16px 22px; border-radius: 0 10px 10px 0; color: var(--body); font-style: italic;
}
main hr { border: 0; border-top: 1px solid var(--line); margin: 32px auto; max-width: 800px; }
main table { width: 100%; border-collapse: collapse; margin: 20px auto; font-size: .95rem; }
main th, main td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
main th { background: var(--bg-soft); }
pre { background: #0f172a; color: #e2e8f0; padding: 18px; border-radius: 10px; overflow-x: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
:not(pre) > code { background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; color: #be123c; }

/* ---------- Article rich components (rewritten posts) ---------- */
main > .article-byline, main > .callout, main > .case-study,
main > .sources, main > .key-takeaways {
  max-width: 800px; margin-left: auto; margin-right: auto; padding: 0 20px;
}
.article-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  color: var(--muted); font-size: .92rem; margin: 0 auto 26px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.article-byline .byline-author { color: var(--ink); font-weight: 700; }
.article-byline .byline-role { color: var(--muted); }
.article-byline time { color: var(--muted); }
.article-byline .byline-sep { color: var(--line); }
.reading-note { color: var(--muted); }

figure.article-figure { margin: 26px auto; max-width: 800px; padding: 0 20px; }
figure.article-figure .fig-frame {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); background: #fff;
}
figure.article-figure svg { display: block; width: 100%; height: auto; }
figure.article-figure figcaption {
  color: var(--muted); font-size: .88rem; margin-top: 10px; text-align: center;
}

.callout {
  background: var(--bg-tint); border: 1px solid #dbeafe; border-radius: 12px;
  padding: 18px 22px; margin: 24px auto; color: var(--body);
}
.callout strong { color: var(--ink); }
.key-takeaways {
  background: var(--bg-soft); border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0; padding: 18px 24px; margin: 24px auto;
}
.key-takeaways h2 { font-size: 1.15rem; margin: 0 0 10px; padding: 0; }
.key-takeaways ul { margin: 0; padding-left: 20px; }

.case-study {
  border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px;
  margin: 30px auto; box-shadow: var(--shadow); background: #fff;
}
.case-study h2, .case-study h3 { padding: 0; margin-top: 0; }
.case-study .cs-tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand); background: var(--bg-tint);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 12px;
}
.case-study .cs-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 20px 0 4px; padding: 0; list-style: none;
}
.case-study .cs-metrics li { text-align: center; margin: 0; }
.case-study .cs-metrics strong { display: block; font-size: 1.8rem; color: var(--ink); letter-spacing: -.02em; }
.case-study .cs-metrics span { color: var(--muted); font-size: .85rem; }

.sources { margin: 34px auto; }
.sources h2 { font-size: 1.2rem; }
.sources ol { font-size: .9rem; color: var(--muted); }
.sources a { word-break: break-word; }

@media (max-width: 640px) {
  .case-study .cs-metrics { grid-template-columns: 1fr; gap: 10px; }
}

/* keep home-page full-width sections edge to edge */
main > .hero, main > .stats-band, main > .section, main > .cta-band { max-width: none; padding-left: 0; padding-right: 0; }
main > .section { padding-left: 20px; padding-right: 20px; }
main > .page-head { max-width: 760px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  max-width: 1080px !important; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin: 0 auto 40px; padding: 0 20px; align-items: stretch;
}
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .03em;
}
.price-card h3 { font-size: 1.25rem; margin: 0 0 10px; }
.price-card .price { font-size: 1.1rem; color: var(--muted); margin-bottom: 6px; }
.price-card .price span { font-size: 2.4rem; font-weight: 800; color: var(--ink); }
.price-note { color: var(--muted); font-size: .92rem; margin: 0 0 18px; min-height: 42px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.price-card li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid var(--bg-soft); font-size: .95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.price-card .btn-primary, .price-card .btn-ghost { width: 100%; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px !important; } .price-card.featured { transform: none; } }

/* ---------- Breadcrumb ---------- */
nav[aria-label="breadcrumb"] { max-width: 800px; margin: 24px auto 0; padding: 0 20px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: .85rem; color: var(--muted); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 8px; color: #cbd5e1; }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item.active { color: var(--body); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-wrap {
  max-width: 560px !important; margin: 0 auto 40px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}

/* ---------- FAQ ---------- */
.faq-section { margin: 40px auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; padding: 6px 18px; background: #fff; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 12px 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--brand); font-weight: 800; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { color: var(--body); padding-bottom: 12px; }

/* ---------- Related posts ---------- */
.related-posts h3 { font-size: 1.5rem; }
.related-articles { padding-left: 20px; }

/* ---------- Modal helpers ---------- */
.cm-dialog {
  background: #fff; border-radius: 16px; max-width: 860px; width: 100%; position: relative;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.cm-body { display: grid; grid-template-columns: .8fr 1fr; }
.cm-col-founder { background: var(--bg-soft); padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.cm-col-form { padding: 32px; }

/* ---------- Floating contact ---------- */
.float-contact { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 12px; z-index: 800; }
.float-contact-btn {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--shadow-lg); transition: transform .2s;
}
.float-contact-btn:hover { transform: scale(1.08); text-decoration: none; }
.float-wa { background: #25d366; }
.float-tg { background: #229ed9; }

/* ---------- YouTube ---------- */
.youtube-player { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; cursor: pointer; max-width: 800px; margin: 20px auto; }
.youtube-player img { width: 100%; height: 100%; object-fit: cover; }
.youtube-player .play-button { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.youtube-player iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #cbd5e1; margin-top: 0; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 20px 36px;
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.footer-brand .logo-text { color: #fff; font-size: 1.25rem; font-weight: 800; }
.footer-tagline { color: #94a3b8; font-size: .92rem; max-width: 34ch; margin: 0; }
.footer-col h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.footer-col a { display: block; color: #94a3b8; font-size: .9rem; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom p { max-width: var(--maxw); margin: 0 auto; padding: 20px; font-size: .85rem; color: #64748b; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 20px; }
  .hero-card { transform: none; max-width: 420px; }
  .feature-grid, .post-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
  .cm-body { grid-template-columns: 1fr; }
  .cm-col-founder { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-burger { display: block; }
  #primary-nav {
    position: fixed; inset: 61px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); transform: translateY(-140%); transition: transform .28s ease; z-index: 899;
  }
  #primary-nav.is-open { transform: translateY(0); }
  #primary-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 12px; border: 0; }
  .nav-cta, #primary-nav a:last-child { border-bottom: 0; }
  .section { padding: 52px 20px; }
  .feature-grid, .post-grid, .steps { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { width: 100%; }
  .contact-wrap { padding: 22px; }
}
