:root {
  color-scheme: dark;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ff-night-end);
  color: var(--ff-text);
  font: 400 1rem/1.7 var(--ff-font-ui);
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ff-focus);
  outline-offset: 5px;
}
.wrap {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font: 600 2rem var(--ff-font-display);
  color: var(--ff-ink);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 32px;
  position: relative;
  z-index: 3;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.85rem;
}
.support-link,
.footer-bottom nav a {
  position: relative;
  isolation: isolate;
}
.support-link::before,
.footer-bottom nav a::before {
  content: '';
  position: absolute;
  inset: -4px -16px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-pill);
  background: var(--ff-action-hover-soft);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  opacity: 0;
  transition: opacity var(--ff-duration-base) var(--ff-ease-out);
}
.support-link:hover::before,
.support-link:focus-visible::before,
.footer-bottom nav a:hover::before,
.footer-bottom nav a:focus-visible::before {
  opacity: 1;
}
.app-outline {
  background: transparent;
  border-color: var(--ff-border-strong);
  color: var(--ff-ink);
}
.app-outline:hover {
  background: var(--ff-action-hover-soft);
}
.hero {
  min-height: 860px;
  min-height: max(860px, 100svh);
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--ff-night-start) url('/assets/lake-night.jpg') center bottom / cover
    no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--ff-night-start) 72%, transparent),
      color-mix(in srgb, var(--ff-night-start) 28%, transparent) 75%
    ),
    linear-gradient(
      0deg,
      var(--ff-night-end),
      color-mix(in srgb, var(--ff-night-start) 24%, transparent) 45%,
      color-mix(in srgb, var(--ff-night-start) 30%, transparent)
    );
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 650px;
  padding-block: 48px 144px;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  color: var(--ff-firefly-gold);
  letter-spacing: 0.13em;
  font-size: 0.65rem;
}
h1.ff-display {
  font-size: clamp(4rem, 6.6vw, 6.5rem);
  font-weight: 500;
  line-height: 0.98;
  margin: 24px 0;
  letter-spacing: -0.035em;
}
em {
  font-weight: 500;
}
.intro {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 420px;
  margin-block: 24px 32px;
  color: var(--ff-text);
}
.hero-cta {
  min-height: 52px;
  padding-inline: 32px;
}
.discover {
  display: block;
  width: fit-content;
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--ff-muted);
}
.discover span {
  margin-left: 8px;
}
.hero-cards {
  position: relative;
  height: 480px;
  margin-left: -32px;
  perspective: 1200px;
}
.hero-card {
  position: absolute;
  top: 28px;
  width: 49%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--ff-radius-md);
  box-shadow: var(--ff-shadow-raised);
}
.card-picnic {
  left: 0;
  top: 48px;
  transform: rotate(-12deg);
  z-index: 3;
}
.card-music {
  left: 28%;
  transform: rotate(3deg);
  z-index: 2;
}
.card-soccer {
  left: 54%;
  top: 88px;
  transform: rotate(15deg);
  z-index: 1;
}
.firefly-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.firefly-anchor {
  position: absolute;
}
.firefly-travel,
.firefly-flee {
  display: block;
}
.firefly-flee {
  transition: transform 420ms var(--ff-ease-out);
}
.marketing-firefly {
  display: block;
  position: relative;
  border-radius: var(--ff-radius-pill);
  background: var(--ff-firefly-realistic-fill);
  width: 7px;
  height: 7px;
  animation:
    auth-firefly-appear 24s var(--ff-ease-out) infinite,
    auth-firefly-pulse var(--pulse-duration) ease-in-out infinite;
  animation-delay: var(--cycle-delay), var(--pulse-delay);
  --ff-firefly-light: var(--ff-firefly-gold);
  box-shadow:
    0 0 12px 2px color-mix(in srgb, var(--ff-firefly-gold) 49%, transparent),
    0 0 28px 7px color-mix(in srgb, var(--ff-firefly-gold) 29%, transparent);
}
.marketing-firefly::before {
  content: '';
  position: absolute;
  inset: -30px -33px;
  background: var(--ff-firefly-realistic-falloff);
}
.marketing-firefly .about-dialog__flare {
  top: 2px;
}

.showcase {
  position: relative;
  background:
    radial-gradient(
      ellipse at 24% 45%,
      color-mix(in srgb, var(--ff-primary) 10%, transparent),
      transparent 60%
    ),
    var(--ff-night-end);
  padding-block: 96px 112px;
}
.showcase-content {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 112px;
  align-items: center;
}
.phone-demo {
  margin: 0;
  text-align: center;
}
.phone {
  width: 310px;
  height: 632px;
  padding: 8px;
  margin-inline: auto;
  border: 1px solid var(--ff-border-strong);
  border-radius: 48px;
  background: var(--ff-ink);
  color: var(--ff-text);
  box-shadow: var(--ff-shadow-raised);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotate(-4deg);
}
.phone-status {
  height: 40px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  padding-inline: 16px;
  color: var(--ff-ink);
  background: var(--ff-canvas);
  border-radius: 36px 36px 0 0;
}
.phone-island {
  width: 84px;
  height: 23px;
  background: var(--ff-ink);
  border-radius: var(--ff-radius-pill);
}
.phone-header {
  background: var(--ff-canvas);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.phone-header .brand {
  font-size: 1.7rem;
  gap: 8px;
}
.avatar {
  display: grid;
  place-items: center;
  height: 28px;
  width: 28px;
  border-radius: var(--ff-radius-pill);
  background: var(--ff-signal-soft);
  font-size: 0.7rem;
}
.phone-tabs {
  display: flex;
  gap: 20px;
  padding: 8px 16px;
  background: var(--ff-canvas);
  font-size: 0.65rem;
}
.phone-tabs .active {
  color: var(--ff-primary);
  font-weight: 700;
  border-bottom: 2px solid var(--ff-primary);
  padding-bottom: 8px;
}
.phone-scroll {
  flex: 1;
  overflow-y: auto;
  background: var(--ff-canvas);
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.phone-feed {
  padding: 12px;
  text-align: left;
}
.feed-label {
  font-size: 0.55rem;
  margin: 0 0 12px;
}
.feed-card {
  margin-bottom: 16px;
  overflow: hidden;
}
.feed-card img {
  width: 100%;
  height: 224px;
  object-fit: cover;
  display: block;
}
.feed-detail {
  padding: 12px;
}
.feed-detail .ff-label {
  font-size: 0.5rem;
  margin: 0;
}
.feed-detail h3 {
  font: 600 1.2rem/1.2 var(--ff-font-display);
  margin: 8px 0;
}
.feed-detail p {
  font-size: 0.6rem;
  margin: 0 0 8px;
}
.feed-tag {
  padding: 4px 8px;
  background: var(--ff-surface-subtle);
  color: var(--ff-primary);
  border-radius: var(--ff-radius-pill);
  font-size: 0.5rem;
}
.phone-bottom {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--ff-surface);
  padding: 12px 8px 20px;
  border-radius: 0 0 36px 36px;
  font-size: 1rem;
}
.phone-bottom small {
  display: block;
  font-size: 0.45rem;
}
.add-symbol {
  background: var(--ff-primary);
  color: var(--ff-primary-contrast);
  border-radius: var(--ff-radius-pill);
  width: 32px;
  height: 32px;
  line-height: 32px;
}
figcaption {
  color: var(--ff-muted);
  font-size: 0.65rem;
  margin-top: 16px;
}

.value-copy h2 {
  margin-block: 24px;
  font-size: clamp(2.7rem, 4vw, 3.7rem);
  font-weight: 500;
}
.section-intro {
  color: var(--ff-muted);
  font-size: 0.95rem;
  max-width: 440px;
}
.value-list {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 32px;
  margin-block: 32px 40px;
}
.value-list li {
  display: flex;
  gap: 24px;
}
.value-icon {
  color: var(--ff-firefly-gold);
  font-size: 1.5rem;
  flex: 0 0 32px;
  line-height: 1.2;
  padding-top: 4px;
}
.value-list h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
}
.value-list p {
  margin: 0;
  color: var(--ff-muted);
  font-size: 0.8rem;
  line-height: 1.7;
  max-width: 390px;
}
.site-footer {
  padding-block: 48px 32px;
  background: var(--ff-night-mid);
  border-top: 1px solid color-mix(in srgb, var(--ff-border) 45%, transparent);
}
.footer-top,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-top {
  padding-bottom: 32px;
}
.footer-top p {
  font: italic 500 1.5rem var(--ff-font-display);
  color: var(--ff-muted);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--ff-border) 45%, transparent);
  color: var(--ff-muted);
}
.footer-bottom p {
  margin: 0;
  font-size: 0.65rem;
}
.footer-bottom nav {
  gap: 24px 48px;
  font-size: 0.65rem;
}
.footer-bottom p a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ff-duration-fast) var(--ff-ease-out);
}
.footer-bottom p a:hover,
.footer-bottom p a:focus-visible {
  color: var(--ff-firefly-gold);
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
}
.skip-link:focus {
  top: 16px;
}
@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero-card {
    height: 340px;
  }
  .hero-cards {
    height: 420px;
  }
  .showcase-content {
    gap: 48px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    padding-block: 24px;
  }
  nav {
    gap: 32px;
  }
  .brand {
    font-size: 1.7rem;
  }
  .hero {
    min-height: auto;
  }
  .hero-content {
    grid-template-columns: 1fr;
    padding-block: 40px 112px;
    gap: 32px;
  }
  h1.ff-display {
    font-size: clamp(3.8rem, 12vw, 5.5rem);
  }
  .hero-copy {
    max-width: 500px;
  }
  .hero-cards {
    width: min(90%, 460px);
    margin: 0 auto;
    height: 360px;
  }
  .hero-card {
    height: 300px;
  }
  .card-picnic {
    top: 24px;
  }
  .card-music {
    top: 0;
  }
  .card-soccer {
    top: 48px;
  }
  .showcase {
    padding-block: 64px;
  }
  .showcase-content {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .value-copy {
    max-width: 520px;
    margin-inline: auto;
  }
  .phone {
    transform: rotate(-2deg);
  }
  .footer-top,
  .footer-bottom {
    flex-wrap: wrap;
  }
  .footer-top p {
    display: none;
  }
  .footer-bottom nav {
    flex-wrap: wrap;
    gap: 24px 48px;
  }
}
@media (max-width: 390px) {
  .support-link {
    font-size: 0.7rem;
  }
  .site-header nav {
    gap: 32px;
  }
  .site-header .ff-button {
    padding-inline: 12px;
    font-size: 0.75rem;
  }
  .phone {
    width: 286px;
  }
  .hero-card {
    height: 260px;
  }
  .hero-cards {
    height: 320px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marketing-firefly {
    animation: none;
    opacity: 0.72;
  }
  .firefly-flee {
    transition: none;
  }
}

.hero-copy,
.hero-cards,
.value-copy {
  min-width: 0;
}

/* Fictional feed content; layout follows the product's date/artwork/tags hierarchy. */
.phone {
  position: relative;
  transform: none;
}
.phone-header {
  padding-block: 20px 12px;
}
.phone-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 12px;
}
.feed-segment {
  display: flex;
  padding: 3px;
  background: var(--ff-surface-subtle);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-pill);
  width: 150px;
}
.feed-segment > span {
  flex: 1;
  padding: 5px 8px;
  text-align: center;
}
.phone-tabs .active {
  background: var(--ff-surface);
  color: var(--ff-ink);
  border: 0;
  padding-bottom: 5px;
  border-radius: var(--ff-radius-pill);
  box-shadow: var(--ff-shadow-card);
}
.feed-tools {
  font-size: 1rem;
  color: var(--ff-ink);
}
.phone-feed {
  padding: 0 8px 64px;
}
.feed-card {
  border-radius: var(--ff-radius-sm);
}
.feed-card-header {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  align-items: flex-start;
}
.feed-date {
  display: grid;
  text-align: center;
  padding-right: 8px;
  border-right: 1px solid var(--ff-border);
  flex: 0 0 32px;
}
.feed-date strong {
  font: 600 1.3rem/1 var(--ff-font-display);
  color: var(--ff-ink);
}
.feed-date span {
  font-size: 0.5rem;
  color: var(--ff-muted);
}
.feed-card-header h3 {
  margin: 0 0 3px;
  font: 600 1rem/1.1 var(--ff-font-display);
  color: var(--ff-ink);
}
.feed-card-header p {
  margin: 0;
  font-size: 0.55rem;
  line-height: 1.3;
  color: var(--ff-muted);
}
.feed-art {
  position: relative;
}
.feed-card .feed-art img {
  height: auto;
  aspect-ratio: 2/2.4;
  object-fit: cover;
}
.feed-rsvp {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.55rem;
  font-weight: 700;
  background: var(--ff-surface);
  border-radius: var(--ff-radius-pill);
  padding: 3px 6px;
  color: var(--ff-rsvp-going);
}
.feed-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 10px;
}
.feed-tags {
  display: flex;
  gap: 4px;
}
.feed-tags span {
  background: var(--ff-surface-subtle);
  color: var(--ff-muted);
  border-radius: var(--ff-radius-pill);
  font-size: 0.5rem;
  padding: 3px 6px;
  font-weight: 600;
}
.feed-actions {
  color: var(--ff-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.phone-bottom {
  position: absolute;
  bottom: 16px;
  left: 8px;
  right: 8px;
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-pill);
  padding: 8px 32px;
  box-shadow: var(--ff-shadow-card);
  color: var(--ff-muted);
}
.phone-bottom .selected {
  color: var(--ff-primary);
  font-weight: 700;
}
.phone-bottom .add-symbol {
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 42px;
  margin-top: -24px;
  border: 3px solid var(--ff-surface);
}
.legal-home {
  margin-top: 32px;
}

/* The phone introduces the product; the static card fan illustrates the benefits. */
.hero-content .phone-demo {
  justify-self: center;
}
.showcase .hero-cards {
  width: 100%;
  margin-left: 0;
}
.showcase .hero-card {
  width: 44%;
}
.showcase .card-music {
  left: 25%;
}
.showcase .card-soccer {
  left: 50%;
}
@media (max-width: 760px) {
  .showcase .hero-cards {
    width: min(90%, 460px);
    margin-inline: auto;
  }
}

.value-icon svg {
  display: block;
  width: 32px;
  height: 32px;
}

.heading-line {
  white-space: nowrap;
}
.firefly-depth {
  display: block;
  transform: scale(var(--fly-depth));
  transform-origin: center;
}

/* Persistent navigation is outside the hero so it remains visible past it. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  height: 80px;
  padding: 0;
  z-index: 12;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--ff-night-start) 96%, transparent),
    color-mix(in srgb, var(--ff-night-start) 78%, transparent) 70%,
    transparent
  );
  backdrop-filter: blur(8px);
}
.header-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.header-fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.header-fireflies i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: var(--ff-radius-pill);
  background: var(--ff-firefly-body);
  box-shadow: 0 0 8px 2px color-mix(in srgb, var(--ff-firefly-gold) 30%, transparent);
  animation: header-glimmer 7s ease-in-out infinite;
}
.header-fireflies i:nth-child(1) {
  left: 31%;
  top: 26%;
  animation-delay: -2s;
}
.header-fireflies i:nth-child(2) {
  left: 53%;
  top: 66%;
  animation-delay: -5s;
}
.header-fireflies i:nth-child(3) {
  left: 70%;
  top: 22%;
  animation-delay: -3.6s;
}
@keyframes header-glimmer {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.65;
  }
}
.hero {
  padding-top: 80px;
}
.hero::before {
  background:
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--ff-night-start) 76%, transparent),
      color-mix(in srgb, var(--ff-night-start) 36%, transparent) 42%,
      color-mix(in srgb, var(--ff-night-start) 48%, transparent) 68%,
      var(--ff-night-end)
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--ff-night-start) 52%, transparent),
      transparent
    );
}
.hero-foreground {
  position: absolute;
  inset: auto -1px -1px;
  height: clamp(160px, 18vw, 300px);
  background: url('/assets/lake-night.jpg') center bottom / max(120vw, 1500px) auto
    no-repeat;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    color-mix(in srgb, var(--ff-ink) 65%, transparent) 40%,
    var(--ff-ink)
  );
  filter: brightness(0.48);
  pointer-events: none;
  z-index: 0;
}
.discover {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  z-index: 3;
  color: var(--ff-text);
}
#your-plans {
  scroll-margin-top: 80px;
}
.card-picnic {
  z-index: 1;
}
.card-music {
  z-index: 2;
}
.card-soccer {
  z-index: 3;
}
@media (min-width: 761px) {
  .hero {
    height: 100svh;
    min-height: 0;
  }
  .hero-content {
    min-height: 0;
    height: 100%;
    padding-block: 16px 80px;
  }
  .hero .phone {
    height: clamp(360px, calc(100svh - 220px), 632px);
    width: clamp(240px, calc((100svh - 220px) * 0.49), 310px);
  }
  .hero figcaption {
    margin-top: 8px;
  }
  h1.ff-display {
    font-size: clamp(3rem, min(6.6vw, 9vh), 6.5rem);
  }
}
@media (min-width: 761px) and (max-height: 680px) {
  h1.ff-display {
    font-size: clamp(2.5rem, 7.5vh, 3.5rem);
    margin-block: 12px;
  }
  .intro {
    font-size: 0.95rem;
    margin-block: 16px;
  }
  .hero .eyebrow {
    margin-block: 8px;
  }
  .hero .phone {
    height: 360px;
    width: 240px;
  }
  .hero-cta {
    min-height: 44px;
  }
  .hero .phone-status {
    height: 28px;
  }
  .hero .phone-header {
    padding-block: 8px;
  }
  .hero .phone-tabs {
    padding-bottom: 8px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 72px;
    padding: 0;
  }
  .hero {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .hero-content {
    padding-block: 32px 40px;
  }
  .hero-foreground {
    height: 180px;
  }
  #your-plans {
    scroll-margin-top: 72px;
  }
  .header-fireflies i:nth-child(3) {
    display: none;
  }
  .showcase-content {
    gap: 32px;
  }
}
@media (max-width: 360px) {
  h1.ff-display {
    font-size: 3.3rem;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .site-header .brand {
    gap: 10px;
    font-size: 1.45rem;
  }
  .phone {
    width: 270px;
  }
  .showcase .hero-cards {
    width: 88%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .header-fireflies i {
    animation: none;
    opacity: 0.4;
  }
}

.feed-tools {
  white-space: nowrap;
}
.hero .phone-tabs .feed-segment {
  width: 58%;
  flex-shrink: 0;
}
.hero .phone-tabs .feed-tools {
  font-size: 0.85rem;
}
.skip-link {
  z-index: 20;
}
@media (min-width: 761px) and (max-height: 540px) {
  .hero-content {
    padding-block: 8px 64px;
  }
  .hero .phone {
    height: max(220px, calc(100svh - 180px));
  }
  .hero figcaption {
    display: none;
  }
  h1.ff-display {
    font-size: 2.2rem;
    margin-block: 8px;
  }
  .hero .intro {
    font-size: 0.85rem;
    margin-block: 8px 12px;
  }
}

/* Explicit scene layers: shade the painting, then let the insects glow above foliage. */
.hero::before {
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--ff-night-start) 88%, transparent),
      color-mix(in srgb, var(--ff-night-start) 58%, transparent) 38%,
      color-mix(in srgb, var(--ff-night-start) 64%, transparent) 72%,
      var(--ff-night-end)
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--ff-night-start) 28%, transparent),
      transparent
    );
}
.hero-foreground {
  z-index: 0;
  filter: brightness(0.35);
}
.firefly-layer {
  z-index: 1;
}
.hero-content {
  z-index: 2;
}
.site-header {
  height: 112px;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--ff-night-start) 92%, transparent),
    color-mix(in srgb, var(--ff-night-start) 60%, transparent) 44%,
    color-mix(in srgb, var(--ff-night-start) 18%, transparent) 78%,
    transparent
  );
  backdrop-filter: none;
  pointer-events: none;
}
.header-content {
  height: 80px;
  pointer-events: auto;
}
.feed-card .sample-flyer {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 760px) {
  .site-header {
    height: 104px;
  }
  .header-content {
    height: 72px;
  }
}

/* Marketing controls share the app's type, pill shape, colors, and spring curve. */
.discover,
.phone-demo figcaption {
  font-family: var(--ff-font-ui);
}
.discover {
  translate: -50% 0;
  transform: none;
  padding-inline: 20px;
  border: 1px solid color-mix(in srgb, var(--ff-border-strong) 52%, transparent);
  border-radius: var(--ff-radius-pill);
  background: color-mix(in srgb, var(--ff-surface) 38%, transparent);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  color: var(--ff-ink);
}
.ff-button {
  /* Translate labels without scaling their glyphs or changing text rasterization. */
  isolation: isolate;
  position: relative;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  transition:
    transform var(--ff-duration-slow) var(--ff-ease-menu-spring),
    background var(--ff-duration-fast) var(--ff-ease-out),
    border-color var(--ff-duration-fast) var(--ff-ease-out),
    box-shadow var(--ff-duration-base) var(--ff-ease-out);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ff-button:hover {
    transform: translate3d(0, -2px, 0);
  }
  .discover:hover {
    background: color-mix(in srgb, var(--ff-surface) 62%, transparent);
    border-color: var(--ff-border-strong);
  }
}
.ff-button:active {
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .ff-button {
    will-change: auto;
  }
  .ff-button:hover,
  .ff-button:active {
    transform: none;
  }
}

/* A readable, mostly opaque green-black bar, with a soft trailing fade. */
.site-header {
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--ff-night-start) 98%, transparent),
    color-mix(in srgb, var(--ff-night-mid) 96%, transparent) 60%,
    color-mix(in srgb, var(--ff-night-mid) 90%, transparent) 72%,
    color-mix(in srgb, var(--ff-night-mid) 45%, transparent) 90%,
    transparent
  );
}
.feed-tools,
.feed-actions,
.phone-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.feed-tools svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.feed-actions svg {
  width: 13px;
  height: 13px;
}
.phone-bottom > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.phone-bottom svg {
  width: 19px;
  height: 19px;
}
.phone-bottom .add-symbol {
  display: grid;
  place-items: center;
}
.phone-bottom .add-symbol svg {
  width: 25px;
  height: 25px;
}
.phone-status-icons {
  gap: 3px;
}
.phone-status-icons svg {
  width: 11px;
  height: 11px;
}

@media (max-width: 360px) {
  h1.ff-display {
    font-size: 3.1rem;
  }
}

@media (max-width: 760px) {
  .hero-copy {
    width: 100%;
    margin-inline: auto;
    text-align: center;
  }
  .hero-copy .intro {
    margin-inline: auto;
  }
}

/* Marketing CTAs use the shared amber palette; app and phone UI keep Lake. */
.ff-button--primary {
  --ff-primary: var(--ff-firefly-body);
  --ff-primary-hover: var(--ff-firefly-gold);
  --ff-primary-contrast: var(--ff-night-mid);
}
.ff-button--primary:active {
  background: var(--ff-firefly-amber);
}

.feed-rsvp--maybe {
  color: var(--ff-firefly-gold);
}
.phone .avatar {
  background: var(--ff-primary);
  color: var(--ff-primary-contrast);
}

/* Raster device chassis surrounds a live, independently clipped screen. */
.phone {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.phone-device-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
.phone-screen {
  --phone-content-inset: 12px;
  position: absolute;
  inset: 2.53% 7.04% 2.81% 6.7%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--ff-canvas);
  border-radius: 15% / 6.7%;
  overflow: hidden;
  clip-path: inset(0 round 15% / 6.7%);
  isolation: isolate;
  color-scheme: light;
}
.phone-status {
  border-radius: 0;
  padding-inline: 16px;
}
.phone-scroll {
  min-height: 0;
  /* Reserve the scrollbar inside the outer channel, beyond the card rail. */
  margin-left: var(--phone-content-inset);
  margin-right: 0;
  scrollbar-gutter: stable;
  scrollbar-color: color-mix(in srgb, var(--ff-muted) 38%, var(--ff-canvas))
    var(--ff-canvas);
  scrollbar-width: thin;
}
.phone-scroll::-webkit-scrollbar {
  width: 6px;
  background: var(--ff-canvas);
}
.phone-scroll::-webkit-scrollbar-track {
  background: var(--ff-canvas);
}
.phone-scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ff-muted) 38%, var(--ff-canvas));
  border: 1px solid var(--ff-canvas);
  border-radius: var(--ff-radius-pill);
}
.phone-bottom {
  bottom: 16px;
  left: var(--phone-content-inset);
  right: var(--phone-content-inset);
  padding-inline: 24px;
}

.hero .phone-tabs .feed-segment {
  width: 55%;
}
.feed-tools {
  gap: 6px;
}
.feed-card-footer {
  gap: 4px;
  padding-inline: 8px;
}
.feed-actions {
  gap: 6px;
}
@media (max-width: 390px) {
  .phone-header .brand {
    font-size: 1.5rem;
  }
  .phone-tabs {
    padding-inline: var(--phone-content-inset);
  }
  .feed-tools {
    gap: 5px;
  }
}

/* One content rail for the logo, filters, artwork, and floating navigation. */
.phone-header,
.phone-tabs {
  padding-inline: var(--phone-content-inset);
}
.phone-feed {
  padding-inline: 0;
  /* The reserved gutter plus this inset equals the shared 12px content rail. */
  padding-right: 6px;
}
.phone-island {
  background: transparent;
}

.feed-tools {
  gap: 9px;
}
.feed-actions {
  gap: 8px;
}
.phone-status-icons {
  gap: 5px;
}
@media (max-width: 390px) {
  .feed-tools {
    gap: 8px;
  }
}

/* Grow only the surface: labels retain their natural size throughout the spring. */
.ff-button.ff-button {
  background: transparent;
  border-color: transparent;
}
.ff-button::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid var(--button-surface-border, transparent);
  border-radius: inherit;
  background: var(--button-surface, transparent);
  transform: scale(1);
  transition:
    transform var(--ff-duration-slow) var(--ff-ease-menu-spring),
    background var(--ff-duration-fast) var(--ff-ease-out),
    border-color var(--ff-duration-fast) var(--ff-ease-out),
    box-shadow var(--ff-duration-base) var(--ff-ease-out);
}
.ff-button--primary {
  --button-surface: var(--ff-primary);
}
.ff-button--primary:hover {
  --button-surface: var(--ff-primary-hover);
}
.ff-button--primary:active {
  --button-surface: var(--ff-firefly-amber);
}
.ff-button--secondary {
  --button-surface: var(--ff-surface);
  --button-surface-border: var(--ff-border);
}
.ff-button--secondary:hover {
  --button-surface: var(--ff-surface-subtle);
}
.app-outline {
  --button-surface: transparent;
  --button-surface-border: var(--ff-border-strong);
}
.app-outline:hover {
  --button-surface: var(--ff-action-hover-soft);
}
.discover {
  position: absolute;
  --button-surface: color-mix(in srgb, var(--ff-surface) 38%, transparent);
  --button-surface-border: color-mix(in srgb, var(--ff-border-strong) 52%, transparent);
}
.discover:hover {
  --button-surface: color-mix(in srgb, var(--ff-surface) 62%, transparent);
  --button-surface-border: var(--ff-border-strong);
}
.skip-link {
  position: absolute;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ff-button:hover::before {
    transform: scale(1.02);
    box-shadow: var(--ff-shadow-raised);
  }
  .ff-button:active::before {
    transform: scale(1);
  }
}
