/* products/fap/fap.css
   FAP landing: hero layout, product mockups, account-safety section.
   Loaded: FAP Landing template. Registered in core/assets.php. */

/* ═══════════════════════════════════════════════════════════════════════════════
   FAP LANDING PAGE: HERO LAYOUT + PRODUCT VISUAL
   Scoped to .tool-hero, which only page-fap.php uses.
═══════════════════════════════════════════════════════════════════════════════ */
.fap-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: var(--gap-xl);
    text-align: left;
    padding-top: 24px;
}

.fap-hero-copy .tool-hero-icon,
.fap-hero-copy .tool-version-badge { margin-left: 0; }

.fap-hero-copy .tool-hero-actions { justify-content: flex-start; }

.fap-hero-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.fap-hero-title { font-size: clamp(2.2rem, 4.2vw, 3.5rem); margin-bottom: 20px; letter-spacing: -0.04em; line-height: 1.06; }
.fap-hero-lead { font-size: 1.1rem; max-width: 540px; color: var(--text-secondary); }
.fap-hero-pricing-link { padding: 0 6px; }

.fap-hero-microcopy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 18px;
}
.fap-hero-microcopy .tz-icon { color: #4ade80; }

.fap-feature-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.fap-feature-top .feature-icon { margin-bottom: 0; }
.fap-dev-title { margin-top: 18px; }
.fap-dev-action { margin-top: 24px; }

.fap-hero-visual { position: relative; }

/* Illustrative hero mockup: a fabricated browser-chrome panel showing the
   general shape of the FAP UI (selected groups + campaign progress). Not a
   real screenshot, labelled as such in the caption below it. */
.tool-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.tool-mockup-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.tool-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong, var(--border));
}

.tool-mockup-url {
    margin-left: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
}

.tool-mockup-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
    padding: var(--gap-md);
}

.tool-mockup-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.tool-mockup-panel-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.tool-mockup-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 0;
}

.tool-mockup-row-muted { color: var(--text-muted); }

.tool-mockup-check {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--accent);
    flex: none;
}

.tool-mockup-check.is-off {
    background: transparent;
    border: 1px solid var(--border);
}

.tool-mockup-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: var(--bg-base);
    overflow: hidden;
    margin-bottom: 14px;
}

.tool-mockup-progress-fill {
    height: 100%;
    width: 68%;
    background: var(--accent);
    border-radius: 999px;
}

.tool-mockup-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 4px 0;
}

.tool-mockup-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

.tool-mockup-pill-ok { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.tool-mockup-pill-wait { background: rgba(249, 115, 22, 0.15); color: var(--accent); }
.tool-mockup-pill-queue { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); }

.tool-mockup-caption {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 14px;
}

/* Smaller illustrative mockups used further down the page (ROI "run
   complete" summary, Safety "delay" warning) - same fabricated-panel
   language as the hero mockup, narrower and centered as a supporting visual. */
.tool-mockup--support {
    max-width: 560px;
    margin: 32px auto 0;
}

/* The Safety section's Risk-check mockup sits directly under the 3-column
   .safety-grid, which spans the full container. At 560px it reads as an
   undersized, off-balance box against that full-width grid above it, so it
   gets a wider, token-based cap (matches .container-sm, already used for the
   FAQ column) instead of the generic 560px support width. Still centered via
   margin:auto - symmetric at every width, including 390px/640px, where it
   simply fills the available column with no cap applied. */
#fap-safety .tool-mockup--support {
    max-width: var(--container-sm);
}

.tool-mockup-result-body,
.tool-mockup-risk-body {
    padding: var(--gap-md);
}

.tool-mockup-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: var(--gap-sm);
}

.tool-mockup-stat {
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 8px;
}

.tool-mockup-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tool-mockup-stat-value.is-ok { color: #22c55e; }
.tool-mockup-stat-value.is-fail { color: #ef4444; }

.tool-mockup-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-top: 4px;
}

.tool-mockup-progress-fill.is-full {
    width: 100%;
    background: #22c55e;
}

.tool-mockup-result-rate {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--gap-sm);
}

/* Run-complete card vertical rhythm: stat tiles → progress bar → rate line →
   "Posted links" list, all on the token scale instead of one-off pixel
   values (16/14/18/12 previously). Scoped to .tool-mockup-result-body so the
   shared .tool-mockup-progress-bar / .tool-mockup-panel-title rules (also
   used by the hero mockup) are untouched. */
.tool-mockup-result-body .tool-mockup-progress-bar {
    margin-bottom: var(--gap-xs);
}

.tool-mockup-result-body .tool-mockup-panel-title {
    margin-bottom: var(--gap-xs);
}

.tool-mockup-row .tool-mockup-time {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tool-mockup-pill-risk {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    margin-bottom: 16px;
}

.tool-mockup-risk-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.tool-mockup-risk-box {
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 10px;
}

.tool-mockup-risk-box.is-current { background: rgba(239, 68, 68, 0.08); }
.tool-mockup-risk-box.is-recommended { background: rgba(34, 197, 94, 0.08); }

.tool-mockup-risk-box-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.tool-mockup-risk-box-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tool-mockup-risk-copy {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ACCOUNT SAFETY SECTION
═══════════════════════════════════════════════════════════════════════════════ */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
    margin-bottom: var(--gap-md);
}

.safety-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
}

.safety-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    color: #4ade80;
    background: var(--green-light);
    border: 1px solid rgba(34,197,94,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.safety-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.safety-card-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px; }

.safety-disclaimer {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Feature card emphasis for 1-2 flagship capabilities per grid, not all. */
.feature-card--highlight {
    border-color: var(--border-accent);
    background: linear-gradient(180deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
}

@media (max-width: 900px) {
    .fap-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .fap-hero-copy .tool-hero-actions,
    .fap-hero-copy .tool-hero-icon,
    .fap-hero-copy .tool-version-badge { justify-content: center; }
    .fap-hero-badges, .fap-hero-microcopy { justify-content: center; }
    .fap-hero-copy p { margin-left: auto; margin-right: auto; }
    .fap-hero-visual { max-width: 480px; margin: 0 auto; }
    .safety-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .safety-grid { grid-template-columns: 1fr; }
    .tool-mockup-body { grid-template-columns: 1fr; }
}

/* Smallest breakpoint used elsewhere in the theme (see base.css). Stack the
   Risk-check comparison boxes so "Current delay"/"Recommended" and their
   values keep full-width room instead of being squeezed to ~150px each. */
@media (max-width: 390px) {
    .tool-mockup-risk-compare { grid-template-columns: 1fr; }
}

#fap-roi-slider { accent-color: var(--accent); cursor: pointer; }

@media (max-width: 900px) {
    .fap-hero-microcopy { display: block; text-align: center; }
    .fap-hero-microcopy .tz-icon { margin-right: 6px; vertical-align: -3px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ACCOUNT PROTECTION: INTEGRATED GRID
   The Safety Breaks card carries its risk/delay illustration inline (instead
   of a separate .tool-mockup block below the grid); Pending Detection and
   Last Visited Tracking stack on the right. Scoped to #fap-safety so the
   plain 3-up .safety-grid layout above stays the shared default if reused.
═══════════════════════════════════════════════════════════════════════════════ */
#fap-safety .safety-grid--integrated {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
}

.safety-card--primary,
.safety-card--compact {
    display: flex;
    flex-direction: column;
}

.safety-card-stack {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.safety-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.safety-card-top .safety-card-icon { margin-bottom: 0; }

/* Pushes the illustration/status block to the bottom of its card so the
   left card and the two right-hand cards line up on natural content
   height, without a fixed min-height on any of them. */
.safety-illustration,
.safety-card-status {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.safety-illustration-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.safety-illustration-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.safety-illustration-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    background: var(--accent-light);
    color: var(--accent);
    white-space: nowrap;
}

.safety-illustration-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-top: 12px;
}

.safety-card-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.8rem;
}

.safety-card-status-label { color: var(--text-muted); }

.safety-card-status-value {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
}

.safety-card-status-value.is-ok { color: #4ade80; }
.safety-card-status-value.is-ok .tz-icon { color: #4ade80; }

@media (max-width: 900px) {
    #fap-safety .safety-grid--integrated { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CALCULATE YOUR SAVINGS: TWO-COLUMN PANEL
   Calculator (~60%) and the illustrative completed-run report (~40%) share
   one bordered surface with a hairline divider between them, instead of the
   report sitting as a separate mockup block underneath.
═══════════════════════════════════════════════════════════════════════════════ */
.roi-panel {
    display: grid;
    grid-template-columns: minmax(0, 3fr) 1px minmax(0, 2fr);
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
}

.roi-panel-calc { padding: 40px; }

.roi-panel-divider { background: var(--border); }

.roi-panel-report {
    padding: 32px;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
}

.roi-report-head { margin-bottom: 16px; }

.roi-report-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.roi-report-lead {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.roi-report-visual { display: flex; flex-direction: column; }

.roi-report-visual .tool-mockup-progress-bar { margin-bottom: var(--gap-xs); }
.roi-report-visual .tool-mockup-panel-title { margin-top: var(--gap-xs); margin-bottom: var(--gap-xs); }

.roi-report-caption {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .roi-panel { grid-template-columns: 1fr; }
    .roi-panel-divider { width: 100%; height: 1px; }
    .roi-panel-report { border-top: 1px solid var(--border); }
}

@media (max-width: 640px) {
    .roi-panel-calc,
    .roi-panel-report { padding: 24px 20px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FEATURES: TIER GROUPS + LIMITS LADDER
═══════════════════════════════════════════════════════════════════════════════ */
.fap-tier-group { margin-bottom: 48px; }
.fap-tier-group:last-child { margin-bottom: 0; }

.fap-tier-head {
    display: flex; align-items: baseline; flex-wrap: wrap;
    gap: 6px 14px; margin-bottom: 20px;
    padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.fap-tier-head .badge { align-self: center; }
.fap-tier-title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.fap-tier-sub { font-size: 0.9rem; color: var(--text-muted); margin: 0; flex-basis: 100%; }
@media (min-width: 900px) { .fap-tier-sub { flex-basis: auto; } }

.fap-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--gap-md);
}
.fap-tier-group.is-free .feature-card { background: var(--bg-card); }
.fap-feature-link {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 12px; font-size: 0.8rem; font-weight: 600; color: var(--accent);
}

.fap-ladder { display: grid; gap: var(--gap-sm); }
.fap-ladder-row {
    display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 18px 20px;
}
.fap-ladder-label { font-weight: 700; font-size: 0.95rem; }
.fap-ladder-cells { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.fap-ladder-cell {
    display: flex; flex-direction: column; gap: 4px; text-align: center;
    padding: 10px 6px; border-radius: var(--radius-md);
    background: var(--bg-surface); border: 1px solid var(--border);
}
.fap-ladder-tier { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.fap-ladder-val { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.fap-ladder-cell.is-top { border-color: var(--border-accent); background: var(--accent-light); }
.fap-ladder-cell.is-top .fap-ladder-val { color: var(--accent); }

@media (max-width: 760px) {
    .fap-ladder-row { grid-template-columns: 1fr; gap: 12px; }
}