/*
Theme Name: RG Growth
Description: Custom theme for Ranking Growth — dark, bold, bento layout. No page builder.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: rg
*/

@font-face { font-family: "Sora"; src: url("assets/fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #0e0f12;
  --surface: #16181d;
  --surface-2: #1d2027;
  --line: #2a2e37;
  --text: #ecedf1;
  --muted: #9ba1ae;
  --lime: #c6f432;
  --lime-dim: rgba(198, 244, 50, .14);
  --violet: #8b7bff;
  --head: "Sora", "Segoe UI", Arial, sans-serif;
  --body: "Manrope", "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 36px);
  --r: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 17px/1.65 var(--body); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 .5em; color: #fff; }
h1 { font-size: clamp(44px, 7.6vw, 96px); }
h2 { font-size: clamp(32px, 4.6vw, 58px); }
h3 { font-size: 22px; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.grad { background: linear-gradient(92deg, var(--lime) 10%, #7af0b4 55%, var(--violet) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--lime); color: #000; padding: 8px 14px; clip: auto; width: auto; height: auto; }

/* Header: floating pill */
.site-header { position: sticky; top: 14px; z-index: 50; padding: 0 var(--gutter); margin-top: 14px; }
.nav-pill { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 10px 0 18px; background: rgba(22, 24, 29, .82); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font: 700 19px/1 var(--head); letter-spacing: -0.04em; }
.brand-name span { color: var(--lime); }
.main-nav { margin: 0 auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a { display: block; padding: 9px 16px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: #fff; background: var(--surface-2); }
.main-nav .current-menu-item > a { color: #000; background: var(--lime); }
.menu-toggle { display: none; margin-left: auto; background: var(--surface-2); color: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 700 14px var(--body); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; font: 700 15px/1 var(--body); text-decoration: none; border: 1px solid var(--lime); background: var(--lime); color: #0b0c0e; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { color: #0b0c0e; transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(198, 244, 50, .55); }
.btn--ghost { background: transparent; color: #fff; border-color: var(--line); }
.btn--ghost:hover { color: #fff; background: var(--surface-2); box-shadow: none; }
.btn--dark { background: #0b0c0e; color: #fff; border-color: #0b0c0e; }
.btn--dark:hover { color: #fff; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); }
.btn--small { padding: 12px 18px; font-size: 14px; }

/* Sections */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 660px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sec-head { margin-bottom: 56px; }

/* Hero */
.hero { position: relative; padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 620px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(198,244,50,.18), rgba(139,123,255,.10) 55%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; text-align: center; }
.hero h1 { max-width: 1000px; margin: 0 auto; }
.hero .lead { margin: 28px auto 38px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.hero-chart { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1000px; background: linear-gradient(180deg, var(--surface), var(--bg)); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 28px 10px; position: relative; text-align: left; }
.hero-chart .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.chip--on { background: var(--lime-dim); border-color: rgba(198,244,50,.35); color: var(--lime); }
.hero-chart small { display: block; text-align: right; color: #6c7280; font-size: 12px; padding: 6px 0 14px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.tile:hover { border-color: #3d4350; transform: translateY(-3px); }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile--lime { background: var(--lime); border-color: var(--lime); color: #0b0c0e; }
.tile--lime h3, .tile--lime p { color: #0b0c0e; }
.tile .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--lime-dim); color: var(--lime); display: grid; place-items: center; margin-bottom: auto; }
.tile--lime .ic { background: rgba(0,0,0,.1); color: #0b0c0e; }
.tile .ic svg { width: 24px; height: 24px; }
.tile h3 { margin: 28px 0 8px; }
.tile p { color: var(--muted); font-size: 15.5px; margin: 0; }
.tile ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tile li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tile--lime li { border-color: rgba(0,0,0,.2); color: #0b0c0e; }
.tile-big { font: 800 clamp(48px, 6vw, 80px)/1 var(--head); letter-spacing: -0.05em; margin-top: auto; }

/* Timeline */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.sticky { position: sticky; top: 120px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--lime), var(--violet) 70%, transparent); }
.timeline li { position: relative; padding: 0 0 44px 68px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .n { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 2px solid var(--lime); color: var(--lime); font: 700 15px/36px var(--head); text-align: center; }
.timeline h3 { margin: 6px 0 8px; }
.timeline p { color: var(--muted); margin: 0; }
.timeline .when { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--lime); font-weight: 700; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 34px 30px; display: flex; flex-direction: column; position: relative; }
.plan--hot { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 30px 80px -30px rgba(198,244,50,.35); }
.plan .tag { position: absolute; top: -13px; left: 30px; background: var(--lime); color: #0b0c0e; font: 800 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
.plan h3 { font-size: 28px; margin: 0 0 8px; }
.plan .for { color: var(--muted); font-size: 15px; min-height: 50px; }
.plan .quote { font: 700 20px var(--head); color: #fff; margin: 18px 0 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan .quote small { display: block; font: 600 13px var(--body); color: var(--muted); margin-top: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; flex: 1; }
.plan li { padding: 8px 0 8px 30px; position: relative; font-size: 15px; color: #d6d8de; }
.plan li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23c6f432' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.plan .btn { justify-content: center; }
.plans-note { margin-top: 26px; color: var(--muted); font-size: 14px; text-align: center; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 0 26px; }
.faq details[open] { border-color: #3d4350; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font: 700 18px/1.35 var(--head); letter-spacing: -0.02em; position: relative; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--lime); font: 600 20px/30px var(--body); text-align: center; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* CTA block */
.cta-block { background: var(--lime); color: #0b0c0e; border-radius: 40px; padding: clamp(40px, 7vw, 88px); display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: end; position: relative; overflow: hidden; }
.cta-block::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(0,0,0,.06); }
.cta-block h2 { color: #0b0c0e; margin: 0; }
.cta-block p { margin: 0 0 22px; font-size: 18px; color: #22261a; }

/* Page hero & prose */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -120px; top: -200px; width: 600px; height: 500px; background: radial-gradient(closest-side, rgba(198,244,50,.13), transparent 70%); pointer-events: none; }
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); max-width: 920px; position: relative; }
.page-hero .lead { position: relative; }
.prose { max-width: 780px; padding: 0 0 clamp(64px, 8vw, 104px); }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .4em; color: #d6d8de; }
.prose p { color: #d6d8de; }

/* Values grid */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { border: 1px solid var(--line); border-radius: var(--r); padding: 30px; background: var(--surface); }
.value b { display: block; font: 800 40px/1 var(--head); color: var(--lime); letter-spacing: -0.04em; margin-bottom: 18px; }
.value p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 104px); }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; }
.contact-card + .contact-card { margin-top: 16px; }
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { color: var(--muted); margin: 0; }
.contact-card .big { font: 700 20px var(--head); color: #fff; margin-top: 10px; display: block; word-break: break-all; }
.rg-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 4vw, 40px); }
.rg-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rg-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 18px; color: #d6d8de; }
.rg-form input, .rg-form select, .rg-form textarea { display: block; width: 100%; margin-top: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); font: 500 16px var(--body); color: #fff; }
.rg-form input:focus, .rg-form select:focus, .rg-form textarea:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: transparent; }
.rg-form textarea { min-height: 150px; resize: vertical; }
.rg-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--muted); }
.rg-form .consent input { width: auto; margin-top: 5px; accent-color: var(--lime); }
.rg-form .hp { position: absolute; left: -9999px; }
.notice { border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; font-size: 15px; }
.notice--ok { background: var(--lime-dim); color: var(--lime); border: 1px solid rgba(198,244,50,.35); }
.notice--err { background: rgba(255, 99, 99, .12); color: #ff9c9c; border: 1px solid rgba(255,99,99,.3); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; color: var(--muted); font-size: 15px; }
.site-footer a { color: #d6d8de; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-top h2 { font-size: clamp(30px, 4vw, 48px); margin: 0; max-width: 620px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; padding: 48px 0; }
.footer-cols h4 { font: 700 13px var(--body); letter-spacing: .08em; text-transform: uppercase; color: #6c7280; margin: 4px 0 16px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols .about { max-width: 320px; margin-top: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #6c7280; }

/* Cookie */
.cookie-note { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 10px 10px 10px 22px; font-size: 14px; color: #d6d8de; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); }
.cookie-note p { margin: 0; flex: 1; }
.cookie-note[hidden] { display: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .btn:hover, .tile:hover { transform: none; } html { scroll-behavior: auto; } }

@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--tall { grid-row: auto; }
  .split, .contact-grid, .cta-block { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .plans, .values { grid-template-columns: 1fr; }
  .plans { max-width: 520px; margin: 0 auto; gap: 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .main-nav { position: absolute; top: 74px; left: var(--gutter); right: var(--gutter); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; display: none; margin: 0; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px; }
  .main-nav a { padding: 14px 16px; font-size: 17px; }
  .header-cta { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .rg-form .row, .footer-cols { grid-template-columns: 1fr; }
  .cookie-note { border-radius: 20px; flex-direction: column; align-items: stretch; padding: 16px; }
}

/* Specificity fixes */
.tile.tile--lime p, .tile.tile--lime h3 { color: #0b0c0e; }
.site-footer .btn, .site-footer .btn:hover { color: #0b0c0e; text-decoration: none; }
