/*! StiffStruct, (c) 2026 Mohammad Asad. All rights reserved. Proprietary: copying, mirroring or reusing this code is not permitted without written permission (see terms.html#intellectual-property). build 20261018-2017 */
/* Pricing page + home-page pricing teaser + a few form extras. Tokens only (css/tokens.css); loads after css/site.css. */

/* ---- test-mode banner ---- */
.p-testmode { margin: 0 0 20px; }

/* ---- plan cards ---- */
.p-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: stretch; }
.p-plan { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px 20px 20px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.p-plan.is-highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-2); }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.p-top h3 { margin: 0; font-size: 1.25rem; }
.p-badge { padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; color: var(--accent-fg); background: var(--accent); }
.p-badge.is-gold { color: var(--warning); background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 45%, transparent); }
.p-tagline { margin: 4px 0 14px; color: var(--fg-muted); min-height: 2.9em; }
.p-slot { display: flex; align-items: center; min-height: 40px; margin-bottom: 10px; }
.p-slot-text { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--fg-muted); background: var(--bg-sunken); }
.p-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.p-amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.p-per { color: var(--fg-muted); font-weight: 600; }
.p-sub { margin: 2px 0 14px; min-height: 1.5em; color: var(--fg-muted); font-size: .95rem; }
.p-cta-wrap { margin-bottom: 18px; }
.p-cta { display: flex; width: 100%; justify-content: center; text-align: center; }
.p-cta[disabled] { opacity: .65; cursor: progress; }
.p-note { margin: 10px 0 0; font-size: .86rem; line-height: 1.45; color: var(--fg-muted); }
.p-note strong { color: var(--fg); }
.p-current { display: block; margin-bottom: 8px; padding: 9px 12px; border-radius: var(--radius); text-align: center; font-weight: 700; color: var(--success); background: var(--success-soft); border: 1px solid color-mix(in srgb, var(--success) 40%, transparent); }
.p-features { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: .95rem; }

/* yearly / monthly switch */
.p-seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-sunken); max-width: 100%; }
.p-seg-btn { padding: 6px 12px; font: inherit; font-size: .88rem; font-weight: 650; color: var(--fg-muted); background: transparent; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.p-seg-btn:hover { color: var(--fg); }
.p-seg-btn[aria-pressed="true"] { color: var(--accent-fg); background: var(--accent); }
.p-seg-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.p-save { margin-left: 2px; font-size: .78rem; font-weight: 700; opacity: .92; }

/* ---- comparison table ---- */
.p-table { min-width: 680px; }
.p-table thead th:not(:first-child), .p-table td { text-align: center; }
.p-table tbody th { min-width: 220px; }
.p-yes { color: var(--success); font-weight: 800; font-size: 1.1rem; }
.p-no { color: var(--fg-muted); }
.p-table .is-us { font-weight: 600; }

/* ---- misc blocks ---- */
.p-note-block { max-width: 70ch; margin: 18px 2px 0; color: var(--fg-muted); }
.p-toast { position: fixed; left: 50%; bottom: 20px; z-index: 80; transform: translateX(-50%); max-width: min(92vw, 460px); padding: 12px 18px; border-radius: var(--radius); font-weight: 600; color: var(--bg-elev); background: var(--fg); box-shadow: var(--shadow-2); }
.p-toast[hidden] { display: none; }

/* ---- home-page teaser ---- */
.p-teaser { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.p-mini { display: flex; flex-direction: column; padding: 20px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.p-mini.is-highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-1); }
.p-mini h3 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-mini .p-amount { font-size: 2rem; }
.p-mini p { margin: 6px 0 0; color: var(--fg-muted); }
.p-mini .p-trialtag { margin-top: auto; padding-top: 12px; font-size: .9rem; font-weight: 650; color: var(--accent-text); }
.p-teaser-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.p-teaser-foot p { margin: 0; color: var(--fg-muted); }

/* ---- form extras (contact page topic select) ---- */
.s-field select { width: 100%; padding: 11px 12px; font: inherit; color: var(--fg); background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.s-field select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }

@media (max-width: 480px) {
  .p-tagline { min-height: 0; }
  .p-amount { font-size: 2.2rem; }
}
