:root {
  /* From the app's dark theme (core/themes/constants.ts, via promo-studio everypeso-theme.ts). */
  --bg: #121212;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --border: #3e4042;
  --text: #ffffff;
  --muted: #98989d;
  --blue: #1877f2;
  --green: #31a24c;
  --red: #f02849;
  --radius: 12px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  /* The app uses the platform font (SF Pro on iOS). */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #7fb3ff;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

/* Buttons */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 20px 10px 16px;
  line-height: 1.15;
  transition: transform 0.15s ease;
}

.btn-store:hover {
  transform: translateY(-2px);
}

.btn-store svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.btn-store small {
  display: block;
  font-size: 11px;
  font-weight: 500;
}

.btn-store strong {
  display: block;
  font-size: 19px;
  font-weight: 700;
}

.btn-store.small {
  padding: 6px 14px 6px 12px;
}

.btn-store.small strong {
  font-size: 15px;
}

.btn-store.small svg {
  width: 20px;
  height: 20px;
}

/* Hero */
.hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(24, 119, 242, 0.22), transparent 70%),
    radial-gradient(600px 300px at 85% 10%, rgba(49, 162, 76, 0.18), transparent 70%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero .wrap > * {
  min-width: 0;
}

.hero-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.phone {
  justify-self: center;
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border-radius: 48px;
  background: #2c2c2e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px #4a4a4e;
}

.phone img {
  border-radius: 38px;
  width: 100%;
  height: auto;
}

/* Sections */
section {
  padding: 64px 0;
}

h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 36px;
}

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

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

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

.card .icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pricing .card ul {
  list-style: none;
  margin-top: 12px;
}

.pricing .card li {
  color: var(--muted);
  padding: 6px 0 6px 26px;
  position: relative;
}

.pricing .card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.pricing .pro {
  border-color: var(--blue);
}

/* FAQ / guide content */
.page {
  padding: 56px 0 72px;
}

.page .wrap {
  max-width: 800px;
}

.page h1 {
  font-size: clamp(32px, 4.5vw, 44px);
}

.page h2 {
  font-size: 26px;
  margin: 44px 0 12px;
}

.page h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}

.page p,
.page li {
  color: #cfd6d8;
  font-size: 16px;
}

.page p + p {
  margin-top: 12px;
}

.page ol,
.page ul {
  padding-left: 22px;
  margin: 8px 0 12px;
}

.page li + li {
  margin-top: 6px;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 8px;
}

.toc ol {
  margin: 0;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  padding: 18px 20px;
  list-style: none;
  position: relative;
  padding-right: 48px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 14px;
  font-size: 24px;
  color: var(--muted);
}

details[open] summary::after {
  content: "–";
}

details > div {
  padding: 0 20px 18px;
}

.cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
}

.cta p {
  color: var(--muted);
  margin: 0 auto 24px;
  max-width: 520px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero .phone {
    max-width: 260px;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .site-nav a.hide-sm,
  .site-nav .btn-store {
    display: none;
  }

  .grid,
  .pricing {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  section {
    padding: 48px 0;
  }
}

/* Policy pages */
.updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 8px;
}

.summary .card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.summary .card p {
  font-size: 15px;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: #cfd6d8;
}

th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}

/* Slideshow */
.slideshow {
  position: relative;
}

.slides {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.slides::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 calc((100% - 60px) / 4);
  scroll-snap-align: start;
}

.slide .phone {
  max-width: none;
  padding: 7px;
  border-radius: 34px;
  box-shadow: inset 0 0 0 1px #4a4a4e;
}

.slide .phone img {
  border-radius: 27px;
}

.theme-toggle {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.theme-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 8px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.theme-toggle button[aria-pressed="true"] {
  color: var(--text);
  background: var(--surface-2);
}

.slide figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.slide-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.slide-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.slide-btn:hover {
  background: var(--surface-2);
}

.slide-dots {
  display: flex;
}

/* 24px tap area around a 10px dot. */
.slide-dots button {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border: 0;
  padding: 0 4px;
  background: none;
  cursor: pointer;
}

.slide-dots button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: var(--border);
}

.slide-dots button[aria-current="true"]::before {
  width: 24px;
  background: var(--green);
}

@media (max-width: 900px) {
  .slide {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px) {
  .summary {
    grid-template-columns: 1fr;
  }

  .slide {
    flex-basis: 78%;
  }
}

/* Articles and contact */
.page .lead {
  margin-bottom: 8px;
}

.article-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  border-color: var(--blue);
}

.card-link h3 {
  color: var(--text);
}

.btn-mail {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}
