/* PSXfolio marketing site
   Palette: ink #0B100E · moss #151C18 · fern #243029 · bone #EDEAE0 · ash #9BA69E
            gold #E3B23C · up #2EBD85 · down #F6465D
   Type: Fraunces (display) · IBM Plex Sans (body) · IBM Plex Mono (data) */

:root {
  --ink: #0B100E;
  --ink-2: #0E1411;
  --moss: #151C18;
  --fern: #243029;
  --fern-soft: #1B241F;
  --bone: #EDEAE0;
  --ash: #9BA69E;
  --ash-dim: #6F7A72;
  --gold: #E3B23C;
  --gold-soft: rgba(227, 178, 60, 0.14);
  --up: #2EBD85;
  --up-soft: rgba(46, 189, 133, 0.12);
  --down: #F6465D;
  --display: "Fraunces", Georgia, serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --w: 1120px;
  --r: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 550; letter-spacing: -0.01em; }

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.06;
  font-variation-settings: "opsz" 72;
}
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.32rem; line-height: 1.3; }

.lede { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--ash); max-width: 34em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.eyebrow::before { content: "▸ "; color: var(--ash-dim); }

.mono, .num { font-family: var(--mono); }
.up { color: var(--up); }
.down { color: var(--down); }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 14, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fern-soft);
}
.nav-inner {
  max-width: var(--w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px; height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--bone); font-weight: 600; font-size: 1.06rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ash); font-size: 0.95rem; }
.nav-links a:hover { color: var(--bone); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--bone); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #EFC258; }
.btn-ghost { border-color: var(--fern); color: var(--bone); }
.btn-ghost:hover { border-color: var(--ash-dim); }
.btn-small { padding: 9px 18px; font-size: 0.92rem; border-radius: 8px; }

/* ---------- Hero ---------- */

.hero { padding: 84px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 44% at 72% 30%, rgba(227, 178, 60, 0.07), transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px; align-items: center; position: relative;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { margin: 26px 0 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-fine {
  margin-top: 22px; font-family: var(--mono); font-size: 0.82rem; color: var(--ash-dim);
}
.hero-fine b { color: var(--ash); font-weight: 500; }

/* Phone frame */
.phone {
  border: 1px solid var(--fern);
  background: #000;
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 120px rgba(227, 178, 60, 0.06);
  max-width: 330px;
  margin: 0 auto;
}
.phone img { border-radius: 24px; }
.phone-caption {
  text-align: center; margin-top: 14px;
  font-family: var(--mono); font-size: 0.78rem; color: var(--ash-dim);
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .lede { margin-top: 16px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--moss); border: 1px solid var(--fern-soft); border-radius: var(--r);
  padding: 30px 28px;
}
.pillar h3 { margin: 16px 0 10px; }
.pillar p { color: var(--ash); font-size: 0.97rem; }
.pillar .glyph { font-family: var(--mono); color: var(--gold); font-size: 1.15rem; }

/* Feature split rows */
.split {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 64px; align-items: center;
}
.split.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.split.flip .split-copy { order: 2; }
.split.flip .split-media { order: 1; }
.split + .split { margin-top: 110px; }
.split h2 { margin-bottom: 18px; }
.split p { color: var(--ash); }
.split .phone { max-width: 300px; }

.featlist { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.featlist li { padding-left: 26px; position: relative; color: var(--ash); font-size: 0.98rem; }
.featlist li::before { content: "▸"; position: absolute; left: 0; color: var(--gold); font-family: var(--mono); }
.featlist b { color: var(--bone); font-weight: 600; }

/* Ledger card (corporate actions illustration) */
.ledger {
  background: var(--moss); border: 1px solid var(--fern-soft); border-radius: var(--r);
  font-family: var(--mono); font-size: 0.86rem; overflow: hidden;
}
.ledger-head {
  padding: 13px 20px; border-bottom: 1px solid var(--fern-soft);
  color: var(--ash-dim); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.ledger-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 13px 20px; border-bottom: 1px solid var(--fern-soft);
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row .l { color: var(--bone); }
.ledger-row .l small { color: var(--ash-dim); display: block; font-size: 0.8em; }
.ledger-row .r { color: var(--ash); text-align: right; }

/* Shariah band */
.band {
  background: linear-gradient(180deg, var(--fern-soft), var(--moss));
  border-top: 1px solid var(--fern-soft);
  border-bottom: 1px solid var(--fern-soft);
}
.badge-demo {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--up-soft); color: var(--up);
  font-family: var(--mono); font-size: 0.85rem; font-weight: 600;
  padding: 7px 14px; border-radius: 8px; letter-spacing: 0.06em;
}

/* Privacy statement */
.privacy-card {
  background: var(--moss); border: 1px solid var(--fern); border-radius: 20px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.privacy-card h2 { max-width: 17em; margin: 0 auto 20px; }
.privacy-card .lede { margin: 0 auto; }
.privacy-points {
  display: flex; gap: 34px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px; font-family: var(--mono); font-size: 0.85rem; color: var(--ash);
}
.privacy-points span::before { content: "✓ "; color: var(--up); }

/* Honesty strip */
.honest { border: 1px dashed var(--fern); border-radius: var(--r); padding: 34px 36px; }
.honest h3 { color: var(--bone); margin-bottom: 14px; }
.honest ul { list-style: none; display: grid; gap: 10px; }
.honest li { color: var(--ash); padding-left: 26px; position: relative; font-size: 0.97rem; }
.honest li::before { content: "✕"; position: absolute; left: 0; color: var(--ash-dim); font-family: var(--mono); }
.honest p { margin-top: 16px; color: var(--ash-dim); font-size: 0.9rem; }

/* ---------- FAQ ---------- */

.faq-group { margin-bottom: 56px; }
.faq-group > h2 { margin-bottom: 24px; font-size: 1.55rem; }
details.qa {
  border-bottom: 1px solid var(--fern-soft);
}
details.qa summary {
  cursor: pointer; list-style: none;
  padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 1.04rem; color: var(--bone);
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+"; position: absolute; right: 6px; top: 18px;
  font-family: var(--mono); font-size: 1.3rem; color: var(--gold);
  transition: transform 0.18s ease;
}
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa .a { padding: 0 0 24px; color: var(--ash); max-width: 46em; }
details.qa .a p + p { margin-top: 12px; }
details.qa .a a { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  details.qa summary::after { transition: none; }
}

/* ---------- Download / final CTA ---------- */

.dl {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 24px;
}
.dl h2 { max-width: 16em; margin: 0 auto 18px; }
.dl .lede { margin: 0 auto 34px; }
.dl-fine { margin-top: 20px; font-family: var(--mono); font-size: 0.8rem; color: var(--ash-dim); }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--fern-soft);
  padding: 48px 0 40px;
  font-size: 0.9rem; color: var(--ash-dim);
}
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ash); }
.foot-brand img { width: 26px; height: 26px; border-radius: 7px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--ash); }
.disclaimer {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--fern-soft);
  font-size: 0.82rem; line-height: 1.7; max-width: 62em;
}

/* ---------- Features page ---------- */

.page-hero { padding: 72px 0 40px; }
.page-hero .lede { margin-top: 18px; }
.toc { display: flex; gap: 10px; flex-wrap: wrap; margin: 34px 0 0; }
.toc a {
  font-family: var(--mono); font-size: 0.8rem; color: var(--ash);
  border: 1px solid var(--fern); border-radius: 100px; padding: 7px 15px;
}
.toc a:hover { color: var(--bone); border-color: var(--ash-dim); text-decoration: none; }

.featblock { padding: 72px 0; border-top: 1px solid var(--fern-soft); scroll-margin-top: 80px; }
.featblock:first-of-type { border-top: none; }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; margin-top: 28px; }
.spec { padding: 18px 0; border-top: 1px solid var(--fern-soft); }
.spec dt { font-weight: 600; color: var(--bone); margin-bottom: 6px; }
.spec dd { color: var(--ash); font-size: 0.95rem; }

/* ---------- Reveal on scroll ----------
   Content is never hidden by default (no-JS and crawlers see everything);
   the .pre class is added by JS only to below-fold elements, then removed
   as they scroll into view. */

.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.pre { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pre { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .split, .split.flip { grid-template-columns: 1fr; gap: 44px; }
  .split.flip .split-copy { order: 1; }
  .split.flip .split-media { order: 2; }
  .pillars { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .split + .split { margin-top: 80px; }
  .section { padding: 72px 0; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--fern);
    flex-direction: column; align-items: flex-start;
    padding: 18px 24px 22px; gap: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: block; margin-left: auto;
    background: none; border: 1px solid var(--fern); border-radius: 8px;
    color: var(--bone); font-family: var(--mono); font-size: 0.85rem;
    padding: 8px 14px; cursor: pointer;
  }
  .hero { padding: 56px 0 48px; }
}
