/**
 * Shared chrome for the standalone tool pages — /tuner, /metronome,
 * /tempo-meter.
 *
 * These three are the site's public front door for search traffic
 * ("online tuner", "bpm meter"): a visitor's first impression of
 * Picker's Guide. They previously each carried their own ad-hoc
 * content-column rules inside the widget stylesheet (and /tempo-meter
 * carried none at all, so it rendered edge-to-edge). This file is the
 * one place all three get their page chrome:
 *
 *   .pg-tool-page            page root, one per tool page
 *     .pg-tool-hero          full-bleed tinted band: eyebrow, h1, lead,
 *                            and the widget itself sitting on the tint
 *     .pg-tool-switch        the three-tool pill nav (pg_tool_nav())
 *     .pg-tool-body          720px reading column for the SEO copy
 *     .pg-tool-cta           closing "browse the catalog" panel
 *
 * Colors come from design-tokens.css. The hero deliberately breaks out
 * of the reading column with a negative-margin bleed — #pg-main has no
 * container of its own, so 100vw would introduce a horizontal scrollbar
 * when the page has a vertical one; margin-inline: calc(50% - 50vw) has
 * the same problem, so we bleed with a wide max-width instead.
 */

.pg-tool-page {
    font-family: var(--pg-font-ui);
    color: var(--pg-text-primary);
    /* Kill the theme's stray bottom margin under the last block so the
       CTA panel meets the footer cleanly. */
    padding-bottom: 56px;
}

/* ============================================================
   HERO — tinted band holding the pitch and the widget
   ============================================================ */
.pg-tool-hero {
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(83, 169, 107, 0.10) 0%, rgba(83, 169, 107, 0) 60%),
        linear-gradient(180deg, #f4f8fa 0%, #fbfcfd 100%);
    border-bottom: 1px solid #e6ecf0;
    padding: 40px 24px 44px;
}
.pg-tool-hero__inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.pg-tool-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pg-green-dark, #47905b);
}
/* Small dot separators between the eyebrow's claims. */
.pg-tool-eyebrow span + span::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-right: 9px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
    opacity: 0.55;
}
.pg-tool-eyebrow .pg-tool-eyebrow__beta {
    color: #6b46c1;
    background: rgba(107, 70, 193, 0.12);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.06em;
}
.pg-tool-eyebrow .pg-tool-eyebrow__beta::before { display: none; }

.pg-tool-hero__title {
    margin: 0 0 14px;
    font-size: clamp(30px, 4.4vw, 44px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--pg-blue, #1e4f75);
}
/* Quiet, small lead — it's SEO copy, not UI. The tool is the hero;
   the sentence under the title shouldn't compete with it (Phil on the
   builder page, 2026-08-18; extended to the whole family 2026-08-19). */
.pg-tool-hero__lead {
    max-width: 640px;
    margin: 0 auto;
    font-size: 13.5px;
    line-height: 1.5;
    color: #8b98a3;
}

/* The widget sits on the tint, lifted with a real shadow. Each tool
   ships its own `.pg-*-standalone` surface; we only re-space and
   re-elevate it here so the three read as one family. */
.pg-tool-hero .pg-tuner-standalone,
.pg-tool-hero .pg-metronome-standalone,
.pg-tool-hero .pg-tempo-standalone {
    margin: 30px auto 0;
    border-color: #dde5ea;
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(22, 58, 86, 0.06),
        0 18px 44px rgba(22, 58, 86, 0.14);
}
.pg-tool-hero .pg-tuner-standalone   { max-width: 440px; }
.pg-tool-hero .pg-metronome-standalone { max-width: 460px; }
.pg-tool-hero .pg-tempo-standalone   { max-width: 440px; margin-bottom: 0; }

/* ============================================================
   TOOL SWITCHER — the three free tools, cross-linked
   ============================================================ */
.pg-tool-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 18px 24px 0;
}
.pg-tool-switch__lbl {
    width: 100%;
    text-align: center;
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--pg-text-muted, #888);
}
.pg-tool-switch a,
.pg-tool-switch span.is-current {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--pg-border, #e5e7eb);
    background: var(--pg-white, #fff);
    font-size: 14px;
    font-weight: 600;
    color: #4c5a66;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.pg-tool-switch a:hover {
    border-color: var(--pg-green, #53a96b);
    color: var(--pg-blue, #1e4f75);
    background: rgba(83, 169, 107, 0.06);
    text-decoration: none;
}
.pg-tool-switch span.is-current {
    border-color: var(--pg-blue, #1e4f75);
    background: var(--pg-blue, #1e4f75);
    color: #fff;
    cursor: default;
}
.pg-tool-switch svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* ============================================================
   PITCH LINE — one quiet sentence between the tool and the copy.
   The closing CTA panel is thousands of pixels down and most
   visitors never reach it; this is the touch that's actually
   near the thing they came for. Kept to one line on purpose.
   ============================================================ */
.pg-tool-pitch {
    max-width: 620px;
    margin: 26px auto 0;
    padding: 0 24px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: #5b6874;
}
.pg-tool-pitch em { font-style: italic; }
.pg-tool-pitch a {
    display: inline-block;
    margin-left: 4px;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(83, 169, 107, 0.14);
    font-weight: 700;
    color: var(--pg-green-dark, #47905b);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.pg-tool-pitch a:hover {
    background: var(--pg-green, #53a96b);
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   BODY — the reading column
   ============================================================ */
.pg-tool-body {
    max-width: 700px;
    margin: 0 auto;
    padding: 8px 24px 0;
    font-size: 17px;
    line-height: 1.7;
    color: #33414d;
}
.pg-tool-body h2 {
    margin: 2.6em 0 0.6em;
    font-size: clamp(21px, 2.2vw, 26px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--pg-blue, #1e4f75);
}
/* Short accent rule above each section heading — gives the long page a
   visible rhythm without adding boxes. */
.pg-tool-body h2::before {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin-bottom: 16px;
    border-radius: 2px;
    background: var(--pg-green, #53a96b);
}
.pg-tool-body h2:first-child { margin-top: 1.6em; }

.pg-tool-body h3 {
    margin: 1.8em 0 0.5em;
    font-size: 18px;
    font-weight: 700;
    color: var(--pg-blue, #1e4f75);
}
.pg-tool-body p { margin: 0 0 1.05em; }
.pg-tool-body strong { color: var(--pg-blue, #1e4f75); font-weight: 700; }
.pg-tool-body a {
    color: var(--pg-blue, #1e4f75);
    text-decoration: underline;
    text-decoration-color: rgba(30, 79, 117, 0.3);
    text-underline-offset: 3px;
}
.pg-tool-body a:hover {
    color: var(--pg-green-dark, #47905b);
    text-decoration-color: currentColor;
}

/* Lists get a green marker instead of the browser bullet — reads as
   part of the brand rather than as raw HTML. */
.pg-tool-body ul {
    list-style: none;
    margin: 1.1em 0 1.4em;
    padding: 0;
}
.pg-tool-body ul li {
    position: relative;
    margin: 0 0 0.7em;
    padding-left: 1.5em;
}
.pg-tool-body ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--pg-green, #53a96b);
    transform: rotate(45deg);
}

/* Aside note — the italic caveat paragraphs (the iPhone ringer note).
   Author it as <p class="pg-tool-note"> in the page content. */
.pg-tool-body .pg-tool-note {
    margin: 1.4em 0;
    padding: 14px 18px;
    background: #f7f9fb;
    border-left: 3px solid var(--pg-blue, #1e4f75);
    border-radius: 0 8px 8px 0;
    font-size: 15.5px;
    line-height: 1.6;
    color: #4c5a66;
}
.pg-tool-body .pg-tool-note em { font-style: normal; }

/* ============================================================
   FAQ — the visible half of the page's FAQPage structured data.
   Google only surfaces FAQ rich results when the same Q&A is
   readable on the page, so this block and the JSON-LD in
   tempo-meter.php / tools-panel.php must stay in sync.
   ============================================================ */
.pg-tool-faq {
    margin: 1.2em 0 0;
    border-top: 1px solid var(--pg-border, #e5e7eb);
}
.pg-tool-faq details {
    border-bottom: 1px solid var(--pg-border, #e5e7eb);
}
.pg-tool-faq summary {
    list-style: none;
    cursor: pointer;
    position: relative;
    padding: 16px 36px 16px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--pg-blue, #1e4f75);
}
.pg-tool-faq summary::-webkit-details-marker { display: none; }
/* Chevron, rotates open. */
.pg-tool-faq summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid var(--pg-green, #53a96b);
    border-bottom: 2px solid var(--pg-green, #53a96b);
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}
.pg-tool-faq details[open] summary::after {
    transform: rotate(-135deg);
    margin-top: -2px;
}
.pg-tool-faq summary:hover { color: var(--pg-green-dark, #47905b); }
.pg-tool-faq details > p {
    margin: 0 0 18px;
    padding-right: 36px;
    font-size: 16px;
    color: #4c5a66;
}

/* ============================================================
   CLOSING CTA — one panel, not a bare paragraph
   ============================================================ */
.pg-tool-cta {
    max-width: 700px;
    margin: 56px auto 0;
    padding: 30px 28px;
    background: linear-gradient(135deg, #1e4f75 0%, #2a6b96 100%);
    border-radius: 16px;
    color: #fff;
    text-align: center;
}
/* The reading column has side padding; the CTA needs its own so it
   doesn't touch the viewport edge on narrow screens. */
.pg-tool-page > .pg-tool-cta { max-width: 748px; padding-left: 28px; padding-right: 28px; }
.pg-tool-cta__logo {
    display: block;
    height: 46px;
    width: auto;
    margin: 0 auto 14px;
    color: #fff; /* inline SVG: PICKER'S paths use currentColor; GUIDE stays brand green */
}
.pg-tool-cta h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}
.pg-tool-cta h2::before { display: none; }
.pg-tool-cta p {
    max-width: 500px;
    margin: 0 auto 20px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}
.pg-tool-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 20px;
}
/* Primary is the account — these pages are a search landing surface, and
   /signup/ is intercepted into the signup modal by pg-auth-shortcodes.php
   (falls back to the page with JS off). */
.pg-tool-cta__btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--pg-green, #53a96b);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    transition: background 0.15s ease, transform 0.08s ease;
}
.pg-tool-cta__btn:hover { background: var(--pg-green-dark, #47905b); transform: translateY(-1px); }
.pg-tool-cta__alt {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}
.pg-tool-cta__alt:hover { color: #fff !important; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 600px) {
    .pg-tool-hero { padding: 28px 18px 32px; }
    .pg-tool-hero .pg-tuner-standalone,
    .pg-tool-hero .pg-metronome-standalone,
    .pg-tool-hero .pg-tempo-standalone {
        margin-top: 24px;
        box-shadow: 0 10px 26px rgba(22, 58, 86, 0.12);
    }
    .pg-tool-switch { padding: 16px 18px 0; gap: 6px; }
    .pg-tool-switch a,
    .pg-tool-switch span.is-current { padding: 7px 13px; font-size: 13px; }
    .pg-tool-body { padding: 4px 18px 0; font-size: 16px; }
    .pg-tool-body h2 { margin-top: 2.1em; }
    .pg-tool-cta { margin-top: 40px; padding: 26px 20px; border-radius: 14px; }
    .pg-tool-page > .pg-tool-cta { margin-left: 18px; margin-right: 18px; }
}

/* The chord finder is a wide surface - same hero widening the builder gets. */
.pg-tool-hero__inner:has(.pg-chord-finder-standalone) { max-width: 1180px; }
