:root{
  --bg: #eef1f6;
  --bg2:#f6f7fb;

  --card: rgba(255,255,255,0.78);
  --cardSolid: #ffffff;

  --ink:#1f2a3a;
  --muted:#6b778a;

  --border: rgba(31,42,58,0.10);
  --shadow: 0 14px 35px rgba(25, 36, 56, 0.14);

  --blue:#6aa8d8;
  --blue2:#7bb3e0;
  --blueInk:#ffffff;

  --navbar-offset: 70px;
  --top-offset: 100px;
  --bottom-offset: -70px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue";
  color:var(--ink);
  background: linear-gradient(180deg, var(--bg2), var(--bg));
}

/* subtle “soft blobs” like on screenshot */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events:none;
  background:
    radial-gradient(100px 100px at 15% 18%, rgba(106,168,216,0.12), rgba(106,168,216,0) 70%),
    radial-gradient(140px 140px at 85% 30%, rgba(106,168,216,0.10), rgba(106,168,216,0) 70%),
    radial-gradient(120px 120px at 25% 75%, rgba(106,168,216,0.08), rgba(106,168,216,0) 70%),
    radial-gradient(160px 160px at 80% 82%, rgba(106,168,216,0.08), rgba(106,168,216,0) 70%);
  opacity: 1;
}

.app{
  min-height: 100svh;
  display:flex;
  justify-content:center;
  padding: 18px 14px calc(18px + env(safe-area-inset-bottom)) 14px;
}

.screen{
  width: min(420px, 100%);
  min-height: calc(100svh - 18px - (18px + env(safe-area-inset-bottom)));
  display:flex;
  flex-direction:column;
  gap: 10px;
  /* padding-bottom: 90px; */
}

.top{
  padding-top: calc(6px + var(--navbar-offset));
  text-align:center;
}

.title{
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #6a73c9; /* slightly lilac-blue like screenshot title */
}
.subtitle{
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #7a879b;
}

.main{
  flex: 1;
  padding: var(--top-offset) 0 0;
}

.view{ display:block; }
.hidden{ display:none; }

.card{
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.inputCard{
  padding: 12px;
}
.inputRow{
  display:flex;
  gap: 10px;
  align-items:center;
}

.input{
  width:100%;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(31,42,58,0.12);
  background: rgba(255,255,255,0.85);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}
.input:focus{
  border-color: rgba(106,168,216,0.45);
  box-shadow: 0 0 0 5px rgba(106,168,216,0.12);
}

.btn{
  border: 0;
  border-radius: 14px;
  cursor:pointer;
  font-weight: 800;
  user-select:none;
}
.btnSmall{
  height: 44px;
  padding: 0 14px;
  min-width: 64px;
  color: var(--blueInk);
  background: linear-gradient(180deg, var(--blue2), var(--blue));
  box-shadow: 0 10px 18px rgba(106,168,216,0.22);
}
.btnSmall:active{ transform: translateY(1px); }

.factCard{
  margin-top: 14px;
  padding: 18px 16px;
  min-height: 108px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.factText{
  font-size: 16px;
  font-weight: 800;
  color: #2a3445;
  line-height: 1.35;
  white-space: pre-wrap;
}
.placeholder{
  color: rgba(42,52,69,0.55);
}

.btnPrimary{
  display:block;
  width: fit-content;
  min-width: 190px;
  margin: 14px auto 0;
  padding: 12px 18px;
  color: var(--blueInk);
  background: linear-gradient(180deg, var(--blue2), var(--blue));
  box-shadow: 0 10px 18px rgba(106,168,216,0.22);
}
.btnPrimary:active{ transform: translateY(1px); }

.count{
  text-align:center;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #7a879b;
}

/* NOTES */
.notesHeader{
  text-align:center;
  padding: 6px 0 10px;
}
.notesTitle{
  font-size: 28px;
  font-weight: 900;
  color: #6a73c9;
  letter-spacing:-0.02em;
}
.notesSub{
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #7a879b;
}

.notesCard{
  padding: 12px;
}
.notesTopRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}
.notesHint{
  font-size: 12px;
  font-weight: 800;
  color: #7a879b;
}
.btnGhost{
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(31,42,58,0.10);
  color: #2a3445;
  font-weight: 900;
}
.btnGhost:active{ transform: translateY(1px); }

.notesArea{
  padding-top: 4px;
}
.dateHeader{
  margin: 12px 0 8px;
  font-size: 14px;
  font-weight: 900;
  color: #6a73c9;
}
.noteItem{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(31,42,58,0.10);
  margin-bottom: 10px;
}
.bullet{
  width: 16px;
  min-width: 16px;
  font-weight: 900;
  color: #6a73c9;
  line-height: 1.2;
}
.noteText{
  font-weight: 800;
  color:#2a3445;
  line-height:1.35;
}

/* bottom tabs (inside app, like screenshot) */
.bottom{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--bottom-offset) + var(--navbar-offset));
  width: min(420px, calc(100% - 28px));
  padding: 0;
  z-index: 10;
}

.tabs{
  display:flex;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(31,42,58,0.10);
  box-shadow: 0 12px 26px rgba(25, 36, 56, 0.12);
  border-radius: 18px;
  overflow:hidden;
}
.tab{
  width:100%;
  height: 46px;
  border: 0;
  background: transparent;
  font-weight: 900;
  font-size: 14px;
  color: rgba(42,52,69,0.65);
  cursor:pointer;
}
.tab.active{
  color: #6a73c9;
  background: rgba(106,115,201,0.08);
  box-shadow: inset 0 -3px 0 rgba(106,115,201,0.55);
}

.tinyLine{
  height: 1px;
  width: 70%;
  margin: 10px auto 8px;
  background: rgba(31,42,58,0.10);
  border-radius: 999px;
}
.tinyText{
  text-align:center;
  font-size: 11px;
  font-weight: 800;
  color: rgba(122,135,155,0.85);
  min-height: 14px;
}

/* mobile small */
@media (max-width: 380px){
  .title{ font-size: 30px; }
  .btnPrimary{ min-width: 170px; }
}
