/* Public product page (app/templates/product.html).
   Builds on the tokens and local fonts from style.css. */

.pp {
    --pp-hit: var(--critical);
    --pp-clear: var(--low);
    --pp-open: var(--medium);
    --pp-measure: 68ch;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}
@media (prefers-reduced-motion: no-preference) {
    html:has(.pp) { scroll-behavior: smooth; }
}
.pp h1::before { content: none; }
.pp h1, .pp h2, .pp h3 {
    text-transform: none;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: 0;
}
.pp p { color: var(--text-secondary); }
.pp a:focus-visible, .pp .btn:focus-visible {
    outline: 2px solid var(--accent-text);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.pp-skip {
    position: absolute;
    left: 16px;
    top: -48px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    z-index: 10;
}
.pp-skip:focus { top: 12px; }

/* ---- Top bar ---- */
.pp-bar {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 16px;
}
.pp-mark {
    font-weight: 700;
    font-size: 17px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.pp-nav { display: flex; gap: var(--space-lg); margin-left: auto; }
.pp-nav a, .pp-login { color: var(--text-secondary); font-size: 14px; }
.pp-nav a:hover, .pp-login:hover { color: var(--text-primary); }
.pp-login {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px 14px;
}

/* ---- Hero ---- */
.pp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 16px 96px;
}
.pp-wordmark {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-text) !important;
    margin-bottom: 20px;
}
.pp-hero h1 {
    font-size: clamp(30px, 4.4vw, 50px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    max-width: 20ch;
}
.pp-lead {
    font-size: 18px;
    max-width: 56ch;
    margin-top: 24px;
}
.pp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.pp-btn { font-size: 15px; padding: 11px 22px; border-radius: var(--radius-md); }

/* The verdict ledger: the one bold element on the page. */
.pp-verdicts {
    margin: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.pp-verdicts figcaption {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 18px;
}
.pp-verdicts ol { list-style: none; display: grid; gap: 10px; }
.pp-verdicts li {
    --tone: var(--pp-open);
    display: grid;
    gap: 4px;
    padding: 14px 16px 14px 18px;
    border-left: 3px solid var(--tone);
    background: color-mix(in srgb, var(--tone) 8%, transparent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.pp-verdicts .v-hit { --tone: var(--pp-hit); }
.pp-verdicts .v-clear { --tone: var(--pp-clear); }
.v-label {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 17px;
    color: var(--tone);
}
.v-why { font-size: 14px; color: var(--text-secondary); }

/* ---- Sections ---- */
.pp-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 16px;
    border-top: 1px solid var(--border-subtle);
}
.pp-section > h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 40px;
}
.pp h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.pp-section p { max-width: var(--pp-measure); }

/* Steps: a real sequence, so numbered and joined by a rail. */
.pp-steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}
.pp-steps li {
    counter-increment: step;
    position: relative;
    padding-top: 52px;
}
.pp-steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-text);
    background: var(--bg-root);
    border: 1px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
}
.pp-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    left: 34px;
    right: -28px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--border));
}
.pp-steps li:last-child::before {
    border-color: var(--pp-clear);
    color: var(--pp-clear);
}
.pp-steps p { font-size: 15px; }

.pp-features, .pp-audience { list-style: none; display: grid; gap: 0; }
.pp-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp-features li {
    padding: 24px 28px 28px 0;
    border-top: 1px solid var(--border);
}
.pp-features li:nth-child(n + 4) { border-top-color: var(--border-subtle); }
.pp-features p, .pp-audience p { font-size: 15px; }

.pp-audience { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pp-audience li {
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

/* ---- Pricing ---- */
.pp-pricing {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    column-gap: 56px;
    align-items: end;
}
.pp-pricing > h2 { grid-column: 1 / -1; }
.pp-model { display: grid; gap: 18px; }
.pp-model div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
}
.pp-model dt { font-weight: 600; color: var(--text-primary); }
.pp-model dd { color: var(--text-secondary); }
.pp-contact {
    padding: 28px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    background: var(--accent-glow);
}
.pp-contact p { margin-top: 14px; font-size: 15px; }
.pp-contact p a { overflow-wrap: anywhere; }

/* ---- Footer: legal notice ---- */
.pp-foot {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-secondary);
}
.pp-foot h2 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
/* Every item carries a leading dot; the clipped negative margin hides
   the dot that starts each wrapped line. */
.pp-foot address { font-style: normal; overflow: hidden; }
.pp-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; max-width: 92ch; margin-left: -18px; }
.pp-legal li { position: relative; padding-left: 18px; }
.pp-legal li::before { content: "\00B7"; position: absolute; left: 6px; color: var(--text-muted); }
.pp-foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 14px; }

/* ---- Narrow screens ---- */
@media (max-width: 900px) {
    .pp-hero, .pp-pricing { grid-template-columns: minmax(0, 1fr); }
    .pp-hero { gap: 40px; padding: 40px 16px 64px; }
    .pp-pricing { row-gap: 32px; }
    .pp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pp-steps li::after { display: none; }
    .pp-features, .pp-audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pp-nav { display: none; }
    .pp-login { margin-left: auto; }
}
@media (max-width: 560px) {
    .pp-section { padding: 56px 16px; }
    .pp-steps, .pp-features, .pp-audience { grid-template-columns: minmax(0, 1fr); }
    .pp-features li { padding-right: 0; }
    .pp-model div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .pp-lead { font-size: 17px; }
    .pp-legal { display: block; margin-left: 0; }
    .pp-legal li { padding-left: 0; margin-top: 2px; }
    .pp-legal li::before { content: none; }
}
