/* Podiia — public site.
   The palette and typeface are the app's (lib/presentation/theme/app_palette.dart,
   Inter), so the page a shared link lands on is recognisably the same product
   as the app it is asking you to install. Light only, for the same reason:
   the app and the curator panel have one appearance each. */

:root {
  --ink: #232327;
  --ink-soft: #656673;
  --ink-faint: #8f959d;
  --paper: #ffffff;
  --surface: #f8f9fb;
  --divider: #e5e9ee;
  --accent: #e36141;
  --accent-pressed: #bf5233;
  --accent-wash: #fceee7;
  --radius: 14px;
  --radius-pill: 999px;
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-pressed); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* --- masthead --- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

/* The real wordmark. The file is a white silhouette on transparency, so it
   is used as a mask and painted — accent on a light ground, white on a dark
   one. One asset, any surface. */
.wordmark {
  display: block;
  width: 98px;
  height: 34px;
  background-color: var(--accent);
  -webkit-mask: url("/logo.png") no-repeat center / contain;
  mask: url("/logo.png") no-repeat center / contain;
  text-indent: -9999px;
  overflow: hidden;
  flex: none;
}

.masthead nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9375rem;
}
.masthead nav a { color: var(--ink-soft); text-decoration: none; }
.masthead nav a:hover { color: var(--ink); }

/* --- hero --- */

.hero { padding-block: clamp(3rem, 10vw, 6rem) clamp(2.5rem, 8vw, 5rem); }

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
  max-width: 18ch;
}

.hero p {
  margin: 1.25rem 0 0;
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--accent-wash);
  color: var(--accent-pressed);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- store buttons --- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.375rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.store:hover { color: var(--paper); transform: translateY(-1px); }
.store[aria-disabled="true"] {
  background: var(--surface);
  color: var(--ink-faint);
  border: 1px solid var(--divider);
  pointer-events: none;
}
.store svg { width: 18px; height: 18px; fill: currentColor; }

/* --- sections --- */

.band { background: var(--surface); border-block: 1px solid var(--divider); }

.section { padding-block: clamp(3rem, 8vw, 5rem); }

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.section > .wrap > p {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: var(--paper);
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.chip {
  padding: 0.5rem 0.9375rem;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--divider);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* --- prose (privacy, terms) --- */

.prose { padding-block: clamp(2rem, 6vw, 3.5rem) 4rem; }
.prose .wrap { max-width: 44rem; }
.prose h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.prose .updated { margin: 0 0 2.5rem; color: var(--ink-faint); font-size: 0.9375rem; }
.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
}
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }

/* --- footer --- */

.foot {
  border-top: 1px solid var(--divider);
  padding-block: 2.5rem 3rem;
  color: var(--ink-faint);
  font-size: 0.875rem;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
