/* Penna brand-aligned static-site CSS.
   Color palette + typography pulled from Penna's app theme so the
   web pages, the App Store / Play Store screenshots, and the running
   app all read as the same product. */

:root {
  --ink: #1C1B2E;
  --accent: #095FCA;
  --accent-soft: #D5E2F7;
  --surface: #FFFFFF;
  --surface-alt: #F1F1F4;
  --muted: #8B8799;
  --outline: #E3E3E8;
  --max: 760px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Merriweather Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); }

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

header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--outline);
}

header .brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

header .brand img {
  height: 52px;
  width: auto;
}

header .brand-name {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.6px;
}

/* ─── Main content variants ───────────────────────────────── */

main {
  flex: 1;
  width: 100%;
  margin: 0 auto;
}

main.hero {
  max-width: 760px;
  padding: 96px 32px 64px;
  text-align: center;
}

main.hero h1 {
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

main.hero .lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 32px;
}

main.hero .badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
}

/* ─── Store CTA buttons ───────────────────────────────────── */

main.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-store .btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-store .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}

.btn-store .btn-label-small {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2px;
  opacity: 0.85;
}

.btn-store .btn-label-large {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.btn-appstore {
  background: var(--ink);
  color: var(--surface);
}

.btn-appstore:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(28, 27, 46, 0.18);
}

.btn-coming-soon {
  background: var(--surface-alt);
  color: var(--muted);
  cursor: not-allowed;
}

/* ─── Features section ────────────────────────────────────── */

/* ─── Hero Swiper carousel ──────────────────────────────── */

.hero-swiper {
  width: 100vw;
  position: relative;
  margin: 32px calc(50% - 50vw) 28px;
  padding: 8px 0 44px;
  overflow: hidden;
}

.hero-swiper .swiper-slide {
  width: 240px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(28, 27, 46, 0.10), 0 2px 6px rgba(28, 27, 46, 0.06);
  display: block;
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-swiper .swiper-slide-active img {
  opacity: 1;
}

/* Pagination dots */
.hero-swiper .swiper-pagination {
  bottom: 8px;
}

.hero-swiper .swiper-pagination-bullet {
  background: var(--ink);
  opacity: 0.25;
  width: 8px;
  height: 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.25);
}

/* Navigation arrows (desktop only — hidden on touch) */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: var(--ink);
  background: var(--surface);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(28, 27, 46, 0.14);
  border: none;
  top: calc(50% - 22px);
  margin-top: 0;
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

.hero-swiper .swiper-button-disabled {
  opacity: 0.3;
}

section.features {
  background: var(--surface-alt);
  padding: 72px 32px;
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}

.features-inner {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  text-align: center;
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
  color: var(--ink);
}

.feature p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* ─── Mobile-first overrides ────────────────────────────── */

@media (max-width: 720px) {
  header { padding: 18px 20px; }
  header .brand img { height: 42px; }
  header .brand-name { font-size: 26px; }
  header .brand { gap: 10px; }

  main.hero { padding: 40px 20px 32px; }

  .hero-swiper {
    margin: 24px calc(50% - 50vw) 20px;
    padding: 6px 0 38px;
  }
  .hero-swiper .swiper-slide { width: 220px; }
  .hero-swiper .swiper-slide img { border-radius: 20px; }
  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next { display: none; }

  section.features {
    padding: 48px 20px;
  }
  .features-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  footer {
    padding: 20px 20px 28px;
  }
}

@media (max-width: 420px) {
  main.hero h1 { font-size: 32px; letter-spacing: -0.6px; }
  main.hero .lede { font-size: 16px; }
  header .brand img { height: 38px; }
  header .brand-name { font-size: 24px; }
  .hero-swiper .swiper-slide { width: 200px; }
}

main.doc {
  max-width: var(--max);
  padding: 48px 32px 96px;
}

main.doc h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 6px;
}

main.doc .updated {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 32px;
  font-size: 14px;
}

main.doc h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.2px;
}

main.doc h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
}

main.doc p,
main.doc ul,
main.doc table {
  margin-bottom: 14px;
  font-size: 16px;
}

main.doc ul { padding-left: 24px; }
main.doc li { margin-bottom: 8px; }

main.doc strong { font-weight: 700; }

main.doc a { text-decoration: underline; }

main.doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

main.doc th,
main.doc td {
  border: 1px solid var(--outline);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

main.doc th {
  background: var(--surface-alt);
  font-weight: 600;
}

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

footer {
  padding: 24px 32px 32px;
  border-top: 1px solid var(--outline);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

footer nav a {
  color: var(--muted);
  text-decoration: underline;
  margin: 0 8px;
}

footer .copyright {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.2px;
}
