/* PigPen marketing site — same palette as the app. */

:root {
  --ink: #5A3A2E;
  --ink-soft: #76554A;
  --ink-mute: #A18B81;
  --ink-faint: #D6C9C2;
  --paper: #FFFFFF;
  --cream-50: #FFFBF6;
  --cream-100: #FFF4E8;
  --cream-200: #F7ECDD;
  --pink-100: #FFE9EE;
  --pink-200: #FFDDE6;
  --pink-400: #FFB6C9;
  --pink-600: #E26A8E;
  --yolk: #FFD66B;
  --yolk-deep: #E8A91A;
  --mint: #B8E8C9;
  --mint-deep: #4FB87A;
  --tomato: #FF7A8A;
  --shadow: rgba(90, 58, 46, 0.18);
  --radius-card: 22px;
  --radius-pill: 9999px;
  --outline: 2.5px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--cream-50);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Nunito", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dotted paper background, mimicking the in-app DottedPaperBackground. */
body {
  background-image: radial-gradient(circle at 1.5px 1.5px, var(--pink-200) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  background-position: 0 0;
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--pink-600); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Layout */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  padding: 22px 0 12px;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 44px; height: 44px; }
.brand-name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 14px;
}
.nav a.active { color: var(--ink); }

.site-footer {
  margin-top: 64px;
  padding: 32px 0 64px;
  color: var(--ink-mute);
  font-size: 13px;
}
.site-footer .container {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
}
.site-footer a {
  color: var(--ink-soft);
  font-weight: 700;
  margin-right: 18px;
}

/* Sticker card surface */
.card {
  background: var(--paper);
  border: var(--outline) solid var(--ink);
  border-radius: var(--radius-card);
  padding: 28px;
  position: relative;
  margin: 20px 0;
  box-shadow: 4px 5px 0 var(--ink);
}
.card.tinted-pink   { background: var(--pink-100); }
.card.tinted-cream  { background: var(--cream-100); }
.card.tinted-mint   { background: var(--mint); }
.card.tinted-yolk   { background: var(--yolk); }

/* Headlines */
h1, h2, h3 {
  margin-top: 0;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
}
h1 { font-size: clamp(34px, 5.5vw, 52px); line-height: 1.1; margin-bottom: 12px; }
h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
h3 { font-size: 18px; margin-bottom: 8px; }

p { line-height: 1.55; color: var(--ink-soft); }

.lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 60ch;
}

.eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--cream-50);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  background: var(--pink-400);
  color: var(--ink);
  border: var(--outline) solid var(--ink);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 3px 4px 0 var(--ink);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.btn:hover { text-decoration: none; transform: translate(1px, 1px); box-shadow: 2px 3px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 2px 0 var(--ink); }
.btn.secondary { background: var(--paper); }
.btn.go { background: var(--mint); }

/* Apple's official "Download on the App Store" badge — pulled from
   Apple's linkmaker CDN as an SVG, kept at its native aspect ratio. */
.appstore-badge {
  display: inline-block;
  border: none;
  outline: none;
  line-height: 0;
}
.appstore-badge img {
  height: 56px;
  width: auto;
  display: block;
  border: none;
  box-shadow: none;
}

/* Hero */
.hero {
  padding: 24px 0 8px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-art {
  text-align: center;
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-art > img { width: 240px; height: 240px; margin: 0 auto; }
.hero-art .appstore-badge img { height: 56px; }

@media (max-width: 720px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art img { width: 180px; height: 180px; }
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.feature {
  background: var(--paper);
  border: var(--outline) solid var(--ink);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: 3px 4px 0 var(--ink);
}
.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature .icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  background: var(--yolk);
  border: var(--outline) solid var(--ink);
  border-radius: 9px;
  font-size: 18px;
}

/* Pricing */
.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
@media (max-width: 720px) {
  .tier-grid { grid-template-columns: 1fr; }
}
.tier {
  background: var(--paper);
  border: var(--outline) solid var(--ink);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: 4px 5px 0 var(--ink);
}
.tier.featured { background: var(--mint); }
.tier-name { font-weight: 800; font-size: 22px; }
.tier-price {
  font-size: 36px;
  font-weight: 900;
  margin: 12px 0 4px;
}
.tier-price small { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.tier ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.tier li {
  padding: 8px 0;
  border-top: 1px dashed var(--ink-faint);
  color: var(--ink-soft);
}
.tier li:first-child { border-top: 0; }
.tier li::before {
  content: "✓ ";
  color: var(--mint-deep);
  font-weight: 800;
}

/* Long-form prose for legal pages */
.prose h2 { margin-top: 32px; }
.prose h3 { margin-top: 22px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; color: var(--ink-soft); line-height: 1.55; }
.prose .meta {
  color: var(--ink-mute);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* CTA strip */
.cta-strip {
  margin-top: 48px;
  padding: 36px;
  background: var(--pink-100);
  border: var(--outline) solid var(--ink);
  border-radius: var(--radius-card);
  text-align: center;
  box-shadow: 4px 5px 0 var(--ink);
}
.cta-strip p { color: var(--ink); font-size: 16px; }
