/* Tagdrobe hosting — tokens aligned with TagdrobeAppColors / typography. */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@600;700;800&family=Inter:wght@400;600&display=swap");

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

:root {
  --bg: #fafaf6;
  --mist: #f0f0e8;
  --surface: #ffffff;
  --text: #193945;
  --navy: #2b5666;
  --muted: #6b6b5e;
  --cta: #c5d95d;
  --accent: #b3b900;
  --border: #e0e0d4;
  --shadow: rgba(25, 57, 69, 0.14);
  --display: "DM Sans", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 720px;
  --radius: 24px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px;
}

.wrap--wide {
  max-width: 1080px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.wordmark,
.brand {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: none;
  margin-bottom: 24px;
}

h1 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 12px;
}

h2 {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
}

h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 8px;
}

.card ul {
  margin: 0 0 16px 1.25em;
}

.card li {
  margin-bottom: 8px;
}

p, li { margin-bottom: 12px; color: var(--muted); }

.lede { color: var(--text); font-size: 1.05rem; }

.meta { font-size: 0.9rem; }

/* --- Site chrome --- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(250, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
}

.brand-lockup img {
  width: 36px;
  height: 36px;
  display: block;
}

.top__get {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  background: var(--cta);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius);
}

.top__get:hover { filter: brightness(0.97); }

/* --- Hero --- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 56px 24px 32px;
}

.hero--splash {
  min-height: 100vh;
  justify-content: center;
  padding: 48px 24px 96px;
}

.hero--split {
  gap: 40px;
  padding: 40px 24px 56px;
  max-width: 1120px;
  margin: 0 auto;
}

.hero__logo {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 12px;
}

.hero__mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--text);
}

.hero .wordmark {
  margin-bottom: 8px;
}

.wordmark-rule {
  width: 40px;
  height: 3px;
  margin: 0 auto 24px;
  background: var(--cta);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.hero .lede {
  max-width: 36ch;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero--split .hero__copy {
  width: 100%;
}

.hero--split .hero__visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  background: var(--cta);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 8px 24px var(--shadow);
}

.btn:hover { filter: brightness(0.97); }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  min-height: 54px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.store-badge img {
  display: block;
  width: auto;
}

.store-badge--ios img {
  height: 40px;
}

.store-badge--play img {
  height: 54px;
}

.hero__hint {
  margin: 20px auto 0;
  max-width: 36ch;
  font-size: 0.9rem;
}

/* --- Phone frames / screenshot slots --- */

.phone {
  margin: 0 auto;
  width: 100%;
  max-width: 220px;
}

.phone--hero {
  max-width: 280px;
}

.phone__bezel {
  background: var(--text);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 24px 48px var(--shadow);
}

.phone__screen {
  aspect-ratio: 9 / 19.5;
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.phone__lottie {
  display: none;
  width: 78%;
  max-width: 210px;
  aspect-ratio: 1;
}

.phone--live .phone__lottie {
  display: block;
}

.phone--live .phone__mark,
.phone--live .phone__hint {
  display: none;
}

.phone__mark {
  width: 48px;
  height: 48px;
  transform-origin: 50% 18%;
}

.phone--hero .phone__mark {
  width: 64px;
  height: 64px;
}

.phone:not(.phone--hero):not(.phone--shot) .phone__mark {
  animation: hanger-sway 2.6s ease-in-out infinite alternate;
}

@keyframes hanger-sway {
  from { transform: rotate(-4deg); }
  to { transform: rotate(4deg); }
}

.phone__hint {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.phone__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone--shot .phone__img {
  animation: shot-in 0.45s ease-out;
}

@keyframes shot-in {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Bands --- */

.band {
  padding: 48px 24px 56px;
}

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

.band--mist {
  background: var(--mist);
  text-align: center;
}

.band__title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px;
  text-align: center;
}

.features {
  list-style: none;
  display: grid;
  gap: 40px 24px;
  margin: 0;
  padding: 0;
}

.feature {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: var(--text);
}

html.js .feature {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

html.js .feature:nth-child(2) { transition-delay: 80ms; }
html.js .feature:nth-child(3) { transition-delay: 160ms; }

html.js .feature.is-in {
  opacity: 1;
  transform: none;
}

.feature__copy {
  width: 100%;
  max-width: 320px;
  text-align: left;
}

.feature__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 0 8px;
  background: var(--cta);
  color: var(--navy);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
}

.feature h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.feature p {
  margin: 0;
}

.prose {
  max-width: 40em;
}

.prose p {
  color: var(--muted);
  margin-bottom: 16px;
}

.faq {
  margin-top: 32px;
  text-align: left;
}

.faq h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
}

.faq p {
  margin: 0;
}

.foot {
  text-align: center;
  padding: 40px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.foot .brand-lockup {
  margin-bottom: 4px;
}

.foot__links,
.foot__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.foot__links a { color: var(--navy); }

footer {
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}

footer a { color: var(--navy); }

.note {
  background: var(--surface);
  border-left: 3px solid var(--cta);
  padding: 12px 16px;
  margin: 16px 0;
}

@media (min-width: 880px) {
  .hero--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: center;
    gap: 64px;
    text-align: left;
    padding: 64px 24px 72px;
  }

  .hero--split h1,
  .hero--split .lede {
    margin-left: 0;
    margin-right: 0;
  }

  .hero--split .store-badges {
    justify-content: flex-start;
  }

  .hero--split .hero__visual {
    justify-content: flex-end;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone:not(.phone--hero):not(.phone--shot) .phone__mark {
    animation: none;
  }

  .phone--shot .phone__img {
    animation: none;
  }

  html.js .feature {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
