/* Posie design system — night bands over a light lilac body.
   Neon pink and ice only glow on night. On the light body pink is limited to
   primary button fills, the selected chip ring and the section glow dot. */
:root {
  --night-900: #07122E;
  --night-800: #0B1A40;
  --night-line: #1D2D5C;
  --night-border: #23356A;
  --neon-pink: #FF5FA2;
  --ice: #6EC8FF;
  --moon: #F4F6FF;
  --moon-muted: #C9D1EC;
  --haze: #A9B4D6;

  --lilac-50: #F5F3FA;
  --surface: #FFFFFF;
  --lilac-100: #ECEAF4;
  --photo-well: #E4E1EE;
  --line: #E2E0EE;
  --control-border: #D6D3E3;
  --ink: var(--night-800);
  --ink-muted: #5A6385;
  --blue-600: #1670AD;
  --blue-50: #E2F2FC;
  --pink-50: #FFE4EF;

  --font-display: Fraunces, Georgia, "Times New Roman", serif;
  --font-sans: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, Menlo, monospace;

  --glow-line: 0 1px 0 #FF5FA2, 0 0 22px rgba(255, 95, 162, 0.5);
  --glow-line-up: 0 -1px 0 #FF5FA2, 0 0 18px rgba(255, 95, 162, 0.35);
  --glow-button: 0 0 24px rgba(255, 95, 162, 0.45);
  --glow-dot: 0 0 0 5px rgba(255, 95, 162, 0.16), 0 0 16px rgba(255, 95, 162, 0.85);
  --glow-text: 0 0 24px rgba(255, 95, 162, 0.55);
  --caption-lift: 0 -8px 30px rgba(11, 26, 64, 0.14);

  --gutter: 32px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--lilac-50);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--ink); }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; }
.night-band :focus-visible { outline-color: var(--ice); }

.wrap { max-width: var(--max); margin: 0 auto; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue-600);
}
.eyebrow-lg { font-size: 13px; letter-spacing: 0.12em; }
.mono-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }

.glow-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--neon-pink);
  box-shadow: var(--glow-dot);
}
.glow-dot-sm { width: 10px; height: 10px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.015em;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
}

/* ---------- Buttons (every button is a pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: filter 0.15s, box-shadow 0.15s, opacity 0.2s, visibility 0.2s;
}
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-pink { background: var(--neon-pink); color: var(--night-900); }
.btn-pink:hover { color: var(--night-900); filter: brightness(1.06); }
.btn-glow { box-shadow: var(--glow-button); }
.btn-glow:hover { box-shadow: 0 0 32px rgba(255, 95, 162, 0.6); }
.btn-ink { background: var(--ink); color: var(--moon); }
.btn-ink:hover { color: var(--moon); filter: brightness(1.35); }
.btn-night-outline {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  color: var(--moon);
  box-shadow: inset 0 0 0 1px var(--neon-pink), 0 0 14px rgba(255, 95, 162, 0.35);
}
.btn-night-outline:hover { color: var(--moon); box-shadow: inset 0 0 0 1px var(--neon-pink), 0 0 22px rgba(255, 95, 162, 0.55); }

/* ---------- Night bands ---------- */
.night-band { background: var(--night-900); color: var(--moon); padding: 0 var(--gutter); }

.header { box-shadow: var(--glow-line); position: relative; z-index: 1; }
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding: 22px 0;
}
.logo { display: flex; align-items: center; gap: 4px; flex-grow: 1; }
.nav-link { font-size: 15px; color: var(--moon); }
.nav-link:hover { color: var(--ice); }
.nav-link[aria-current="page"] { color: var(--neon-pink); }
.has-hero:not(.hero-passed) .nav-cta { opacity: 0; visibility: hidden; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
  padding-top: 40px;
}
.hero-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 88px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero-title em { color: var(--neon-pink); text-shadow: var(--glow-text); }
.lede { max-width: 34rem; font-size: 19px; line-height: 1.55; color: var(--moon-muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.link-ice { font-size: 16px; color: var(--ice); }
.link-ice:hover { color: var(--moon); }

/* Sample in-app Fit Card hanging off the header edge */
.hero-phone {
  flex: 0 0 273px;
  height: 591px;
  margin-bottom: -150px;
  border-radius: 31px;
  box-shadow: 0 0 0 1px var(--night-border), 0 0 50px rgba(255, 95, 162, 0.3), 0 30px 60px rgba(7, 18, 46, 0.35);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.phone {
  width: 390px;
  height: 844px;
  transform: scale(0.7);
  transform-origin: top left;
  position: relative;
  overflow: hidden;
  background: var(--photo-well);
  color: var(--ink);
}
.phone-media {
  position: absolute;
  inset: 0;
  padding-bottom: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #6A7194;
}
.phone-top {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 124px;
  padding: 54px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--night-900);
  color: var(--moon);
  box-shadow: 0 1px 0 #FF5FA2, 0 0 18px rgba(255, 95, 162, 0.55);
}
.phone-top-row { display: flex; align-items: center; gap: 10px; }
.phone-title { flex-grow: 1; font-family: var(--font-display); font-style: italic; font-size: 24px; }
.phone-count { font-family: var(--font-mono); font-size: 11px; color: var(--moon-muted); }
.phone-progress { display: flex; gap: 4px; }
.phone-progress span { flex: 1; height: 3px; border-radius: 2px; background: rgba(244, 246, 255, 0.28); }
.phone-progress .is-on { background: var(--neon-pink); box-shadow: 0 0 8px rgba(255, 95, 162, 0.8); }
.phone-rail {
  position: absolute;
  right: 14px;
  bottom: 384px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.rail-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}
.rail-btn-faint { width: 44px; height: 44px; background: rgba(255, 255, 255, 0.6); color: var(--ink-muted); }
.phone-caption {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--lilac-50);
  border-radius: 34px;
  box-shadow: var(--caption-lift);
}
.caption-creator { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--night-800);
  outline: 2px solid var(--ice);
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ice);
}
.caption-handle { flex-grow: 1; font-size: 15px; font-weight: 600; }
.caption-meta { font-size: 12px; color: var(--ink-muted); }
.caption-quote { font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 1.25; }
.caption-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: var(--surface);
}
.caption-thumb { width: 50px; height: 50px; flex-shrink: 0; border-radius: 10px; background: var(--blue-50); }
.caption-product-text { display: flex; flex-direction: column; gap: 3px; flex-grow: 1; min-width: 0; }
.caption-product-text .eyebrow { font-size: 11px; }
.caption-product-name { font-size: 15px; font-weight: 600; }
.phone-cta { min-height: 54px; font-size: 17px; }

/* ---------- Light body ---------- */
.body { flex-grow: 1; padding: 72px var(--gutter) 96px; }
.stack { display: flex; flex-direction: column; gap: 88px; }
.section { display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--control-border);
  font-size: 15px;
}
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-muted); }
.chip[aria-current="true"] {
  background: var(--ink);
  color: var(--moon);
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--neon-pink);
}

/* Product tiles */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px 24px;
}
.grid > li { display: flex; }
.tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
  color: var(--ink);
  transition: box-shadow 0.15s;
}
.tile:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--control-border); }
.tile-media {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.tile:hover .tile-media img { transform: scale(1.03); }
.tile-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.tile-body { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; }
.tile-name { flex-grow: 1; font-family: var(--font-display); font-size: 20px; line-height: 1.2; }
.tile-shop { padding-top: 6px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.tile:hover .tile-shop { text-decoration: underline; text-underline-offset: 3px; }

.well-0 { background: var(--photo-well); }
.well-1 { background: var(--blue-50); }
.well-2 { background: var(--pink-50); }
.well-3 { background: var(--lilac-100); }

.empty { color: var(--ink-muted); font-size: 17px; padding: 24px 0; }

/* App band */
.app-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 48px;
  border-radius: 32px;
  background: var(--blue-50);
}
.app-band-copy { flex: 1 1 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.app-band-copy p { max-width: 30rem; }
.band-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.steps { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.steps li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--surface);
}
.steps b { font-weight: 600; }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--blue-600); }

/* Shop by (behind SF_SHOW_SHOP) */
.shop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.shop .card-title { margin-bottom: 14px; }
.shop-list li { border-bottom: 1px solid var(--line); }
.shop-list a { display: block; padding: 10px 0 9px; color: var(--ink); font-family: var(--font-display); font-size: 20px; }
.shop-list a:hover { color: var(--blue-600); }
.creators { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.creator-media { aspect-ratio: 4 / 5; border-radius: 18px; }
.creator-handle { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; }

/* Secondary pages */
.page { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; padding: 24px 0 16px; }
.page-copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 22px; }
.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.page-note { max-width: 32rem; font-size: 18px; color: var(--ink-muted); }
.back-link { align-self: flex-start; font-size: 16px; font-weight: 600; }
.app-card {
  flex: 0 1 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.app-card-title { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.05; }
.app-card p { font-size: 15px; color: var(--ink-muted); }
.app-card .btn { font-size: 15px; }

/* ---------- Footer ---------- */
.footer { padding-top: 48px; padding-bottom: 40px; box-shadow: var(--glow-line-up); color: var(--haze); }
.footer .wrap { display: flex; flex-direction: column; gap: 28px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-grow: 1; color: var(--haze); }
.footer-brand:hover { color: var(--haze); }
.footer-name { font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--moon); }
.footer-endorse { font-size: 13px; padding-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.footer-links a { font-size: 15px; color: var(--moon); }
.footer-links a:hover { color: var(--ice); }
.footer-note { padding-top: 20px; border-top: 1px solid var(--night-line); font-size: 13px; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr 1fr; }
  #styled-by { grid-column: 1 / -1; }
  .creators { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  .hero-phone { display: none; }
  .hero-copy { padding-bottom: 56px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .topbar { padding: 14px 0; gap: 12px 18px; }
  .nav-link { display: none; }
  .logo .posie-mark { width: 32px; height: 32px; }
  .logo .posie-wordmark { width: 77px; height: 32px; }
  .hero { padding-top: 20px; }
  .lede { font-size: 16px; }
  .body { padding-top: 48px; padding-bottom: 72px; }
  .stack { gap: 64px; }
  .section-title { font-size: 40px; gap: 14px; }
  .section-title .glow-dot { width: 12px; height: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .tile { border-radius: 18px; }
  .tile-body { padding: 12px 12px 14px; }
  .tile-name { font-size: 17px; }
  .tile-shop { font-size: 13px; }
  .tile-tag { left: 8px; top: 8px; font-size: 10px; padding: 4px 8px; }
  .app-band { padding: 28px 20px; border-radius: 24px; gap: 28px; }
  .band-title { font-size: 34px; }
  .steps li { padding: 14px 16px; gap: 14px; font-size: 16px; }
  .shop { grid-template-columns: 1fr; gap: 40px; }
  .creators { grid-template-columns: 1fr 1fr; }
  .footer-links { gap: 10px 22px; }
}
