/* InstaStalk marketing site. Porcelain Rose tokens, mirrored from
   ios/Core/DesignSystem/Tokens.swift. One accent rose, quiet shadows, no gloss. */

:root {
  color-scheme: light;

  --rose: #C7146B;
  --rose-pressed: #A81159;
  --rose-700: #B91262;
  --rose-500: #D6408E;
  --rose-300: #E58AB8;
  --flag-700: #B3125F;

  --ink-900: #1D1A1C;
  --ink-700: #454045;
  --gray-500: #6E6771;
  --mulberry: #756D75;
  --placeholder: #A69EA5;

  --ground: #F7F3F5;
  --blush: #FBEDF4;
  --surface: #FFFFFF;
  --sand: #F3EDF1;

  --hairline: #EBE3E8;
  --warm-hairline: #EDE5EA;
  --border-tint: #EFDFE9;

  --pink-50: #FAEDF4;
  --pink-100: #F6DFEC;
  --pink-200: #EFC9DE;

  --green-50: #EFF3E5;
  --green-200: #D3E0BE;
  --green-500: #618E4E;
  --green-600: #4F7A3D;

  --blue-tint: #E9F0FB;
  --blue-500: #4A7BC4;

  --ring-track: #F2E9EF;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-card: 0 6px 14px rgba(0, 0, 0, 0.05), 0 1px 1.5px rgba(0, 0, 0, 0.03);
  --shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-cta: 0 5px 12px rgba(199, 20, 107, 0.20);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

/* The app ground: flat porcelain with a whisper of blush at the very top. */
.ground {
  background:
    linear-gradient(to bottom, rgba(251, 237, 244, 0.9), rgba(251, 237, 244, 0) 280px),
    var(--ground);
}

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

a { color: var(--rose-700); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--pink-100); }

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-900);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.lockup:hover { text-decoration: none; }
.lockup .mark { display: block; width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 600;
}
.nav-links .nav-plain { color: var(--mulberry); }
.nav-links .nav-plain:hover { color: var(--ink-900); text-decoration: none; }

.pill-cta {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-cta);
  transition: background 0.15s ease, transform 0.15s ease;
}
.pill-cta:hover { background: var(--rose-pressed); text-decoration: none; }
.pill-cta:active { transform: scale(0.98); }

/* ---------- Type ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mulberry);
}

h1 {
  font-size: clamp(34px, 6.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h3 { font-size: 22px; letter-spacing: -0.01em; font-weight: 700; }

.lede {
  font-size: clamp(17px, 2.2vw, 19px);
  color: var(--mulberry);
  line-height: 1.55;
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 30px;
  text-align: center;
  position: relative;
}

.hero .eyebrow { margin-bottom: 14px; }

.hero h1 { max-width: 640px; margin: 0 auto 18px; }

.hero .lede { max-width: 540px; margin: 0 auto 30px; }

.store-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--placeholder);
  font-weight: 500;
}

.store-badge { display: inline-block; line-height: 0; border-radius: 12px; transition: transform 0.15s ease, opacity 0.15s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge:active { transform: scale(0.98); }
.store-badge svg { height: 54px; width: auto; display: block; }

/* Demo: the onboarding alert cards, floating over faint medallion rings. */
.demo {
  position: relative;
  max-width: 430px;
  margin: 44px auto 0;
  display: grid;
  gap: 12px;
  padding-bottom: 8px;
}

.demo::before,
.demo::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(199, 20, 107, 0.06);
  pointer-events: none;
}
.demo::before { width: 560px; height: 560px; }
.demo::after { width: 430px; height: 430px; border-color: rgba(199, 20, 107, 0.05); }

.alert-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--warm-hairline);
  border-radius: var(--r-lg);
  padding: 12px;
  box-shadow: var(--shadow-card);
}

.js .alert-card { opacity: 0; transform: translateY(16px); }
.js .alert-card.in { animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.js .alert-card.in:nth-child(2) { animation-delay: 0.24s; }
.js .alert-card.in:nth-child(3) { animation-delay: 0.48s; }

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

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-round);
}
.avatar.g1 { background: linear-gradient(135deg, #F191C1, #A98BDF); }
.avatar.g2 { background: linear-gradient(135deg, #8FC6EC, #5B93DD); }
.avatar.g3 { background: linear-gradient(135deg, #F3BC77, #EC8DBF); }

.story-ring {
  flex: none;
  padding: 2.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C7146B, #F26BAD);
}
.story-ring .avatar { border: 2px solid var(--surface); }

.alert-card .who { min-width: 0; }
.alert-card .handle {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.alert-card .when { font-size: 13px; color: var(--mulberry); }
.alert-card .badge { margin-left: auto; }

.badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink-900);
}
.badge svg { width: 13px; height: 13px; }
.badge.followed { background: var(--green-50); border-color: var(--green-200); }
.badge.followed svg { color: var(--green-600); }
.badge.unfollowed { background: var(--pink-50); border-color: var(--pink-200); }
.badge.unfollowed svg { color: var(--rose-700); }
.badge.story { background: var(--pink-100); border-color: var(--pink-200); }
.badge.story svg { color: var(--rose); }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }

.section-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head p { margin-top: 12px; }

/* Trust tiles: 3-across stat tiles, tinted icon squares. */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.tile {
  background: var(--surface);
  border: 1px solid var(--warm-hairline);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
}

.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.pink { background: var(--pink-100); color: var(--rose); }
.icon-tile.blue { background: var(--blue-tint); color: var(--blue-500); }
.icon-tile.green { background: var(--green-50); color: var(--green-600); }

.tile h3 { font-size: 17px; margin-bottom: 5px; }
.tile p { font-size: 15px; color: var(--mulberry); }

/* How it works: numbered steps, rounded brand numerals. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }

.step {
  background: var(--surface);
  border: 1px solid var(--warm-hairline);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
}

.step-num {
  font-family: var(--font-round);
  font-size: 22px;
  font-weight: 700;
  color: var(--rose);
  background: var(--pink-50);
  border: 1px solid var(--pink-200);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.step h3 { font-size: 17px; margin-bottom: 5px; }
.step p { font-size: 15px; color: var(--mulberry); }

/* Feature panels: stories + score. */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--warm-hairline);
  border-radius: var(--r-xl);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel .visual {
  display: grid;
  place-items: center;
  padding: 26px 0 22px;
}

.panel .eyebrow { color: var(--rose-700); }
.panel h3 { margin-bottom: 2px; }
.panel > p { font-size: 15px; color: var(--mulberry); }

.big-ring-num {
  font-family: var(--font-round);
  font-weight: 700;
  fill: var(--ink-900);
}

.ring-caption { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; fill: var(--mulberry); }

/* FAQ */
.faq-list { max-width: 680px; margin: 0 auto; display: grid; gap: 10px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--warm-hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-round);
  font-size: 20px;
  font-weight: 600;
  color: var(--rose);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .answer {
  padding: 0 18px 16px;
  font-size: 15px;
  color: var(--gray-500);
}

/* Final CTA */
.final {
  text-align: center;
  padding: 84px 0 96px;
}
.final h2 { margin-bottom: 12px; }
.final .lede { max-width: 480px; margin: 0 auto 28px; }
.small-print { margin-top: 16px; font-size: 13px; color: var(--placeholder); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 34px 0 44px;
  background: var(--ground);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.footer-links a { color: var(--gray-500); }
.footer-links a:hover { color: var(--ink-900); text-decoration: none; }

.legal-line {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--placeholder);
  line-height: 1.6;
  max-width: 640px;
}

/* ---------- Legal / support article pages ---------- */

.article {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0 80px;
}
.article h1 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 6px; }
.article .updated { color: var(--placeholder); font-size: 14px; margin-bottom: 34px; }
.article h2 { font-size: 20px; margin: 34px 0 10px; }
.article p, .article li { font-size: 15.5px; color: var(--ink-700); margin-bottom: 12px; }
.article ul { padding-left: 22px; margin-bottom: 12px; }
.article li { margin-bottom: 8px; }

.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--warm-hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--rose-700);
  margin: 6px 0 10px;
}
.contact-card:hover { text-decoration: none; background: var(--pink-50); }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .alert-card { opacity: 1; transform: none; transition: none; animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .panels { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .tiles, .steps { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .nav-links { gap: 18px; }
  .nav-links .nav-plain { display: none; }
  .hero { padding-top: 36px; }
  .demo::before, .demo::after { display: none; }
}
