/*
Theme Name: JournoRequest
Theme URI: https://journorequest.com
Author: JI Digital
Author URI: https://jidigital.co.uk
Description: Marketing theme for JournoRequest — the affordable HARO alternative
Version: 1.2.0
License: GNU General Public License v2 or later
Text Domain: journorequest
*/

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --bg: #FFFFFF;
    --bg-alt: #FAFAF9;
    --bg-purple: #F5F3FF;
    --bg-pink: #FDF2F8;
    --text: #1C1917;
    --text-mid: #57534E;
    --text-muted: #A8A29E;
    --purple: #7C3AED;
    --purple-dark: #6D28D9;
    --purple-light: #EDE9FE;
    --pink: #DB2777;
    --pink-light: #FCE7F3;
    --border: #E7E5E4;
    --rule: #D6D3D1;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --max: 720px;
    --wide: 1040px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--bg); }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

/* ============================================================
   Layout Utilities
   ============================================================ */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.wrap-w { max-width: var(--wide); margin: 0 auto; padding: 0 2rem; }
.sec { padding: 6rem 0; }
.sec-sm { padding: 4rem 0; }
.tc { text-align: center; }
.mx { margin-left: auto; margin-right: auto; }

.label {
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple);
    display: block;
}

.sub {
    font-size: 1.125rem;
    color: var(--text-mid);
    line-height: 1.65;
    max-width: 520px;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.hdr {
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 0;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.hdr .wrap-w { display: flex; align-items: center; justify-content: space-between; }

/* Logo */
.logo {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.03em;
    text-decoration: none;
}

.logo b { color: var(--purple); font-weight: 900; }

/* Nav list */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav li { list-style: none; }

.nav a {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.15s;
}

.nav a:hover, .nav a.on { color: var(--text); }

/* CTA nav item */
.nav-cta {
    background: var(--purple) !important;
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 2px;
    transition: background 0.15s;
}

.nav-cta:hover { background: var(--purple-dark) !important; color: #fff !important; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.875rem 2.25rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    gap: 0.5rem;
    border-radius: 2px;
}

.btn-p { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-p:hover { background: var(--purple-dark); color: #fff; border-color: var(--purple-dark); }

.btn-o { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-o:hover { background: var(--purple-light); color: var(--purple); }

.btn-g { background: transparent; color: var(--text-mid); border-color: var(--border); }
.btn-g:hover { border-color: var(--text); color: var(--text); }

.btn-lg { padding: 1.125rem 3rem; font-size: 0.875rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.75rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { color: var(--purple); font-style: italic; }
.hero .sub { margin: 0 auto 2.5rem; }

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-proof {
    margin-top: 2rem;
    font-family: var(--mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.hero-proof strong { color: var(--purple); }

/* ============================================================
   Live Ticker
   ============================================================ */
.ticker {
    background: var(--text);
    color: #fff;
    padding: 0.625rem 0;
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    gap: 4rem;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ticker-inner span { opacity: 0.6; }
.ticker-inner span b { color: var(--purple-light); opacity: 1; }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   Stats Bar
   ============================================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-item {
    text-align: center;
    padding: 2.5rem 1rem;
    border-right: 1px solid var(--border);
}

.stats-item:last-child { border-right: none; }

.stats-num {
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--purple);
    line-height: 1;
}

.stats-lbl {
    font-family: var(--mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

/* ============================================================
   Steps
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    counter-reset: s;
}

.step {
    counter-increment: s;
    padding-top: 2rem;
    border-top: 2px solid var(--purple-light);
}

.step-num {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 1rem;
}

.step-num::before { content: counter(s, decimal-leading-zero) " — "; }
.step h3 { margin-bottom: 0.75rem; }
.step p { color: var(--text-mid); font-size: 0.9375rem; }

/* ============================================================
   Compare (Before / After)
   ============================================================ */
.compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
}

.compare-col { padding: 2.5rem; }
.compare-col:first-child { background: var(--bg-alt); border: 1px solid var(--border); }
.compare-col:last-child { background: var(--bg-purple); border: 1px solid var(--purple-light); }

.compare-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.compare-title {
    font-family: var(--mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.compare-col:first-child .compare-title { color: var(--text-muted); }
.compare-col:last-child .compare-title { color: var(--purple); }

.compare-list { list-style: none; }

.compare-list li {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    color: var(--text-mid);
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.compare-list li::before {
    font-family: var(--mono);
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.compare-col:first-child .compare-list li::before { content: '×'; color: var(--rule); }
.compare-col:last-child .compare-list li::before { content: '→'; color: var(--purple); }

/* ============================================================
   Proof / Testimonials
   ============================================================ */
.proof { background: var(--bg-purple); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.proof-card {
    background: var(--bg);
    padding: 2.5rem;
    border: 1px solid var(--border);
    position: relative;
}

.proof-card::before {
    content: '"';
    font-family: var(--serif);
    font-size: 4rem;
    color: var(--purple-light);
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    line-height: 1;
}

.proof-quote {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.proof-author {
    font-family: var(--mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.proof-result {
    font-family: var(--mono);
    font-size: 0.6875rem;
    color: var(--purple);
    margin-top: 0.25rem;
}

/* ============================================================
   Pricing
   ============================================================ */
.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 720px;
    margin: 0 auto;
}

.price-card {
    border: 1px solid var(--border);
    padding: 2.5rem;
    position: relative;
}

.price-card--pop {
    border-color: var(--purple);
    box-shadow: 0 0 0 1px var(--purple);
}

.price-badge {
    position: absolute;
    top: -0.75rem;
    left: 2rem;
    background: var(--purple);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
}

.price-tier {
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.price-amt {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.price-per {
    font-family: var(--mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    margin-bottom: 2rem;
}

.price-list { list-style: none; margin-bottom: 2rem; }

.price-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-list li::before {
    content: '→';
    font-family: var(--mono);
    color: var(--purple);
    flex-shrink: 0;
    font-size: 0.75rem;
}

.price-card .btn { width: 100%; }

.price-guarantee {
    text-align: center;
    margin-top: 2rem;
    padding: 1.25rem 2rem;
    border: 1px dashed var(--border);
    font-family: var(--mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.price-guarantee strong { color: var(--text); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: var(--max); margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.faq-q::after {
    content: '+';
    font-family: var(--mono);
    font-size: 1.25rem;
    color: var(--purple);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.open .faq-q::after { content: '−'; }

.faq-a {
    display: none;
    padding-bottom: 1.5rem;
    color: var(--text-mid);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.faq-item.open .faq-a { display: block; }

/* ============================================================
   Trust Bar
   ============================================================ */
.trust {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1.25rem 0;
    font-family: var(--mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ============================================================
   CTA Banner
   ============================================================ */
.cta {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--bg-purple);
    border-top: 1px solid var(--border);
}

.cta h2 { margin-bottom: 0.75rem; }
.cta .sub { margin: 0 auto 2rem; }
.cta-note { margin-top: 1rem; font-family: var(--mono); font-size: 0.6875rem; color: var(--text-muted); }

/* ============================================================
   Page Header
   ============================================================ */
.pg-hdr {
    padding: 5rem 0 3rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.pg-hdr .label { margin-bottom: 1rem; }
.pg-hdr .sub { margin: 1rem auto 0; }

/* ============================================================
   Blog
   ============================================================ */
.post-card {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.post-card:last-child { border-bottom: none; }

.post-meta {
    font-family: var(--mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.post-meta span + span::before { content: ' / '; color: var(--rule); }

.post-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--purple); }

.post-excerpt { color: var(--text-mid); font-size: 0.9375rem; margin-bottom: 1rem; }

.read-more { font-family: var(--mono); font-size: 0.8rem; color: var(--purple); }
.read-more::after { content: ' →'; }

/* ============================================================
   Single Post Body
   ============================================================ */
.single-post-body h2 { margin: 2.5rem 0 1rem; }
.single-post-body h3 { margin: 2rem 0 0.75rem; }
.single-post-body p { margin-bottom: 1.25rem; color: var(--text-mid); font-size: 1rem; line-height: 1.8; }
.single-post-body p strong { color: var(--text); }
.single-post-body ul { list-style: none; margin-bottom: 1.25rem; }
.single-post-body ul li { padding: 0.4rem 0; color: var(--text-mid); display: flex; gap: 0.5rem; }
.single-post-body ul li::before { content: '→'; font-family: var(--mono); color: var(--purple); flex-shrink: 0; font-size: 0.75rem; margin-top: 0.1rem; }
.single-post-body ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.single-post-body ol li { padding: 0.25rem 0; color: var(--text-mid); }
.single-post-body blockquote { border-left: 3px solid var(--purple); padding-left: 1.5rem; margin: 2rem 0; font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--text); }
.single-post-body a { color: var(--purple); text-decoration: underline; }
.single-post-body pre, .single-post-body code { font-family: var(--mono); font-size: 0.875rem; background: var(--bg-alt); border: 1px solid var(--border); }
.single-post-body pre { padding: 1.5rem; overflow-x: auto; margin: 1.5rem 0; }
.single-post-body code { padding: 0.1rem 0.4rem; }

/* ============================================================
   Timeline
   ============================================================ */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 2.5rem; }
.tl-item::before { content: ''; position: absolute; left: -2.75rem; top: 0.5rem; width: 7px; height: 7px; background: var(--purple); border-radius: 50%; }
.tl-date { font-family: var(--mono); font-size: 0.6875rem; color: var(--purple); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem; }

/* ============================================================
   Comparison Table (HARO page)
   ============================================================ */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.cmp-table th { font-family: var(--mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1em; text-align: left; padding: 0.875rem; border-bottom: 2px solid var(--text); color: var(--text-muted); }
.cmp-table td { padding: 0.875rem; border-bottom: 1px solid var(--border); }
.cmp-table tr td:last-child { color: var(--purple); font-weight: 600; }

/* ============================================================
   Footer
   ============================================================ */
.ftr {
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.ftr-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.ftr-brand .logo { display: inline-block; margin-bottom: 0.5rem; }
.ftr-brand p { margin-top: 0.5rem; max-width: 280px; line-height: 1.5; color: var(--text-muted); font-size: 0.875rem; }

.ftr-col h4 {
    font-family: var(--mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text);
    margin-bottom: 1rem;
}

.ftr-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.ftr-col a { color: var(--text-muted); font-size: 0.875rem; text-decoration: none; }
.ftr-col a:hover { color: var(--purple); }

.ftr-btm {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.ftr-badges {
    display: flex;
    gap: 1.5rem;
    font-family: var(--mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================================
   Sticky Mobile CTA
   ============================================================ */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    z-index: 99;
    text-align: center;
}

.mobile-cta .btn { width: 100%; max-width: 480px; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 0.5rem; padding: 3rem 0; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--border); font-family: var(--mono); font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: all 0.15s; }
.page-numbers:hover, .page-numbers.current { background: var(--purple); border-color: var(--purple); color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .ftr-grid { grid-template-columns: 1fr 1fr; }
    .ftr-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-cta { display: block; }
    .proof-grid { grid-template-columns: 1fr; }
    .compare { grid-template-columns: 1fr; }
    .compare-vs { padding: 1rem 0; }
    .ftr-grid { grid-template-columns: 1fr 1fr; }
    .ftr-brand { grid-column: 1 / -1; }
    .ftr-btm { flex-direction: column; gap: 0.75rem; text-align: center; }
    .hero { padding: 4rem 0 3rem; }
}

@media (max-width: 640px) {
    .steps { grid-template-columns: 1fr; }
    .price-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stats-item:nth-child(2) { border-right: none; }
    .trust { flex-wrap: wrap; gap: 1rem; justify-content: center; }
    .cmp-table { font-size: 0.8125rem; }
    .cmp-table th, .cmp-table td { padding: 0.625rem 0.5rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .ftr-badges { flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
}
