/* MyJamanot — page-specific CSS only. Every reusable design token lives in
   tokens.css; every reusable component class lives in components.css. This
   file is for rules that apply to exactly one page/view (e.g. a one-off
   layout tweak on the home page's process diagram) — if a rule here starts
   being reused by a second view, promote it into components.css instead. */

/* views/public/faq.php — was previously an inline <style> block in the view
   itself, referencing pre-redesign variable names (--border/--navy/--teal)
   that no longer exist; moved here and updated onto the new tokens. */
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--navy-950); list-style: none; display: flex; align-items: center; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-marker {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 22px; height: 22px; border-radius: 50%; background: var(--emerald-50); color: var(--emerald-700);
    font-size: 14px; line-height: 1;
}
.faq-item summary .faq-marker::before { content: '+'; }
.faq-item[open] summary .faq-marker { background: var(--emerald-600); color: var(--white); }
.faq-item[open] summary .faq-marker::before { content: '\2212'; }
.faq-item p { margin: 10px 0 0 32px; color: var(--gray-600); }

/* ---------------------------------------------------------------------- */
/* Home page (views/public/home.php) — the flagship marketing page gets   */
/* its own distinctive treatment rather than reusing plain dashboard       */
/* .card/.stat-tile chrome, so it reads as a premium product site.        */
/* ---------------------------------------------------------------------- */

/* Home page's hero/statbar sit full-bleed right under the sticky navbar with
   no gap, so main's shared top/bottom padding (components.css, used by every
   other page) is switched off here only. */
main.main-flush { padding: 0; }

/* Decorative, ambient blobs behind the hero content — pure CSS, no images. */
.hero-blob {
    position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0;
}
.hero-blob-1 { width: 420px; height: 420px; top: -140px; right: -80px; background: radial-gradient(circle, rgba(235,115,85,.35), transparent 70%); }
.hero-blob-2 { width: 360px; height: 360px; bottom: -160px; left: -100px; background: radial-gradient(circle, rgba(227,153,0,.22), transparent 70%); }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-10); align-items: center; text-align: left; }
.hero-grid .hero-copy { max-width: none; }
.hero-grid h1 { max-width: 560px; }
.hero-grid p { margin-left: 0; text-align: left; }
.hero-grid .hero-actions { justify-content: flex-start; }

.hero-trust-row {
    display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-6);
    font-size: var(--text-xs); color: var(--gray-600);
}
.hero-trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust-row svg { color: var(--emerald-500); }

/* The floating escrow-flow visual card on the right of the hero — a solid
   light card (not a translucent glass panel), since the hero itself no
   longer has a dark background behind it. */
.hero-visual { position: relative; }
.hero-visual-card {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
    box-shadow: var(--shadow-lg);
}
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; }
.flow-icon {
    width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--gray-100); color: var(--navy-950); border: 1px solid var(--gray-200);
}
.flow-node-center .flow-icon { width: 68px; height: 68px; background: var(--emerald-600); border-color: var(--emerald-500); box-shadow: 0 0 0 8px rgba(235,115,85,.2); color: var(--white); }
.flow-label { font-size: var(--text-xs); font-weight: 600; color: var(--gray-600); }
.flow-line { flex: 0 0 28px; height: 2px; background: repeating-linear-gradient(90deg, rgba(58,46,34,.2) 0 6px, transparent 6px 12px); margin-top: -30px; }
.hero-visual-badge {
    position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px; background: var(--navy-950); color: var(--white);
    padding: 9px 18px; border-radius: 20px; font-size: var(--text-xs); font-weight: 700; box-shadow: var(--shadow-md);
    white-space: nowrap;
}
.hero-visual-badge .badge-dot-icon { width: 18px; height: 18px; background: var(--emerald-600); }

/* Hero stat row (below hero-actions) — three quick numbers */
.hero-meta { display: flex; gap: var(--space-6); margin-top: var(--space-8); flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--font-display); font-size: var(--text-xl); color: var(--navy-950); }
.hero-meta span { font-size: var(--text-xs); color: var(--gray-600); margin-top: 2px; }

/* Dark stat bar directly under the hero */
.statbar {
    background: var(--navy-950); padding: var(--space-6) 0; margin-top: calc(-1 * var(--space-12));
    width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%);
}
.statbar .grid-4-stat { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (min-width: 720px) { .statbar .grid-4-stat { grid-template-columns: repeat(4, 1fr); } }
.statbar-item { text-align: center; color: #f0e4cc; }
.statbar-item i { color: var(--gold-600); font-size: var(--text-lg); margin-bottom: var(--space-2); display: block; }
.statbar-item strong { font-family: var(--font-display); font-size: clamp(20px, 3vw, 26px); display: block; color: var(--white); }
.statbar-item span { font-size: var(--text-xs); opacity: .75; margin-top: 3px; display: block; }

/* Section headers used between home-page sections */
.home-section { margin-top: var(--space-12); }
.home-section-head { max-width: 620px; margin: 0 auto var(--space-8); text-align: center; }
.home-section-head .eyebrow {
    display: inline-flex; align-items: center; gap: 6px; color: var(--emerald-700); background: var(--emerald-50);
    padding: 5px 14px; border-radius: 20px; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; margin-bottom: var(--space-3);
}
.home-section-head h2 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.home-section-head p { color: var(--gray-600); margin: 0; }

/* Numbered, connected process steps */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.process-steps::before {
    content: ''; position: absolute; top: 26px; left: 10%; right: 10%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--gray-200) 0 8px, transparent 8px 16px);
}
.process-step { position: relative; text-align: center; padding: 0 var(--space-2); }
.process-step .process-num {
    width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: 2px solid var(--emerald-600);
    color: var(--emerald-700); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-4);
    position: relative; z-index: 1; font-weight: 700; box-shadow: 0 0 0 6px var(--gray-50);
}
.process-step h3 { font-size: var(--text-sm); margin-bottom: 4px; }
.process-step p { font-size: var(--text-xs); color: var(--gray-600); margin: 0; }

/* For Buyers / For Sellers protection split */
.split-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 820px) { .split-2 { grid-template-columns: 1fr 1fr; } }
.prot-card { border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6); position: relative; overflow: hidden; }
.prot-card.is-buyer { background: linear-gradient(150deg, var(--emerald-600), var(--navy-900)); color: var(--white); }
.prot-card.is-seller { background: var(--white); border: 1.5px solid var(--gold-bg); }
.prot-tag {
    display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-xs); font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: var(--space-4);
}
.prot-card.is-buyer .prot-tag { background: rgba(255,255,255,.16); color: var(--white); }
.prot-card.is-seller .prot-tag { background: var(--gold-bg); color: var(--emerald-700); }
.prot-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.prot-card.is-buyer p { color: rgba(255,255,255,.82); }
.prot-card.is-seller p { color: var(--gray-600); }
.prot-card ul { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); padding: 0; list-style: none; }
.prot-card li { display: flex; gap: var(--space-3); font-size: var(--text-sm); align-items: flex-start; }
.prot-check { flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 1px; font-size: 11px; }
.prot-card.is-buyer .prot-check { background: var(--gold-600); color: var(--navy-950); }
.prot-card.is-seller .prot-check { background: var(--emerald-600); color: var(--white); }
.prot-emoji { position: absolute; font-size: 90px; opacity: .12; right: 10px; bottom: -10px; }

/* Trust & badges */
.badge-row-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (min-width: 700px) { .badge-row-4 { grid-template-columns: repeat(4, 1fr); } }
.badge-tile { background: var(--white); border-radius: var(--radius-md); padding: var(--space-5) var(--space-4); text-align: center; box-shadow: var(--shadow-sm); transition: transform var(--duration-base) var(--ease); }
.badge-tile:hover { transform: translateY(-4px); }
.badge-tile .badge-tile-ic {
    width: 46px; height: 46px; border-radius: var(--radius-md); margin: 0 auto var(--space-3);
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(150deg, var(--emerald-600), var(--gold-600)); color: var(--white); font-size: var(--text-lg);
}
.badge-tile h4 { font-size: var(--text-sm); font-weight: 700; margin: 0; }
.badge-tile span { font-size: var(--text-xs); color: var(--gray-600); display: block; margin-top: 4px; }

.trust-panel {
    margin-top: var(--space-8); background: var(--white); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-8);
    display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: center; box-shadow: var(--shadow-lg);
}
@media (min-width: 760px) { .trust-panel { grid-template-columns: 170px 1fr; } }
.score-dial { position: relative; width: 140px; height: 140px; margin: 0 auto; }
.score-dial svg { transform: rotate(-90deg); }
.score-dial .score-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-dial .score-num strong { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--navy-950); }
.score-dial .score-num span { font-size: var(--text-xs); color: var(--gray-600); }
.trust-copy h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.trust-copy p { color: var(--gray-600); font-size: var(--text-sm); line-height: 1.6; max-width: 520px; margin: 0; }
.factor-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.factor-chip { font-size: var(--text-xs); font-weight: 700; background: var(--gray-100); padding: 7px 13px; border-radius: 999px; color: var(--emerald-700); }

/* Category showcase — horizontal scroll on all widths */
.cat-scroll { display: flex; gap: var(--space-4); overflow-x: auto; padding-bottom: var(--space-2); scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-card { flex: none; width: 168px; background: var(--white); border-radius: var(--radius-md); padding: var(--space-5); box-shadow: var(--shadow-sm); transition: transform var(--duration-base) var(--ease); }
.cat-card:hover { transform: translateY(-4px); }
.cat-card .cat-ic { width: 42px; height: 42px; border-radius: var(--radius-sm); margin-bottom: var(--space-4); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: var(--text-base); }
.cat-card h4 { font-size: var(--text-sm); font-weight: 700; margin-bottom: 3px; }
.cat-card span { font-size: var(--text-xs); color: var(--gray-600); }

/* Security strip */
.sec-strip { background: linear-gradient(135deg, var(--emerald-600), var(--navy-900)); color: var(--white); border-radius: var(--radius-lg); padding: var(--space-10) var(--space-8); position: relative; overflow: hidden; }
.sec-strip-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
@media (min-width: 900px) { .sec-strip-grid { grid-template-columns: 1.1fr 1fr; } }
.sec-strip h2 { color: var(--white); font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.sec-strip > .sec-strip-grid > div:first-child > p { color: rgba(255,255,255,.85); font-size: var(--text-base); line-height: 1.65; max-width: 440px; }
.sec-item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.sec-item-tile { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-md); padding: var(--space-4); }
.sec-item-tile i { color: var(--gold-600); font-size: var(--text-lg); margin-bottom: var(--space-2); display: block; }
.sec-item-tile h5 { font-size: var(--text-sm); font-weight: 700; margin-bottom: 4px; color: var(--white); }
.sec-item-tile p { font-size: var(--text-xs); color: rgba(255,255,255,.75); margin: 0; }

/* Closing CTA banner */
.cta-banner {
    background: linear-gradient(120deg, var(--gold-600), #c27f00);
    border-radius: var(--radius-lg); padding: var(--space-10) var(--space-8); text-align: center; color: var(--navy-950);
    box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: var(--navy-950); font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.cta-banner p { color: #ffffff; max-width: 480px; margin: 0 auto var(--space-6); }
.cta-banner .btn-dark { background: var(--navy-950); color: var(--gold-bg); border-color: transparent; }
.cta-banner .btn-dark:hover { background: var(--navy-900); }
.cta-banner .btn-secondary { background: #fff; color: var(--navy-950); border-color: transparent; }
.cta-banner .verify-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-5); color: #ffffff; font-size: var(--text-sm); }
.cta-banner .verify-link:hover { color: var(--navy-950); }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-grid .hero-copy { max-width: 100%; }
    .hero-grid h1 { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-grid p { text-align: center; margin-left: auto; margin-right: auto; }
    .hero-grid .hero-actions { justify-content: center; }
    .hero-trust-row { justify-content: center; }
    .hero-meta { justify-content: center; }
    .hero-visual { max-width: 460px; margin: var(--space-6) auto 0; }
    .process-steps { grid-template-columns: 1fr; gap: var(--space-6); }
    .process-steps::before { display: none; }
    .statbar { margin-top: var(--space-8); }
}

/* ---------------------------------------------------------------------- */
/* views/public/how_it_works.php — numbered, vertically-connected steps,   */
/* for content too long per-step for the home page's horizontal strip.     */
/* ---------------------------------------------------------------------- */

.page-hero { max-width: 640px; margin: 0 auto var(--space-10); text-align: center; }
.page-hero .eyebrow {
    display: inline-flex; align-items: center; gap: 6px; color: var(--emerald-700); background: var(--emerald-50);
    padding: 5px 14px; border-radius: 20px; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; margin-bottom: var(--space-4);
}
.page-hero h1 { margin-bottom: var(--space-3); }
.page-hero p { color: var(--gray-600); margin: 0 auto; }

.hiw-steps { position: relative; max-width: 720px; margin: 0 auto; }
.hiw-steps::before {
    content: ''; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
    background: repeating-linear-gradient(180deg, var(--gray-200) 0 6px, transparent 6px 12px);
}
.hiw-step { position: relative; display: flex; gap: var(--space-5); padding-bottom: var(--space-8); }
.hiw-step:last-child { padding-bottom: 0; }
.hiw-step-num {
    flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; background: var(--white);
    border: 2px solid var(--emerald-600); color: var(--emerald-700); display: flex; align-items: center;
    justify-content: center; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--gray-50);
}
.hiw-step-body { padding-top: 10px; }
.hiw-step-body h3 { margin-bottom: 6px; }
.hiw-step-body p { color: var(--gray-600); margin: 0; }

.hiw-outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--space-10); }
.hiw-outcome-card { padding: var(--space-6); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.hiw-outcome-card.is-good { background: var(--success-bg); border-color: var(--success-border); }
.hiw-outcome-card.is-warn { background: var(--warning-bg); border-color: var(--warning-border); }
.hiw-outcome-icon {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-3);
}
.hiw-outcome-card.is-good .hiw-outcome-icon { background: var(--success-text); color: var(--white); }
.hiw-outcome-card.is-warn .hiw-outcome-icon { background: var(--warning-text); color: var(--white); }
.hiw-outcome-card h3 { margin-bottom: var(--space-2); }
.hiw-outcome-card p { color: var(--gray-600); margin: 0; }

@media (max-width: 640px) {
    .hiw-outcome-grid { grid-template-columns: 1fr; }
}
