/*
Theme Name: RX4US Prescription Savings
Theme URI: https://rx4us.net/
Author: RX4US
Description: Conversion-focused RX4US WordPress theme with Global Pharmacy Meds referral CTA, dynamic blog integration, and a separate $RX4US community token section.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: rx4us
*/

:root {
  --rx-navy: #062b3c;
  --rx-navy-2: #0a3d50;
  --rx-blue: #087ea4;
  --rx-teal: #00a896;
  --rx-mint: #dff8f1;
  --rx-green: #25c281;
  --rx-lime: #c8ff64;
  --rx-cream: #f7fbfa;
  --rx-white: #ffffff;
  --rx-ink: #10252e;
  --rx-muted: #60747c;
  --rx-line: #dce9e7;
  --rx-yellow: #ffd66b;
  --rx-purple: #7958ff;
  --rx-radius: 24px;
  --rx-shadow: 0 18px 60px rgba(6,43,60,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--rx-ink);
  background: var(--rx-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }

.rx-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.rx-section { padding: 92px 0; }
.rx-section--soft { background: var(--rx-cream); }
.rx-section--dark { background: var(--rx-navy); color: var(--rx-white); }
.rx-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--rx-mint); color: #076253;
  font-size: .79rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.rx-kicker--dark { background: rgba(255,255,255,.12); color: var(--rx-lime); }
.rx-title { margin: 16px 0 16px; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.05; letter-spacing: -.045em; }
.rx-section-title { margin: 14px 0; font-size: clamp(1.8rem, 3vw, 2.75rem); line-height: 1.08; letter-spacing: -.035em; }
.rx-lead { margin: 0; color: var(--rx-muted); font-size: 1.12rem; max-width: 720px; }
.rx-section--dark .rx-lead { color: rgba(255,255,255,.72); }
.rx-small { font-size: .87rem; color: var(--rx-muted); }
.rx-disclaimer { font-size: .79rem; color: var(--rx-muted); line-height: 1.55; }

.rx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px; border-radius: 14px;
  font-weight: 850; border: 1px solid transparent; transition: .2s ease;
}
.rx-btn:hover { transform: translateY(-2px); }
.rx-btn--primary { background: var(--rx-green); color: #022e20; box-shadow: 0 12px 30px rgba(37,194,129,.28); }
.rx-btn--primary:hover { background: #38d495; }
.rx-btn--secondary { background: var(--rx-white); color: var(--rx-navy); border-color: var(--rx-line); }
.rx-btn--ghost { background: transparent; color: var(--rx-white); border-color: rgba(255,255,255,.28); }
.rx-btn--token { background: var(--rx-lime); color: #16200c; }
.rx-btn--full { width: 100%; }

.rx-site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(6,43,60,.08);
}
.rx-header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rx-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 950; font-size: 1.28rem; letter-spacing: -.03em; }
.rx-brand-mark {
  width: 43px; height: 43px; display: grid; place-items: center;
  border-radius: 14px; color: var(--rx-white); background: linear-gradient(135deg, var(--rx-teal), var(--rx-blue));
  box-shadow: 0 8px 20px rgba(8,126,164,.23);
}
.rx-brand-mark svg { width: 27px; height: 27px; }
.rx-brand em { font-style: normal; color: var(--rx-teal); }
.rx-nav { display: flex; align-items: center; gap: 26px; font-size: .94rem; font-weight: 750; }
.rx-nav a:hover { color: var(--rx-teal); }
.rx-menu-toggle { display: none; border: 0; background: transparent; font-size: 1.4rem; }

.rx-hero {
  position: relative; overflow: hidden; padding: 74px 0 58px;
  background:
    radial-gradient(circle at 85% 15%, rgba(200,255,100,.32), transparent 30%),
    radial-gradient(circle at 10% 80%, rgba(0,168,150,.16), transparent 28%),
    linear-gradient(180deg, #f6fffc 0%, #fff 100%);
}
.rx-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 56px; }
.rx-hero h1 { margin: 17px 0 20px; font-size: clamp(3rem, 6.5vw, 5.9rem); line-height: .92; letter-spacing: -.065em; }
.rx-hero h1 span { color: var(--rx-teal); }
.rx-hero-copy { font-size: 1.18rem; color: var(--rx-muted); max-width: 660px; }
.rx-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 29px 0 18px; }
.rx-hero .rx-btn--primary { min-height: 64px; padding-inline: 28px; font-size: 1.08rem; }
.rx-trust-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; color: #3f5d65; font-size: .86rem; font-weight: 700; }
.rx-trust-row span { display: inline-flex; gap: 7px; align-items: center; }
.rx-check { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--rx-mint); color: #08705c; font-size: .72rem; }

.rx-search-card {
  position: relative; padding: 26px; border-radius: 32px; color: var(--rx-white);
  background: linear-gradient(150deg, var(--rx-navy), #0a5968 72%, #0b7c73);
  box-shadow: 0 32px 80px rgba(6,43,60,.28); overflow: hidden;
}
.rx-search-card:after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: -100px; top: -100px; background: rgba(200,255,100,.14);
}
.rx-search-visual {
  position: relative; min-height: 330px; border-radius: 23px; padding: 28px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  display: flex; flex-direction: column; justify-content: space-between; z-index: 1;
}
.rx-search-visual h2 { margin: 6px 0 10px; font-size: 2rem; line-height: 1.05; }
.rx-search-visual p { margin: 0; color: rgba(255,255,255,.73); }
.rx-pill-art { display: flex; align-items: center; justify-content: center; min-height: 132px; }
.rx-pill {
  width: 200px; height: 76px; border-radius: 999px; transform: rotate(-11deg);
  background: linear-gradient(90deg, var(--rx-white) 0 50%, var(--rx-lime) 50%);
  box-shadow: 0 18px 35px rgba(0,0,0,.25); position: relative;
}
.rx-pill:after { content:"RX4US"; position:absolute; left: 29px; top: 25px; color: var(--rx-navy); font-weight: 950; letter-spacing: .05em; }
.rx-search-prompt {
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--rx-white); color: var(--rx-ink); border-radius: 14px; font-weight: 800;
}
.rx-search-prompt b { color: var(--rx-teal); }
.rx-powered { text-align: center; margin-top: 13px; color: rgba(255,255,255,.68); font-size: .8rem; position: relative; z-index: 1; }

.rx-strip { border-block: 1px solid var(--rx-line); background: #fff; }
.rx-strip-grid { min-height: 92px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; text-align: center; }
.rx-strip-item { padding: 16px; border-right: 1px solid var(--rx-line); }
.rx-strip-item:last-child { border-right: 0; }
.rx-strip-item strong { display: block; color: var(--rx-navy); font-size: 1rem; }
.rx-strip-item span { color: var(--rx-muted); font-size: .82rem; }

.rx-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rx-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rx-card { padding: 27px; border: 1px solid var(--rx-line); border-radius: var(--rx-radius); background: var(--rx-white); box-shadow: 0 10px 30px rgba(6,43,60,.05); }
.rx-card-icon { width: 47px; height: 47px; border-radius: 15px; display: grid; place-items: center; background: var(--rx-mint); color: var(--rx-teal); font-size: 1.3rem; font-weight: 900; }
.rx-card h3 { margin: 17px 0 8px; font-size: 1.16rem; }
.rx-card p { margin: 0; color: var(--rx-muted); font-size: .94rem; }

.rx-how-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 65px; align-items: start; }
.rx-steps { display: grid; gap: 17px; }
.rx-step { display: grid; grid-template-columns: 53px 1fr; gap: 17px; padding: 20px; border-radius: 20px; background: var(--rx-white); border: 1px solid var(--rx-line); }
.rx-step-num { width: 49px; height: 49px; border-radius: 16px; display: grid; place-items: center; background: var(--rx-navy); color: var(--rx-lime); font-weight: 950; }
.rx-step h3 { margin: 0 0 4px; }
.rx-step p { margin: 0; color: var(--rx-muted); font-size: .93rem; }

.rx-blog-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.rx-post-card { border: 1px solid var(--rx-line); border-radius: 23px; overflow: hidden; background: var(--rx-white); transition: .22s ease; }
.rx-post-card:hover { transform: translateY(-5px); box-shadow: var(--rx-shadow); }
.rx-post-thumb { aspect-ratio: 16 / 9; background: linear-gradient(145deg, var(--rx-navy), var(--rx-teal)); display: grid; place-items: center; color: rgba(255,255,255,.92); font-size: 3rem; overflow: hidden; }
.rx-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rx-post-body { padding: 22px; }
.rx-post-meta { color: var(--rx-teal); font-weight: 850; text-transform: uppercase; letter-spacing: .07em; font-size: .72rem; }
.rx-post-card h3 { margin: 10px 0 10px; line-height: 1.25; font-size: 1.18rem; }
.rx-post-card p { margin: 0; color: var(--rx-muted); font-size: .91rem; }
.rx-post-link { display: inline-flex; margin-top: 17px; font-weight: 850; color: var(--rx-teal); }

.rx-token-wrap {
  position: relative; overflow: hidden; border-radius: 36px; padding: 54px;
  background:
    radial-gradient(circle at 85% 20%, rgba(200,255,100,.22), transparent 28%),
    radial-gradient(circle at 15% 90%, rgba(121,88,255,.25), transparent 30%),
    linear-gradient(135deg, #17152c, #082f43 62%, #07534d);
  color: var(--rx-white); box-shadow: var(--rx-shadow);
}
.rx-token-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.rx-token-title { margin: 15px 0; font-size: clamp(2.5rem, 5.5vw, 5rem); line-height: .92; letter-spacing: -.06em; }
.rx-token-title span { color: var(--rx-lime); }
.rx-token-copy { color: rgba(255,255,255,.72); max-width: 660px; }
.rx-token-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.rx-coin {
  width: min(330px, 76vw); aspect-ratio: 1; border-radius: 50%; margin-inline: auto; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #f8ffb4, var(--rx-lime) 35%, #5acc3e 70%, #237d4b);
  border: 14px solid rgba(255,255,255,.14); box-shadow: 0 28px 70px rgba(0,0,0,.4), inset 0 0 0 7px rgba(255,255,255,.25);
  transform: rotate(5deg); position: relative;
}
.rx-coin:after { content:""; position:absolute; inset:22px; border: 3px dashed rgba(6,43,60,.34); border-radius:50%; }
.rx-coin-inner { text-align: center; color: var(--rx-navy); position: relative; z-index: 2; }
.rx-coin-inner b { display: block; font-size: clamp(2.1rem, 6vw, 4rem); letter-spacing: -.08em; line-height: .9; }
.rx-coin-inner span { font-size: .95rem; font-weight: 950; letter-spacing: .13em; }
.rx-token-note { margin-top: 22px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); border-radius: 14px; color: rgba(255,255,255,.68); font-size: .78rem; }

.rx-final-cta { text-align: center; padding: 70px 0; background: var(--rx-mint); }
.rx-final-cta .rx-section-title { max-width: 760px; margin-inline: auto; }
.rx-final-cta p { color: var(--rx-muted); }

.rx-footer { padding: 58px 0 28px; background: #031d28; color: rgba(255,255,255,.75); }
.rx-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 42px; }
.rx-footer h4 { color: var(--rx-white); margin-top: 0; }
.rx-footer-links { display: grid; gap: 9px; font-size: .88rem; }
.rx-footer-links a:hover { color: var(--rx-lime); }
.rx-footer-copy { max-width: 380px; font-size: .89rem; }
.rx-footer-bottom { margin-top: 42px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .76rem; color: rgba(255,255,255,.55); }

.rx-article { padding: 72px 0; }
.rx-article-wrap { max-width: 820px; margin-inline: auto; }
.rx-article h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.05em; }
.rx-content { font-size: 1.06rem; }
.rx-content h2 { margin-top: 2em; }
.rx-content a { color: var(--rx-teal); text-decoration: underline; }

@media (max-width: 960px) {
  .rx-nav { display: none; position: absolute; left: 20px; right: 20px; top: 68px; padding: 18px; background: white; border: 1px solid var(--rx-line); border-radius: 18px; box-shadow: var(--rx-shadow); flex-direction: column; align-items: stretch; }
  .rx-nav.is-open { display: flex; }
  .rx-menu-toggle { display: block; }
  .rx-header-cta { display: none; }
  .rx-hero-grid, .rx-how-grid, .rx-token-grid { grid-template-columns: 1fr; }
  .rx-hero h1 { max-width: 720px; }
  .rx-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .rx-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .rx-container { width: min(100% - 28px, 1180px); }
  .rx-section { padding: 68px 0; }
  .rx-hero { padding-top: 47px; }
  .rx-hero h1 { font-size: clamp(3.25rem, 17vw, 5rem); }
  .rx-hero-actions, .rx-token-actions { flex-direction: column; }
  .rx-btn { width: 100%; }
  .rx-strip-grid { grid-template-columns: 1fr 1fr; }
  .rx-strip-item:nth-child(2) { border-right: 0; }
  .rx-strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--rx-line); }
  .rx-grid-3, .rx-grid-4 { grid-template-columns: 1fr; }
  .rx-blog-head { align-items: start; flex-direction: column; }
  .rx-token-wrap { padding: 35px 23px; border-radius: 26px; }
  .rx-footer-grid { grid-template-columns: 1fr; }
}
