/* Product Loop section — five mini product moments in a horizontal flow.
   Each step shares chrome (mini-iPhone or mini-web tile) but content
   differs per phase so it never reads as icon-tile soup. */

.section-loop {
  background: var(--surface);
}
.loop-head { max-width: 900px; }

.loop-grid {
  margin-top: 56px;
  list-style: none;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
}
.loop-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 170px;
}
.loop-step-screen {
  width: 100%;
  display: flex;
  justify-content: center;
}
.loop-step-meta {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.loop-step-n {
  font-size: 11px;
  color: var(--hint);
  letter-spacing: 0.08em;
}
.loop-step-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.006em;
}
.loop-step-caption {
  font-family: var(--grotesk);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 160px;
}

.loop-arrow {
  align-self: center;
  margin-top: 90px;
  color: var(--hint);
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .loop-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 18px;
  }
  .loop-step { flex: 0 0 calc(33.333% - 18px); max-width: 200px; }
  .loop-arrow { display: none; }
}
@media (max-width: 640px) {
  .loop-step { flex: 0 0 calc(50% - 18px); }
}
@media (max-width: 420px) {
  .loop-step { flex: 0 0 100%; max-width: 240px; }
}

.loop-foot {
  margin-top: 48px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* --- Mini iPhone --------------------------------------------------------- */

.mini-iphone {
  width: 138px;
  height: 252px;
  position: relative;
}
.mini-iphone-bezel {
  position: absolute;
  inset: 0;
  background: #0c1410;
  border-radius: 22px;
  padding: 5px;
  box-shadow:
    0 8px 22px rgba(21, 32, 26, 0.14),
    0 2px 6px rgba(21, 32, 26, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.mini-iphone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 17px;
  overflow: hidden;
}
.mini-iphone-notch {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 11px;
  background: #0c1410;
  border-radius: 8px;
}
.mini-iphone-content {
  width: 100%; height: 100%;
  padding: 22px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.mini-iphone.is-saved .mini-iphone-screen {
  background: var(--teal-tint);
}

.mi-app-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-align: center;
}
.mi-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.mi-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mi-line {
  font-size: 10.5px;
  color: var(--hint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.mi-input-stub {
  font-family: var(--serif);
  font-size: 11.5px;
  color: var(--ink);
  line-height: 1.25;
  padding: 6px 8px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}
.mi-meal {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.22;
  text-wrap: balance;
}
.mi-kcal {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mi-kcal-v { font-size: 21px; color: var(--ink); letter-spacing: -0.015em; line-height: 1; }
.mi-kcal-pm { font-size: 12px; color: var(--muted); white-space: nowrap; }
.mi-kcal-u {
  font-family: var(--grotesk);
  font-size: 9.5px;
  color: var(--hint);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mi-tag {
  margin-top: auto;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hint);
  font-weight: 600;
  white-space: nowrap;
}

.mi-saved {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.mi-saved-tick {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(14, 110, 86, 0.30);
  margin-bottom: 6px;
}
.mi-saved-h {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--teal-deep);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.mi-saved-sub {
  font-family: var(--serif);
  font-size: 11.5px;
  color: var(--ink);
  font-style: italic;
  padding: 0 6px;
  line-height: 1.2;
}
.mi-saved-meta {
  font-family: var(--grotesk);
  font-size: 10px;
  color: var(--teal-deep);
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.75;
  margin-top: 4px;
}

/* --- Mini web tile ------------------------------------------------------- */

.mini-web {
  width: 158px;
  height: 252px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 8px 22px rgba(21, 32, 26, 0.10),
    0 2px 6px rgba(21, 32, 26, 0.06);
  display: flex;
  flex-direction: column;
}
.mini-web-chrome {
  display: flex;
  gap: 3px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.mini-web-chrome span {
  width: 6px; height: 6px;
  background: rgba(21, 32, 26, 0.18);
  border-radius: 999px;
}
.mini-web-body {
  flex: 1;
  min-height: 0;
  padding: 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  overflow: hidden;
}
.mw-cloud {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.mw-status-h {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  align-self: center;
  letter-spacing: -0.005em;
}
.mw-status-sub {
  font-family: var(--grotesk);
  font-size: 10px;
  color: var(--muted);
  align-self: center;
  text-align: center;
  letter-spacing: 0;
  line-height: 1.3;
  max-width: 100%;
}
.mw-list {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.mw-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mw-row:first-child { border-top: none; }
.mw-row > span { white-space: nowrap; }
.mw-row-foot { color: var(--ink); font-weight: 500; }

.mw-device-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  margin-top: 4px;
}
.mw-device {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.mw-device-new {
  background: var(--teal-tint);
  border-color: var(--teal-tint-strong);
  color: var(--teal-deep);
}
.mw-device-arrow {
  font-family: var(--grotesk);
  font-size: 16px;
  color: var(--hint);
}
.mw-restore-line {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--grotesk);
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.3;
  align-self: stretch;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}
.mw-pulse {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--teal);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(14, 110, 86, 0.16);
}
