/* ============================================================================
   Pictimer microsite — shared content styles
   ----------------------------------------------------------------------------
   Sits on top of the glass-bg module. Text + card colours follow the OS via
   prefers-color-scheme, matching the bright/night background so content stays
   legible in both modes.
   ========================================================================== */

:root {
  color-scheme: light dark;
  /* bright (day) palette */
  --ink: #15151c;
  --ink-soft: rgba(21, 21, 28, 0.72);
  --ink-faint: rgba(21, 21, 28, 0.50);
  --accent: #d44e86;
  --card-bg: rgba(255, 255, 255, 0.46);
  --card-border: rgba(21, 21, 28, 0.10);
  --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
  --pill-bg: rgba(255, 255, 255, 0.52);
  --pill-border: rgba(21, 21, 28, 0.12);
  --text-shadow: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ffffff;
    --ink-soft: rgba(255, 255, 255, 0.82);
    --ink-faint: rgba(255, 255, 255, 0.50);
    --accent: #ff86b6;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.16);
    --card-shadow: 0 16px 46px rgba(0, 0, 0, 0.42);
    --pill-bg: rgba(255, 255, 255, 0.10);
    --pill-border: rgba(255, 255, 255, 0.20);
    --text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
  }
}

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

body {
  font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* content sits above the fixed .glass-bg (z-index 0) */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 2.5rem 1.5rem 3.5rem;
}

/* ---- landing hero -------------------------------------------------------- */
.hero {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.7s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.app-icon {
  width: 116px;
  height: 116px;
  border-radius: 25px;
  margin-bottom: 1.6rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  animation: heartbeat 2s ease-in-out infinite;
}

/* subtle heartbeat, matching the Ditto site */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .app-icon { animation: none; }
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: var(--text-shadow);
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  max-width: 30rem;
  text-shadow: var(--text-shadow);
}

/* ---- pills / badges ------------------------------------------------------ */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.pill {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.coming-soon {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  box-shadow: var(--card-shadow);
}
.coming-soon .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent);
}

/* ---- feature cards ------------------------------------------------------- */
.features {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  width: 100%;
  text-align: left;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--card-shadow);
}

.card .emoji { font-size: 1.6rem; line-height: 1; }
.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.7rem 0 0.35rem;
}
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---- cross-promotion (companion app) ------------------------------------ */
.cross-label {
  margin: 2.6rem 0 0.9rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-align: center;
}
.crosspromo {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-radius: 18px;
  padding: 1.1rem 1.3rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.crosspromo:hover { transform: translateY(-2px); border-color: var(--accent); }
.crosspromo img { width: 56px; height: 56px; border-radius: 13px; flex-shrink: 0; }
.crosspromo .cp-name { display: block; font-weight: 600; font-size: 1.05rem; }
.crosspromo .cp-desc { display: block; color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.15rem; }
.crosspromo .cp-arrow { margin-left: auto; padding-left: 0.5rem; color: var(--ink-faint); font-size: 1.3rem; }

/* ---- links --------------------------------------------------------------- */
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.foot-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.foot-links a:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }

footer {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* ---- subpages (privacy / support) --------------------------------------- */
.doc { max-width: 720px; margin: 0 auto; animation: rise 0.7s ease-out both; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.back-link:hover {
  color: var(--ink);
  background: var(--pill-bg);
  border-color: var(--pill-border);
}

.doc h1 {
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: var(--text-shadow);
}
.doc .updated { color: var(--ink-faint); font-size: 0.9rem; margin: 0.4rem 0 2rem; }

.doc .card { margin-bottom: 1.25rem; }
.doc .card h2 { font-size: 1.25rem; font-weight: 600; color: var(--accent); margin-bottom: 0.6rem; }
.doc .card p { margin-bottom: 0.8rem; }
.doc .card p:last-child { margin-bottom: 0; }

.highlight {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
}
.highlight .emoji { font-size: 1.9rem; flex-shrink: 0; }
.highlight h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem; }
.highlight p { color: var(--ink-soft); }

.doc ul { list-style: none; }
.doc ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
}
.doc ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.doc .center { text-align: center; }
.doc a.inline { color: var(--accent); text-decoration: none; }
.doc a.inline:hover { text-decoration: underline; }
