@font-face {
  font-family: Regatto;
  src: url("assets/brand/Regatto.ttf");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #061b35;
  color: #102d45;
  font-family: Inter, Arial, sans-serif;
}

body {
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

.mobile-app {
  width: 100%;
  max-width: 520px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 14px 14px 92px;
  background:
    radial-gradient(circle at 90% 0%, rgba(156, 212, 60, .18), transparent 34%),
    linear-gradient(180deg, #071c34 0%, #eef4f7 31%, #f8fafc 100%);
}

.topbar {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 12px;
  align-items: center;
  color: #fff;
}

.topbar img {
  width: 82px;
  height: 54px;
  object-fit: contain;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}

.topbar strong {
  display: block;
  font-size: 19px;
}

.topbar span {
  display: block;
  color: #9cd43c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.topbar button,
.tabbar button,
form button,
.badge-actions button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.topbar button {
  padding: 10px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .13);
}

.identity {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  background: rgba(255, 255, 255, .11);
  color: #fff;
}

label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #cad8e2;
  border-radius: 13px;
  color: #102d45;
  background: #fff;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.identity p {
  margin: 10px 0 0;
  color: #dce8f0;
  font-size: 13px;
}

.screen {
  display: none;
  animation: fade .18s ease-out;
}

.screen.active {
  display: block;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-card {
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 30, 54, .96), rgba(15, 72, 65, .9)),
    #061b35;
  box-shadow: 0 18px 42px rgba(6, 27, 53, .18);
}

.hero-card p,
.hint {
  margin: 0 0 10px;
  color: #63768a;
  line-height: 1.5;
}

.hero-card p {
  color: #9cd43c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card h1,
.screen h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.03;
}

.hero-card span {
  display: inline-block;
  margin-top: 12px;
  color: #dce8f0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 24px;
}

.metrics article,
.panel-form,
.list article {
  border: 1px solid #dbe6ed;
  border-radius: 18px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 12px 30px rgba(16, 45, 69, .08);
}

.metrics article {
  min-height: 92px;
  padding: 14px 12px;
}

.metrics span,
.list small,
.screen .eyebrow {
  color: #6a7e8f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
}

.screen h2 {
  margin: 24px 0 12px;
  font-size: 18px;
}

.list {
  display: grid;
  gap: 10px;
}

.list article {
  padding: 14px;
  border-left: 5px solid #0a5da5;
}

.list article.simple {
  border-left-color: #9cd43c;
}

.list article.warning {
  border-left-color: #e0a126;
}

.list strong {
  display: block;
  margin: 4px 0;
  font-size: 17px;
}

.list p {
  margin: 5px 0 0;
  color: #607489;
  line-height: 1.4;
}

.week-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.week-tabs button {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  color: #29445a;
  background: #dbe6ed;
  font-weight: 900;
}

.week-tabs button.active {
  color: #fff;
  background: #061b35;
}

.panel-form {
  display: grid;
  gap: 13px;
  margin: 14px 0;
  padding: 16px;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

form button,
.badge-actions button {
  padding: 14px;
  border-radius: 14px;
  color: #061b35;
  background: #9cd43c;
}

output {
  display: block;
  min-height: 20px;
  color: #496070;
  font-size: 13px;
  font-weight: 800;
}

.badge-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.badge-actions button:last-child {
  color: #fff;
  background: #0a5da5;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(520px, 100%);
  padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(6, 27, 53, .97);
  box-shadow: 0 -12px 35px rgba(6, 27, 53, .18);
}

.tabbar button {
  padding: 10px 3px;
  border-radius: 14px;
  color: #c8d7e3;
  background: transparent;
  font-size: 11px;
}

.tabbar button.active {
  color: #061b35;
  background: #9cd43c;
}

@media (min-width: 700px) {
  body {
    padding: 24px;
  }

  .mobile-app {
    border-radius: 28px;
    box-shadow: 0 22px 70px rgba(6, 27, 53, .26);
  }
}

@media (max-width: 390px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .hero-card h1,
  .screen h1 {
    font-size: 27px;
  }
}
