/* Hero phone mockup: a static, CSS-only rendering of the app's Today screen
   (session card, calorie ring, stat tiles, exercise list). */

.phone {
  justify-self: center;
  width: 300px;
  max-width: 100%;
  height: 610px;
  padding: 12px;
  border-radius: 46px;
  background: #050605;
  box-shadow: 0 0 0 2px var(--border), var(--shadow), 0 0 80px rgb(var(--primary-rgb) / 0.2);
  position: relative;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -12px; } }
.phone__notch {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 90px;
  height: 24px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 20px;
  z-index: 2;
}
.phone__screen {
  height: 100%;
  border-radius: 36px;
  background: var(--bg-2);
  padding: 56px 16px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone__date { font-size: 0.72rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.1em; }
.phone__hero {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgb(var(--primary-rgb) / 0.35), rgba(26, 30, 27, 0.92));
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.phone__label { font-size: 0.7rem; color: var(--primary-light); }
.phone__title { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; text-transform: uppercase; }
.phone__meta { font-size: 0.72rem; color: var(--text-2); margin-bottom: 6px; }
.phone__bento { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--surface); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.tile--ring { grid-row: span 2; align-items: center; justify-content: center; position: relative; }
.tile__k { font-size: 0.65rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; }
.tile__v { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.tile__s { font-size: 0.65rem; color: var(--text-2); }
.tile__s.up { color: var(--success); }
.ring { width: 104px; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--border); stroke-width: 9; }
/* Circumference of r=42 is ~264; dashoffset hides the unfilled share. */
.ring__fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: calc(264 * (1 - var(--p)));
  transition: stroke-dashoffset 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}
.js .reveal:not(.is-visible) .ring__fill { stroke-dashoffset: 264; }
.ring__label { position: absolute; text-align: center; line-height: 1.1; }
.ring__label strong { display: block; font-family: var(--font-display); font-size: 1.35rem; }
.ring__label span { font-size: 0.58rem; color: var(--text-2); }
.phone__list { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; }
.row em { margin-left: auto; font-style: normal; color: var(--text-2); font-size: 0.72rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }
.dot--done { background: var(--success); border-color: var(--success); }

