/* =====================================================================
   psofts design system
   Loaded after bootstrap.min.css (a v5.0 build with an orange primary),
   the shared template style.css and the old themes/psofts/css/style.css,
   so it re-brands Bootstrap and owns every marketing page, the navbar,
   footer, tool page headers and the lead-capture pieces.
   ===================================================================== */

:root {
  --ps-ink: #0f172a;
  --ps-text: #334155;
  --ps-muted: #64748b;
  --ps-line: #e2e8f0;
  --ps-soft: #f8fafc;
  --ps-tint: #f5f3ff;
  --ps-primary: #5b50e6;
  --ps-primary-dark: #4338ca;
  --ps-violet: #7c3aed;
  --ps-grad: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  --ps-grad-text: linear-gradient(90deg, #6366f1, #a855f7 55%, #ec4899);
  --ps-dark: #0b1026;
  --ps-radius: 16px;
  --ps-shadow-sm: 0 1px 2px rgb(15 23 42 / .05), 0 1px 3px rgb(15 23 42 / .06);
  --ps-shadow: 0 10px 30px -12px rgb(15 23 42 / .18);
  --ps-shadow-lg: 0 30px 60px -20px rgb(15 23 42 / .3);
  --ps-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ps-display: "Jost", "Inter", system-ui, sans-serif;
}

/* ---------- base ---------- */
body { font-family: var(--ps-font); color: var(--ps-text); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--ps-ink); font-family: var(--ps-display); letter-spacing: -.01em; }
a { color: var(--ps-primary); }
a:hover { color: var(--ps-primary-dark); }
::selection { background: #ddd6fe; color: var(--ps-ink); }
:focus-visible { outline: 3px solid rgb(99 102 241 / .45); outline-offset: 2px; }

/* Bootstrap's primary is orange in the shared build; psofts is violet. */
.btn-primary, .btn.btn-primary { background: var(--ps-primary); border-color: var(--ps-primary); color: #fff; }
.btn-primary:hover, .btn.btn-primary:hover, .btn-primary:focus { background: var(--ps-primary-dark); border-color: var(--ps-primary-dark); color: #fff; }
.btn-outline-primary { color: var(--ps-primary); border-color: var(--ps-primary); }
.btn-outline-primary:hover { background: var(--ps-primary); border-color: var(--ps-primary); color: #fff; }
.text-primary { color: var(--ps-primary) !important; }
.bg-primary { background-color: var(--ps-primary) !important; }
.form-control:focus, .form-select:focus { border-color: #a5b4fc; box-shadow: 0 0 0 .2rem rgb(99 102 241 / .18); }
.spinner-border.text-primary { color: var(--ps-primary) !important; }
.back-to-top { background: var(--ps-ink) !important; border-color: var(--ps-ink) !important; border-radius: 12px !important; }

/* ---------- layout helpers ---------- */
.ps-section { padding: 96px 0; }
.ps-section-sm { padding: 64px 0; }
.ps-soft { background: var(--ps-soft); }
.ps-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ps-primary); margin-bottom: 12px; }
.ps-h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.15; margin-bottom: 14px; }
.ps-lead-text { font-size: 1.08rem; color: var(--ps-muted); max-width: 620px; }
.ps-head { text-align: center; margin-bottom: 52px; }
.ps-head .ps-lead-text { margin: 0 auto; }
.ps-grad-text { background: var(--ps-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.ps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: .98rem; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s; white-space: nowrap; cursor: pointer; }
.ps-btn-lg { padding: 15px 28px; font-size: 1.05rem; border-radius: 14px; }
.ps-btn-sm { padding: 8px 14px; font-size: .88rem; border-radius: 10px; }
.ps-btn-primary { background: var(--ps-grad); color: #fff; box-shadow: 0 10px 24px -8px rgb(91 80 230 / .6); }
.ps-btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgb(91 80 230 / .7); }
.ps-btn-ghost { background: #fff; color: var(--ps-ink); border-color: var(--ps-line); box-shadow: var(--ps-shadow-sm); }
.ps-btn-ghost:hover { color: var(--ps-ink); border-color: #cbd5e1; transform: translateY(-1px); }
.ps-btn-dark { background: var(--ps-ink); color: #fff; }
.ps-btn-dark:hover { background: #1e293b; color: #fff; }
.ps-btn-light { background: #fff; color: var(--ps-ink); }
.ps-btn-light:hover { color: var(--ps-primary); transform: translateY(-1px); }
.ps-btn-outline-light { background: rgb(255 255 255 / .06); color: #fff; border-color: rgb(255 255 255 / .3); }
.ps-btn-outline-light:hover { background: rgb(255 255 255 / .14); color: #fff; }
.ps-link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ps-link-arrow i { transition: transform .15s; font-size: .8em; }
.ps-link-arrow:hover i { transform: translateX(3px); }

/* ---------- chips / badges ---------- */
.ps-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600; background: #fff; color: var(--ps-text); border: 1px solid var(--ps-line); box-shadow: var(--ps-shadow-sm); }
.ps-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / .2); }
.ps-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }
.ps-badge-free { background: #dcfce7; color: #15803d; }
.ps-badge-price { background: var(--ps-tint); color: var(--ps-primary-dark); }
.ps-badge-muted { background: #f1f5f9; color: var(--ps-muted); }

/* ---------- announcement bar ---------- */
.ps-topbar { background: var(--ps-dark); color: rgb(255 255 255 / .82); font-size: .86rem; padding: 8px 0; }
.ps-topbar .container { flex-wrap: wrap; text-align: center; }
.ps-topbar strong { color: #fff; font-weight: 600; }
.ps-topbar-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgb(74 222 128 / .25); }
.ps-topbar-link { color: #c4b5fd; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ps-topbar-link:hover { color: #fff; }
.ps-topbar-link i { font-size: .75em; margin-left: 3px; transition: transform .15s; }
.ps-topbar-link:hover i { transform: translateX(3px); }

/* ---------- navbar ---------- */
.ps-nav { background: rgb(255 255 255 / .9); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid rgb(15 23 42 / .06); padding: 12px 0; z-index: 1030; }
.ps-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ps-brand-badge { width: 36px; height: 36px; border-radius: 10px; background: var(--ps-grad); color: #fff; font-weight: 800; font-family: var(--ps-display); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px -4px rgb(91 80 230 / .6); }
.ps-brand-text { font-family: var(--ps-display); font-weight: 700; font-size: 1.35rem; color: var(--ps-ink); letter-spacing: -.02em; }
.ps-nav .nav-link { color: var(--ps-text) !important; font-weight: 500; font-size: .95rem; padding: 8px 14px !important; border-radius: 10px; transition: background .15s, color .15s; }
.ps-nav .nav-link:hover, .ps-nav .nav-link:focus { color: var(--ps-ink) !important; background: #f1f5f9; }
.ps-nav .nav-link.active { color: var(--ps-primary) !important; background: var(--ps-tint); }
.ps-nav .dropdown-toggle::after { border: 0; content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .75em; vertical-align: .05em; margin-left: 6px; transition: transform .2s; }
.ps-nav .dropdown.show .dropdown-toggle::after { transform: rotate(180deg); }
.ps-nav-actions { display: flex; align-items: center; gap: 8px; }
.ps-nav-login { color: var(--ps-ink); font-weight: 600; font-size: .95rem; text-decoration: none; padding: 8px 14px; border-radius: 10px; white-space: nowrap; }
.ps-nav-login:hover { background: #f1f5f9; color: var(--ps-ink); }
.ps-mega { border: 1px solid var(--ps-line); border-radius: 18px; box-shadow: var(--ps-shadow-lg); padding: 16px; min-width: 640px; margin-top: 10px !important; }
.ps-mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ps-mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ps-ink); }
.ps-mega-item:hover { background: var(--ps-soft); color: var(--ps-ink); }
.ps-mega-item .ps-tool-icon { width: 36px; height: 36px; border-radius: 10px; font-size: .95rem; }
.ps-mega-item strong { display: block; font-size: .93rem; font-weight: 600; }
.ps-mega-item span { display: block; font-size: .8rem; color: var(--ps-muted); line-height: 1.35; }
.ps-mega-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--ps-line); margin-top: 10px; padding: 12px 12px 2px; font-size: .88rem; }
.ps-account .dropdown-menu { border: 1px solid var(--ps-line); border-radius: 14px; box-shadow: var(--ps-shadow); padding: 8px; }
.ps-account .dropdown-item { border-radius: 8px; padding: 8px 12px; font-weight: 500; }
.ps-account-toggle { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ps-line); background: #fff; border-radius: 12px; padding: 5px 12px 5px 5px; font-weight: 600; color: var(--ps-ink); }
.ps-avatar { width: 28px; height: 28px; border-radius: 8px; background: var(--ps-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
@media (max-width: 991.98px) {
  .ps-nav .navbar-collapse { padding: 14px 0 6px; }
  .ps-nav .navbar-nav { gap: 2px; }
  .ps-mega { min-width: 0; box-shadow: none; border: 0; padding: 4px 0; margin-top: 0 !important; }
  .ps-mega-grid { grid-template-columns: 1fr; }
  .ps-nav-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ps-line); }
  .ps-nav-actions > * { flex: 1; justify-content: center; text-align: center; }
}

/* ---------- tool icon tiles ---------- */
.ps-tool-icon { --c: #6366f1; flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.15rem; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c)); box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--c) 70%, transparent); }

/* ---------- hero (home) ---------- */
.ps-hero { position: relative; overflow: hidden; padding: 84px 0 96px; background:
  radial-gradient(900px 480px at 85% -10%, rgb(168 85 247 / .16), transparent 60%),
  radial-gradient(700px 420px at -10% 10%, rgb(99 102 241 / .14), transparent 60%),
  linear-gradient(180deg, #fbfaff 0%, #fff 100%); }
.ps-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgb(15 23 42 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(15 23 42 / .04) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); }
.ps-hero > .container { position: relative; z-index: 1; }
.ps-hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 700; line-height: 1.06; margin: 22px 0 20px; letter-spacing: -.03em; }
.ps-hero .ps-lead-text { font-size: 1.15rem; margin-bottom: 30px; }
.ps-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.ps-hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ps-muted); font-size: .9rem; }
.ps-hero-proof i { color: #22c55e; margin-right: 6px; }

/* collage of mini tool mock-ups */
.ps-collage { position: relative; height: 470px; }
.ps-mock { position: absolute; background: #fff; border: 1px solid var(--ps-line); border-radius: 18px; box-shadow: var(--ps-shadow-lg); overflow: hidden; }
.ps-mock-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--ps-line); font-size: .8rem; font-weight: 600; color: var(--ps-ink); }
.ps-mock-head .ps-tool-icon { width: 26px; height: 26px; border-radius: 8px; font-size: .7rem; }
.ps-mock-invoice { width: 330px; top: 10px; left: 0; transform: rotate(-3deg); }
.ps-mock-invoice .inv { padding: 14px 16px; font-size: .75rem; }
.ps-mock-invoice .inv-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--ps-line); color: var(--ps-text); }
.ps-mock-invoice .inv-total { display: flex; justify-content: space-between; padding-top: 10px; font-weight: 700; color: var(--ps-ink); font-size: .9rem; }
.ps-mock-invoice .inv-paid { display: inline-block; margin-top: 10px; background: #dcfce7; color: #15803d; font-weight: 700; font-size: .7rem; padding: 3px 10px; border-radius: 999px; }
.ps-mock-id { width: 250px; top: 150px; right: 10px; transform: rotate(4deg); }
.ps-mock-id .idc-top { height: 64px; background: linear-gradient(135deg, #0ea5e9, #6366f1); position: relative; }
.ps-mock-id .idc-photo { width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); position: absolute; left: 50%; bottom: -32px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; color: #6366f1; font-size: 1.4rem; }
.ps-mock-id .idc-body { padding: 40px 16px 16px; text-align: center; }
.ps-mock-id .idc-name { font-weight: 700; color: var(--ps-ink); font-size: .95rem; }
.ps-mock-id .idc-role { color: var(--ps-muted); font-size: .75rem; margin-bottom: 10px; }
.ps-mock-id .idc-bar { height: 22px; border-radius: 4px; background: repeating-linear-gradient(90deg, #0f172a 0 2px, transparent 2px 4px, #0f172a 4px 5px, transparent 5px 8px); opacity: .8; }
.ps-mock-qr { width: 190px; bottom: 6px; left: 60px; transform: rotate(2deg); padding-bottom: 12px; }
.ps-mock-qr svg { display: block; width: 120px; height: 120px; margin: 14px auto 8px; }
.ps-mock-qr .qr-cap { text-align: center; font-size: .72rem; color: var(--ps-muted); }
.ps-float-chip { position: absolute; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ps-line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--ps-shadow); font-size: .82rem; font-weight: 600; color: var(--ps-ink); }
.ps-float-chip i { color: #22c55e; }
.ps-float-chip.c1 { top: 0; right: 30px; }
.ps-float-chip.c2 { bottom: 70px; right: 0; }
@media (max-width: 991.98px) { .ps-hero { padding: 56px 0 64px; text-align: center; } .ps-hero .ps-lead-text { margin-left: auto; margin-right: auto; } .ps-hero-ctas, .ps-hero-proof { justify-content: center; } }

/* ---------- stat strip ---------- */
.ps-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ps-line); border-radius: 20px; background: #fff; box-shadow: var(--ps-shadow); }
.ps-stat { padding: 26px 20px; text-align: center; border-left: 1px solid var(--ps-line); }
.ps-stat:first-child { border-left: 0; }
.ps-stat strong { display: block; font-family: var(--ps-display); font-size: 1.9rem; font-weight: 700; color: var(--ps-ink); line-height: 1.1; }
.ps-stat span { font-size: .85rem; color: var(--ps-muted); }
@media (max-width: 767.98px) { .ps-stats { grid-template-columns: 1fr 1fr; } .ps-stat:nth-child(3) { border-left: 0; } .ps-stat:nth-child(n+3) { border-top: 1px solid var(--ps-line); } }

/* ---------- tool cards ---------- */
.ps-tool-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px; background: #fff; border: 1px solid var(--ps-line); border-radius: var(--ps-radius); transition: transform .2s, box-shadow .2s, border-color .2s; }
.ps-tool-card:hover { transform: translateY(-4px); box-shadow: var(--ps-shadow); border-color: #c7d2fe; }
.ps-tool-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.ps-tool-card h2, .ps-tool-card h3 { font-family: var(--ps-font); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin: 0 0 6px; }
.ps-tool-card h2 a, .ps-tool-card h3 a { color: var(--ps-ink); text-decoration: none; }
.ps-tool-card h2 a::after, .ps-tool-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ps-tool-card p { font-size: .9rem; color: var(--ps-muted); margin: 0 0 16px; flex: 1; }
.ps-tool-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--ps-muted); }
.ps-tool-card-foot .open { color: var(--ps-primary); font-weight: 600; }
.ps-tool-card-foot .open i { transition: transform .15s; font-size: .8em; margin-left: 4px; }
.ps-tool-card:hover .ps-tool-card-foot .open i { transform: translateX(3px); }
.ps-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.ps-filter button { border: 1px solid var(--ps-line); background: #fff; color: var(--ps-text); font-weight: 600; font-size: .88rem; padding: 8px 16px; border-radius: 999px; transition: all .15s; }
.ps-filter button:hover { border-color: #c7d2fe; color: var(--ps-ink); }
.ps-filter button.active { background: var(--ps-ink); border-color: var(--ps-ink); color: #fff; }
.ps-search { position: relative; max-width: 560px; margin: 0 auto 22px; }
.ps-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ps-muted); }
.ps-search input { width: 100%; padding: 15px 18px 15px 46px; border: 1px solid var(--ps-line); border-radius: 14px; font-size: 1rem; box-shadow: var(--ps-shadow-sm); }
.ps-search input:focus { outline: none; border-color: #a5b4fc; box-shadow: 0 0 0 4px rgb(99 102 241 / .15); }
.ps-no-results { text-align: center; color: var(--ps-muted); padding: 40px 0; }

/* ---------- feature rows ---------- */
.ps-feature-row + .ps-feature-row { margin-top: 96px; }
.ps-feature-row h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; margin: 6px 0 14px; }
.ps-checks { list-style: none; padding: 0; margin: 0 0 24px; }
.ps-checks li { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; color: var(--ps-text); }
.ps-checks li i { color: #22c55e; }
.ps-visual { position: relative; border-radius: 24px; padding: 34px; background: linear-gradient(135deg, #eef2ff, #faf5ff); border: 1px solid #e0e7ff; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.ps-visual .ps-mock { position: relative; transform: none; inset: auto; }

/* ---------- steps ---------- */
.ps-step { position: relative; height: 100%; padding: 28px; border-radius: var(--ps-radius); background: #fff; border: 1px solid var(--ps-line); }
.ps-step-num { width: 40px; height: 40px; border-radius: 12px; background: var(--ps-tint); color: var(--ps-primary); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-family: var(--ps-display); }
.ps-step h3 { font-family: var(--ps-font); font-size: 1.08rem; font-weight: 600; }
.ps-step p { color: var(--ps-muted); margin: 0; font-size: .94rem; }

/* ---------- audience ---------- */
.ps-card { height: 100%; padding: 28px; border-radius: var(--ps-radius); background: #fff; border: 1px solid var(--ps-line); transition: box-shadow .2s, transform .2s; }
.ps-card:hover { box-shadow: var(--ps-shadow); transform: translateY(-3px); }
.ps-card-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--ps-tint); color: var(--ps-primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 18px; }
.ps-card h3 { font-family: var(--ps-font); font-size: 1.1rem; font-weight: 600; }
.ps-card p { color: var(--ps-muted); font-size: .94rem; }
.ps-card .ps-links a { font-weight: 600; font-size: .9rem; margin-right: 14px; text-decoration: none; white-space: nowrap; }

/* ---------- pricing ---------- */
.ps-plan { position: relative; height: 100%; display: flex; flex-direction: column; padding: 32px; border-radius: 22px; background: #fff; border: 1px solid var(--ps-line); }
.ps-plan.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--ps-grad) border-box; box-shadow: 0 30px 60px -24px rgb(91 80 230 / .45); }
.ps-plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--ps-grad); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.ps-plan-name { font-family: var(--ps-display); font-size: 1.3rem; font-weight: 700; color: var(--ps-ink); }
.ps-plan-tag { color: var(--ps-muted); font-size: .92rem; margin-bottom: 20px; }
.ps-plan-price { font-family: var(--ps-display); font-size: 2.7rem; font-weight: 700; color: var(--ps-ink); line-height: 1; margin-bottom: 24px; }
.ps-plan-price small { font-size: .95rem; font-weight: 500; color: var(--ps-muted); font-family: var(--ps-font); }
.ps-plan-price.custom { font-size: 2rem; }
.ps-plan .ps-checks { flex: 1; }
.ps-plan .ps-btn { width: 100%; }
.ps-note { text-align: center; color: var(--ps-muted); margin-top: 28px; }

/* ---------- FAQ ---------- */
.ps-faq { max-width: 800px; margin: 0 auto; }
.ps-faq details { background: #fff; border: 1px solid var(--ps-line); border-radius: 14px; margin-bottom: 12px; transition: box-shadow .15s, border-color .15s; }
.ps-faq details[open] { border-color: #c7d2fe; box-shadow: var(--ps-shadow); }
.ps-faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ps-ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ps-faq summary::-webkit-details-marker { display: none; }
.ps-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ps-primary); transition: transform .2s; flex-shrink: 0; }
.ps-faq details[open] summary::after { transform: rotate(45deg); }
.ps-faq details > div, .ps-faq details > p { padding: 0 22px 18px; margin: 0; color: var(--ps-muted); }

/* ---------- dark CTA band ---------- */
.ps-cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 72px); text-align: center; color: #fff; background: radial-gradient(600px 300px at 20% 0%, rgb(124 58 237 / .55), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgb(99 102 241 / .5), transparent 60%), var(--ps-dark); }
.ps-cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 12px; }
.ps-cta-band p { color: rgb(255 255 255 / .75); max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }

/* ---------- page hero (inner pages) ---------- */
.ps-page-hero { padding: 72px 0 56px; text-align: center; background: radial-gradient(800px 360px at 50% -20%, rgb(124 58 237 / .12), transparent 70%), linear-gradient(180deg, #fbfaff, #fff); border-bottom: 1px solid var(--ps-line); }
.ps-page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -.025em; margin: 10px 0 14px; }
.ps-page-hero .ps-lead-text { margin: 0 auto; }
.ps-crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 6px; font-size: .85rem; color: var(--ps-muted); }
.ps-crumbs a { color: var(--ps-muted); text-decoration: none; }
.ps-crumbs a:hover { color: var(--ps-primary); }
.ps-crumbs li + li::before { content: "/"; margin-right: 6px; color: #cbd5e1; }

/* ---------- tool page header ---------- */
.ps-tool-hero { padding: 34px 0 30px; margin-bottom: 30px; background: linear-gradient(180deg, #fbfaff, #fff); border-bottom: 1px solid var(--ps-line); }
.ps-tool-hero .ps-crumbs { justify-content: flex-start; margin-bottom: 18px; }
.ps-tool-hero-main { display: flex; gap: 18px; align-items: center; }
.ps-tool-hero .ps-tool-icon { width: 64px; height: 64px; border-radius: 18px; font-size: 1.6rem; }
.ps-tool-hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; margin: 0 0 4px; letter-spacing: -.02em; }
.ps-tool-hero p { color: var(--ps-muted); margin: 0; font-size: 1.02rem; }
.ps-tool-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 575.98px) { .ps-tool-hero-main { align-items: flex-start; } .ps-tool-hero .ps-tool-icon { width: 52px; height: 52px; font-size: 1.3rem; } }

/* ---------- about ---------- */
.ps-values .ps-card-icon { font-size: 1.15rem; }
.ps-story { font-size: 1.08rem; line-height: 1.8; color: var(--ps-text); }
.ps-story p + p { margin-top: 1rem; }

/* ---------- contact ---------- */
.ps-contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--ps-line); border-radius: var(--ps-radius); background: #fff; margin-bottom: 14px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.ps-contact-card:hover { border-color: #c7d2fe; box-shadow: var(--ps-shadow); color: inherit; }
.ps-contact-card h2 { font-family: var(--ps-font); font-size: .95rem; font-weight: 600; margin: 0 0 2px; }
.ps-contact-card p { margin: 0; color: var(--ps-muted); font-size: .93rem; }
.ps-form-card { padding: clamp(24px, 4vw, 40px); border-radius: 22px; background: #fff; border: 1px solid var(--ps-line); box-shadow: var(--ps-shadow); }
.ps-form-card .form-label { font-weight: 600; font-size: .88rem; color: var(--ps-ink); }
.ps-form-card .form-control { border-radius: 12px; padding: .7rem .9rem; border-color: #d8dee9; }

/* ---------- auth (sign up / log in) ---------- */
.ps-auth { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1.05fr 1fr; }
.ps-auth-side { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px); color: #fff; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(600px 360px at 0% 0%, rgb(124 58 237 / .6), transparent 60%), radial-gradient(500px 360px at 100% 100%, rgb(99 102 241 / .55), transparent 60%), var(--ps-dark); }
.ps-auth-side h1 { color: #fff; font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 700; line-height: 1.1; margin-bottom: 16px; }
.ps-auth-side p { color: rgb(255 255 255 / .75); font-size: 1.08rem; max-width: 460px; }
.ps-auth-side ul { list-style: none; padding: 0; margin: 26px 0 34px; }
.ps-auth-side li { display: flex; gap: 12px; align-items: baseline; margin-bottom: 12px; color: rgb(255 255 255 / .9); }
.ps-auth-side li i { color: #4ade80; }
.ps-auth-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.ps-auth-tools .ps-tool-icon { width: 40px; height: 40px; border-radius: 12px; font-size: .95rem; }
.ps-auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 64px) 20px; background: var(--ps-soft); }
.ps-auth-box { width: 100%; max-width: 420px; }
.ps-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #eef2f7; border-radius: 14px; margin-bottom: 26px; }
.ps-auth-tab { border: 0; background: transparent; padding: 10px; border-radius: 10px; font-weight: 600; color: var(--ps-muted); }
.ps-auth-tab.active { background: #fff; color: var(--ps-ink); box-shadow: var(--ps-shadow-sm); }
.ps-auth-form { display: none; }
.ps-auth-form.active { display: block; animation: psFade .2s ease; }
@keyframes psFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ps-field { margin-bottom: 16px; }
.ps-field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ps-ink); margin-bottom: 6px; }
.ps-field-wrap { position: relative; }
.ps-field-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: .9rem; }
.ps-field-wrap input { width: 100%; padding: 12px 44px 12px 40px; border: 1px solid #d8dee9; border-radius: 12px; font-size: .98rem; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ps-field-wrap input:focus { outline: none; border-color: #a5b4fc; box-shadow: 0 0 0 4px rgb(99 102 241 / .15); }
.ps-pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #94a3b8; padding: 6px 8px; }
.ps-pw-toggle:hover { color: var(--ps-ink); }
.ps-auth-error { display: none; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: .9rem; margin-bottom: 16px; }
.ps-auth-note { font-size: .83rem; color: var(--ps-muted); text-align: center; margin-top: 18px; }
@media (max-width: 991.98px) { .ps-auth { grid-template-columns: 1fr; } .ps-auth-side { padding: 40px 24px; } .ps-auth-side ul, .ps-auth-tools { display: none; } }

/* ---------- Online Test Maker page (otp-*) ---------- */
.otp-qtype-example { background: var(--ps-soft); border: 1px solid var(--ps-line); border-radius: 12px; padding: 14px; font-size: .88rem; margin-top: 14px; }
.otp-qtype-example .q { font-weight: 600; color: var(--ps-ink); margin-bottom: 8px; }
.otp-qtype-example .opt { color: var(--ps-muted); padding: 3px 0; }
.otp-qtype-example .opt.correct { color: #15803d; font-weight: 600; }

/* ---------- "Talk to us" section + pop-up (partials/lead.html) ---------- */
.ps-lead-card { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(24px, 4vw, 56px); color: #fff; background: radial-gradient(600px 320px at 0% 0%, rgb(124 58 237 / .55), transparent 60%), radial-gradient(500px 320px at 100% 100%, rgb(99 102 241 / .45), transparent 60%), var(--ps-dark); }
.ps-lead-card > .row { position: relative; }
.ps-lead-kicker { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #c4b5fd; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); padding: 5px 12px; border-radius: 999px; }
.ps-lead-title { color: #fff; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; margin: 16px 0 12px; }
.ps-lead-sub { color: rgb(255 255 255 / .75); margin-bottom: 20px; }
.ps-lead-points { list-style: none; padding: 0; }
.ps-lead-points li { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; color: rgb(255 255 255 / .9); }
.ps-lead-points i { color: #4ade80; }
.ps-lead-cta { background: #fff; color: var(--ps-ink); font-weight: 600; padding: 12px 22px; border-radius: 12px; text-decoration: none; transition: transform .15s; }
.ps-lead-cta:hover { color: var(--ps-primary); transform: translateY(-1px); }
.ps-lead-wa { color: #86efac; font-weight: 600; text-decoration: none; }
.ps-lead-wa:hover { color: #bbf7d0; text-decoration: underline; }
.ps-lead-wa i { font-size: 1.2em; }
.ps-lead-form-card { background: #fff; color: var(--ps-ink); border-radius: 20px; padding: clamp(18px, 3vw, 30px); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5); }
.lead-form { position: relative; }
.lead-form .form-label { font-size: .84rem; font-weight: 600; color: var(--ps-ink); margin-bottom: 5px; }
.lead-form .form-control, .lead-form .form-select { border-radius: 12px; padding: .65rem .85rem; border-color: #d8dee9; }
.lead-form .input-group-text { border-radius: 12px 0 0 12px; background: var(--ps-soft); border-color: #d8dee9; color: var(--ps-muted); font-weight: 600; }
.lead-form .input-group .form-control { border-radius: 0 12px 12px 0; }
.lead-form .lead-submit { background: var(--ps-grad); color: #fff; border: 0; border-radius: 12px; font-weight: 600; font-size: 1rem; box-shadow: 0 10px 24px -8px rgb(91 80 230 / .6); }
.lead-form .lead-submit:hover, .lead-form .lead-submit:focus { color: #fff; filter: brightness(1.06); }
.lead-form .lead-note { color: var(--ps-muted); }
.lead-form.was-validated .form-control:invalid, .lead-form.was-validated .form-select:invalid { border-color: #dc2626; }
.lead-form.is-done > .row { display: none; }
.lead-success { text-align: center; padding: 14px 4px; }
.lead-success > i { font-size: 2.6rem; color: #16a34a; }
.lead-success p { color: var(--ps-muted); }
.lead-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
/* the old style.css styles a generic .modal/.modal-content; restore Bootstrap's pop-up */
.ps-lead-modal { background: rgb(11 16 38 / .55); }
.ps-lead-modal .modal-content { max-width: none; width: auto; border: 0; border-radius: 22px; padding: 10px 8px; }
.ps-lead-modal .ps-lead-kicker { color: var(--ps-primary-dark); background: var(--ps-tint); border-color: #ddd6fe; }

/* ---------- floating WhatsApp (bottom-left: the AI assistant owns bottom-right) ---------- */
.wa-float { position: fixed; left: 18px; bottom: 18px; z-index: 1040; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px; border-radius: 999px; background: #25d366; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 12px 28px -8px rgb(37 211 102 / .7); transition: transform .2s; }
.wa-float i { font-size: 1.5rem; line-height: 1; }
.wa-float:hover { color: #fff; transform: translateY(-2px); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: #25d366; animation: ps-wa-pulse 2.4s ease-out infinite; }
@keyframes ps-wa-pulse { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.3); opacity: 0; } }
.back-to-top { right: 24px !important; bottom: 92px !important; }

/* ---------- mobile action bar ---------- */
.ps-mobile-bar { display: none; }
@media (max-width: 767.98px) {
  .ps-mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); backdrop-filter: blur(10px); box-shadow: 0 -8px 24px rgb(15 23 42 / .1); }
  .ps-mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 12px; font-weight: 600; text-decoration: none; }
  .ps-mobile-wa { background: #25d366; color: #fff; }
  .ps-mobile-signup { background: var(--ps-grad); color: #fff; }
  .ps-mobile-bar a:hover { color: #fff; }
  body { padding-bottom: 66px; }
  .wa-float { display: none; }
  #psAiLauncher { bottom: 78px !important; }
  #psAiPanel { bottom: 150px !important; }
  .back-to-top { bottom: 146px !important; right: 16px !important; }
  .ps-section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } * { scroll-behavior: auto !important; } }
@media print { .wa-float, .ps-mobile-bar, .ps-topbar, .ps-nav, .ps-footer, .ps-lead { display: none !important; } }

/* ---------- sign-up gate on tool pages (js/module-gate.js) ---------- */
.ps-gate { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgb(11 16 38 / .45); backdrop-filter: blur(4px); }
.ps-gate-card { background: #fff; border-radius: 24px; max-width: 440px; width: 100%; padding: 32px 28px; text-align: center; box-shadow: var(--ps-shadow-lg); }
.ps-gate-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--ps-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.ps-gate-card h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.ps-gate-card p { color: var(--ps-muted); margin-bottom: 18px; }
.ps-gate-card ul { text-align: left; margin: 0 auto 22px; max-width: 300px; padding: 0; list-style: none; }
.ps-gate-card li { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; color: var(--ps-text); font-size: .94rem; }
.ps-gate-card li i { color: #16a34a; }
.ps-gate-primary { display: block; background: var(--ps-grad); color: #fff; font-weight: 600; padding: 13px; border-radius: 12px; text-decoration: none; }
.ps-gate-primary:hover { color: #fff; filter: brightness(1.06); }
.ps-gate-secondary { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: none; }
.ps-gate-secondary:hover { text-decoration: underline; }
body.ps-gated { overflow: hidden; }

/* ---------- blog ---------- */
.ps-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.ps-cat { padding: 7px 16px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--ps-text); background: #fff; border: 1px solid var(--ps-line); text-decoration: none; }
.ps-cat:hover { border-color: #c7d2fe; color: var(--ps-ink); }
.ps-cat.active { background: var(--ps-ink); color: #fff; border-color: var(--ps-ink); }
.ps-cat .count { font-size: .72rem; margin-left: 5px; opacity: .7; }
.ps-post { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--ps-line); border-radius: 20px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.ps-post:hover { transform: translateY(-4px); box-shadow: var(--ps-shadow); }
.ps-post-cover { aspect-ratio: 16 / 9; background: var(--ps-grad); display: flex; align-items: flex-end; padding: 14px; position: relative; }
.ps-post-cover.c1 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.ps-post-cover.c2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.ps-post-cover.c3 { background: linear-gradient(135deg, #10b981, #0f766e); }
.ps-post-cover.c4 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.ps-post-cover.c5 { background: linear-gradient(135deg, #0b1026, #6366f1); }
.ps-post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps-post-cover span { position: relative; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: rgb(0 0 0 / .25); backdrop-filter: blur(4px); padding: 4px 10px; border-radius: 999px; }
.ps-post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ps-post-meta { font-size: .8rem; color: var(--ps-muted); }
.ps-post h2, .ps-post h3 { font-family: var(--ps-font); font-size: 1.1rem; font-weight: 600; line-height: 1.4; margin: 8px 0; }
.ps-post h2 a, .ps-post h3 a { color: var(--ps-ink); text-decoration: none; }
.ps-post h2 a::after, .ps-post h3 a::after { content: ""; position: absolute; inset: 0; }
.ps-post p { color: var(--ps-muted); font-size: .92rem; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ps-post .more { margin-top: auto; color: var(--ps-primary); font-weight: 600; font-size: .9rem; }
.ps-pagination .page-link { border-radius: 10px !important; margin: 0 3px; min-width: 42px; text-align: center; color: var(--ps-ink); }
.ps-pagination .page-item.active .page-link { background: var(--ps-ink); border-color: var(--ps-ink); color: #fff; }
.ps-empty { text-align: center; padding: 70px 20px; border: 1px dashed #cbd5e1; border-radius: 20px; color: var(--ps-muted); }
.ps-article { max-width: 740px; margin: 0 auto; font-size: 1.08rem; line-height: 1.8; color: var(--ps-text); }
.ps-article h2 { font-size: 1.6rem; font-weight: 700; margin: 2.2rem 0 .8rem; }
.ps-article h3 { font-size: 1.25rem; font-weight: 700; margin: 1.6rem 0 .6rem; }
.ps-article img { max-width: 100%; height: auto; border-radius: 14px; }
.ps-article blockquote { border-left: 4px solid var(--ps-primary); background: var(--ps-tint); padding: 14px 18px; border-radius: 0 12px 12px 0; }
.ps-article table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; }
.ps-article th, .ps-article td { border: 1px solid var(--ps-line); padding: 8px 12px; }
.ps-share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--ps-line); border-bottom: 1px solid var(--ps-line); padding: 16px 0; }
.ps-share a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ps-line); display: inline-flex; align-items: center; justify-content: center; color: var(--ps-ink); text-decoration: none; }
.ps-share a:hover { background: var(--ps-ink); color: #fff; border-color: var(--ps-ink); }

/* ---------- footer ---------- */
.ps-footer { background: var(--ps-dark); color: rgb(255 255 255 / .65); padding: 72px 0 28px; margin-top: 0; text-align: left; }
.ps-footer .ps-brand-text { color: #fff; }
.ps-footer h2 { font-family: var(--ps-font); color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.ps-footer ul { list-style: none; padding: 0; margin: 0; }
.ps-footer li { margin-bottom: 10px; }
.ps-footer a { color: rgb(255 255 255 / .65); text-decoration: none; font-size: .93rem; transition: color .15s; }
.ps-footer a:hover { color: #fff; }
.ps-footer-about { font-size: .93rem; line-height: 1.7; max-width: 340px; margin: 18px 0 22px; }
.ps-footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }
