/* Appfetti one-pager
   White-themed showcase for Appfetti's Shopify apps. The vibrant logo carries
   the colour; the page stays clean and bright so it pops. All brand colours and
   spacing live as tokens here, never hardcoded in the markup. */

:root {
  /* Brand palette, sampled from the Appfetti logo */
  --c-blue: #2d6cdf;
  --c-purple: #7b3fe4;
  --c-magenta: #c026d3;
  --c-pink: #f5385c;
  --c-yellow: #ffce3a;
  --c-green: #36c46e;
  --c-orange: #ff8a3d;

  --brand-gradient: linear-gradient(
    100deg,
    var(--c-blue),
    var(--c-purple),
    var(--c-magenta),
    var(--c-pink)
  );

  /* Neutrals */
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #15161b;
  --ink-soft: #4a4d57;
  --ink-faint: #888c98;
  --line: #ecedf1;

  /* Pending-review amber */
  --pending-bg: #fff7e6;
  --pending-ink: #b45309;
  --pending-dot: #f59e0b;

  /* Scale */
  --maxw: 1080px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 30px 80px -40px rgba(28, 22, 60, 0.35),
    0 2px 8px -2px rgba(28, 22, 60, 0.08);

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--c-purple);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--c-magenta);
}

:focus-visible {
  outline: 3px solid var(--c-purple);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 0;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}

/* Soft brand glow behind the logo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 55% at 50% 30%,
    rgba(192, 38, 211, 0.12),
    rgba(45, 108, 223, 0.08) 45%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

.hero__logo {
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.hero__logo img {
  width: clamp(240px, 42vw, 420px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(40, 20, 80, 0.16));
}

.hero__tagline {
  position: relative;
  z-index: 1;
  margin: clamp(8px, 2vw, 18px) auto 0;
  max-width: 30ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  line-height: 1.3;
  color: var(--ink-soft);
}

/* Decorative confetti scattered behind the hero */
.confetti {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  opacity: 0.85;
  animation: float 7s ease-in-out infinite;
}

.dot--blue {
  left: 12%;
  top: 22%;
  background: var(--c-blue);
  transform: rotate(18deg);
}
.dot--purple {
  left: 22%;
  top: 60%;
  background: var(--c-purple);
  border-radius: 50%;
  animation-delay: -1.2s;
}
.dot--magenta {
  left: 8%;
  top: 44%;
  background: var(--c-magenta);
  animation-delay: -2.4s;
}
.dot--pink {
  right: 14%;
  top: 26%;
  background: var(--c-pink);
  border-radius: 50%;
  animation-delay: -0.6s;
}
.dot--yellow {
  right: 9%;
  top: 56%;
  background: var(--c-yellow);
  transform: rotate(-12deg);
  animation-delay: -3s;
}
.dot--green {
  right: 22%;
  top: 64%;
  background: var(--c-green);
  border-radius: 50%;
  animation-delay: -1.8s;
}
.dot--orange {
  left: 32%;
  top: 16%;
  background: var(--c-orange);
  animation-delay: -2.1s;
}
.dot--blue2 {
  right: 30%;
  top: 14%;
  width: 10px;
  height: 10px;
  background: var(--c-blue);
  border-radius: 50%;
  animation-delay: -3.6s;
}
.dot--pink2 {
  left: 18%;
  top: 12%;
  width: 9px;
  height: 9px;
  background: var(--c-pink);
  border-radius: 50%;
  animation-delay: -4.2s;
}
.dot--yellow2 {
  right: 18%;
  top: 70%;
  width: 11px;
  height: 11px;
  background: var(--c-yellow);
  border-radius: 50%;
  animation-delay: -0.9s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(12deg);
  }
}

/* ---------- Apps ---------- */
.apps {
  padding: clamp(8px, 3vw, 32px) 0 clamp(64px, 9vw, 110px);
}

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.82rem, 2vw, 0.95rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 clamp(24px, 4vw, 44px);
}

.app-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
}

/* Gradient accent bar along the top of the card */
.app-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--brand-gradient);
}

.app-card__head {
  display: flex;
  gap: clamp(20px, 4vw, 36px);
  align-items: center;
  flex-wrap: wrap;
}

.app-card__icon {
  flex: 0 0 auto;
  width: clamp(96px, 16vw, 132px);
  height: clamp(96px, 16vw, 132px);
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #fff5f6, #f3f4ff);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 16px;
}

.app-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-card__intro {
  flex: 1 1 320px;
  min-width: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pending-bg);
  color: var(--pending-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 7px 14px 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.status-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pending-dot);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.app-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  line-height: 1.1;
  margin: 14px 0 8px;
  letter-spacing: -0.02em;
}

.app-card__tagline {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 52ch;
}

.app-card__note {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--ink-faint);
}

/* Feature grid */
.features {
  list-style: none;
  margin: clamp(28px, 5vw, 44px) 0 0;
  padding: clamp(26px, 4vw, 36px) 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 34px);
}

.feature {
  position: relative;
  padding-top: 18px;
}

/* Small gradient tick mark above each feature */
.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  margin: 0 0 6px;
}

.feature__text {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: clamp(40px, 6vw, 64px) 24px clamp(48px, 7vw, 72px);
}

.footer__mark {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 6px;
}

.footer__contact {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer__copy {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .app-card__head {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .dot,
  .status-badge__dot {
    animation: none;
  }
}
