/* ==========================================================================
   MyPIVXWallet — page furniture.
   Adds on top of pivx-simple-pages.css: a browser mock-up, the capability
   grid, the three-step ladder, a security block, the wallet comparison,
   an FAQ and the closing call to action.
   ========================================================================== */

/* ------------------------------------------------------------ hero fix ---
   The logo column eats width, so the shared 4.7rem headline ran into the
   brief card. Scoped down + allowed to wrap. */
body.pivx-wallet-page .simple-hero__main--logo .simple-hero__copy h1 {
  font-size: clamp(2.05rem, 3.4vw, 3.15rem);
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.pivx-wallet-page .simple-hero__copy > p {
  font-size: 1rem;
  line-height: 1.58;
}

body.pivx-wallet-page .simple-hero__brief .simple-action-row {
  justify-content: flex-start;
  margin: 18px 0 0;
}

/* ------------------------------------------------------------ intro ----- */
.wallet-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 26px;
  align-items: center;
  margin-top: 12px;
  padding: 26px 28px;
  border: 1px solid rgba(var(--page-accent-rgb), 0.23);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(var(--page-secondary-rgb), 0.1), transparent 42%),
    rgba(9, 12, 22, 0.9);
}

.wallet-intro__copy h2 {
  margin: 0 0 12px;
  padding: 0;
  color: #f6f4f8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.1vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  border: 0;
}

.wallet-intro__copy p {
  margin: 0 0 10px;
  color: #b8bfca;
  font-size: 1rem;
  line-height: 1.66;
}

.wallet-intro__copy p:last-child { margin-bottom: 0; }
.wallet-intro__copy strong { color: #f0e9ff; }

/* ------------------------------------------------------ browser mock-up -- */
.wallet-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--page-secondary-rgb), 0.26);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(12, 18, 32, 0.98), rgba(5, 8, 15, 0.98));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42), 0 0 34px rgba(var(--page-secondary-rgb), 0.1);
}

.wallet-window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(var(--page-secondary-rgb), 0.14);
  background: rgba(3, 7, 13, 0.75);
}

.wallet-window__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.wallet-window__bar i:first-child { background: #ff6b5f; }
.wallet-window__bar i:nth-child(2) { background: #f4c85b; }
.wallet-window__bar i:nth-child(3) { background: #61ef9d; }

.wallet-window__bar span {
  margin-left: 8px;
  color: #7f8b9c;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.wallet-window__body { padding: 18px 18px 20px; }

.wallet-window__label {
  color: #8e9aab;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wallet-window__balance {
  margin-top: 6px;
  color: #f3f0ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.wallet-window__balance small {
  display: block;
  margin-top: 7px;
  color: var(--page-secondary);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wallet-window__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 16px;
}

.wallet-window__actions span {
  display: grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid rgba(var(--page-accent-rgb), 0.2);
  border-radius: 10px;
  background: rgba(var(--page-accent-rgb), 0.07);
  color: #cfc4ea;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wallet-window__actions span:first-child {
  border-color: rgba(var(--page-secondary-rgb), 0.42);
  background: rgba(var(--page-secondary-rgb), 0.12);
  color: #d8fbef;
}

.wallet-window__rows {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(var(--page-secondary-rgb), 0.1);
}

.wallet-window__rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(var(--page-secondary-rgb), 0.07);
  color: #9dabb9;
  font-size: 0.74rem;
}

.wallet-window__rows b {
  color: #dfe8ef;
  font-weight: 700;
}

.wallet-window__rows em {
  color: var(--page-secondary);
  font-style: normal;
  font-size: 0.7rem;
}

.wallet-window-caption {
  margin: 10px 2px 0;
  color: #7e8797;
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: center;
}

/* --------------------------------------------------- section headings --- */
.wallet-section-head {
  display: flex;
  gap: 26px;
  align-items: end;
  justify-content: space-between;
  margin-top: 28px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(var(--page-secondary-rgb), 0.16);
}

.wallet-section-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--page-secondary);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wallet-section-head h2 {
  margin: 0;
  padding: 0;
  color: #f6f4fb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.1vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  border: 0;
}

.wallet-section-head p {
  max-width: 400px;
  margin: 0;
  color: #a8b1bd;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* --------------------------------------------------- capability cards --- */
body.pivx-wallet-page .wallet-caps .simple-feature-card p {
  font-size: 0.97rem;
  line-height: 1.6;
}

body.pivx-wallet-page .wallet-caps .simple-feature-card.is-auto-active {
  border-color: rgba(var(--page-accent-rgb), 0.55);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24), 0 0 26px rgba(var(--page-accent-rgb), 0.16);
  transform: translateY(-3px);
}

/* ------------------------------------------------------------- steps ---- */
.wallet-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.wallet-steps li {
  position: relative;
  padding: 20px 20px 22px;
  border: 1px solid rgba(var(--page-secondary-rgb), 0.18);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(var(--page-accent-rgb), 0.08), rgba(5, 9, 16, 0.85));
}

.wallet-steps li::before {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  content: counter(wallet-step, decimal-leading-zero);
  place-items: center;
  color: #06100d;
  font-size: 0.72rem;
  font-weight: 900;
  border-radius: 50%;
  background: var(--page-secondary);
  box-shadow: 0 0 16px rgba(var(--page-secondary-rgb), 0.45);
}

.wallet-steps { counter-reset: wallet-step; }
.wallet-steps li { counter-increment: wallet-step; }

.wallet-steps b {
  display: block;
  margin-bottom: 6px;
  color: #f3f0ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.15;
}

.wallet-steps p {
  margin: 0;
  color: #a9b3bf;
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ---------------------------------------------------- safety do/don't --- */
.wallet-safety {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.wallet-safety__col {
  padding: 20px 22px 22px;
  border-radius: 16px;
  border: 1px solid rgba(97, 239, 157, 0.24);
  background: linear-gradient(160deg, rgba(97, 239, 157, 0.07), rgba(5, 9, 16, 0.85));
}

.wallet-safety__col--bad {
  border-color: rgba(255, 107, 95, 0.24);
  background: linear-gradient(160deg, rgba(255, 107, 95, 0.07), rgba(5, 9, 16, 0.85));
}

.wallet-safety__col h3 {
  margin: 0 0 12px;
  color: #8ff0bd;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wallet-safety__col--bad h3 { color: #ff9a91; }

.wallet-safety__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wallet-safety__col li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  color: #b6c0cb;
  font-size: 0.93rem;
  line-height: 1.5;
}

.wallet-safety__col li:last-child { margin-bottom: 0; }

.wallet-safety__col li::before {
  position: absolute;
  left: 0;
  color: #61ef9d;
  font-weight: 900;
  content: "✓";
}

.wallet-safety__col--bad li::before {
  color: #ff6b5f;
  content: "✕";
}

/* ------------------------------------------------------- comparison ----- */
.wallet-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid rgba(var(--page-secondary-rgb), 0.16);
  border-radius: 16px;
  background: rgba(7, 11, 18, 0.86);
}

.wallet-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wallet-table th,
.wallet-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(var(--page-secondary-rgb), 0.1);
  color: #b6c0cb;
  vertical-align: top;
}

.wallet-table thead th {
  color: #f0ecfa;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: rgba(var(--page-accent-rgb), 0.09);
}

.wallet-table thead th:nth-child(2) {
  color: var(--page-secondary);
}

.wallet-table tbody th {
  color: #d7d2e6;
  font-weight: 700;
  white-space: nowrap;
}

.wallet-table tbody tr:last-child th,
.wallet-table tbody tr:last-child td { border-bottom: 0; }

.wallet-table tbody tr:hover td,
.wallet-table tbody tr:hover th { background: rgba(var(--page-accent-rgb), 0.05); }

.wallet-table__yes { color: #8ff0bd; font-weight: 700; }
.wallet-table__no { color: #c98c86; }

.wallet-table-note {
  margin: 12px 2px 0;
  color: #8b95a4;
  font-size: 0.82rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------- FAQ ---- */
.wallet-faq {
  margin-top: 18px;
  border: 1px solid rgba(var(--page-accent-rgb), 0.18);
  border-radius: 16px;
  background: rgba(8, 12, 21, 0.86);
  overflow: hidden;
}

.wallet-faq details { border-bottom: 1px solid rgba(var(--page-accent-rgb), 0.12); }
.wallet-faq details:last-child { border-bottom: 0; }

.wallet-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: #ece7fa;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.wallet-faq summary::-webkit-details-marker { display: none; }

.wallet-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--page-secondary);
  font-size: 1.15rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.wallet-faq details[open] summary::after { transform: rotate(45deg); }
.wallet-faq summary:hover { background: rgba(var(--page-accent-rgb), 0.06); }

.wallet-faq p {
  margin: 0;
  padding: 0 20px 18px;
  color: #aab3bf;
  font-size: 0.94rem;
  line-height: 1.62;
}

/* ------------------------------------------------------------- finale --- */
.wallet-cta {
  position: relative;
  margin-top: 26px;
  padding: 38px 30px 40px;
  overflow: hidden;
  border: 1px solid rgba(var(--page-secondary-rgb), 0.3);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--page-secondary-rgb), 0.16), transparent 62%),
    linear-gradient(150deg, rgba(var(--page-accent-rgb), 0.1), rgba(6, 10, 18, 0.95));
  text-align: center;
}

.wallet-cta::after {
  position: absolute;
  top: -120px;
  right: -90px;
  width: 300px;
  height: 300px;
  content: "";
  border: 1px solid rgba(var(--page-secondary-rgb), 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(var(--page-secondary-rgb), 0.02);
  pointer-events: none;
}

.wallet-cta span {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  color: var(--page-secondary);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wallet-cta strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-shadow: 0 0 34px rgba(var(--page-secondary-rgb), 0.3);
}

.wallet-cta p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 12px auto 0;
  color: #b2bcc7;
  font-size: 0.95rem;
  line-height: 1.6;
}

.wallet-cta .simple-action-row { position: relative; z-index: 1; margin-top: 20px; }

/* --------------------------------------------------- reveal on scroll --- */
body.wallet-reveal-ready .wallet-intro,
body.wallet-reveal-ready .wallet-section-head,
body.wallet-reveal-ready .wallet-caps,
body.wallet-reveal-ready .wallet-steps,
body.wallet-reveal-ready .wallet-safety,
body.wallet-reveal-ready .wallet-table-wrap,
body.wallet-reveal-ready .tutorial-section,
body.wallet-reveal-ready .wallet-faq,
body.wallet-reveal-ready .wallet-cta {
  opacity: 0;
}

body.wallet-reveal-ready .is-revealed {
  opacity: 1;
  animation: wallet-rise 0.7s cubic-bezier(0.22, 0.68, 0.32, 1) forwards;
}

@keyframes wallet-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------- responsive --- */
@media (max-width: 980px) {
  .wallet-intro { grid-template-columns: 1fr; }
  .wallet-steps { grid-template-columns: 1fr; }
  .wallet-safety { grid-template-columns: 1fr; }
  .wallet-section-head { display: block; }
  .wallet-section-head p { margin-top: 10px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.wallet-reveal-ready .wallet-intro,
  body.wallet-reveal-ready .wallet-section-head,
  body.wallet-reveal-ready .wallet-caps,
  body.wallet-reveal-ready .wallet-steps,
  body.wallet-reveal-ready .wallet-safety,
  body.wallet-reveal-ready .wallet-table-wrap,
  body.wallet-reveal-ready .tutorial-section,
  body.wallet-reveal-ready .wallet-faq,
  body.wallet-reveal-ready .wallet-cta { opacity: 1; }

  body.wallet-reveal-ready .is-revealed { animation: none; }
}
