/* Strategic Payment Solutions — site styles.
   Same visual system as the approved SPS Portfolio Manager sign-in page:
   navy #12213A, muted #5A6678, one action blue #3D78C7, Plus Jakarta Sans. */

:root {
  --navy: #12213A;
  --navy-2: #1B2D4B;
  --muted: #5A6678;
  --action: #3D78C7;
  --action-hover: #3368B0;
  --ground: #F5F7FA;
  --line: #E6EBF2;
  --border: #DCE3EC;
  --tint: #EEF2F7;
  --white: #FFFFFF;
  --radius: 16px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--action); }
a:hover { color: var(--action-hover); }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* ── Header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--action); }
.nav a[aria-current="page"] { color: var(--action); }
.nav .signin { color: var(--muted); font-weight: 600; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 76px; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 24px 24px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 20px 30px -24px rgba(18,33,58,0.35); }
.menu-panel a { color: var(--navy); text-decoration: none; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu-panel .btn { margin-top: 12px; border-bottom: 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--action); color: var(--white); }
.btn-primary:hover { background: var(--action-hover); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--tint); color: var(--navy); }
.btn-ghost-light { color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn-ghost { color: var(--navy); border-color: #CFD7E3; background: var(--white); }
.btn-ghost:hover { background: var(--ground); color: var(--navy); }
.btn-sm { height: 42px; padding: 0 16px; font-size: 14px; }

/* ── Sections ────────────────────────────────────────────── */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.on-dark .eyebrow { color: rgba(255,255,255,0.6); }
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 104px; }
.hero-mark { position: absolute; right: -150px; bottom: -120px; width: 560px; opacity: 0.06; pointer-events: none; user-select: none; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 700; letter-spacing: -0.035em; max-width: 820px; margin-top: 18px; }
.hero h1 .dim { color: rgba(255,255,255,0.6); }
.hero .lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: rgba(255,255,255,0.74); max-width: 640px; }
.hero .actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-sm .wrap { padding-top: 76px; padding-bottom: 80px; }
.hero-sm h1 { font-size: clamp(34px, 4.6vw, 52px); }

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.bg-ground { background: var(--ground); }
.bg-navy { background: var(--navy); color: var(--white); }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; margin-top: 12px; }
.section-head h2 .dim { color: var(--muted); }
.bg-navy .section-head h2 .dim { color: rgba(255,255,255,0.6); }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--muted); }
.bg-navy .section-head p { color: rgba(255,255,255,0.72); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 19px; font-weight: 700; margin-top: 18px; }
.card p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.card li { font-size: 15px; color: var(--navy); display: flex; gap: 10px; }
.card li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--action); }
.icon-tile { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.bg-navy .card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); }
.bg-navy .card p { color: rgba(255,255,255,0.72); }
.bg-navy .icon-tile { background: rgba(255,255,255,0.08); color: var(--white); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 10px; border-radius: 999px; border: 1px solid #CFD7E3; color: var(--muted); }

.steps { counter-reset: step; }
.step { position: relative; }
.step-num { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; color: var(--action); }
.bg-navy .step-num { color: #8DB5E6; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split h2 { font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; margin-top: 12px; }
.split p.lead { margin-top: 16px; font-size: 17px; color: var(--muted); }
.bg-navy .split p.lead { color: rgba(255,255,255,0.72); }
.checks { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; font-size: 16px; }
.checks svg { flex: 0 0 20px; margin-top: 3px; color: var(--action); }
.bg-navy .checks svg { color: #8DB5E6; }

/* Screenshot slots: clearly placeholders until real demo-workspace screens exist */
.shot { border-radius: 14px; border: 1px solid var(--border); background: var(--white); box-shadow: 0 30px 60px -36px rgba(18,33,58,0.45); overflow: hidden; }
.shot-bar { height: 34px; background: var(--ground); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: #CFD7E3; }
.shot-body { aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; background: repeating-linear-gradient(135deg, #F7F9FC 0 14px, #F1F4F9 14px 28px); color: var(--muted); font-size: 14px; }
.shot-body strong { color: var(--navy); font-size: 15px; }
.shot img { width: 100%; height: auto; }

.quote { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; font-weight: 600; letter-spacing: -0.015em; }
.quote-by { margin-top: 18px; color: var(--muted); font-size: 15px; }

.cta-band { position: relative; overflow: hidden; background: var(--navy); color: var(--white); text-align: center; }
.cta-band .wrap { position: relative; padding-top: 88px; padding-bottom: 88px; }
.cta-band h2 { font-size: clamp(30px, 3.8vw, 42px); font-weight: 700; }
.cta-band p { margin: 14px auto 0; max-width: 560px; color: rgba(255,255,255,0.72); font-size: 17px; }
.cta-band .actions { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.cta-mark { position: absolute; left: -120px; top: -110px; width: 420px; opacity: 0.05; pointer-events: none; }

.price { display: flex; flex-direction: column; }
.price .amt { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin-top: 14px; }
.price .amt small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price.featured { border: 2px solid var(--navy); }
.price .btn { margin-top: 24px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--muted); max-width: 760px; }

.contact-line { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; font-size: 16px; }
.contact-line a { color: inherit; font-weight: 600; text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }

.embed { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); overflow: hidden; min-height: 680px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: #0D192C; color: rgba(255,255,255,0.72); font-size: 14px; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid img { height: 38px; width: auto; }
.foot-grid h4 { margin: 0 0 14px; color: var(--white); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.foot-grid ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.foot-tag { margin-top: 18px; max-width: 300px; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.55); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav { display: none; }
  .menu { display: block; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-header .wrap { height: 68px; }
  .menu-panel { top: 68px; }
  .brand img { height: 34px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .section { padding: 72px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px; }
  .hero .actions .btn, .cta-band .actions .btn { width: 100%; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-mark { width: 380px; right: -140px; bottom: -90px; }
}

/* Buttons inside nav keep their own colors */
.nav a.btn, .menu-panel a.btn { color: var(--white); }
.nav a.btn:hover, .menu-panel a.btn:hover { color: var(--white); }
.hero .split p.lead { color: rgba(255,255,255,0.74); }
.hero .split h1 { font-size: clamp(34px, 4.2vw, 52px); }
.price h3 + p { min-height: 48px; }
.split h2 .dim { color: var(--muted); }
.bg-navy .split h2 .dim { color: rgba(255,255,255,0.6); }

/* Phone frames (Portfolio Manager page) */
.phones { display: flex; gap: 24px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.phone { width: 280px; max-width: 100%; padding: 10px; border-radius: 42px; background: #0D192C; box-shadow: 0 30px 60px -30px rgba(18,33,58,0.55), inset 0 0 0 2px rgba(255,255,255,0.08); }
.phone video, .phone img { display: block; width: 100%; aspect-ratio: 540 / 1002; object-fit: cover; object-position: top; border-radius: 32px; background: #F5F7FA; }
.phones:has(.phone + .phone) .phone { width: calc(50% - 12px); max-width: 260px; }
@media (max-width: 640px) { .phones { gap: 16px; } .phone { width: 240px; padding: 8px; border-radius: 34px; } .phone video, .phone img { border-radius: 27px; } }
.phone img { aspect-ratio: auto; height: auto; }

/* Screenshot stage: a navy panel behind light screenshots so they don't wash out on white */
.stage { background: var(--navy); border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px -34px rgba(18,33,58,0.6); }
.stage .shot { border-color: rgba(255,255,255,0.12); box-shadow: 0 18px 40px -20px rgba(0,0,0,0.6); }
@media (max-width: 640px) { .stage { padding: 12px; border-radius: 16px; } }

/* Partner logos */
.partners { border-bottom: 1px solid var(--line); }
.logo-row { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.logo-row img { height: 34px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter .2s, opacity .2s; }
.logo-row li:hover img { filter: none; opacity: 1; }
.logo-slot, .img-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 13px; border: 1.5px dashed #CFD7E3; border-radius: 12px; background: var(--ground); text-align: center; padding: 10px; }
.logo-slot { width: 140px; height: 50px; }
.img-slot small { font-size: 11px; opacity: 0.8; }

/* Square page */
.eq-card { display: flex; flex-direction: column; }
.eq-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 14px; border-radius: 12px; background: #fff; margin-bottom: 4px; }
.img-slot.eq-img { min-height: 180px; }
.sq-hero-band { padding-top: 0; margin-top: -40px; position: relative; }
.sq-hero-img { width: 100%; max-height: 420px; object-fit: contain; border-radius: 18px; }
.img-slot.sq-hero-img { min-height: 260px; background: #fff; }
.sq-badge { margin-top: 22px; }
.sq-badge-img { height: 44px; width: auto; }
.img-slot.sq-badge-img { width: 220px; height: 54px; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); }

/* Technology partners (tabbed) */
.pt { display: grid; grid-template-columns: 200px 1fr; gap: 24px; max-width: 900px; margin: 28px auto 0; background: var(--ground); border: 1px solid #E3E8EF; border-radius: 16px; padding: 22px; }
.pt-tabs { display: flex; flex-direction: column; gap: 8px; }
.pt-tab { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 999px; border: 1px solid #D1D9E4; background: #fff; color: var(--ink, #0d1f35); cursor: pointer; transition: border-color .15s, background .15s; }
.pt-tab:hover { border-color: #4A8FD4; }
.pt-tab.active { background: #0d1f35; border-color: #0d1f35; color: #fff; }
.pt-panel { display: none; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: start; }
.pt-panel.active { display: grid; }
.pt-cell { background: #fff; border: 1px solid #E3E8EF; border-radius: 12px; height: 84px; display: flex; align-items: center; justify-content: center; padding: 14px 18px; transition: border-color .15s, box-shadow .15s; }
.pt-cell:hover { border-color: #4A8FD4; box-shadow: 0 4px 14px rgba(74,143,212,.12); }
.pt-cell img { max-height: 50px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.logo-name { font-weight: 700; font-size: 15px; color: #33415A; text-align: center; }
@media (max-width: 720px) {
  .pt { grid-template-columns: 1fr; padding: 14px; }
  .pt-tabs { flex-direction: row; flex-wrap: wrap; }
  .pt-panel { grid-template-columns: repeat(2, 1fr); }
}

/* About: at-a-glance card */
.facts-card { padding: 26px; }
.facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 18px; }
.fact { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.fact svg { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--ground); color: #1E4E8C; }
.fact strong { display: block; font-size: 15px; color: var(--ink, #0d1f35); }
.fact span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.facts .fact::before { content: none; display: none; }
.fact svg { box-sizing: border-box; }
.facts .fact { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }

/* ── Motion ───────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .eyebrow, .hero h1, .hero .lead, .hero .actions, .hero .sq-badge, .hero .sq-cd-link { animation: heroUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { animation-delay: .08s; } .hero .lead { animation-delay: .16s; } .hero .sq-badge { animation-delay: .22s; } .hero .actions { animation-delay: .26s; } .hero .sq-cd-link { animation-delay: .32s; }
.hero .split > :last-child { animation: heroIn 1s .2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.hero-mark { animation: markDrift 18s ease-in-out infinite alternate; }
@keyframes markDrift { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(-18px,12px) rotate(-3deg); } }
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.grid > .card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(18,33,58,.35); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero .eyebrow, .hero h1, .hero .lead, .hero .actions, .hero .sq-badge, .hero .sq-cd-link, .hero .split > :last-child, .hero-mark { animation: none !important; }
  .grid > .card:hover { transform: none; }
}

/* ── Light / dark dashboard wipe ─────────────────── */
.theme-swap { position: relative; }
.ts-view { position: relative; line-height: 0; }
.ts-view img { display: block; width: 100%; height: auto; }
.ts-dark { position: absolute; inset: 0; clip-path: inset(0 0 0 100%); animation: tsClip 11s cubic-bezier(.65,0,.35,1) infinite; }
.ts-line { position: absolute; top: 0; bottom: 0; left: 100%; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 16px 2px rgba(74,143,212,.85); opacity: 0; animation: tsLine 11s cubic-bezier(.65,0,.35,1) infinite; }
.ts-pill { position: absolute; right: 14px; bottom: 14px; height: 30px; min-width: 104px; border-radius: 999px; background: rgba(18,33,58,.82); color: #fff; font-size: 12.5px; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.ts-pill span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ts-l { animation: tsA 11s infinite; } .ts-d { animation: tsB 11s infinite; opacity: 0; }
@keyframes tsClip { 0%, 30% { clip-path: inset(0 0 0 100%); } 42%, 76% { clip-path: inset(0 0 0 0); } 88%, 100% { clip-path: inset(0 0 0 100%); } }
@keyframes tsLine { 0%, 29% { left: 100%; opacity: 0; } 31% { left: 100%; opacity: 1; } 41% { left: 0%; opacity: 1; } 43%, 76% { left: 0%; opacity: 0; } 77% { left: 0%; opacity: 1; } 87% { left: 100%; opacity: 1; } 89%, 100% { left: 100%; opacity: 0; } }
@keyframes tsA { 0%, 34% { opacity: 1; } 38%, 80% { opacity: 0; } 84%, 100% { opacity: 1; } }
@keyframes tsB { 0%, 34% { opacity: 0; } 38%, 80% { opacity: 1; } 84%, 100% { opacity: 0; } }
/* Reduced motion: a slow crossfade instead of the wipe */
@keyframes tsFade { 0%, 32% { opacity: 0; } 40%, 76% { opacity: 1; } 84%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ts-dark { clip-path: none; animation: tsFade 11s ease infinite; }
  .ts-line { display: none; }
}
/* Clicking the pill takes over from the loop */
.ts-pill { border: 0; cursor: pointer; font-family: inherit; padding: 0; }
.ts-pill:focus-visible { outline: 2px solid #9CC3EE; outline-offset: 2px; }
.theme-swap.ts-manual .ts-dark, .theme-swap.ts-manual .ts-line, .theme-swap.ts-manual .ts-l, .theme-swap.ts-manual .ts-d { animation: none; }
.theme-swap.ts-manual .ts-line { opacity: 0; }
.theme-swap.ts-manual .ts-dark { transition: clip-path .7s cubic-bezier(.65,0,.35,1), opacity .5s ease; clip-path: inset(0 0 0 100%); opacity: 1; }
.theme-swap.ts-manual.ts-is-dark .ts-dark { clip-path: inset(0 0 0 0); }
.theme-swap.ts-manual .ts-l { opacity: 1; } .theme-swap.ts-manual .ts-d { opacity: 0; }
.theme-swap.ts-manual.ts-is-dark .ts-l { opacity: 0; } .theme-swap.ts-manual.ts-is-dark .ts-d { opacity: 1; }

/* ── Square ──────────────────────────────────────── */
.sq-hero .sq-badge { margin-top: 24px; }
.sq-hero .sq-badge-img { height: auto; width: 100%; max-width: 360px; display: block; border-radius: 14px; }
.sq-cd-link { margin-top: 18px; font-size: 15px; }
.sq-cd-link a { color: #fff; opacity: .85; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }
.sq-cd-link a:hover { opacity: 1; }
.sq-cd-link svg { width: 16px; height: 16px; }
.sq-hero-art { display: flex; justify-content: center; }
.sq-hero-art .sq-lineup { width: 100%; max-width: 620px; height: auto; background: radial-gradient(ellipse at 50% 55%, rgba(255,255,255,.95), rgba(255,255,255,.75) 55%, rgba(255,255,255,0) 72%); border-radius: 24px; }
.sq-band .sq-band-badge { width: 100%; max-width: 340px; height: auto; display: block; border-radius: 14px; box-shadow: 0 10px 30px -18px rgba(18,33,58,.35); }
.sq-band .sq-lineup { width: 100%; height: auto; display: block; }
.sq-plan h3 { margin-top: 16px; }
.img-slot.sq-lineup { min-height: 280px; background: #fff; }
.img-slot.sq-band-badge, .img-slot.sq-badge-img { height: 90px; }

/* Health section on navy */
.health .card .checks li, .health .card li { color: rgba(255,255,255,.86); }
.card .checks li::before, .checks li::before { content: none; display: none; }
.sq-hero-art .sq-lineup { background: linear-gradient(180deg, #FFFFFF 0%, #EAF0F7 100%); padding: 28px 30px 22px; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.sq-band .sq-lineup { background: linear-gradient(180deg, #FFFFFF 0%, #EEF2F7 100%); padding: 26px 28px 20px; border-radius: 22px; border: 1px solid #E3E8EF; box-shadow: 0 24px 50px -34px rgba(18,33,58,.45); }
@media (max-width: 640px) { .ts-pill { height: 24px; min-width: 86px; font-size: 11px; right: 8px; bottom: 8px; } }

/* ── Logo marquee (home) ─────────────────────────── */
.marquee-band { padding: 34px 0 30px; border-bottom: 1px solid var(--border, #E3E8EF); background: #fff; }
.marquee-label { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 56px; padding-right: 56px; flex-shrink: 0; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 34px; width: auto; max-width: 150px; object-fit: contain; display: block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 640px) { .marquee-track { gap: 36px; padding-right: 36px; } .marquee-track img { height: 26px; max-width: 110px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 22px; padding: 0 16px; width: 100%; }
  .marquee-track[aria-hidden] { display: none; }
}

/* ── AI import demo (Portfolio Manager) ──────────── */
.import-steps { display: grid; gap: 14px; }
.import-steps .card h3 { margin-top: 8px; }
.ai-demo { position: relative; background: var(--navy); border-radius: 20px; padding: 26px; color: #fff; box-shadow: 0 30px 60px -34px rgba(18,33,58,.6); overflow: hidden; }
.ai-file { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 14px; animation: aiFile 9s ease infinite; }
.ai-file strong { display: block; font-size: 14px; } .ai-file small { color: rgba(255,255,255,.6); font-size: 12px; }
.ai-file-ic { width: 36px; height: 36px; border-radius: 9px; background: rgba(74,143,212,.25); display: grid; place-items: center; color: #9CC3EE; flex: 0 0 36px; }
.ai-badge { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: linear-gradient(90deg, #4A8FD4, #7B6FE0); color: #fff; }
.ai-scan { height: 3px; margin: 18px 2px 14px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.ai-scan span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4A8FD4, #9C8CF0); animation: aiScan 9s ease infinite; }
.ai-map { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ai-map li { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: center; gap: 8px; font-size: 13.5px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.05); opacity: 0; animation: aiRow 9s ease infinite; }
.ai-map li span { color: rgba(255,255,255,.7); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.ai-map li i { color: #9CC3EE; font-style: normal; text-align: center; }
.ai-map li b { font-weight: 600; color: #fff; }
.ai-map li:nth-child(2) { animation-delay: .25s; } .ai-map li:nth-child(3) { animation-delay: .5s; } .ai-map li:nth-child(4) { animation-delay: .75s; } .ai-map li:nth-child(5) { animation-delay: 1s; }
.ai-done { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #7FD6A8; opacity: 0; animation: aiDone 9s ease infinite; }
.ai-done svg { width: 18px; height: 18px; }
@keyframes aiFile { 0% { opacity: 0; transform: translateY(-10px); } 6%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes aiScan { 0%, 8% { width: 0; } 30%, 92% { width: 100%; } 100% { width: 100%; opacity: 0; } }
@keyframes aiRow { 0%, 30% { opacity: 0; transform: translateX(-8px); } 36%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes aiDone { 0%, 52% { opacity: 0; } 58%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ai-file, .ai-scan span, .ai-map li, .ai-done { animation: none; opacity: 1; width: auto; } .ai-scan span { width: 100%; } }
.sq-help { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; border-radius: 16px; background: #fff; border: 1px dashed #C9D4E3; }
.sq-help strong { display: block; font-size: 16px; color: var(--ink, #0d1f35); }
.sq-help span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; max-width: 560px; }
.sq-help-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Mobile polish ───────────────────────────────── */
.split-about { grid-template-columns: minmax(0,1.15fr) minmax(0,0.85fr); }
.split-health { grid-template-columns: minmax(0,1.35fr) minmax(0,0.65fr); }
@media (max-width: 980px) {
  .split-about, .split-health { grid-template-columns: minmax(0,1fr); }
  .embed-first { order: -1; }
  .pt { grid-template-columns: minmax(0,1fr); }
  .pt-tabs { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 2px 4px 6px; }
  .pt-tabs::-webkit-scrollbar { display: none; }
  .pt-tab { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 720px) {
  .pt { padding: 14px; gap: 14px; }
  .pt-panel { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .pt-cell { height: 72px; padding: 10px 12px; min-width: 0; }
  .pt-cell img { max-width: 100%; max-height: 38px; }
  .logo-name { font-size: 13.5px; }
}
@media (max-width: 640px) {
  .hero h1, .hero-sm h1, .hero .split h1 { font-size: clamp(32px, 8.6vw, 40px); }
  .section-head h2, .split h2 { font-size: clamp(26px, 7vw, 32px); }
  .ai-demo { padding: 16px; border-radius: 16px; }
  .ai-file { flex-wrap: wrap; padding: 10px 12px; }
  .ai-file strong { font-size: 13px; word-break: break-all; }
  .ai-badge { margin-left: 0; }
  .ai-map li { grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr); padding: 8px 10px; font-size: 13px; gap: 6px; }
  .ai-map li span { font-size: 11.5px; overflow-wrap: anywhere; }
  .ai-done { font-size: 13px; align-items: flex-start; }
  .facts-card { padding: 20px; }
  .sq-help { padding: 18px; }
  .sq-help-actions { width: 100%; }
  .sq-help-actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .sq-plan .btn, .cedp-card .btn { width: 100%; justify-content: center; text-align: center; }
  .sq-band .sq-band-badge { max-width: 100%; }
  .price .btn { width: 100%; }
  .embed { min-height: 640px; }
}
.menu-panel { box-shadow: 0 18px 30px -18px rgba(18,33,58,.35); border-bottom: 1px solid #E3E8EF; }
/* Partner tabs on phones: all six visible as a tidy grid, like the desktop list */
@media (max-width: 980px) {
  .pt-tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; overflow: visible; margin: 0; padding: 0; }
  .pt-tab { white-space: normal; padding: 9px 6px; font-size: 13px; line-height: 1.2; }
}
@media (max-width: 980px) { .pt-tabs { grid-auto-rows: 1fr; } .pt-tab { border-radius: 12px; display: flex; align-items: center; justify-content: center; } }
.pt-cell img[alt="Wix"] { max-height: 30px; }
