/* actualpl.us — dark-only, tokens copied from web/app.css :root */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --bg: #0f1420;
  --surface: #0c1120;
  --surface2: #161d2e;
  --surface3: #1a2338;
  --border: #1e293e;
  --border2: #263450;
  --border3: #314060;

  --text: #dde6f2;
  --text2: #7392b8;
  --muted: #899fbe;
  --dim: #2a3d57;

  --accent: #6f8bfa;
  --accent-h: #a7b7ff;
  --accent-bg: rgba(111, 139, 250, .1);
  --accent-bord: rgba(111, 139, 250, .2);
  --accent-ring: rgba(111, 139, 250, .35);

  --seg-fixos: #5b8bf7;
  --seg-guilt: #c25fb5;
  --seg-inv: #219e68;
  --seg-res: #bd8226;
  --seg-free: #3d567f;

  --green-l: #4ade80;
  --amber-l: #fbbf24;
  --red-h: #f87171;

  --glass-bg: rgba(12, 17, 32, .72);
  --glass-blur: blur(20px) saturate(180%);
  --glass-border: rgba(255, 255, 255, .10);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .28);
  --glass-edge: inset 0 -.5px 0 rgba(0, 0, 0, .45);
  --shadow-overlay: 0 8px 32px rgba(0, 0, 0, .45);

  --fs-xs: .6875rem;
  --fs-sm: .8125rem;
  --fs-md: .9375rem;
  --fs-lg: 1.0625rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-hero: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

/* ─── Glass ──────────────────────────────────────────────────────────────── */

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-edge), var(--shadow-overlay);
}

@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--surface2); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ─── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 20, 32, .82);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-lg);
  font-weight: var(--fw-extrabold);
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand img { width: 26px; height: 26px; }
.brand span { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .03em;
  border: 1px solid var(--border2);
  color: var(--muted);
  background: var(--surface2);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 560px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(111, 139, 250, .18), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 40px;
  text-align: center;
  justify-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-h);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-bg);
}

.hero h1 {
  margin: 0;
  font-size: var(--fs-hero);
  line-height: 1.04;
  font-weight: var(--fw-extrabold);
  letter-spacing: -.02em;
  max-width: 19ch;
}

.hero h1 em {
  font-style: normal;
  white-space: nowrap;
  background: linear-gradient(100deg, var(--accent-h), var(--accent) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 44ch;
  font-size: var(--fs-lg);
  color: var(--text2);
  margin: 0;
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #5b73e0);
  color: #f4f7ff;
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  box-shadow: 0 12px 32px rgba(111, 139, 250, .35);
  cursor: default;
  user-select: none;
}

.cta-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}

.cta-note {
  font-size: var(--fs-xs);
  color: var(--dim);
}

/* ─── Browser chrome frame ───────────────────────────────────────────────── */

.browser-frame {
  width: 100%;
  max-width: 980px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), 0 30px 80px rgba(0, 0, 0, .55);
  background: var(--surface2);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface3);
  border-bottom: 1px solid var(--border);
}

.browser-chrome .dots { display: flex; gap: 6px; }
.browser-chrome .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border3); }
.browser-chrome .url {
  flex: 1;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--muted);
  background: var(--surface);
  border-radius: 6px;
  padding: 4px 10px;
  margin: 0 40px;
}

.browser-frame img { width: 100%; display: block; }

/* ─── Bank strip ─────────────────────────────────────────────────────────── */

.bank-strip { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.bank-strip .label {
  text-align: center;
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 24px;
}

.bank-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 40px;
}

.bank-row img {
  height: 26px;
  width: auto;
  opacity: .78;
  filter: saturate(.85);
}

/* ─── Section shell ──────────────────────────────────────────────────────── */

section.block { padding: 96px 0; }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { justify-content: center; margin-bottom: 12px; }
.section-head h2 { font-size: var(--fs-3xl); font-weight: var(--fw-extrabold); letter-spacing: -.015em; margin: 0 0 12px; }
.section-head p { color: var(--text2); font-size: var(--fs-md); margin: 0; }

/* ─── Foundation section (signature) ─────────────────────────────────────── */

.foundation {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.foundation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.foundation-copy h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin: 0 0 10px;
}

.foundation-copy p {
  color: var(--text2);
  font-size: var(--fs-sm);
  margin: 0 0 16px;
}

.foundation-copy.base h3 { color: var(--text); }
.foundation-copy.layer h3 { color: var(--accent-h); }

.foundation-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.foundation-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text2);
  font-size: var(--fs-sm);
}

.foundation-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: var(--fw-bold);
}

.foundation-list.has li::before {
  content: '✓';
  color: var(--green-l);
}

.foundation-list.adds li::before {
  content: '+';
  color: var(--accent-h);
}

.foundation-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--accent-h);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-bord);
  padding-bottom: 2px;
}

.foundation-diagram {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding: 40px 32px 32px;
  border-radius: 20px;
  position: relative;
}

.diagram-stack {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding-top: 26px;
  display: grid;
  gap: 14px;
}

.diagram-layer {
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.diagram-layer .name {
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
}

.diagram-layer .tag {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.diagram-layer.base {
  background: var(--surface3);
  border: 1px solid var(--border2);
}

.diagram-layer.base .name { color: var(--text); }

.diagram-layer.top {
  background: linear-gradient(135deg, rgba(111, 139, 250, .22), rgba(111, 139, 250, .08));
  border: 1px solid var(--accent-bord);
  box-shadow: 0 16px 40px rgba(111, 139, 250, .18), var(--glass-highlight);
  transform: translateY(-2px);
  width: 92%;
  margin: 0 auto;
}

.diagram-layer.top .name { color: var(--accent-h); }

.diagram-arrow {
  position: absolute;
  right: 6%;
  top: 0;
  font-size: var(--fs-xs);
  color: var(--dim);
  text-align: right;
}

/* ─── Features grid ──────────────────────────────────────────────────────── */

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

.feature-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-bg);
  color: var(--accent-h);
  margin-bottom: 16px;
}

.feature-card .icon svg { width: 20px; height: 20px; }

.feature-card h3 {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  margin: 0 0 8px;
}

.feature-card p {
  font-size: var(--fs-sm);
  color: var(--text2);
  margin: 0;
}

/* ─── Showcases ───────────────────────────────────────────────────────────── */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.shot-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface2);
  cursor: zoom-in;
  appearance: none;
  padding: 0;
  display: block;
  width: 100%;
  text-align: left;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 1440 / 900;
  object-fit: cover;
  object-position: top;
}

.shot-card .cap {
  padding: 12px 16px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text2);
}

/* Mobile showcase — CSS iPhone frames */

.mobile-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  justify-items: center;
}

.iphone {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 390 / 844;
  border-radius: 48px;
  background: #000;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .08);
  cursor: zoom-in;
  appearance: none;
  border: none;
}

.iphone::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 16px;
  z-index: 2;
}

.iphone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 36px;
}

.mobile-cap {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 12px;
}

.mobile-note {
  text-align: center;
  color: var(--text2);
  font-size: var(--fs-sm);
  max-width: 42ch;
  margin: 40px auto 0;
}

/* Email gallery */

.email-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  margin: 0 -4px;
}

.email-card {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface2);
  cursor: zoom-in;
  appearance: none;
  padding: 0;
}

.email-card .thumb {
  display: block;
  width: 220px;
  height: 260px;
  overflow: hidden;
}

.email-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.email-card .cap {
  padding: 10px 14px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text2);
  text-align: left;
}

/* ─── Lightbox ────────────────────────────────────────────────────────────── */

dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
}

dialog.lightbox::backdrop {
  background: rgba(6, 9, 16, .86);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

dialog.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

footer.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-tech {
  font-size: var(--fs-xs);
  color: var(--dim);
  letter-spacing: .02em;
}

.footer-disclaimer {
  max-width: 46ch;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin: 12px 0 0;
}

.footer-disclaimer a {
  color: var(--accent-h);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-bord);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-copyright {
  font-size: var(--fs-xs);
  color: var(--dim);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .foundation-grid { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .mobile-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (max-width: 640px) {
  section.block { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .features-grid { grid-template-columns: 1fr; }
  .mobile-row { grid-template-columns: 1fr; max-width: 260px; margin: 0 auto; }
  .browser-chrome .url { margin: 0 16px; }
  .footer-grid { flex-direction: column; }
}
