/* Public page shell (2026-10-21, "can you make the features design as foundation all throughout our public page?
   including the hero section?"). The look of features.html — dark navy hero with drifting colour glows, a dotted grid,
   the white-pill top bar, the kicker pill, the big headline with a gradient line, pill buttons, handwritten sticky
   notes, a module marquee, the dark closing band and the near-black footer — as one shared file.
   Used by index.php and login.php. features.html, guide.php and pricing.php carry the same look in their own inline
   styles (.hero/.topbar/.toplinks/.end/.foot and .pr-*), so a change to the look goes in all of them.
   Own ps- class names (no clash with Tailwind or css/public-motion.css), plain CSS (no Tailwind rebuild), its own
   keyframes (login.php doesn't load public-motion.css). Like every public page: an animated element keeps its FINISHED
   look in its normal style and only sets its start inside @keyframes, so with reduced motion the page simply shows. */

.ps-hero { position: relative; overflow: hidden; background: #0b1530; color: #fff; text-align: center; padding: 0 16px 72px; }
.ps-aur { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: ps-drift 16s ease-in-out infinite alternate; }
.ps-aur.a1 { width: 520px; height: 520px; background: #2563eb; left: -160px; top: -200px; }
.ps-aur.a2 { width: 460px; height: 460px; background: #10b981; right: -160px; top: 40px; animation-duration: 19s; animation-delay: -6s; opacity: .4; }
.ps-aur.a3 { width: 420px; height: 420px; background: #c026d3; left: 30%; bottom: -260px; animation-duration: 14s; animation-delay: -3s; opacity: .35; }
.ps-dots { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); }
/* the cursor light of css/public-motion.css (.mx-spot), recoloured for the dark hero */
.ps-hero .mx-spot { background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 35%), rgba(96,165,250,.2), rgba(52,211,153,.07) 40%, transparent 65%); }

/* ---------- top bar: brand left, page links right (Home · Features · Pricing · Guide · Log In, minus the page itself) */
.ps-top { position: relative; z-index: 3; max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.ps-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.ps-brand i { width: 34px; height: 34px; border-radius: 10px; background: #2563eb; display: flex; align-items: center; justify-content: center; }
.ps-brand i svg { width: 18px; height: 18px; }
.ps-brand span:last-child { color: #60a5fa; }
.ps-links { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.ps-links a { text-decoration: none; padding: 7px 11px; border-radius: 999px; color: rgba(255,255,255,.8); transition: background .15s, color .15s; }
.ps-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.ps-links a.login { background: #fff; color: #1e3a8a; }
/* On a phone every link stays (2026-10-24, "fix the tabs on index.html" — Pricing and Guide used to hide): the brand
   gets its own line and the links sit centred on the next one. */
@media (max-width: 560px) {
  .ps-top { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .ps-links { width: 100%; justify-content: center; flex-wrap: wrap; gap: 2px; font-size: 12.5px; }
  .ps-links a { padding: 6px 10px; }
}

/* ---------- hero copy */
.ps-in { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding-top: 52px; }
.ps-kick { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #93c5fd; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; }
.ps-kick i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: ps-ping 2s infinite; }
.ps-h1 { margin: 22px 0 0; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-size: clamp(36px, 7.4vw, 76px); }
.ps-grad { background: linear-gradient(90deg, #60a5fa, #34d399, #e879f9, #60a5fa); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ps-shine 7s linear infinite; }
/* the rotating line: js/public-motion.js turns #mxRot (.mx-rot, css/public-motion.css); here it's one centred line in
   the light gradient of features.html's hero */
.ps-h1 .mx-rot { display: grid; justify-items: center; margin-top: .06em; font-size: clamp(22px, 6.2vw, 64px); line-height: 1.2; }
.ps-h1 .mx-rot > span { background-image: linear-gradient(90deg, #60a5fa, #34d399, #e879f9); }
.ps-p { max-width: 640px; margin: 22px auto 0; font-size: clamp(15px, 2vw, 18px); line-height: 1.65; color: rgba(255,255,255,.75); }
.ps-p b { color: #fff; }
.ps-cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.ps-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; padding: 13px 22px; border-radius: 999px; transition: background .15s, translate .15s; }
.ps-btn:hover { translate: 0 -1px; }
.ps-btn:active { scale: .97; }
.ps-btn svg { width: 16px; height: 16px; }
.ps-btn.pri { background: #fff; color: #1e3a8a; box-shadow: 0 14px 30px -12px rgba(255,255,255,.5); }
.ps-btn.pri::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(90deg, transparent, rgba(37,99,235,.18), transparent); transform: skewX(-20deg); animation: ps-sweep 3.4s ease-in-out 2s infinite; }
.ps-btn.ghost { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.ps-btn.ghost:hover { background: rgba(255,255,255,.16); }

/* "Worth it nga ba mag Avail? YES!" + See Pricing above the other buttons (2026-10-24, index.php hero) */
.ps-worth { margin: 30px 0 0; font-size: clamp(18px, 2.6vw, 24px); font-weight: 800; letter-spacing: -.01em; color: #fff; }
.ps-yes { display: inline-block; margin-left: 6px; padding: 2px 12px 3px; border-radius: 10px; background: #facc15; color: #0b1530; font-weight: 900; letter-spacing: .02em; rotate: -3deg; box-shadow: 0 10px 24px -10px rgba(250,204,21,.8); animation: ps-yes 2.8s ease-in-out 1.2s infinite; }
.ps-cta.first { margin-top: 16px; }
.ps-cta.first + .ps-cta { margin-top: 12px; }
.ps-btn.go { font-size: 15px; padding: 14px 28px; color: #fff; background: linear-gradient(90deg, #10b981, #2563eb); box-shadow: 0 16px 34px -14px rgba(16,185,129,.8); }
.ps-btn.go::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: ps-sweep 3.4s ease-in-out 1.5s infinite; }
@keyframes ps-yes { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
/* "Want to look at existing formats?" under the hero buttons (2026-10-24) -> formats.html */
.ps-ask { margin: 22px 0 0; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.78); }
.ps-ask a { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; font-weight: 800; color: #fde68a; text-decoration: underline; text-underline-offset: 3px; }
.ps-ask a:hover { color: #fff; }
.ps-ask svg { width: 15px; height: 15px; }

/* ---------- handwritten sticky notes beside the hero copy (wide screens only) */
.ps-notes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ps-note { position: absolute; width: 190px; padding: 12px 14px 14px; background: #fef3c7; color: #78350f; border-radius: 6px; box-shadow: 0 18px 30px -16px rgba(0,0,0,.6); font-family: 'Caveat', cursive; font-size: 23px; line-height: 1.05; text-align: left; rotate: var(--rot, -4deg); }
.ps-note > div { animation: ps-bob 5s ease-in-out infinite; animation-delay: var(--bd, 0s); }
.ps-note.blue { background: #dbeafe; color: #1e3a8a; } .ps-note.pink { background: #fce7f3; color: #831843; } .ps-note.green { background: #dcfce7; color: #14532d; }
.ps-note .ok { position: absolute; right: -10px; top: -10px; width: 30px; height: 30px; border-radius: 50%; background: #10b981; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px -4px rgba(16,185,129,.8); }
.ps-note .ok svg { width: 16px; height: 16px; }
@media (max-width: 1100px) { .ps-notes { display: none; } }

/* ---------- module marquee along the bottom of the hero (links to each scene in features.html) */
.ps-marq { position: relative; z-index: 2; margin-top: 54px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ps-marq-in { display: flex; width: max-content; animation: ps-marq 46s linear infinite; }
.ps-marq:hover .ps-marq-in { animation-play-state: paused; }
.ps-marq a { flex: none; display: inline-flex; align-items: center; font-size: 14px; font-weight: 800; color: rgba(255,255,255,.55); padding: 0 18px; white-space: nowrap; text-decoration: none; transition: color .15s; }
.ps-marq a:hover { color: #fff; }
.ps-marq a::after { content: "✦"; margin-left: 36px; color: rgba(255,255,255,.25); }

/* ---------- closing band + footer */
.ps-end { position: relative; overflow: hidden; background: #0b1530; color: #fff; text-align: center; padding: 84px 16px; }
.ps-end h2 { position: relative; z-index: 2; margin: 0; font-size: clamp(30px, 5.6vw, 56px); line-height: 1.06; letter-spacing: -.04em; font-weight: 800; }
.ps-end p { position: relative; z-index: 2; max-width: 560px; margin: 16px auto 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.65; }
.ps-end .ps-cta { position: relative; z-index: 2; }
.ps-hand { font-family: 'Caveat', cursive; }
.ps-end .ps-hand { position: relative; z-index: 2; display: block; margin-top: 22px; font-size: 26px; line-height: 1; color: #bfdbfe; }
.ps-foot { background: #020617; color: #94a3b8; }
.ps-foot > div { max-width: 1160px; margin: 0 auto; padding: 22px 16px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; font-size: 12px; }
.ps-foot b { font-size: 15px; color: #fff; } .ps-foot b span { color: #60a5fa; }
.ps-foot nav { display: flex; flex-wrap: wrap; gap: 14px; }
.ps-foot nav a { text-decoration: none; font-weight: 700; color: inherit; } .ps-foot nav a:hover { color: #fff; }

@keyframes ps-drift { 50% { translate: 40px 24px; scale: 1.1; } 100% { translate: -24px 40px; scale: .95; } }
@keyframes ps-ping { 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@keyframes ps-shine { to { background-position: 300% 0; } }
@keyframes ps-sweep { 0% { left: -60%; } 40%, 100% { left: 130%; } }
@keyframes ps-bob { 50% { translate: 0 -6px; } }
@keyframes ps-marq { to { translate: -50% 0; } }
@media (prefers-reduced-motion: reduce) {
  .ps-aur, .ps-kick i, .ps-grad, .ps-btn.pri::after, .ps-btn.go::after, .ps-yes, .ps-note > div, .ps-marq-in { animation: none !important; }
}
