:root {
  --paper: #f7f8fc;
  --card: #ffffff;
  --ink: #1d1f2a;
  --muted: #5d6172;
  --blue: #2e7cf6;
  --violet: #7c4df0;
  --lavender: #a99df5;
  --rose: #d99aa6;
  --sage: #93ab93;
  --gradient: linear-gradient(120deg, #2e7cf6, #7c4df0);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, "Nunito", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* brand gradient strip along the very top */
.brand-strip {
  height: 10px;
  background: linear-gradient(90deg, #2e7cf6, #5b63f3, #7c4df0, #9a5cf0);
}

/* top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 252, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(29, 31, 42, 0.06);
}

.wrap.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
}

.topbar-brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0;
  text-decoration: none;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lang-select {
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid rgba(29, 31, 42, 0.12);
  border-radius: 10px;
  padding: 6px 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* hero */
.hero {
  text-align: center;
  padding: 64px 0 40px;
}

.hero .icon {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  box-shadow: 0 12px 32px rgba(46, 90, 200, 0.28);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0;
  margin-top: 24px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--violet);
  font-weight: 700;
  margin-top: 4px;
}

.hero .pitch {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.store-badge {
  display: inline-block;
  margin-top: 28px;
  transition: transform 0.15s ease;
}
.store-badge:hover { transform: scale(1.04); }
.store-badge img { height: 54px; display: block; }

/* screenshots */
.shots {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 32px 0 16px;
  flex-wrap: wrap;
}

.shots img {
  width: min(280px, 80vw);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(29, 31, 42, 0.18);
}

/* section headers */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
}

.section-lede {
  text-align: center;
  color: var(--muted);
  max-width: 520px;
  margin: 8px auto 0;
}

/* collections */
.collections { padding: 40px 24px 8px; }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.collection {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(29, 31, 42, 0.06);
  text-align: center;
}

.collection-emoji { font-size: 2rem; display: block; }

.collection h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 8px 0 6px;
}

.collection p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* features */
.features { padding: 48px 24px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.feature {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border-top: 6px solid var(--blue);
  box-shadow: 0 6px 18px rgba(29, 31, 42, 0.06);
}
.feature:nth-child(5n+2) { border-top-color: var(--violet); }
.feature:nth-child(5n+3) { border-top-color: var(--rose); }
.feature:nth-child(5n+4) { border-top-color: var(--lavender); }
.feature:nth-child(5n) { border-top-color: var(--sage); }

.feature h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* prose pages (privacy) */
.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.prose h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.prose h2 { font-size: 1.25rem; font-weight: 800; margin: 32px 0 8px; }
.prose p, .prose li { color: #3a3d4c; margin-bottom: 12px; }
.prose ul { padding-left: 24px; margin-bottom: 12px; }
.prose .effective { color: var(--muted); font-weight: 600; }
.prose a { color: var(--blue); }
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* printable pages (SEO landing) */
.page-header {
  padding: 48px 24px 8px;
  text-align: center;
}
.page-header .back-link { float: left; }
.page-header h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  clear: both;
}

.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 36px 24px 8px;
}

.page-card {
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(29, 31, 42, 0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
}

/* cards without a description: give the button room under the title */
.page-card h3 + .dl-btn { margin-top: 14px; }

.page-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;
}

.page-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 12px;
}

.page-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 4px 0 14px;
  flex: 1;
}

.dl-btn {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 22px;
  align-self: center;
  transition: transform 0.15s ease;
}
.dl-btn:hover { transform: scale(1.04); }

.cta-panel {
  text-align: center;
  background: var(--card);
  border-radius: 24px;
  padding: 40px 32px;
  margin-top: 40px;
  box-shadow: 0 6px 18px rgba(29, 31, 42, 0.06);
}
.cta-panel .cta-icon { border-radius: 16px; }
.cta-panel h2 {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 800;
  margin-top: 12px;
}
.cta-panel p {
  color: var(--muted);
  max-width: 560px;
  margin: 10px auto 0;
}

.faq { padding: 48px 24px 8px; max-width: 720px; }
.faq-item { margin-top: 24px; }
.faq-item h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.faq-item p { color: var(--muted); font-size: 0.95rem; }

.theme-links { padding: 40px 24px 0; text-align: center; }
.theme-links-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.theme-links-list a {
  background: var(--card);
  border-radius: 999px;
  padding: 10px 20px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(29, 31, 42, 0.06);
}
.theme-links-list a:hover { text-decoration: underline; }

.lang-switcher {
  text-align: center;
  padding: 32px 24px 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.lang-switcher a, .lang-switcher span { margin: 0 10px; font-weight: 600; }
.lang-switcher a { color: var(--blue); text-decoration: none; }
.lang-switcher a:hover { text-decoration: underline; }
.lang-switcher span { color: var(--muted); }

.collection .more-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.collection .more-link:hover { text-decoration: underline; }

/* footer */
footer {
  background: #1d1f2a;
  color: #b8bccd;
  margin-top: 48px;
  padding: 32px 0;
  text-align: center;
  font-size: 0.95rem;
}
footer a { color: var(--lavender); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }
footer .links { margin-bottom: 8px; }
footer .links a { margin: 0 12px; }
