/*
Theme Name: PAM-PASS
Theme URI: https://veloxise.com/
Author: Veloxise Solutions
Description: Website theme for PAM-PASS, the self-hosted password manager. Vault-steel design with brass accents. Works with the PAM-PASS Portal plugin (pricing, trials, customer account, console).
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pampass
Tags: one-column, custom-menu, featured-images, accessibility-ready
*/

/* Fonts: IBM Plex (SIL Open Font License, see assets/fonts/OFL-IBM-Plex.txt). Served from this theme, no external requests. */
@font-face { font-family: "Plex Cond"; src: url(assets/fonts/IBMPlexSansCondensed-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url(assets/fonts/IBMPlexSansCondensed-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url(assets/fonts/IBMPlexSansCondensed-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex"; src: url(assets/fonts/IBMPlexSans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url(assets/fonts/IBMPlexSans-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url(assets/fonts/IBMPlexSans-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(assets/fonts/IBMPlexMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(assets/fonts/IBMPlexMono-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --night: #0C1420; --steel: #182433; --steel-2: #223144; --line: #2C3D52; --brushed: #8A9AAE; --frost: #DCE4EE;
  --brass: #C8A355; --brass-deep: #9C7B35; --paper: #EEF1F5; --ink: #142030; --ink-muted: #56657A; --rule: #CCD5E0;
  --mint: #4FD1A5; --alert: #E5735C;
  --radius-s: 6px; --radius-m: 12px; --radius-l: 22px; --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--frost); font: 400 17px/1.6 "Plex", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap.narrow { max-width: 860px; }
h1, h2, h3 { font-family: "Plex Cond", "Plex", sans-serif; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.03; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: 20px; color: var(--brushed); max-width: 34em; }
.mono { font-family: "Plex Mono", ui-monospace, monospace; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

/* Buttons (brass only for the primary action) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-s); font: 600 16px/1.2 "Plex", sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-brass { background: linear-gradient(180deg, #D8B66A, var(--brass) 55%, var(--brass-deep)); color: #1A1407; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px -10px rgba(200,163,85,.7); }
.btn-brass:hover { filter: brightness(1.05); }
.btn-ghost { border-color: var(--line); color: var(--frost); background: transparent; }
.btn-ghost:hover { border-color: var(--brushed); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-outline-ink { border-color: var(--rule); color: var(--ink); background: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* Header */
.top { position: relative; z-index: 20; border-bottom: 1px solid rgba(44,61,82,.6); background: var(--night); }
.top .wrap { display: flex; align-items: center; height: 76px; gap: 36px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand b { font: 700 22px/1 "Plex Cond", sans-serif; letter-spacing: .01em; display: block; }
.brand small { display: block; font: 400 12px/1.2 "Plex", sans-serif; color: var(--brushed); margin-top: 3px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--brushed); }
.nav a { text-decoration: none; }
.nav a:hover, .nav .current-menu-item > a, .nav a[aria-current] { color: var(--frost); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top .right a.plain { text-decoration: none; color: var(--brushed); }
.top .right a.plain:hover { color: var(--frost); }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-s); background: transparent; padding: 12px 10px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--frost); border-radius: 2px; }
.mobile-nav { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background:
  radial-gradient(900px 520px at 78% 30%, rgba(200,163,85,.13), transparent 60%),
  radial-gradient(700px 500px at 10% 0%, rgba(79,209,165,.06), transparent 60%), var(--night); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: 24px; }
.hero .actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero .fine { margin-top: 22px; font-size: 14px; color: var(--brushed); }
.hero .fine span { color: var(--frost); }

/* Vault illustration: the one orchestrated motion on the site */
.vault-stage { position: relative; max-width: 520px; justify-self: end; width: 100%; }
.vault-stage svg { width: 100%; height: auto; overflow: visible; }
.dial { transform-origin: 260px 260px; animation: pp-dial 2.4s cubic-bezier(.6,0,.2,1) .4s 1 both; }
.bolt { animation: pp-bolt .7s ease-in-out 2.7s 1 both; }
.cipher-in { animation: pp-cipher 1.6s ease-out 3.1s 1 both; }
.tag-cipher { animation: pp-cipher 1.2s ease-out 3.3s 1 both; }
@keyframes pp-dial { 0% { transform: rotate(0); } 45% { transform: rotate(-200deg); } 75% { transform: rotate(80deg); } 100% { transform: rotate(-30deg); } }
@keyframes pp-bolt { to { transform: translateX(-14px); } }
@keyframes pp-cipher { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dial, .bolt, .cipher-in, .tag-cipher { animation: none; } }
.tag { position: absolute; background: rgba(24,36,51,.92); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 14px; font-size: 13px; backdrop-filter: blur(6px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.8); }
.tag .k { color: var(--brushed); font-size: 12px; }
.tag .v { font-family: "Plex Mono", monospace; color: var(--frost); }
.tag .v.enc { color: var(--mint); }
.tag-plain { left: -6%; top: 16%; }
.tag-cipher { right: -4%; bottom: 13%; max-width: 250px; }

/* Facts strip */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0F1926; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font: 600 19px/1.3 "Plex Cond", sans-serif; color: var(--frost); }
.fact span { font-size: 14px; color: var(--brushed); }

/* Section rhythm */
.sec { padding: 112px 0; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head p { margin-top: 18px; font-size: 19px; color: var(--brushed); }
.paper { background: var(--paper); color: var(--ink); }
.paper .sec-head p, .paper .muted { color: var(--ink-muted); }

/* Ledger */
.ledger { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: stretch; }
.sheet { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 28px; box-shadow: 0 30px 60px -40px rgba(20,32,48,.45); }
.sheet h3 { font-size: 18px; margin-bottom: 4px; }
.sheet .who { font-size: 14px; color: var(--ink-muted); margin-bottom: 20px; }
.sheet dl { margin: 0; }
.row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid #E3E8EF; font-size: 15px; }
.row dt { color: var(--ink-muted); }
.row dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.sheet-server { background: var(--ink); color: var(--frost); border-color: #22344A; }
.sheet-server .who { color: var(--brushed); }
.sheet-server .row { border-color: #24364C; }
.sheet-server .row dt { color: var(--brushed); }
.sheet-server .row dd { font-family: "Plex Mono", monospace; font-size: 13px; color: var(--mint); word-break: break-all; font-weight: 400; }
.lock-arrow { display: grid; place-items: center; }
.ledger-note { margin-top: 28px; font-size: 15px; color: var(--ink-muted); max-width: 70ch; }

/* Deposit-box wall */
.wall { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(150px, auto); gap: 14px; }
.box { position: relative; background: linear-gradient(180deg, var(--steel-2), var(--steel)); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px; overflow: hidden; }
.box::after { content: ""; position: absolute; right: 18px; top: 18px; width: 30px; height: 10px; border-radius: 5px; background: linear-gradient(180deg, #3A4C63, #2A3A4E); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.box h3 { margin-bottom: 10px; padding-right: 40px; }
.box p { color: var(--brushed); font-size: 15px; }
.box.w3 { grid-column: span 3; } .box.w2 { grid-column: span 2; } .box.w4 { grid-column: span 4; } .box.h2 { grid-row: span 2; }
.box .art { margin-top: 22px; }

/* Matrix */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; border-collapse: collapse; font-size: 16px; }
.matrix th, .matrix td { padding: 16px 18px; border-bottom: 1px solid var(--rule); text-align: left; }
.matrix th { font: 600 15px/1.3 "Plex", sans-serif; color: var(--ink-muted); }
.matrix td:first-child { font-weight: 500; width: 34%; }
.yes { color: #157A59; font-weight: 600; } .no { color: #A34430; font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 30px 26px 0 0; }
.step .n { font: 700 46px/1 "Plex Cond", sans-serif; color: var(--brass); }
.step h3 { margin: 14px 0 8px; }
.step p { color: var(--brushed); font-size: 15px; }
.cmd { margin-top: 44px; background: #08101A; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 26px; font: 15px/1.9 "Plex Mono", monospace; color: var(--frost); overflow-x: auto; }
.cmd .c { color: var(--brushed); }

/* Pricing cards */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { position: relative; background: #fff; color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 44px 30px 30px; }
.plan::before { content: ""; position: absolute; top: 16px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--rule); }
.plan h3 { font-size: 26px; margin-top: 10px; }
.plan .for { color: var(--ink-muted); font-size: 15px; margin-top: 6px; min-height: 48px; }
.price { margin: 22px 0 4px; font: 700 48px/1 "Plex Cond", sans-serif; letter-spacing: -.02em; }
.price small { font: 400 16px "Plex", sans-serif; color: var(--ink-muted); letter-spacing: 0; }
.per { font-size: 14px; color: var(--ink-muted); min-height: 42px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; font-size: 15px; }
.plan li { padding: 9px 0 9px 28px; border-top: 1px solid #E6EBF1; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2px solid #157A59; border-bottom: 2px solid #157A59; transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.plan.featured { background: var(--ink); color: var(--frost); border-color: var(--ink); box-shadow: 0 40px 80px -40px rgba(20,32,48,.8); transform: translateY(-12px); }
.plan.featured .for, .plan.featured .per, .plan.featured .price small { color: var(--brushed); }
.plan.featured li { border-color: #24364C; }
.plan.featured li::before { border-color: var(--mint); }
.plan.featured::before { background: var(--night); border-color: var(--brass); }
.ribbon { position: absolute; top: 12px; right: 18px; font-size: 13px; color: var(--brass); font-weight: 600; }
.price-note { margin-top: 26px; font-size: 14px; color: var(--ink-muted); }
.pp-pricing .cur-toggle { margin-bottom: 36px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.q { padding: 22px 0; border-top: 1px solid var(--rule); }
.q h3 { font-size: 19px; margin-bottom: 8px; }
.q p { color: var(--ink-muted); font-size: 16px; }

/* Closing + footer */
.close { padding: 104px 0; background: radial-gradient(800px 400px at 50% 120%, rgba(200,163,85,.18), transparent 70%), var(--night); text-align: center; }
.close h2 { max-width: 24ch; margin: 0 auto; }
.close p { margin: 18px auto 0; color: var(--brushed); max-width: 40em; }
.close .actions { justify-content: center; display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--brushed); background: var(--night); }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 12px; color: var(--frost); font: 600 15px "Plex", sans-serif; }
.foot a { display: block; text-decoration: none; padding: 4px 0; }
.foot a:hover { color: var(--frost); }
.foot a.il { display: inline; }
.foot a.brand { display: flex; color: var(--frost); }
.foot .about { margin-top: 16px; max-width: 30ch; }
.foot .base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Inner pages */
.page-hero { padding: 64px 0 56px; background: radial-gradient(700px 380px at 85% 0%, rgba(200,163,85,.12), transparent 60%), var(--night); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 58px); max-width: 20ch; }
.page-hero .lede { margin-top: 18px; }
.page-body { padding: 64px 0 96px; }
.prose { max-width: 760px; font-size: 17px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 30px; margin-top: 48px; }
.prose h3 { font-size: 22px; margin-top: 32px; }
.prose a { color: var(--ink); text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose code { font-family: "Plex Mono", monospace; font-size: .9em; background: #E3E8EF; padding: 1px 6px; border-radius: 4px; }
.prose pre { background: var(--ink); color: var(--frost); padding: 18px 20px; border-radius: var(--radius-m); overflow-x: auto; font: 14px/1.7 "Plex Mono", monospace; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose .pp-public-form, .prose .pp-two > div > .pp-public-form { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 30px; box-shadow: 0 30px 60px -45px rgba(20,32,48,.45); }
.prose .pp-public-form .btn { margin-top: 4px; }
.prose .pp-downloads + h2 { margin-top: 56px; }
.page-login .prose { max-width: 520px; }
.page-contact .prose, .page-start-trial .prose, .page-register .prose { max-width: 780px; }
.page-buy .prose { max-width: 1000px; }

/* Product + security templates */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature-row:first-child { border-top: 0; padding-top: 0; }
.feature-row.flip .feature-text { order: 2; }
.feature-row h2 { font-size: clamp(28px, 3vw, 38px); }
.feature-row p { color: var(--brushed); margin-top: 14px; }
.feature-row ul { margin: 18px 0 0; padding: 0; list-style: none; }
.feature-row li { padding: 8px 0 8px 26px; position: relative; color: var(--frost); }
.feature-row li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--brass); }
.paper .feature-row { border-color: var(--rule); }
.paper .feature-row p { color: var(--ink-muted); }
.paper .feature-row li { color: var(--ink); }
.art-panel { background: linear-gradient(180deg, var(--steel-2), var(--steel)); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: flow; }
.flow > div { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 22px; position: relative; }
.flow > div::before { counter-increment: flow; content: counter(flow); font: 700 34px/1 "Plex Cond", sans-serif; color: var(--brass); display: block; margin-bottom: 12px; }
.flow h3 { font-size: 19px; margin-bottom: 8px; }
.flow p { font-size: 15px; color: var(--ink-muted); }
.controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.controls > div { border-top: 2px solid var(--brass); padding-top: 16px; }
.controls h3 { font-size: 19px; margin-bottom: 6px; }
.controls p { color: var(--brushed); font-size: 15px; }
.honest { background: #0F1926; border: 1px solid var(--line); border-left: 4px solid var(--brass); border-radius: var(--radius-m); padding: 22px 26px; margin-top: 40px; }
.honest h3 { margin-bottom: 8px; }
.honest p { color: var(--brushed); }

.notfound { padding: 120px 0; text-align: center; }
.notfound p { color: var(--brushed); margin: 16px 0 28px; }

/* Mobile */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .mobile-nav.is-open { display: block; background: var(--steel); border-bottom: 1px solid var(--line); }
  .mobile-nav ul { list-style: none; margin: 0; padding: 8px 32px 20px; }
  .mobile-nav a { display: block; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 12px; height: 68px; }
  .top .right { gap: 10px; }
  .top .right a.plain { display: none; }
  .mobile-nav ul { padding: 8px 16px 20px; }
  .hero { padding: 36px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .vault-stage { justify-self: center; max-width: 300px; }
  .tag-plain { left: 0; } .tag-cipher { right: 0; max-width: 64%; } .tag .v { word-break: break-all; }
  .hero .actions { flex-direction: column; } .hero .btn { width: 100%; }
  .facts .wrap { grid-template-columns: 1fr; } .fact { border-left: 0; padding: 14px 0; border-top: 1px solid var(--line); } .fact:first-child { border-top: 0; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }
  .ledger { grid-template-columns: 1fr; gap: 14px; } .lock-arrow { transform: rotate(90deg); height: 40px; }
  .row { grid-template-columns: 96px 1fr; }
  .wall { grid-template-columns: 1fr; } .box.w3, .box.w2, .box.w4 { grid-column: auto; } .box.h2 { grid-row: auto; }
  .matrix { min-width: 640px; font-size: 14px; }
  .steps, .plans, .faq, .flow, .controls { grid-template-columns: 1fr; } .plan.featured { transform: none; }
  .cmd { font-size: 13px; white-space: nowrap; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; } .feature-row.flip .feature-text { order: 0; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 40px 0 36px; }
  .page-body { padding: 40px 0 72px; }
  .prose .pp-public-form { padding: 20px; }
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.more-row { margin-top: 28px; }
.block-title { margin: 96px 0 28px; font-size: 34px; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.paper .matrix { background: transparent; }
