/* Love Widget's own page. Everything shared with the rest of the site comes from
   /assets/site.css; this file adds only what belongs to Love Widget: its red and cream,
   taken from the app icon, and the picture of two frames on a desk. */

:root {
  --love: #ff1f44;
  --love-deep: #d9002b;
  --cream: #fff3e2;
  --frame-ink: #1c1a1a;
}

/* The opening: the app's icon and name above the headline, and where to get it under it. */

.app-chip {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-weight: 750; font-stretch: 115%; font-size: 1.15rem;
}
.app-chip img { width: 56px; height: 56px; }
.hero-lede .availability {
  margin-top: 1.25rem; font-size: 1rem; color: var(--ink);
  display: inline-flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
}
.availability b {
  font-weight: 650; padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--love) 12%, var(--paper-raised));
  color: var(--love-deep);
}
@media (prefers-color-scheme: dark) {
  .availability b { color: #ff8fa3; background: color-mix(in srgb, var(--love) 22%, var(--paper-raised)); }
}

/* The desk: two frames, as they sit on a Mac's desktop. In the first a heart is drawn
   once, the way a friend's stroke arrives; in the second a photo has been drawn on. */

.feature.love { background: radial-gradient(120% 90% at 85% 10%, #3a0f2a 0%, var(--night) 62%); }
.feature.love .feature-app img { border-radius: 0; }
/* On the 9BestApp home page this block follows Max Display's. */
.feature + .feature { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

.frames { position: relative; aspect-ratio: 4 / 3; container-type: inline-size; }
.frame {
  position: absolute; width: 44%; aspect-ratio: 4 / 5.6;
  display: flex; flex-direction: column;
  border-radius: 5cqw; overflow: hidden;
  background: #ffffff; color: var(--frame-ink);
  box-shadow: 0 5cqw 12cqw -4cqw rgba(0, 0, 0, 0.6), 0 0 0 0.25cqw rgba(255, 255, 255, 0.08);
}
.frame-a { left: 3%; top: 4%; rotate: -3deg; }
.frame-b { right: 3%; bottom: 3%; rotate: 2.5deg; }
.frame-bar {
  display: flex; align-items: center; gap: 1.6cqw;
  padding: 2.2cqw 3cqw; background: #f1eeec;
  font-size: 3cqw; font-weight: 650; line-height: 1;
}
.frame-bar::before { content: ""; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #34c759; }
.frame svg { flex: 1; width: 100%; min-height: 0; display: block; }
.frame-react {
  position: absolute; left: 3cqw; bottom: 3cqw;
  padding: 1cqw 2.2cqw; border-radius: 999px; background: #f1eeec;
  font-size: 4cqw; line-height: 1.2;
}

.stroke { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.stroke-heart {
  stroke: var(--love); stroke-width: 4;
  stroke-dasharray: 300; stroke-dashoffset: 300;
  animation: draw 1.8s cubic-bezier(0.6, 0, 0.3, 1) 0.6s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .stroke-heart { animation: none; stroke-dashoffset: 0; }
}
@media (max-width: 820px) { .frames { max-width: 460px; } }

/* What it does, and how it keeps things private: the site's three-across points,
   here with Love Widget's red on the rule. */

.love-points { padding-block: 0 var(--section-space); }
.love-points .points li { border-top-color: var(--love); }
.love-points .points { row-gap: clamp(2.25rem, 4vw, 3.25rem); }

/* Signing in: one calm box that says exactly what is asked for and why. */

.signin { padding-block: 0 var(--section-space); }
.signin .note { margin-top: 0; max-width: 52rem; }
.signin .note h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 0.9rem; }
.signin .note ul { margin: 1rem 0 0; padding-left: 1.3rem; display: grid; gap: 0.6rem; }
.signin .note li { color: var(--ink-soft); }
.signin .note li::marker { color: var(--love); }
.signin .note p + p, .signin .note ul + p { margin-top: 0.9rem; }
