/*
 * Trade Print program styles (/trade-print/*).
 * Restyled 2026-11-11 (Frederick: "ensure the page matches the home page
 * style"): everything rides the home token layer from public-site.css
 * (--font-display/body/label, --purple/--blue, --dark/--dark2, --tc/--oc,
 * --text-heading/body/caption, --btn-gradient, --border, --shadow-card), so
 * light/dark parity is inherited instead of hand-rolled. Print-room details
 * match home: display-face headlines with gradient ems, crop-bracket cards, wipe-on entrance (classes driven by the inline
 * script in index.blade.php; pre-states gated behind .tp-armed so the tiers
 * and apply pages, which don't run the show, render settled).
 */

.tp-main { background: var(--dark); color: var(--text-body); min-height: 100vh; font-family: var(--font-body); }
.tp-shell { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.tp-shell-narrow { max-width: 760px; }
.tp-h1 { font-family: var(--font-display); font-weight: 400; color: var(--text-heading); font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; margin: 16px 0 20px; letter-spacing: -0.02em; }
.tp-h2 { font-family: var(--font-display); font-weight: 400; color: var(--text-heading); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; margin: 0 0 24px; letter-spacing: -0.015em; }
.tp-h1 em, .tp-h2 em { font-style: normal; background: linear-gradient(129deg, var(--purple), #D449AA, var(--blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tp-eyebrow { font-family: var(--font-label); color: var(--purple); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; margin: 0; }
.tp-eyebrow a { color: inherit; text-decoration: none; }
.tp-sub { font-size: 18px; line-height: 1.55; color: var(--text-body); max-width: 760px; margin: 0 auto 28px; }

.tp-cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.tp-cta-row-center { justify-content: center; }
.tp-btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 650; text-decoration: none; border: 1px solid transparent; transition: transform .2s, box-shadow .2s; font-size: 15px; }
.tp-btn:hover { transform: translateY(-1px); }
.tp-btn-primary { background: var(--btn-gradient, linear-gradient(129deg, #8E21CA, #254AAD)); color: #fff; box-shadow: 0 8px 28px rgba(142, 33, 202, 0.35); }
.tp-btn-ghost { background: rgba(var(--oc), 0.6); backdrop-filter: blur(8px); color: var(--text-heading); border-color: rgba(var(--tc), 0.22); font-family: var(--font-label); font-size: 13px; letter-spacing: 0.06em; }
.tp-btn-ghost:hover { border-color: var(--purple); color: var(--purple); }

/* Hero — centered like home, on the theme ground. */
.tp-hero { padding: 88px 0 64px; text-align: center; position: relative;
  background: radial-gradient(60% 50% at 50% 0%, rgba(142, 33, 202, 0.12), transparent 70%); }
.tp-hero-proof { list-style: none; padding: 0; margin: 44px auto 0; max-width: 980px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.tp-hero-proof li { display: flex; flex-direction: column; }
.tp-hero-proof strong { color: var(--text-heading); font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.tp-hero-proof span { color: var(--text-caption); font-size: 13.5px; margin-top: 4px; }

/* Entrance (index page only — the inline script arms it; no-JS and the
   tiers/apply pages render settled). */
.tp-armed .tp-hero .tp-h1 { clip-path: inset(-4% 100% -8% 0); }
.tp-armed.tp-printed .tp-hero .tp-h1 { animation: tp-wipe 1s cubic-bezier(.6, 0, .2, 1) .1s forwards; }
@keyframes tp-wipe { to { clip-path: inset(-4% 0% -8% 0); } }
.tp-armed .tp-hero > .tp-shell > :not(.tp-h1) { opacity: 0; translate: 0 14px; transition: opacity .7s, translate .7s; }
.tp-armed.tp-printed .tp-hero > .tp-shell > :not(.tp-h1) { opacity: 1; translate: 0 0; }
.tp-armed.tp-printed .tp-hero .tp-sub { transition-delay: .95s; }
.tp-armed.tp-printed .tp-hero .tp-cta-row { transition-delay: 1.1s; }
.tp-armed.tp-printed .tp-hero .tp-hero-proof { transition-delay: 1.25s; }

/* Scroll reveals for the section heads + card grids (sweep adds .tp-in). */
.tp-armed .tp-reveal:not(.tp-in) { opacity: 0; translate: 0 18px; }
.tp-reveal { transition: opacity .7s cubic-bezier(.2, .75, .25, 1), translate .7s cubic-bezier(.2, .75, .25, 1); }
.tp-armed .tp-grid-reveal:not(.tp-in) > * { opacity: 0; translate: 0 22px; }
.tp-grid-reveal > * { transition: opacity .7s cubic-bezier(.2, .75, .25, 1), translate .7s cubic-bezier(.2, .75, .25, 1); }
.tp-grid-reveal.tp-in > :nth-child(1) { transition-delay: .05s; }
.tp-grid-reveal.tp-in > :nth-child(2) { transition-delay: .13s; }
.tp-grid-reveal.tp-in > :nth-child(3) { transition-delay: .21s; }
.tp-grid-reveal.tp-in > :nth-child(4) { transition-delay: .29s; }
.tp-grid-reveal.tp-in > :nth-child(5) { transition-delay: .37s; }

/* Tiers */
.tp-tiers-row { padding: 80px 0; border-top: 1px solid var(--border); text-align: center; }
/* Four plans: 2 per row (Frederick, Nov 11 — any 4-plan pricing grid is 2x2). */
.tp-tier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 36px 0 16px; text-align: left; }
@media (max-width: 640px) { .tp-tier-grid { grid-template-columns: 1fr; } }
.tp-tier-card { position: relative; background: var(--dark2); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-card); transition: border-color .2s, transform .2s; }
.tp-tier-card:hover { border-color: rgba(142, 33, 202, 0.45); transform: translateY(-2px); }
/* Crop brackets, home's gradient-drawn pair — whisper at rest, ink on hover. */
.tp-tier-card::before, .tp-why-card::before { content: ''; position: absolute; inset: 8px; z-index: 1; pointer-events: none; opacity: .3; transition: opacity .3s;
  background:
    linear-gradient(rgba(var(--tc), .5) 0 0) top left / 14px 1.5px,
    linear-gradient(rgba(var(--tc), .5) 0 0) top left / 1.5px 14px,
    linear-gradient(rgba(var(--tc), .5) 0 0) bottom right / 14px 1.5px,
    linear-gradient(rgba(var(--tc), .5) 0 0) bottom right / 1.5px 14px;
  background-repeat: no-repeat; }
.tp-tier-card:hover::before, .tp-why-card:hover::before { opacity: 1; }
.tp-tier-featured { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple) inset, 0 12px 40px rgba(142, 33, 202, 0.18); }
.tp-tier-flag { position: absolute; top: -12px; right: 20px; background: var(--btn-gradient, linear-gradient(129deg, #8E21CA, #254AAD)); color: #fff; font-family: var(--font-label); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.tp-tier-name { font-family: var(--font-display); color: var(--text-heading); font-size: 21px; font-weight: 600; margin: 0; }
.tp-tier-price { margin: 8px 0 0; font-size: 14px; color: var(--text-caption); }
.tp-tier-price span { font-family: var(--font-display); font-size: 38px; font-weight: 700; color: var(--text-heading); }
.tp-tier-tag { font-size: 14px; color: var(--text-caption); margin: 10px 0 20px; }
.tp-tier-list { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.tp-tier-list li { font-size: 14px; line-height: 1.5; padding: 7px 0; border-bottom: 1px solid var(--border); color: var(--text-body); }
.tp-tier-list li:last-child { border-bottom: 0; }
.tp-tier-cta { display: block; text-align: center; padding: 12px 16px; background: rgba(var(--oc), 0.6); border: 1px solid rgba(var(--tc), 0.22); border-radius: 999px; color: var(--text-heading); text-decoration: none; font-weight: 650; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.tp-tier-cta:hover { background: var(--btn-gradient, linear-gradient(129deg, #8E21CA, #254AAD)); color: #fff; border-color: transparent; }
.tp-tier-footnote { margin-top: 24px; color: var(--text-caption); font-size: 14px; }
.tp-tier-footnote a { color: var(--purple); }

/* Why */
.tp-why { padding: 80px 0; border-top: 1px solid var(--border); text-align: center; }
.tp-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; text-align: left; }
.tp-why-card { position: relative; background: var(--dark2); border: 1px solid var(--border); border-radius: 14px; padding: 26px 24px; box-shadow: var(--shadow-card); transition: border-color .2s; }
.tp-why-card:hover { border-color: rgba(142, 33, 202, 0.45); }
.tp-why-card h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; color: var(--text-heading); font-size: 19px; }
.tp-why-card p { margin: 0; color: var(--text-body); line-height: 1.55; font-size: 14px; }

/* Matrix (tiers page) */
.tp-matrix { padding: 48px 0 72px; }
.tp-matrix-wrap { overflow-x: auto; }
.tp-matrix-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--dark2); border-radius: 12px; overflow: hidden; }
.tp-matrix-table th, .tp-matrix-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); color: var(--text-body); }
.tp-matrix-table thead th { background: rgba(var(--tc), 0.05); font-family: var(--font-label); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-caption); }
.tp-matrix-table th:first-child { width: 36%; }
.tp-matrix-featured { background: rgba(142, 33, 202, 0.1); }
.tp-matrix-group { background: var(--dark); color: var(--text-caption); font-family: var(--font-label); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 20px; padding-bottom: 10px; }
.tp-matrix-price-row td { font-weight: 700; font-size: 16px; color: var(--text-heading); }
.tp-matrix-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; justify-content: center; }

/* Page head (sub-pages) */
.tp-page-head { padding: 56px 0 24px; }
.tp-page-head-center { text-align: center; }

/* Apply form */
.tp-apply { padding: 24px 0 72px; }
.tp-form fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 0 0 20px; background: var(--dark2); }
.tp-form legend { padding: 0 8px; font-family: var(--font-label); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-caption); }
.tp-radio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tp-radio-card { display: flex; flex-direction: column; padding: 16px; background: rgba(var(--tc), 0.04); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .15s; }
.tp-radio-card input { position: absolute; opacity: 0; }
.tp-radio-selected { border-color: var(--purple); background: rgba(142, 33, 202, 0.08); }
.tp-radio-title { font-weight: 700; font-size: 15px; color: var(--text-heading); }
.tp-radio-price { font-size: 20px; margin: 4px 0; color: var(--text-heading); font-weight: 700; }
.tp-radio-tag { font-size: 13px; color: var(--text-caption); }
.tp-field { margin: 16px 0; }
.tp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .tp-field-row { grid-template-columns: 1fr; } }
.tp-field label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--text-body); }
.tp-field label span { color: var(--red, #C0392B); }
.tp-field input, .tp-field select, .tp-field textarea { width: 100%; padding: 11px 12px; background: var(--dark); border: 1px solid rgba(var(--tc), 0.25); border-radius: 8px; color: var(--text-heading); font-size: 14px; }
.tp-field input:focus, .tp-field select:focus, .tp-field textarea:focus { outline: 2px solid var(--purple); outline-offset: 1px; }
.tp-field-help { font-size: 12px; color: var(--text-caption); margin: 6px 0 0; }
.tp-fieldset-hidden { display: none; }
.tp-form-actions { margin-top: 32px; }
.tp-form-meta { margin-top: 14px; font-size: 12px; color: var(--text-caption); }
.tp-form-meta a { color: var(--purple); }

/* Alerts */
.tp-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; line-height: 1.4; }
.tp-alert-ok { background: rgba(26, 139, 78, 0.12); color: var(--green, #1A8B4E); border: 1px solid rgba(26, 139, 78, 0.3); }
.tp-alert-err { background: rgba(192, 57, 43, 0.12); color: var(--red, #C0392B); border: 1px solid rgba(192, 57, 43, 0.3); }
.tp-alert ul { margin: 8px 0 0 20px; padding: 0; }

/* Apply CTA */
.tp-apply-cta { padding: 88px 0; text-align: center; border-top: 1px solid var(--border);
  background: radial-gradient(60% 70% at 50% 100%, rgba(142, 33, 202, 0.12), transparent 70%); }
.tp-apply-cta p { color: var(--text-body); max-width: 560px; margin: 0 auto 26px; }

@media (prefers-reduced-motion: reduce) {
  .tp-armed .tp-hero .tp-h1, .tp-armed.tp-printed .tp-hero .tp-h1 { clip-path: none; animation: none; }
  .tp-armed .tp-hero > .tp-shell > :not(.tp-h1), .tp-armed .tp-reveal:not(.tp-in), .tp-armed .tp-grid-reveal:not(.tp-in) > * { opacity: 1; translate: 0 0; transition: none; }
}
