@font-face {
  font-family: "Yekan";
  src: url("/fonts/YekanNewFaceD1-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan";
  src: url("/fonts/YekanNewFaceD1-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan";
  src: url("/fonts/YekanNewFaceD1-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan";
  src: url("/fonts/YekanNewFaceD1-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan";
  src: url("/fonts/YekanNewFaceD1-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan";
  src: url("/fonts/YekanNewFaceD1-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #f8fafc;
  --foreground: #0f172a;
  --surface: #ffffff;
  --border: #e2e8f0;
  --muted: #64748b;
  --rise-distance: 28px;
  --rise-duration: 0.62s;
  --rise-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: "Yekan", Tahoma, Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
}

.bill-input,
.bill-input::placeholder {
  font-family: "Yekan", Tahoma, Arial, sans-serif;
}

.bill-input:not(:placeholder-shown) {
  letter-spacing: 0.04em;
}

.app-icon {
  flex-shrink: 0;
  line-height: 0;
}

.app-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(var(--rise-distance));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rise-in {
  opacity: 0;
  transform: translateY(var(--rise-distance));
  animation: riseIn var(--rise-duration) var(--rise-ease) forwards;
  animation-delay: var(--delay, 0ms);
  will-change: transform, opacity;
}

.rise-in-group > .rise-in:nth-child(1) { --delay: 0ms; }
.rise-in-group > .rise-in:nth-child(2) { --delay: 70ms; }
.rise-in-group > .rise-in:nth-child(3) { --delay: 140ms; }
.rise-in-group > .rise-in:nth-child(4) { --delay: 210ms; }
.rise-in-group > .rise-in:nth-child(5) { --delay: 280ms; }
.rise-in-group > .rise-in:nth-child(6) { --delay: 350ms; }
.rise-in-group > .rise-in:nth-child(7) { --delay: 420ms; }
.rise-in-group > .rise-in:nth-child(8) { --delay: 490ms; }

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.2);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.12);
  }
  60% {
    transform: scale(1);
  }
}

.heart-beat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: #ef4444;
  vertical-align: middle;
  animation: heartBeat 1.35s ease-in-out infinite;
  transform-origin: center;
}

.heart-beat svg {
  width: 100%;
  height: 100%;
}

.site-footer {
  background: transparent;
}

.site-footer a {
  color: #2563eb;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .heart-beat {
    animation: none;
  }

  .rise-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

button,
input {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

button:not(:disabled):active {
  transform: translateY(1px);
}

.bg-\[var\(--surface\)\] {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
