/* Home page: big running type with small app objects set between the words.
   Loaded after styles.css on / and /en/ only. */

.home {
  --wine: #6f1d1b;
  --camel: #bb9457;
  --apricot: #ffe6a7;
  --coffee: #21160f;
}

.home .wrap { max-width: 1120px; }

.poster {
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 7.4vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0;
}

.poster p { margin: 0; }

.poster .ln { display: block; }

.opening { padding: 40px 0 8px; }

.opening .l1, .opening .l2 { color: var(--muted); }

.opening .ln {
  opacity: 0;
  animation: rise 0.6s ease-out forwards;
}

.opening .l1 { animation-delay: 0.15s; }
.opening .l2 { animation-delay: 0.9s; }
.opening .l3 { animation-delay: 1.7s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .opening .ln { animation: none; opacity: 1; }
}

.opening .l3 em { font-style: normal; color: var(--accent); }

.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 520px;
  margin: 28px 0 0;
}

.badge { margin-top: 20px; }

.feature { padding: 64px 0 0; }

.feature + .feature { padding-top: 48px; }

.closing { padding: 88px 0 16px; }

.closing .poster em { font-style: normal; color: var(--accent); }

/* Objects set in the text. Sized in em so they scale with the type. */

.obj {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  height: 0.8em;
  margin: 0 0.06em;
  letter-spacing: 0;
  transform: translateY(var(--py, 0)) rotate(calc(var(--r, 0deg) + var(--pr, 0deg)));
  white-space: nowrap;
  box-shadow: 0 0.06em 0.18em var(--shadow);
  outline: 1px solid var(--edge);
}

.obj svg { display: block; }

.obj-door { width: 0.8em; border-radius: 0.2em; overflow: hidden; background: #fff; }
.obj-door img { width: 100%; height: 100%; }

.obj-check { width: 0.8em; border-radius: 0.22em; background: var(--accent); --r: -6deg; }
.obj-check svg { width: 60%; }

.obj-ring { width: 0.8em; border-radius: 50%; background: var(--card); box-shadow: none; }
.obj-ring svg { width: 100%; height: 100%; }

.obj-pill {
  gap: 0.12em;
  padding: 0 0.22em;
  border-radius: 0.4em;
  font-size: 0.32em;
  height: 2.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.obj-streak { background: var(--accent); color: #fff; --r: 4deg; }
.obj-streak svg { height: 1.1em; }

.obj-makeup {
  background: var(--apricot);
  color: var(--wine);
  border: 0.1em dashed var(--wine);
  --r: -5deg;
}

.obj-widget {
  width: 0.95em;
  padding: 0.09em;
  flex-direction: column;
  align-items: stretch;
  gap: 0.06em;
  border-radius: 0.18em;
  background: var(--coffee);
  --r: 3deg;
}

.obj-widget i {
  display: flex;
  align-items: center;
  gap: 0.05em;
  flex: 1;
  border-radius: 0.05em;
  background: #332218;
  padding: 0 0.05em;
}

.obj-widget i::before {
  content: "";
  width: 0.1em;
  height: 0.1em;
  border-radius: 50%;
  background: #d48246;
}

.obj-widget i::after {
  content: "";
  height: 0.04em;
  width: calc(var(--w, 1) * 0.6em);
  border-radius: 1em;
  background: #a89c90;
  opacity: 0.6;
}

.obj-widget i.done::after { background: var(--apricot); opacity: 0.9; }

.obj-widget i.done::before { background: var(--apricot); }

.obj-live {
  gap: 0.25em;
  padding: 0 0.3em 0 0.12em;
  border-radius: 1em;
  background: #000;
  color: #fff;
  font-size: 0.32em;
  height: 2.5em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  --r: -2deg;
}

.obj-live b {
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  background: #d48246;
  display: grid;
  place-items: center;
}

.obj-live b svg { width: 0.7em; }

.obj-note {
  gap: 0.3em;
  padding: 0 0.35em 0 0.18em;
  border-radius: 0.6em;
  background: var(--card);
  color: var(--text);
  font-size: 0.3em;
  height: 2.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
  --r: 3deg;
}

.obj-note img { width: 1.8em; height: 1.8em; border-radius: 0.45em; }

.obj-note small { display: block; font-size: 0.75em; color: var(--muted); font-weight: 500; }

.obj-trophy {
  width: 0.8em;
  border-radius: 0.22em;
  background: var(--apricot);
  color: var(--wine);
  --r: 5deg;
}

.obj-trophy svg { width: 62%; }

.obj-coach {
  padding: 0 0.32em;
  border-radius: 0.7em 0.7em 0.7em 0.15em;
  background: var(--wine);
  color: var(--apricot);
  font-size: 0.3em;
  height: 2.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
  --r: -4deg;
}


.obj-coach-b { background: var(--camel); color: var(--coffee); border-radius: 0.7em 0.7em 0.15em 0.7em; --r: 3deg; }

.obj-coach-c { background: var(--coffee); color: var(--apricot); --r: -2deg; }

.obj-report { background: var(--card); color: var(--text); --r: 3deg; }
.obj-report svg { height: 1.1em; color: var(--accent); }

.obj-noad {
  background: var(--apricot);
  color: var(--wine);
  letter-spacing: 0.06em;
  font-weight: 800;
  --r: -6deg;
}

.poster.muted { color: var(--muted); }

/* Scroll motion (home.js adds .motion only when reduced motion is off). */
.motion .feature, .motion .closing {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.motion .feature.in, .motion .closing.in { opacity: 1; transform: none; }

.motion .obj { will-change: transform; }

/* Scroll-scrubbed details (home.js). The markup holds the finished state. */
.obj .n { font-weight: inherit; font-variant-numeric: tabular-nums; }

.obj-report .bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(var(--h, 1)); }

.obj-noad .strike { position: relative; }

.obj-noad .strike::after {
  content: "";
  position: absolute;
  left: -6%;
  top: 50%;
  height: 0.18em;
  width: calc(var(--s, 1) * 112%);
  margin-top: -0.09em;
  border-radius: 1em;
  background: var(--wine);
}
