/* Vector-sharp iPhone frames. Screens stay light - they are the app. */

.phone {
  --phone-bg: #fbfaf8;
  --phone-ink: #111;
  --phone-muted: rgba(17, 17, 17, 0.48);
  --phone-faint: rgba(17, 17, 17, 0.32);
  --phone-line: rgba(17, 17, 17, 0.08);
  --phone-btn: #111;
  --phone-btn-text: #fbfaf8;
  container-type: inline-size;
  width: min(20.5rem, 78vw);
  aspect-ratio: 9 / 19.45;
  margin: 0;
  flex-shrink: 0;
  background: #111;
  border-radius: 2.7rem;
  padding: 0.55rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 22px 50px rgba(0, 0, 0, 0.16);
}

.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2.2rem;
  background: var(--phone-bg);
  color: var(--phone-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  font-size: 11px;
  font-size: 4.05cqi;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
}

.phone__status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 5.8cqi;
  padding: 1.6cqi 5.2cqi 0;
  font-size: 3.35cqi;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.phone__status-right {
  display: flex;
  justify-content: flex-end;
  gap: 1.1cqi;
  align-items: center;
}

.phone__signal,
.phone__wifi,
.phone__battery {
  display: block;
  background: var(--phone-ink);
}

.phone__signal {
  width: 4cqi;
  height: 2.6cqi;
  clip-path: polygon(0 100%, 22% 70%, 22% 100%, 44% 45%, 44% 100%, 66% 22%, 66% 100%, 100% 0, 100% 100%);
}

.phone__wifi {
  width: 3.4cqi;
  height: 2.6cqi;
  border: 0.45cqi solid var(--phone-ink);
  border-bottom: 0;
  border-radius: 3cqi 3cqi 0 0;
  background: transparent;
  transform: translateY(0.4cqi);
}

.phone__battery {
  width: 5.4cqi;
  height: 2.6cqi;
  border-radius: 0.45cqi;
  opacity: 0.92;
}

.phone__island {
  width: 22cqi;
  height: 2.7cqi;
  background: #111;
  border-radius: 2cqi;
}

.phone__home {
  position: absolute;
  left: 50%;
  bottom: 1.4cqi;
  width: 32cqi;
  height: 1.15cqi;
  background: var(--phone-ink);
  border-radius: 1cqi;
  transform: translateX(-50%);
  opacity: 0.88;
}

.ui {
  display: flex;
  flex-direction: column;
  height: calc(100% - 5.8cqi);
  padding: 1.4cqi 5.6cqi 5.2cqi;
}

.ui-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 8cqi;
}

.ui-mark {
  width: 7.4cqi;
  height: 7.4cqi;
  color: var(--phone-ink);
}

.ui-gear {
  width: 7.6cqi;
  height: 7.6cqi;
  border-radius: 50%;
  border: 0.28cqi solid var(--phone-line);
  display: grid;
  place-items: center;
  color: var(--phone-ink);
}

.ui-gear svg {
  width: 4.1cqi;
  height: 4.1cqi;
}

.ui-hero {
  margin: 3cqi 0 3.2cqi;
  font-size: 7.6cqi;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.ui-label {
  margin: 0 0 1.2cqi;
  font-size: 2.55cqi;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--phone-faint);
}

.ui-counts {
  margin: 0 0 0.8cqi;
  font-size: 3.55cqi;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ui-storage {
  margin: 0 0 1.5cqi;
  font-size: 2.85cqi;
  color: var(--phone-muted);
}

.ui-bar {
  height: 0.7cqi;
  border-radius: 1cqi;
  background: rgba(17, 17, 17, 0.1);
  overflow: hidden;
  margin-bottom: 1.5cqi;
}

.ui-bar span {
  display: block;
  width: 50.2%;
  height: 100%;
  background: rgba(17, 17, 17, 0.55);
  border-radius: 1cqi;
}

.ui-since {
  margin: 0;
  font-size: 2.85cqi;
  color: var(--phone-muted);
}

.ui-note {
  margin: 0.5cqi 0 0;
  font-size: 2.55cqi;
  color: var(--phone-faint);
}

.ui-cats {
  display: flex;
  flex-direction: column;
  gap: 2.1cqi;
  margin-top: auto;
}

.ui-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 11.8cqi;
  padding: 1.4cqi 2cqi;
  background: var(--phone-btn);
  color: var(--phone-btn-text);
  border-radius: 4cqi;
  text-align: center;
}

.ui-cat strong {
  font-size: 3.7cqi;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ui-cat span {
  margin-top: 0.35cqi;
  font-size: 2.7cqi;
  font-weight: 400;
  opacity: 0.72;
}

.ui-foot {
  margin: 2.4cqi 0 0;
  text-align: center;
  font-size: 2.5cqi;
  color: var(--phone-faint);
}

/* Results / preparation */

.ui--center {
  align-items: center;
  text-align: center;
  padding-top: 7cqi;
}

.ui-mark--lg {
  width: 18.5cqi;
  height: 18.5cqi;
  margin-bottom: 4.5cqi;
}

.ui-serif {
  margin: 0 0 1.8cqi;
  font-family: "New York", "Iowan Old Style", Palatino, "Times New Roman", serif;
  font-size: 6.2cqi;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  max-width: 78cqi;
}

.ui-sub {
  margin: 0 0 6cqi;
  font-size: 3.2cqi;
  font-style: italic;
  color: var(--phone-muted);
}

.ui-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: left;
}

.ui-list li {
  display: flex;
  align-items: center;
  gap: 2.4cqi;
  padding: 1.7cqi 0;
  font-size: 3.7cqi;
  color: var(--phone-ink);
}

.ui-check {
  width: 3.4cqi;
  height: 3.4cqi;
  border-radius: 50%;
  border: 0.35cqi solid rgba(17, 17, 17, 0.22);
  position: relative;
  flex-shrink: 0;
}

.ui-check::after {
  content: "";
  position: absolute;
  left: 1cqi;
  top: 0.45cqi;
  width: 1cqi;
  height: 1.85cqi;
  border-right: 0.38cqi solid rgba(17, 17, 17, 0.45);
  border-bottom: 0.38cqi solid rgba(17, 17, 17, 0.45);
  transform: rotate(40deg);
}

.ui-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 14.4cqi;
  margin-top: auto;
  background: var(--phone-btn);
  color: var(--phone-btn-text);
  border-radius: 4.2cqi;
  font-size: 4.1cqi;
  font-weight: 600;
}

/* Review */

.ui-nav {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.6cqi;
  min-height: 8.4cqi;
}

.ui-back {
  width: 2.2cqi;
  height: 2.2cqi;
  border-left: 0.45cqi solid var(--phone-ink);
  border-bottom: 0.45cqi solid var(--phone-ink);
  transform: rotate(45deg);
  margin-left: 0.6cqi;
}

.ui-nav-title {
  font-size: 4cqi;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
}

.ui-pill {
  padding: 1.15cqi 2.3cqi;
  border-radius: 3cqi;
  background: rgba(17, 17, 17, 0.06);
  font-size: 2.85cqi;
  font-weight: 500;
}

.ui-more {
  width: 6.4cqi;
  height: 6.4cqi;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.06);
  display: grid;
  place-items: center;
  letter-spacing: 0.2cqi;
  font-size: 3.6cqi;
  font-weight: 700;
}

.ui-month {
  margin: 2.4cqi 0 2.6cqi;
  text-align: center;
}

.ui-month strong {
  display: block;
  font-size: 3.5cqi;
  font-weight: 500;
  color: var(--phone-muted);
}

.ui-month span {
  display: block;
  margin-top: 0.5cqi;
  font-size: 2.7cqi;
  color: var(--phone-faint);
}

.ui-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.55cqi;
  flex: 1;
  min-height: 0;
}

.tile {
  position: relative;
  border-radius: 2.2cqi;
  background: #eceae4;
  overflow: hidden;
  min-height: 0;
}

.tile.is-on .badge {
  opacity: 1;
}

.art {
  position: absolute;
  inset: 18%;
  opacity: 0.38;
  color: #111;
}

.art--mtn {
  clip-path: polygon(8% 78%, 32% 42%, 48% 58%, 72% 28%, 92% 78%);
  background: currentColor;
  inset: 22% 14% 18%;
}

.art--bars {
  background:
    linear-gradient(currentColor, currentColor) 12% 100% / 16% 42% no-repeat,
    linear-gradient(currentColor, currentColor) 42% 100% / 16% 68% no-repeat,
    linear-gradient(currentColor, currentColor) 72% 100% / 16% 54% no-repeat;
}

.art--pie {
  border: 1.5cqi solid currentColor;
  border-radius: 50%;
  clip-path: polygon(50% 50%, 50% 0, 100% 0, 100% 55%, 50% 50%);
}

.art--wave {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 40%, currentColor 0 18%, transparent 19%),
    radial-gradient(circle at 70% 60%, transparent 0 22%, currentColor 23% 28%, transparent 29%);
  border: 0.7cqi solid currentColor;
}

.art--lines {
  background:
    linear-gradient(currentColor, currentColor) 50% 28% / 70% 8% no-repeat,
    linear-gradient(currentColor, currentColor) 50% 50% / 70% 8% no-repeat,
    linear-gradient(currentColor, currentColor) 38% 72% / 46% 8% no-repeat;
}

.art--dots {
  background-image: radial-gradient(currentColor 45%, transparent 46%);
  background-size: 33% 33%;
  background-position: 0 0;
}

.badge {
  position: absolute;
  top: 1.3cqi;
  right: 1.3cqi;
  width: 4.4cqi;
  height: 4.4cqi;
  border-radius: 50%;
  background: #111;
  opacity: 0;
}

.badge::after {
  content: "";
  position: absolute;
  left: 1.4cqi;
  top: 0.85cqi;
  width: 1.15cqi;
  height: 2.1cqi;
  border-right: 0.45cqi solid #fff;
  border-bottom: 0.45cqi solid #fff;
  transform: rotate(40deg);
}

.ui-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 13.2cqi;
  margin-top: 2.6cqi;
  background: var(--phone-btn);
  color: var(--phone-btn-text);
  border-radius: 4cqi;
  font-size: 4cqi;
  font-weight: 600;
}

@media (max-width: 640px) {
  .phone {
    width: min(18.25rem, 72vw);
  }
}
