/* PriceSpark brand layer (Claude Design handoff, 30 Oct 2026).
   Loaded ONLY on PriceSpark's own pages (/, /build, /edit, /welcome) after app.css, scoped to body.ps.
   Tenant pages (/q, /s, embed) never load this file, so firms keep their own colours. Fonts self-hosted (OFL). */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 500; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url(/fonts/dm-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url(/fonts/dm-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url(/fonts/dm-sans-latin-700-normal.woff2) format('woff2'); }

body.ps {
  --ps-spark: #FFD21F; --ps-spark-hover: #F0C200; --ps-spark-30: #FFF3B8; --ps-spark-10: #FFFAE0;
  --ps-spark-ink: #8A6D00; --ps-spark-deep: #6E5A00;
  --ps-black: #1A1A1A; --ps-charcoal: #2E2E2E; --ps-graphite: #4A4A4A; --ps-stone: #6B6B6B;
  --ps-silver: #9A9A9A; --ps-mist: #E8E6E1; --ps-cream: #FFF8E8; --ps-white: #FFFFFF;
  --ps-on-dark: #D4D4D4; --ps-on-dark-muted: #B5B5B5;
  --ps-success: #1E9E6A; --ps-success-bg: #DDF3E9; --ps-error: #D9442B;
  --ps-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --ps-body: 'DM Sans', system-ui, sans-serif;
  /* remap app.css tokens so the existing builder/welcome UI picks up the brand */
  --ink: var(--ps-black); --ink-soft: var(--ps-graphite); --muted: var(--ps-stone); --line: var(--ps-mist);
  --bg: var(--ps-cream); --surface: var(--ps-white);
  --brand: var(--ps-black); --brand-dark: var(--ps-charcoal); --brand-tint: var(--ps-spark-30); --brand-ink: #fff;
  --good: var(--ps-success); --good-tint: var(--ps-success-bg); --bad: var(--ps-error);
  --focus: var(--ps-black); --font: var(--ps-body);
  --r-sm: 10px; --r-md: 12px; --r-lg: 16px;
  font-family: var(--ps-body); background: var(--ps-cream); color: var(--ps-black);
}
.ps h1, .ps h2, .ps h3 { font-family: var(--ps-display); font-weight: 800; }
.ps h1 { letter-spacing: -.035em; line-height: .98; }
.ps h2 { letter-spacing: -.03em; line-height: 1.02; }
.ps h3 { letter-spacing: -.02em; line-height: 1.1; }
.ps a { color: var(--ps-black); }
.ps a:hover { color: var(--ps-spark-ink); }
.ps :focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ps-spark); border-radius: 6px; }

/* Buttons (app.css .btn re-skinned): one yellow primary per section, black secondary, ghost outline */
.ps .btn { font-family: var(--ps-body); font-weight: 700; border-radius: 12px; min-height: 44px; }
.ps .btn:active { transform: translateY(1px); }
.ps .btn-primary { background: var(--ps-spark); color: var(--ps-black); border-color: var(--ps-spark); }
.ps .btn-primary:hover { background: var(--ps-spark-hover); border-color: var(--ps-spark-hover); color: var(--ps-black); }
.ps .btn-ghost { background: transparent; color: var(--ps-black); border: 1.5px solid var(--ps-black); }
.ps .btn-ghost:hover { background: var(--ps-black); color: #fff; }

/* Header */
.ps .site-header { background: var(--ps-black); border: 0; position: sticky; top: 0; z-index: 50; }
.ps .site-header .container { min-height: 56px; }
.ps .site-header a { color: var(--ps-on-dark); }
.ps .site-header a:hover { color: #fff; }
.ps .site-header .btn-primary { color: var(--ps-black); font-size: 14px; padding: 11px 16px; }
.ps .site-header .btn-primary:hover { color: var(--ps-black); }
.ps-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ps-logo img { width: 30px; height: 30px; display: block; }
.ps-word { font-family: var(--ps-display); font-weight: 500; font-size: 22px; letter-spacing: -.03em; color: #fff; line-height: 1; }
.ps-word b { font-weight: 800; color: var(--ps-spark); }
.ps-word.on-light { color: var(--ps-black); }
.ps-word.on-light b { color: var(--ps-black); }

/* App pages (build / edit / welcome) */
.ps .card { border: 1px solid var(--ps-mist); border-radius: 16px; }
.ps input, .ps select, .ps textarea { font-family: var(--ps-body); font-size: 16px; border-radius: 10px; border-width: 1.5px; border-color: var(--ps-mist); }
.ps input:focus, .ps select:focus, .ps textarea:focus { border-color: var(--ps-black); box-shadow: 0 0 0 3px var(--ps-spark); outline: none; }
.ps .badge.brand { background: var(--ps-black); color: var(--ps-spark); }
.ps pre, .ps code { font-size: 14px; }
.ps .site-foot { color: var(--ps-stone); font-size: 13px; }

/* ================= Landing ================= */
.ps-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.ps-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; font-size: 14px; font-weight: 500; }
.ps-nav a:not(.btn) { text-decoration: none; }
.ps-header-row { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 560px) { .ps-nav a:not(.btn) { display: none; } }

.ps-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ps-spark-ink); margin: 0 0 12px; }
.ps-dark .ps-eyebrow { color: var(--ps-spark); }
.ps-eyebrow.bad { color: var(--ps-error); }
.ps-lead { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; }

.ps-offer-bar { display: block; background: var(--ps-spark); color: var(--ps-black); text-decoration: none; padding: 10px 20px; font-size: 14px; font-weight: 500; text-align: center; }
.ps-offer-bar:hover { color: var(--ps-black); background: var(--ps-spark-hover); }
.ps-pill { display: inline-block; background: var(--ps-black); color: var(--ps-spark); border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-right: 8px; vertical-align: 1px; }

.ps-dark { background: var(--ps-black); color: #fff; }
.ps-dark p { color: var(--ps-on-dark); }
.ps-dark h1, .ps-dark h2 { color: #fff; }

.ps-hero { padding: 44px 0 60px; }
.ps-hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.ps-hero h1 { font-size: clamp(38px, 5.4vw, 68px); margin: 18px 0 18px; }
.ps-hero .ps-lead { color: var(--ps-on-dark); margin-bottom: 26px; }
.ps-chip-dark { display: inline-flex; align-items: center; gap: 8px; background: var(--ps-charcoal); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; color: #fff; margin: 0; }
.ps-chip-dark::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ps-spark); }
.ps-cta-xl { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 60px; font-size: 18px; max-width: 440px; width: 100%; text-decoration: none; }
.ps-hero .ps-small { font-size: 13px; color: var(--ps-on-dark-muted); margin: 12px 0 18px; }
.ps-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13px; font-weight: 500; }
.ps-ticks li { display: flex; align-items: center; gap: 6px; }
.ps-tick { width: 18px; height: 18px; flex: none; stroke: var(--ps-spark); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Demo widget (sales demo only: nothing is sent anywhere) */
.ps-demo-cap { font-size: 13px; font-weight: 600; color: var(--ps-spark) !important; margin: 0 0 10px; display: flex; gap: 6px; align-items: center; }
.ps-demo { background: #fff; color: var(--ps-black); border-radius: 20px; padding: 20px; box-shadow: 0 24px 48px rgba(0,0,0,.35); max-width: 460px; }
.ps-demo p { color: inherit; }
.ps-firm { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--ps-mist); }
.ps-firm-tile { width: 36px; height: 36px; border-radius: 10px; background: #3FC8D6; color: var(--ps-black); font-weight: 700; font-size: 14px; display: grid; place-items: center; flex: none; }
.ps-firm-name { font-size: 14px; font-weight: 700; margin: 0; }
.ps-firm-sub { font-size: 12px; color: var(--ps-stone) !important; margin: 0; }
.ps-demo-badge { margin-left: auto; background: var(--ps-spark-30); color: var(--ps-spark-deep); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; text-transform: uppercase; }
.ps-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ps-mist); }
.ps-row-label { font-size: 16px; font-weight: 500; margin: 0; }
.ps-row-sub { font-size: 13px; color: var(--ps-stone) !important; margin: 0; }
.ps-stepper { display: flex; align-items: center; gap: 12px; }
.ps-step-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ps-mist); background: #fff; color: var(--ps-black); font-size: 20px; font-weight: 700; cursor: pointer; line-height: 1; }
.ps-step-btn:hover { border-color: var(--ps-black); }
.ps-step-btn.plus { background: var(--ps-black); border-color: var(--ps-black); color: #fff; }
.ps-count { font-family: var(--ps-display); font-weight: 800; font-size: 20px; min-width: 20px; text-align: center; }
.ps-seg-wrap { padding: 12px 0; border-bottom: 1px solid var(--ps-mist); }
.ps-seg { display: flex; gap: 4px; background: var(--ps-cream); border: 1px solid var(--ps-mist); border-radius: 12px; padding: 4px; margin-top: 8px; }
.ps-seg button { flex: 1; min-height: 40px; border-radius: 9px; border: 0; background: transparent; font: 600 14px var(--ps-body); color: var(--ps-black); cursor: pointer; }
.ps-seg button[aria-pressed="true"] { background: var(--ps-black); color: #fff; font-weight: 700; }
.ps-toggle { position: relative; width: 52px; height: 30px; border-radius: 999px; border: 0; background: var(--ps-mist); cursor: pointer; flex: none; transition: background .15s; }
.ps-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ps-toggle[aria-checked="true"] { background: var(--ps-success); }
.ps-toggle[aria-checked="true"]::after { left: 25px; }
.ps-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 16px; flex-wrap: wrap; }
.ps-price-label { font-size: 13px; color: var(--ps-stone) !important; margin: 0; }
.ps-price { font-family: var(--ps-display); font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -.04em; margin: 2px 0 0; }
.ps-firm-btn { background: #3FC8D6; color: var(--ps-black); border: 0; border-radius: 12px; min-height: 48px; padding: 0 18px; font: 700 15px var(--ps-body); cursor: pointer; }
.ps-firm-btn:hover { filter: brightness(.94); }
.ps-demo-foot { font-size: 11px; font-weight: 500; color: var(--ps-silver) !important; text-align: center; margin: 14px 0 0; }
.ps-field { display: block; margin-top: 12px; font-size: 14px; font-weight: 500; }
.ps-field input { display: block; width: 100%; height: 48px; margin-top: 6px; padding: 0 12px; border: 1.5px solid var(--ps-mist); border-radius: 10px; font-size: 16px; }
.ps-demo-actions { display: flex; gap: 10px; margin-top: 16px; }
.ps-demo-actions .ps-firm-btn { flex: 1; }
.ps-back { background: transparent; border: 1.5px solid var(--ps-black); border-radius: 12px; min-height: 48px; padding: 0 16px; font: 700 15px var(--ps-body); cursor: pointer; }
.ps-sent { text-align: center; padding: 10px 0; }
.ps-sent-tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ps-success); display: grid; place-items: center; margin: 4px auto 12px; }
.ps-sent-tick svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ps-sent h3 { font-size: 22px; margin-bottom: 8px; }
.ps-sent p { font-size: 15px; color: var(--ps-graphite) !important; }
.ps-linkbtn { background: none; border: 0; text-decoration: underline; font: 500 14px var(--ps-body); cursor: pointer; color: var(--ps-black); margin-top: 8px; }
.ps-summary { font-size: 13px; color: var(--ps-stone) !important; margin: 14px 0 0; }

/* Sections */
.ps-sec { padding: 64px 0; }
.ps-sec h2 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 18px; max-width: 760px; }
.ps-sec p { font-size: 17px; line-height: 1.55; color: var(--ps-graphite); }
.ps-dark.ps-sec p { color: var(--ps-on-dark); }
.ps-white { background: #fff; }
.ps-two { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.ps-steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 28px 0 0; padding: 0; list-style: none; }
.ps-steps li { background: var(--ps-cream); border-radius: 16px; padding: 24px; }
.ps-num { width: 44px; height: 44px; border-radius: 10px; background: var(--ps-black); color: var(--ps-spark); display: grid; place-items: center; font-family: var(--ps-display); font-weight: 800; font-size: 22px; margin-bottom: 16px; }
.ps-steps h3 { font-size: 24px; margin: 0 0 10px; }
.ps-steps p { font-size: 15px; line-height: 1.5; margin: 0; }
.ps-compare { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 32px; }
.ps-compare > div { border-radius: 16px; padding: 24px; }
.ps-without { border: 1.5px solid var(--ps-mist); }
.ps-with { background: var(--ps-black); }
.ps-compare ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.55; }
.ps-compare li + li { margin-top: 8px; }
.ps-without li { color: var(--ps-graphite); }
.ps-with li { color: var(--ps-on-dark); }
.ps-with strong { color: #fff; }

/* Pricing */
.ps-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); max-width: 800px; margin: 32px auto 0; }
.ps-plan { border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.ps-plan.monthly { background: #fff; border: 1.5px solid var(--ps-mist); }
.ps-plan.yearly { background: var(--ps-black); color: #fff; box-shadow: 0 24px 48px rgba(26,26,26,.18); }
.ps-plan h3 { font-size: 20px; margin: 0; }
.ps-plan.yearly h3 { color: #fff; }
.ps-plan-badge { align-self: flex-start; background: var(--ps-spark); color: var(--ps-black); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; }
.ps-plan-price { font-family: var(--ps-display); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -.04em; margin: 4px 0 0; }
.ps-plan-price small { font-family: var(--ps-body); font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--ps-stone); }
.ps-plan.yearly .ps-plan-price small { color: var(--ps-on-dark-muted); }
.ps-plan-price s { font-family: var(--ps-display); font-weight: 500; font-size: 24px; color: #8A8A8A; margin-right: 8px; letter-spacing: -.02em; }
.ps-plan .ps-sub { font-size: 15px; margin: 0; color: var(--ps-stone); }
.ps-plan.yearly .ps-sub { color: var(--ps-on-dark); }
.ps-plan ul { list-style: none; padding: 0; margin: 6px 0 12px; font-size: 15px; line-height: 1.5; }
.ps-plan li + li { margin-top: 6px; }
.ps-plan.yearly li { color: var(--ps-on-dark); }
.ps-plan li::before { content: '✓ '; font-weight: 700; color: var(--ps-success); }
.ps-plan.yearly li::before { color: var(--ps-spark); }
.ps-plan li.hl { color: var(--ps-spark); font-weight: 700; }
.ps-plan .btn { margin-top: auto; min-height: 52px; font-size: 16px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.ps-plan.yearly .btn-ghost { color: #fff; border-color: #4A4A4A; }
.ps-launch { max-width: 800px; margin: 16px auto 0; background: var(--ps-spark-30); border-radius: 16px; padding: 20px 24px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ps-launch img { width: 36px; height: 36px; flex: none; }
.ps-launch-copy { flex: 1 1 280px; font-size: 15px; line-height: 1.5; }
.ps-launch-copy p { margin: 0; font-size: 15px; color: var(--ps-black); }
.ps-spots { text-align: center; }
.ps-spots-n { font-family: var(--ps-display); font-weight: 800; font-size: 40px; line-height: 1; display: block; }
.ps-spots-l { font-size: 13px; font-weight: 500; }
.ps-launch.ended { background: var(--ps-mist); }
.ps-risk { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); max-width: 800px; margin: 28px auto 0; list-style: none; padding: 0; }
.ps-risk li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.ps-risk svg { width: 24px; height: 24px; flex: none; stroke: var(--ps-success); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ps-risk strong { display: block; }
.ps-fine { max-width: 800px; margin: 20px auto 0; font-size: 13px !important; color: var(--ps-stone) !important; text-align: center; }

/* FAQ */
.ps-faq { max-width: 760px; margin: 0 auto; }
.ps-faq details { border-bottom: 1px solid var(--ps-mist); }
.ps-faq details:first-of-type { border-top: 1px solid var(--ps-mist); }
.ps-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 700; min-height: 44px; }
.ps-faq summary::-webkit-details-marker { display: none; }
.ps-faq summary::after { content: '+'; font-size: 24px; color: var(--ps-stone); font-weight: 400; }
.ps-faq details[open] summary::after { content: '−'; }
.ps-faq details p { font-size: 16px; line-height: 1.55; padding-right: 40px; margin: 0 0 18px; }

/* Final CTA */
.ps-final { background: var(--ps-spark); border-radius: 24px; padding: clamp(32px, 5vw, 56px); text-align: center; }
.ps-final h2 { font-size: clamp(32px, 4.4vw, 54px); margin: 0 auto 14px; }
.ps-final p { color: var(--ps-black) !important; }
.ps-final .btn { background: var(--ps-black); color: #fff; border-color: var(--ps-black); min-height: 60px; font-size: 18px; padding: 0 28px; display: inline-flex; align-items: center; text-decoration: none; }
.ps-final .btn:hover { background: var(--ps-charcoal); color: #fff; }
.ps-final .ps-note { font-size: 13px; color: var(--ps-spark-deep) !important; margin: 10px 0 0; }

/* Footer */
.ps-foot { background: var(--ps-black); color: var(--ps-on-dark-muted); padding: 40px 0 28px; font-size: 14px; line-height: 2; }
.ps-foot-grid { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-start; }
.ps-foot p { margin: 0; color: var(--ps-on-dark-muted); }
.ps-foot h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 4px; }
.ps-foot a { color: var(--ps-on-dark-muted); text-decoration: none; }
.ps-foot a:hover { color: #fff; }
.ps-foot ul { list-style: none; padding: 0; margin: 0; }
.ps-foot-bottom { border-top: 1px solid var(--ps-charcoal); margin-top: 28px; padding-top: 16px; font-size: 12px; line-height: 1.6; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.ps-soon { font-size: 11px; background: var(--ps-charcoal); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }

/* Sticky CTA (shown by landing.js after 700px scroll) */
.ps-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(26,26,26,.94); backdrop-filter: blur(8px); padding: 10px 16px; display: flex; align-items: center; justify-content: center; gap: 16px; transform: translateY(110%); transition: transform .2s; }
.ps-sticky.show { transform: none; }
.ps-sticky span { font-size: 14px; font-weight: 500; color: var(--ps-on-dark); }
.ps-sticky .btn { min-height: 48px; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
@media (max-width: 480px) { .ps-sticky span { display: none; } .ps-sticky .btn { flex: 1; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .ps-sticky, .ps-toggle, .ps-toggle::after { transition: none; } }

/* Builder: the logo file input must shrink at 375 px */
.ps .edit-link-box > div { min-width: 0; flex: 1 1 12rem; }
.ps input[type="file"] { max-width: 100%; font-size: 14px; }

/* specificity fixes: .ps-sec p would otherwise shrink these */
.ps-sec .ps-plan-price { font-size: 56px; line-height: 1; color: inherit; }
.ps-sec .ps-plan.monthly .ps-plan-price { color: var(--ps-black); }
.ps-sec .ps-plan.yearly .ps-plan-price { color: #fff; }
.ps-with .ps-eyebrow { color: var(--ps-spark); }
.ps [tabindex="-1"]:focus { box-shadow: none; outline: none; }
