/* ============================================================
   SnapTheMenu /flow/why — Why page
   BEM block: why
   Tokens from demo.css :root
   ============================================================ */

/* ── Hidden fix ─────────────────────────────────────────────── */
.why [hidden] { display: none !important; }

/* ── Shell ───────────────────────────────────────────────────── */

.why {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--pm-bg);
    color: var(--pm-text);
    max-width: 520px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ──────────────────────────────────────────────────── */

.why__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(1.25rem, env(safe-area-inset-top, 0px) + 0.75rem) 0 1.5rem;
}

.why__back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pm-accent);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0.25rem 0;
}

.why__back:hover { opacity: 0.75; }

.why__brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--pm-accent);
}

.why__brand__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #4a2810;
    color: #f0a030;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.why__brand__name {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pm-muted);
    letter-spacing: 0.01em;
}

/* ── Main ────────────────────────────────────────────────────── */

.why__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 3rem;
}

/* ── Sections ────────────────────────────────────────────────── */

.why__sections {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.why__section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--pm-border);
}

.why__section--closer {
    margin-top: 1rem;
    border-top: none;
    border-left: 3px solid var(--pm-accent);
    padding-left: 1rem;
}

.why__section__heading {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    font-weight: 400;
    color: var(--pm-text);
    line-height: 1.2;
    margin: 0 0 0.6rem;
}

.why__section__heading--accent {
    color: var(--pm-accent);
}

.why__section__body {
    font-size: 1rem;
    color: var(--pm-muted);
    line-height: 1.65;
    margin: 0;
}

.why__section__body--strong {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    font-weight: 400;
    color: var(--pm-text);
    line-height: 1.2;
}

/* ── Closing line ────────────────────────────────────────────── */

.why__closing {
    font-family: 'DM Serif Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
    font-weight: 400;
    color: var(--pm-muted);
    margin: 1.75rem 0 0;
}

/* ── CTA ─────────────────────────────────────────────────────── */

.why__cta {
    display: inline-flex;
    align-items: center;
    margin-top: 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--pm-accent);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s;
}

.why__cta:hover { opacity: 0.7; }

/* ── Footer ──────────────────────────────────────────────────── */

.why__footer {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 0 max(1.5rem, env(safe-area-inset-bottom, 0px) + 1rem);
    border-top: 1px solid var(--pm-border);
}

.why__footer__link {
    font-size: 0.75rem;
    color: var(--pm-muted);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.why__footer__link:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.why__footer__copy {
    font-size: 0.6875rem;
    color: var(--pm-muted);
    opacity: 0.5;
    margin-left: auto;
}
