/* ============================================================================
   Sweepy — product page styles
   Part of tinyyy studio. The design system (tokens, themes, brand letters,
   motion primitives, language toggle, footer, theme pill) is the studio's
   shared.css, hot-linked from https://tinyyy.studio/shared.css before this
   file so the two pages feel like one place; only the Sweepy-specific styles
   follow.
   ============================================================================ */

/* 1. Page metrics (narrower rail than the studio) ----------------------------- */

:root {
  --page-max: 1040px;
  --page-pad: 32px;
}

/* 2. Header ------------------------------------------------------------------ */

.site-header {
  max-width: 1040px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 32px;
}
.brand-nav { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.5px; }

/* Back-to-the-studio affordance: an arrow slides in from the left on hover
   (the header wordmark drops the studio's 🤏 pinch; the footer keeps it). */
.brand-back .yyy-pinch { display: none; }
.back-arrow {
  display: inline-block; max-width: 0; opacity: 0; overflow: hidden;
  transform: translateX(4px); font-weight: 700; color: var(--muted);
  transition: all .35s cubic-bezier(.34, 1.8, .5, 1);
}
.brand-back:hover .back-arrow { max-width: 1.2em; opacity: 1; transform: translateX(0); margin-right: 6px; }

/* 3. Section headers ----------------------------------------------------------- */

.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 5vw, 44px); letter-spacing: -1.4px; margin: 0 0 6px;
}
.section-head p { font-size: 15px; color: var(--muted); margin: 0; }

/* 4. Hero -------------------------------------------------------------------- */

.hero { max-width: 900px; margin: 0 auto; padding: 64px 32px 44px; text-align: center; }

.hero-icon-wrap { position: relative; display: inline-flex; margin-bottom: 26px; }
.hero-blob {
  position: absolute; inset: 50% auto auto 50%;
  width: 172px; height: 172px; transform: translate(-50%, -50%);
  border-radius: 46% 54% 55% 45% / 52% 46% 54% 48%;
  background:
    radial-gradient(circle at 30% 28%, var(--y1), transparent 58%),
    radial-gradient(circle at 72% 74%, var(--y3), transparent 58%),
    var(--y2);
  opacity: .22; filter: blur(8px); z-index: 0;
}
.hero-icon {
  position: relative; z-index: 1; width: 116px; height: 116px;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .13)); transform: rotate(-4deg);
}

.hero-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(60px, 12vw, 104px); line-height: 1; letter-spacing: -2px;
  margin: 0 0 20px;
}
/* The "y" stays ink and only lights up on hover, like the studio's inline y's */

.hero-tagline {
  font-size: clamp(17px, 2.4vw, 21px); line-height: 1.55; color: var(--muted);
  max-width: 560px; margin: 0 auto 34px;
}

.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.download-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--btnfg); font-weight: 700; font-size: 15.5px;
  padding: 15px 30px; border-radius: 14px; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16); font-family: var(--font-body);
}
.hero-meta { font-size: 13px; color: var(--muted2); margin: 0; }

/* Price line: a little trial badge, then the one-time price. The buy-once
   ethos below carries the "keep forever" part, so this stays short. */
.hero-price {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px; margin: 0; font-size: 14.5px;
}
.trial-badge {
  font-weight: 700; font-size: 12.5px; padding: 5px 12px; border-radius: 99px;
  border: 1.5px solid var(--y); color: var(--y); letter-spacing: -0.1px;
}
.price-amount { font-weight: 700; color: var(--ink); }

.hero-ethos {
  font-family: var(--font-hand); font-size: 21px; font-weight: 600;
  color: var(--muted); margin: 26px 0 0;
}

/* 5. Showcase: a slice of your desktop --------------------------------------- */

.showcase { max-width: 960px; margin: 0 auto; padding: 26px 32px 40px; text-align: center; }
.screen {
  margin: 0; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .16);
}
.screen-body { line-height: 0; }
.screen-body img { display: block; width: 100%; height: auto; }
.showcase-note {
  font-family: var(--font-hand); font-size: 20px; color: var(--muted);
  max-width: 460px; margin: 22px auto 0; line-height: 1.35;
}

/* 6. The quiet routine ------------------------------------------------------- */

.routine { max-width: 1040px; margin: 0 auto; padding: 54px 32px; }
.beats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.beat {
  position: relative; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 22px 32px; background: var(--card); border-radius: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}
.beat-num {
  position: absolute; top: 8px; right: 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 62px;
  line-height: 1; color: var(--ink); opacity: .07; z-index: 0; pointer-events: none;
}
.beat-blob {
  position: relative; z-index: 1; flex: none;
  width: 62px; height: 62px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.beat-blob svg { width: 30px; height: 30px; }
.beat h3 {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 800; font-size: 21px;
  letter-spacing: -0.4px; margin: 0 0 8px;
}
.beat p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 260px; }

.beat-choices { display: inline-flex; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 12.5px; font-weight: 700; padding: 6px 13px; border-radius: 99px;
  border: 1.5px solid var(--line); color: var(--muted);
}
.chip-temp { border-color: var(--y); color: var(--y); }

/* 7. Features --------------------------------------------------------------- */

.features { max-width: 1040px; margin: 0 auto; padding: 40px 32px 92px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border-radius: 20px; padding: 30px 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}
.feature-title { font-weight: 700; font-size: 16px; margin-bottom: 5px; letter-spacing: -0.2px; }
.feature-desc { font-size: 14px; line-height: 1.62; color: var(--muted); }

/* Blob icons — the studio's info-blob shape, one accent per feature */
.info-blob {
  flex: none; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
}
.info-blob svg { width: 21px; height: 21px; }

.blob-gold   { background: #FFC933; color: #7a5b00; border-radius: 46% 54% 55% 45% / 52% 46% 54% 48%; }
.blob-teal   { background: #9FD6D2; color: #1e5450; border-radius: 48% 52% 42% 58% / 54% 46% 58% 42%; }
.blob-green  { background: #BAD29C; color: #3f5323; border-radius: 44% 56% 46% 54% / 56% 44% 56% 44%; }
.blob-coral  { background: #F0938C; color: #6e1d1d; border-radius: 52% 48% 58% 42% / 44% 54% 46% 56%; }
.blob-purple { background: #C6B5F2; color: #432b7a; border-radius: 58% 42% 48% 52% / 46% 56% 44% 54%; }

/* The closing card is a call to action, not a feature */
.feature-cta {
  background: var(--panel); align-items: center; justify-content: center; text-align: center;
}
.feature-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.feature-cta .feature-title { font-family: var(--font-display); font-size: 19px; max-width: 240px; }
.feature-cta-meta { font-size: 12.5px; color: var(--muted2); margin: 0; }

/* 8. Footer ------------------------------------------------------------------ */

.site-footer { margin-top: 20px; }

/* 9. Responsive ------------------------------------------------------------- */

@media (max-width: 860px) {
  .beats { grid-template-columns: 1fr; gap: 20px; max-width: 440px; margin: 0 auto; }
  .beat-num { font-size: 54px; top: 10px; right: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { padding: 20px 22px; }
  .brand-nav { font-size: 18px; }
  .hero { padding: 44px 22px 36px; }
  .hero-icon, .hero-blob { transform-origin: center; }
  .hero-icon { width: 96px; height: 96px; }
  .hero-blob { width: 148px; height: 148px; }
  .showcase, .routine, .features { padding-left: 22px; padding-right: 22px; }
  .feature { padding: 24px 24px; }
}
