/* Platform host (Enzonic for Resellers): landing, signup, 404. Loaded only by src/platform/routes.tsx.
   Colour logic: --accent (green) always means "money you keep", --brand (violet) means "Enzonic's share";
   the split bar is the page's one recurring motif. */

body.platform .pf a:focus-visible,
body.platform .pf .btn:focus-visible,
body.platform .site-header a:focus-visible,
body.platform .site-header button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.pf .mono { font-size: .92em; }
.pf-btn-lg { min-height: 44px; padding: .7rem 1.2rem; font-size: 1rem; }
.pf-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.pf-small { font-size: .85rem; }

/* hero */
.pf-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; padding: 3.5rem 0 2.5rem; }
.pf-hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.025em; line-height: 1.08; max-width: 15ch; margin-bottom: 1rem; }
.pf-lead { font-size: 1.15rem; max-width: 52ch; margin: 0; }
.pf-note { margin-top: 1.25rem; max-width: 52ch; font-size: .92rem; }

/* worked-example panel: the only raised element on the page, so it reads as the focal point */
.pf-example { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 1.5rem 1.6rem; }
.pf-example-kicker { margin: 0 0 .75rem; font-weight: 650; color: var(--muted); font-size: .9rem; }
.pf-example-plan { margin: 0; font-size: 2rem; line-height: 1.1; letter-spacing: -.02em; }
.pf-example-plan .muted { font-size: 1rem; letter-spacing: 0; }
.pf-example-spec { margin: .25rem 0 1.25rem; font-size: .92rem; }

.split + .split { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.split-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .95rem; margin-bottom: .45rem; }
.split-head strong { color: var(--you-text); }
.split-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.split-you { background: var(--accent); }
.split-enzonic { background: color-mix(in srgb, var(--brand) 72%, var(--surface)); }
.split-legend { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: .45rem; font-size: .82rem; color: var(--muted); }
.split-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 3px; }
.dot-you { background: var(--accent); }
.dot-enzonic { background: color-mix(in srgb, var(--brand) 72%, var(--surface)); }

.pf { --you-text: color-mix(in srgb, var(--accent) 62%, var(--text)); }

/* sections */
.pf-section { margin-top: 4rem; }
.pf-section > h2, .pf-money-intro h2 { font-size: 1.65rem; letter-spacing: -.015em; margin-bottom: 1.25rem; }
.pf-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
.pf-feature { border-top: 2px solid var(--border); padding-top: 1rem; }
.pf-feature h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.pf-feature p { margin: 0; color: var(--muted); }
/* the storefront is the core of the offer, so it gets the wide, tinted slot */
.pf-feature-wide { grid-column: span 2; border-top-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border-radius: 0 0 12px 12px; padding: 1rem 1.25rem 1.25rem; }
.pf-feature-wide h3 { font-size: 1.2rem; }
.pf-feature-wide p { color: var(--text); }

/* money */
.pf-money-intro { max-width: 68ch; }
.pf-money-intro p { margin: 0 0 .75rem; }
.pf-money-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.25rem; margin-top: 1.25rem; align-items: start; }
.pf-money-grid .card { box-shadow: none; margin: 0; }
.pf-money-grid h3 { font-size: 1.05rem; margin-bottom: .75rem; }
.pf-price-table { width: 100%; border-collapse: collapse; }
.pf-price-table th, .pf-price-table td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--border); }
.pf-price-table th { font-weight: 650; width: 4.5rem; }
.pf-calc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem 1rem; margin: 0; }
.pf-calc dt { color: var(--muted); }
.pf-calc dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.pf-calc-total { padding-top: .45rem; border-top: 1px solid var(--border); color: var(--text) !important; font-weight: 600; }
.pf-calc-you { color: var(--you-text) !important; font-weight: 700; }
.pf-enzica-price { font-size: 1.05rem; margin: 0 0 .6rem; }

/* closing call to action */
.pf-cta { margin-top: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 2rem 2.25rem; border-radius: 16px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); }
.pf-cta h2 { font-size: 1.5rem; margin-bottom: .35rem; }
.pf-cta p { margin: 0; max-width: 56ch; }

.pf-footer { margin-top: 4rem; padding: 1.5rem 0 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); }
.pf-footer a { color: var(--muted); text-decoration: underline; }

/* signup */
.pf-signup { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; max-width: 980px; margin: 0 auto; padding-top: 2rem; align-items: start; }
.pf-signup h1 { font-size: 1.9rem; letter-spacing: -.02em; margin-bottom: .25rem; }
.pf-signup-main > .muted { margin: 0 0 1.25rem; }
.pf-form { padding: 1.5rem; }
.pf-form .field { margin-bottom: 1rem; }
.pf-form input, .pf-form select { min-height: 44px; }
.field-error { font-size: .82rem; font-weight: 600; color: color-mix(in srgb, var(--danger) 80%, var(--text)); }
.has-error input, .has-error select { border-color: var(--danger); }
.pf-slug { display: flex; align-items: stretch; }
.pf-slug input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; flex: 1; }
.pf-slug-suffix { display: inline-flex; align-items: center; padding: 0 .75rem; background: var(--surface-2); border: 1px solid var(--border); border-left: 0; border-radius: 0 9px 9px 0; color: var(--muted); white-space: nowrap; font-size: .92rem; }
[data-slug-status].is-ok { color: var(--you-text); font-weight: 600; }
[data-slug-status].is-bad { color: color-mix(in srgb, var(--danger) 80%, var(--text)); font-weight: 600; }
.pf-preview { margin: -.35rem 0 1.1rem; font-size: .9rem; overflow-wrap: anywhere; }
.pf-next { padding-top: 3.6rem; }
.pf-next h2 { font-size: 1.1rem; }
.pf-next ol { padding-left: 1.2rem; margin: .5rem 0 1rem; }
.pf-next li { margin-bottom: .6rem; }
.pf-next li::marker { color: var(--brand); font-weight: 700; }
.pf-next .mono { overflow-wrap: anywhere; }

/* 404 */
.pf-404 { max-width: 560px; margin: 0 auto; padding: 5rem 0 3rem; text-align: center; }
.pf-404 .pf-actions { justify-content: center; }

@media (max-width: 960px) {
  .pf-hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
  .pf-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-money-grid { grid-template-columns: 1fr; }
  .pf-signup { grid-template-columns: 1fr; gap: 1.5rem; }
  .pf-next { padding-top: 0; }
}
@media (max-width: 600px) {
  body.platform .site-header { padding: 1rem; }
  body.platform .site-main { padding: 0 1rem 3rem; }
  body.platform .site-nav { gap: .75rem; }
  body.platform .site-nav a { white-space: nowrap; }
  body.platform .brand-name { font-size: .95rem; }
  .pf-features { grid-template-columns: 1fr; }
  .pf-feature-wide { grid-column: auto; }
  .pf-cta { padding: 1.5rem; }
  .pf-cta-btn, .pf-actions .btn { width: 100%; justify-content: center; }
  .pf-slug { flex-wrap: wrap; }
  .pf-slug input { border-radius: 9px 9px 0 0; flex-basis: 100%; }
  .pf-slug-suffix { border-left: 1px solid var(--border); border-top: 0; border-radius: 0 0 9px 9px; padding: .45rem .75rem; flex-basis: 100%; }
}
